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()
Metadata
Release files for mmmint-registration-recognition 0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mmmint_registration_recognition-0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mmmint_registration_recognition-0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / mmmint_registration_recognition-0.tar.gz
| Download URL | mmmint_registration_recognition-0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03fc10e32a4b8f6648c3fa33607dcc57ea64875bb9b54457620c5e6d5a5c7d2b
|
|
BLAKE2b-256 checksum How to use checksums |
c7baa0973aa061968a627f6d6d7f0546bb71bcd1ef7126ef91cd193e36e4b64b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mmmint_registration_recognition-0-py3-none-any.whl
| Download URL | mmmint_registration_recognition-0-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c68e84fd7d22c93c3e1b39268f27c8282ca6c26308ce8b26ed4639998c3dfc5c
|
|
BLAKE2b-256 checksum How to use checksums |
632127ab1e5d0ed4981c8839d12efefaa0d4f88c6b7cb9a1e2347a626c45986f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|