Blue Iris and CodeProject.AI ALPR

I see a couple of issues. First on the recording tab I would recommend setting your video option to “Continuous" instead of "Continuous sub + Alerts”. Also, you’ve got your AI misconfigured. The way you have your custom models set it will only identify what is in the "license-plate” which is DayPlatYoue or NightPlate so you won’t get actual tag numbers. I recommend you filter out everything except for the tags themselves and use just the LPR model. Here’s an example of one of my LPR cameras:
I am using Sub stream + main, so it should switch to recording main when Alerted, are you saying ALPR requires full time main stream recording? Switching to those settings I still only get the ALPR in preview/thumbnail, not when playing back the full video.
 
Last edited:
Switching to those settings I still only get the ALPR in preview/thumbnail, not when playing back the full video.
I guess I'm a bit confused on what you are expecting here. If you're talking about the markup, which is the red box around the plate, it only applies to the jpeg file.
 
Ya, I'm confused also... might just be a user training issue. I cannot view a full screen of anything with ALPR. I can only see thumbnails. I have set the Motion Trigger to record video and jpeg, I would imagine I would be able to either open a video or a jpeg and see the orange box with plate #, but I cannot find any jpegs that are tagged like that and no video, I can only see tiny low res thumbnails in the list or mouse over and see small low res animation showing the orange box.

In UI3 I see these jpgs in the list, but I double click one and the video playback starts... after some confusion I finally found a way to access the jpg in a non-intuitive process-
1731100931664.png
By right clicking the clip and selecting Properties it opens a large jpg showing the ALPR info.

Is that the best way to get to the info?
 
Last edited:
No - it is not, I am looking for this functionality shown by this user, he easily click the play/pause button to go frame by frame thru the ALPR images:

1731126896399.png
 
No - it is not
Hmmm… yes it is. The functionality shown in Rob’s example is “Testing & Tuning”. To enable this double click on any clip so that it’s displayed in the main window. Then right click on the main window and select “Testing and Tuning” and then “Analyze with AI”. You can then use the scroll options at the bottom of the page to do a frame by frame analysis.

Screen Shot 2024-11-08 at 10.48.28 PM.png
 
  • Like
Reactions: weigle2
TCP 0.0.0.0:32168 0.0.0.0:0 LISTENING
This line means that some program is listening on port 32168 on all network interfaces.

The lines that say ESTABLISHED means that something established a connection to your machine.
Since the lines start with 127.0.0.1 (localhost) and the other end is 127.0.0.1 that means that you are making a successful connection to your own machine on the localhost interface.

The ones that show TIME_WAIT are old connections that will be closed. Probably from a previous browser session.

THe ones with [::1} are IPv6 and can most likely be ignored.

IN summary the program is running and listening on the correct port and something on your computer has made a successful connection to it and it all appears to be working correctly.

If your browser is not displaying the Web UI, I would next troubleshoot the browser itself, maybe a security setting or something.
Antivirus, javascript disabled, something like that.

You could also try installing another browser like chrome or firefox and trying that.
Skispcs, Thank for your support but I have now got this sorted. As you confirmed BI was actually connected (great advice btw) to CPAI and the issue was actually being caused by the fact that the ALPR for plates option was not selected.

1731223051222.png

When I first read MikeLud1 settings advice when i read the comment "For the ALPR to work you need to checkoff ALPR for plates" I thought he meant that this setting needed to be turned off but after subsequent reading turning this setting on made everything come alive. I am still seeing the error message in the BI logs that sent me down the rabbit hole on start-up but everything is working despite this message.

Sorry for wasting everyone's time but thanks to everyone that helped me get this sorted.
 
I found what I needed to make this feature so much more usable and logical. Thanks to TimG @ BI forum:

1. In BI5 General settings, click on the Macros tab.
2. Choose an empty macro number. In my case %2.
3. Add "&Plate" without the quotation marks. Press OK.
4. In the ANPR BI5 camera settings, go to Video/ Display overlays live.
5. Click "Edit overlays".
6. Click "Add text/time".
7. Add "%002" on the top line.
8. Choose font size and colour and press OK.
9. Choose position of text box.
 
What am I missing?
If the trigger is Motion, Mark as Vehicle is working.
If the trigger is ONVIF, Mark as Vehicle is not working.

