MRZ Scanner

FREEMIUM
Verified
Por PresentID | Atualizado לפני 4 ימים | Artificial Intelligence/Machine Learning
Popularidade

9.2 / 10

Latência

5,187ms

Nível de serviço

100%

Health Check

N/A

Voltar para todos os tutoriais (1)

MRZ Scanner

MRZ Scanner

Input:

  • Image file
  • Image URL link
  • Base64 image

Output:

  • MRZ Box
  • MRZ Text
  • Extracted fields

Rules & Restrictions:

Send data via Base64 or an image URL or an image file.
Image size should not exceed 8 MB.
Also, the images should not be larger than 5000 pixels and smaller than 50 pixels.

Python Quick Start

  import requests

  api_url = 'https://mrz-scanner.p.rapidapi.com/ScanMRZ'
  api_key = 'Your API Key'

  image_path = 'Image directory path'
  image_name = 'Image name'

  files = {'image': (image_name, open(image_path + image_name, 'rb'), 'multipart/form-data')}
  header = {
      "x-rapidapi-host": "mrz-scanner.p.rapidapi.com",
      "x-rapidapi-key": api_key
      }
  response = requests.post(api_url, files=files, headers=header)