CodeProject.ai with License Plate Reader module - HowTo?

actran

Getting comfortable
Joined
May 8, 2016
Messages
806
Reaction score
732
@Nunofya It's on BI settings with CodeProject.AI logo on the right

See your screenshot, it's underneath the "Face recognition" checkbox
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
I also noticed you are using alpr as a custom model. Is there even an alpr custom model available? Try using license-plate.

Here's how mine is configured:

Screen Shot 2023-08-25 at 5.18.20 PM.png
 

Nunofya

Getting comfortable
Joined
Nov 8, 2021
Messages
356
Reaction score
274
Location
USA
Should "Cuda true" be green? Don't have a dedicated gpu.

Screenshot 2023-08-25 194507.png
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
Did you uncheck "Only for confirmed vehicle alerts"?
That was it. It appears to be duplicating the license plate number in the alert image. Is there anyway to stop this?

Screen Shot 2023-08-25 at 7.35.07 PM.png
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
UI3 only shows the one plate
After watching this for a few hours I noticed that I'm missing a lot of plates that clearly should have been recognized. Switching back to the license-plate model seems significantly more reliable.

Screen Shot 2023-08-25 at 9.26.37 PM.png

Screen Shot 2023-08-25 at 9.35.04 PM.png
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,219
Reaction score
4,264
Location
Brooklyn, NY
After watching this for a few hours I noticed that I'm missing a lot of plates that clearly should have been recognized. Switching back to the license-plate model seems significantly more reliable.

View attachment 170800

View attachment 170801
It should not make a difference because the ALPR module uses the license-plate model to find the plate before it does the OCR. Post a screenshot of your camera's AI settings

Python:
            start_time = time.perf_counter()
            detect_plate_response = await module_runner.call_api("vision/custom/license-plate",
                                                                 files={ "image": image_data },
                                                                 data={"min_confidence": opts.plate_confidence})
            inferenceMs += int((time.perf_counter() - start_time) * 1000)
 
Top