Thanks in advance.


1731898371126.png

Triggered by Motion, mark as vehicle is working

1731898418233.png

Triggered by ONVIF, mark as vehicle is NOT working, but license plate is picked up.


1731898458647.png
 
@iwanttosee Your issue may be because you have object detection on in Trigger settings; therefore, the ONVIF trigger was not from zone movement or overlapping.

1731909201421.png <- This icon's meaning can be found in the help manual, "A motion icon is used to mark objects which do not overlap an area of movement following a motion trigger. To disregard motion overlap for objects, disable Object detection on the Trigger/Motion page" (pg122).
 
  • Like
Reactions: iwanttosee
@iwanttosee Your issue may be because you have object detection on in Trigger settings; therefore, the ONVIF trigger was not from zone movement or overlapping.

View attachment 207498 <- This icon's meaning can be found in the help manual, "A motion icon is used to mark objects which do not overlap an area of movement following a motion trigger. To disregard motion overlap for objects, disable Object detection on the Trigger/Motion page" (pg122).

Thanks for your reply. Unchecked object detection and it made no difference on onvif trigger not recognizing vehicle.
 
@iwanttosee What are your ONVIF Event settings?

If the Action is just "Trigger" you won't get the Marked as vehicle because BI doesn't know what the "Trigger" was (e.g.: car or person) it just knows it was triggered. You would have to use "Confirmed vehicle".

1732153959156.png
 
  • Like
Reactions: iwanttosee
@iwanttosee What are your ONVIF Event settings?

If the Action is just "Trigger" you won't get the Marked as vehicle because BI doesn't know what the "Trigger" was (e.g.: car or person) it just knows it was triggered. You would have to use "Confirmed vehicle".

View attachment 207759
Maybe I'm not understanding "trigger" and "alert"?
I don't want to the onvif "trigger" to confirm a vehicle as motion can cause by tree, person, dog, whatever.
I want the onvif trigger to get alert and alert then can use the AI confirm if there is a license plate or not. If there is a license plate, it's a confirmed vehicle.
 
Maybe I'm not understanding "trigger" and "alert"?
I don't want to the onvif "trigger" to confirm a vehicle as motion can cause by tree, person, dog, whatever.
I want the onvif trigger to get alert and alert then can use the AI confirm if there is a license plate or not. If there is a license plate, it's a confirmed vehicle.
I agree, I think that part of BI is a bit confusing under these circumstances. Normally I would just use trigger, however I have never tried AI with ONVIF. Might be a small thing that has been overlooked? or i am just not understanding correctly.

Sent from my SM-S916U using Tapatalk
 
First I suggest read the BI manual. I was confused too and did a lot of reading to understand. Also, BI has so many options it can be confusing at first (it was for me). Open the Trigger tab and then click the Help button. It will bring you directly to the correct section of the manual.

This is my understanding and my not be 100% accurate.

Trigger just means something happened. It could be motion configured/sensed by BI or could be an ONVIF event from a camera (which could just be motion too). You configure the "how" it knows something happened.

Alert is what to do once something was triggered (what to do when something happened). The basics (old way) was nothing additional and you just had to look to see what happened. The modern way is to use AI. However, notice the option to Confirm with AI is optional. This is technically a separate/additional/optional configuration.

AI is also configurable. You are telling it what to look for. By default, if it doesn't find it, it will cancel the alert. But that is an option that can be changed so you can keep it on the list and look at the analysis yourself. Looking for License plates (LP) is not the same as looking for vehicles (cars, trucks, etc). I agree technically if you found a plate then you would think you found a vehicle but technically they are not mutually inclusive. That's the tricky part. Also, I'm not 100% certain that it isn't a bug that it is not marking the vehicle because I don't use ONVIF with LPR.

From my understanding the LPR models are trained on LP only and not vehicle so it doesn't care where it finds them.

One more thing. If the camera has AI and can detect Humans and Vehicles then you can use that to confirm and don't need the BI/CPAI. That is what I do for some cameras. Confirming the vehicle will add the icon as my previous post mentioned. You do have to play with the ONVIF to do determine which if you want.

Hopefully that helps. I'm no expert though. :)
 
Last edited: