Passport/Visa/Id OCR

फ्रीमियम
द्वारा kyc-it | अपडेट किया गया 2달 전 | Visual Recognition
लोकप्रियता

0.1 / 10

लेटेंसी

88ms

सेवा का स्तर

0%

Health Check

N/A

रीडमी

Example with Python’s requests library:

import requests

path_to_your_file = 'tests/data/tst1.jpg'
files = {'uploaded_file': open(path_to_your_file, 'rb')}
headers = {"X-RapidAPI-Key": "c723967abfmsh24ff1bfdd04231fp1d59d5jsn32d8cf31dd0c", "X-RapidAPI-Host": "passport-visa-id-ocr.p.rapidapi.com"}
r = requests.post("https://passport-visa-id-ocr.p.rapidapi.com/mrz", files=files, headers=headers)
if r.status_code == 201:
    tmp_location = r.headers['location']
    print(tmp_location)
# then fetch results
requests.get(tmp_location, headers=headers).json()
'''
{'state': 'SUCCESS',
 'current': 3,
 'total': 3,
 'status': 'Task completed!',
 'result': {'Document Type': 'P',
  'Country': 'IRQ',
  'Surname': 'AL MUSAIED',
  'Name': 'SAAD M SALIH SHNAWA',
  'Doc. Number': 'A14367897',
  'Nationality': 'IRQ',
  'Birth Date': '751208',
  'Sex': 'M',
  'Expiry Date': '260917'}}

'''
फॉलोवर: 0
संसाधन:
उपयोग की शर्तें
API निर्माता:
Rapid account: Kyc It
kyc-it
kycit
API को रेट करने के लिए लॉग इन करें
रेटिंग: 5 - वोट: 1