Skip to main content

KachowVision

Bolivian license plate scanner using OpenCV and OCR.

Features

  • License Number Detection: Extracts the license plate automaticaly and in less than 1 second it recognizes the plaque.
  • Vehicle Type Classification: Identifies the vehicle type using the license plate color.
    • Electric: Blue background (vehicle_type: "electric", is_electric: true)
    • Flex-Fuel: Green background (vehicle_type: "flexfuel", is_electric: false)
    • Combustion: White/metallic background (vehicle_type: "combustion", is_electric: false)
  • Department Origin Detection: Detects the cars department using the letter on the top right side.

Installation

pip install kachowvision

Usage

Terminal

kachowvision path/to/license-plate.jpg

Output:

{
  "license_number": "5463GBG",
  "vehicle_type": "combustion",
  "is_electric": false,
  "department_letter": "S",
  "department_name": "Santa Cruz",
  "analysis_time_seconds": 0.8421
}

The license_number field shows the image license plate number. The vehicle_type field shows the vehicle type(electric,flex,combustion) The is_electric field shows if the vehicle is electric. The department_letter field shows the department letter on the top right of the screen The department_name field shows the department name using the department name The analysis_time_seconds field shows how long the image analysis took

Python

from kachowvision import analyze_plate

result = analyze_plate("path/to/license-plate.jpg")
print(result)

For development from a checkout, install the project in editable mode:

pip install -e .

The sample images in testingimages/ are included in the repository for development and testing; they are not required when using the installed package.

Testing

python3 testing.py

Metadata

Release files for kachowvision 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kachowvision 0.1.0
File Size Uploaded Provenance Actions
kachowvision-0.1.0.tar.gz 8.7 kB Without provenance Details for kachowvision-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kachowvision 0.1.0
File Interpreter ABI Platform Actions
kachowvision-0.1.0-py3-none-any.whl Python 3 none any Details for kachowvision-0.1.0-py3-none-any.whl

Total release size: 17.7 kB

Release files / kachowvision-0.1.0.tar.gz

Download URL kachowvision-0.1.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
244ef9ab035bfb4467d60eaa4a66a11bd2a9f8e12542a7a86a8e6f3a70c2c505
BLAKE2b-256 checksum
How to use checksums
5d589b28ee67618bac15957412f4d649e5738496dc224fd07a70304ce9ef0e21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / kachowvision-0.1.0-py3-none-any.whl

Download URL kachowvision-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
285c1c274de7a9180b6369b51fbce19f32be09ca799531293e29d588176aace8
BLAKE2b-256 checksum
How to use checksums
9d6e4d59c97cd20663a7bcc2fcc28f1fa2585040282f2143e45fa10ea03670ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for kachowvision 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page