License Registration Classification

Upload an image and let the YOLO model detect and crop license documents automatically.

1. Quick Start Guide: Setup and Run Instructions

This application uses a YOLO model to automatically detect, classify, and extract specific license registration documents (STNK).

  1. Preparation: Ensure your image clearly shows the target license document.
  2. Upload: Click the 'Upload License Image' box and select your image (JPG, PNG).
  3. Run: Click the "Detect Document" button.
  4. Review: The detected documents will appear in the 'Cropped Documents' gallery, and the 'Detection Result' box will show the classification and confidence score.

2. Expected Inputs and Preprocessing

Input Field Purpose Requirement
Upload License Image The image containing the license document you want to detect and classify. Must be an image file (e.g., JPG, PNG).

Automatic Preprocessing Steps:

Before detection, the input image is automatically adjusted to enhance accuracy:

  1. Sharpness: Increased sharpness by 2.0.
  2. Contrast: Increased contrast by 1.5.
  3. Brightness: Slightly reduced brightness by 0.8.
  4. Resizing: The image is resized to a width of 448 pixels while maintaining its original aspect ratio.

3. Expected Outputs (Detection and Classification)

The application produces two outputs based on a successful detection:

  1. Cropped Documents (Gallery):

    • This gallery displays only the regions of the image where a license document was confidently detected (Confidence > 80%).
    • If multiple documents are found, all cropped images will appear here.
  2. Detection Result (Textbox):

    • A text summary listing each detected document, including its specific class name (e.g., 'STNK Class A'), and the model's confidence level (as a percentage).

Failure Modes:

  • If "No document detected" is returned, it means the model did not find a document with a confidence level of 80% or higher, or the image quality was too poor for detection.


Sample Data for Testing

Click to load and run a sample detection.