Skip to main content

An interface to execute Fahrzeugschein API commands using Python

Project description

Registration Recognition Python SDK

Registration Recognition by mmmint.ai

Visit mmmint.ai/solutions/fahrzeugschein.

1. Handle your credentials

Create an environment variable to store the api key - reach out to support@mmmint.ai.

export API_KEY="yourapikey"

2. Use the python sdk to call the API

Create an python file and insert the following to load the credentials:

apikey = os.environ.get("API_KEY", "")

Create an Endpoint with your Credentials

from mmmint.registration_recognition.sdk import Client
client = Client(apikey)

Post fahrzeugschein from local Image

image_path = "4.jpg"
client.new_fahrzeugschein(image_path)

Alternative you can post an image url to the API with:

image_url = "https://deinautoguide.de/wp-content/uploads/2020/06/Fahrzeugschein-Aventador.jpg"
client.new_fahrzeugschein_url(image_url)

Get Status of Calculation and Results

from mmmint.registration_recognition.sdk import Client
while client.status ==  Status.STARTED.value:
    client.get_fahrzeugschein_status()
    time.sleep(2)

if client.status == Status.FINISHED.value:
    client.get_fahrzeugschein()

    for i in client.fahrzeugschein:
        print(i, ": ", client.fahrzeugschein[i])
else:
    print("Aborted")

Get the detections:

client.get_detection_bounding_boxes()
client.get_detection_image()
client.get_detection_cropped_image()

Full Example

from mmmint.registration_recognition.sdk import Client, Status

apikey = os.environ.get("API_KEY", "")

# Create an Endpoint with your Credentials
client = Client(apikey)

# Post Fahrzeugschein from local Image
image_path = "4.jpg"
client.new_fahrzeugschein(image_path)
print(client.session)

# Post Fahrzeugschein from URL
image_url = "https://deinautoguide.de/wp-content/uploads/2020/06/Fahrzeugschein-Aventador.jpg"
client.new_fahrzeugschein_url(image_url)

# Or use an existing one
client.get_sessions_finished()[0]["session_id"]
client.session = client.get_sessions_finished()[0]["session_id"]


print(client.session)

# Get Status of Calculation
while client.status == Status.STARTED.value:
    client.get_fahrzeugschein_status()
    time.sleep(2)

# Get Results of Fahrzeugschein
if client.status == Status.FINISHED.value:
    client.get_fahrzeugschein()

    for i in client.fahrzeugschein:
        print(i, ": ", client.fahrzeugschein[i])

    bb = client.get_detection_bounding_boxes()
    di = client.get_detection_image()
    ci = client.get_detection_cropped_image()
    print(bb)
    print(di)
    print(ci)

client.edit_fahrzeugschein()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mmmint_registration_recognition-2.1.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file mmmint_registration_recognition-2.1.1.tar.gz.

File metadata

  • Download URL: mmmint_registration_recognition-2.1.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for mmmint_registration_recognition-2.1.1.tar.gz
Algorithm Hash digest
SHA256 d3fd0b4e83e5bf96bdaade153e3a746e517ab83cfc8b8f88ce05175763989bbe
MD5 5860510c94e6219642b7e88048621343
BLAKE2b-256 3ef2c8342e7050379369e610933ccbf3f48f9e98eaed3c1c9c7c2ff4b38cce78

See more details on using hashes here.

File details

Details for the file mmmint_registration_recognition-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: mmmint_registration_recognition-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for mmmint_registration_recognition-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c4cab028a0ac2e50648bc2b2ffbdb07243b2e741959815089c03bfb04329b86
MD5 f41bb470ddd1ecc68500c0271f02c4a4
BLAKE2b-256 2a5da5de5a14925bdb172dc958c52856ab8faa3ef2359dd250687aafe8d6350c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page