Skip to main content

An interface to execute Fahrzeugschein API commands using Python

Project description

Registration Recognition Python SDK

Registration Recognition by mmmmint.ai

Visit mmmint.ai/solutions/fahrzeugschein.

1. Handle your credentials

Create an environment variable to store the api key - reach out to info@mrfiktv.com.

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
recognition_api = Client(apikey)

Post fahrzeugschein from local Image

image_path = "4.jpg"
recognition_api.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"
recognition_api.new_fahrzeugschein_url(image_url)

Get Status of Calculation and Results

from mmmint_registration_recognition.sdk import Status
while recognition_api.status ==  Status.STARTED.value:
    recognition_api.get_fahrzeugschein_status()

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

    for i in recognition_api.fahrzeugschein:
        print(i, ": ", recognition_api.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-0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

mmmint_registration_recognition-0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mmmint_registration_recognition-0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for mmmint_registration_recognition-0.tar.gz
Algorithm Hash digest
SHA256 03fc10e32a4b8f6648c3fa33607dcc57ea64875bb9b54457620c5e6d5a5c7d2b
MD5 a6cbc7e714c7610af9c7456ccbe9f28a
BLAKE2b-256 c7baa0973aa061968a627f6d6d7f0546bb71bcd1ef7126ef91cd193e36e4b64b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mmmint_registration_recognition-0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for mmmint_registration_recognition-0-py3-none-any.whl
Algorithm Hash digest
SHA256 c68e84fd7d22c93c3e1b39268f27c8282ca6c26308ce8b26ed4639998c3dfc5c
MD5 ef025e47ebb153981eed3755a28567c5
BLAKE2b-256 632127ab1e5d0ed4981c8839d12efefaa0d4f88c6b7cb9a1e2347a626c45986f

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