By the end of this guide you will have a working DetectorPlacas environment and will have successfully run license plate detection on your first image — seeing bounding boxes and confidence scores drawn directly on the output. The setup takes about five minutes if you already have Python 3 installed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/oktopuzSlid/detectorPlacas/llms.txt
Use this file to discover all available pages before exploring further.
Install Python Dependencies
Install the three core runtime libraries. Verify the TensorFlow version after installation:
tensorflow==1.15 is the last release in the 1.x series and the version most compatible with the Object Detection API utilities used by DetectorPlacas.Set Up the TensorFlow Object Detection API
Each script imports Alternatively, if you prefer not to install the package, add the research directory to your Confirm the import works before continuing:
label_map_util and visualization_utils from object_detection.utils. These modules are part of the TensorFlow Models research repository and are not distributed via PyPI by default.Clone the repository and install the research package:PYTHONPATH before running any script:Prepare Model Artifacts
DetectorPlacas resolves all model paths relative to the working directory. Create the Create The scripts look for
inference_graph/ subdirectory inside your project root and place the exported model files there:labelmap.pbtxt in the project root with a single class entry:inference_graph/frozen_inference_graph.pb and labelmap.pbtxt using os.getcwd() as the base, so always run the scripts from the project root.Run Detection
Choose the detection mode that fits your input. All commands should be run from the project root.GUI — recommended for first-time useThe Tkinter interface (window title: Image detectionScans the specified directory for If Video detectionReads Webcam detectionOpens camera index
"Proyecto") lets you select a mode with radio buttons (IMAGEN, VIDEO, CAMARA), optionally enter an image directory path in the RUTA field, and click PRUEBA to launch the corresponding script:.jpg files using os.listdir() and runs inference on each one in sequence. Press any key to advance to the next image:--ruta is omitted, the script lists .jpg files in the current working directory:prueba.mp4 from the working directory and processes it frame by frame. Press any key to step through each frame:0 at 1280×720 resolution and runs continuous inference. The feed stays live until you close the OpenCV window:Interpret Results
When a license plate is detected above the mode’s confidence threshold, DetectorPlacas draws a labelled bounding box directly on the frame using
vis_util.visualize_boxes_and_labels_on_image_array. The box label shows the class name (license_plate) and the confidence score as a percentage.Confidence thresholds by mode:- Image: 0.65 — highest threshold, optimised for clean still frames
- Video: 0.55 — relaxed slightly to handle motion blur across frames
- Webcam: 0.50 — lowest threshold to catch plates under variable real-time lighting
- Any key — advances past the current image (image mode) or the current frame (video mode);
cv2.waitKeyEx()is called after every frame - Close the window — exits webcam mode and triggers
cv2.destroyAllWindows()and resource release
frozen_inference_graph.pb is present in inference_graph/, that labelmap.pbtxt is in the project root, and that you are running the script from the correct working directory.Detection Modes
Deep-dive into image, video, and webcam detection — covering confidence thresholds, directory scanning logic, frame-by-frame processing, and webcam resolution settings.
Script Reference
Full reference for every script: accepted flags, path resolution logic, tensor names, visualisation parameters, and the TF session lifecycle.