wpiman
Getting comfortable
You should have waited one day.I was kidding about pizza:30 Sorry about that![]()
You should have waited one day.I was kidding about pizza:30 Sorry about that![]()
I am not sure that's the conclusion. My understanding is that as long as your BI is actually sending images with multiple plate, and as long as CPAI is able to process it before the timeouts on BI, this should work. Images are queued on BI until timeout, and if you hit timeout, it stops processing--but unless your queue is very deep, it might not be a problem.
I think the larger issue might be that you are running it all on the same machine and using CPU for CPAI. This makes BI and CPAI compete for cycles and can cause misses? You'd have to look at your system metrics to see if that's the case.
You might want to consider using Rockchip SBC for CPAI. It's cheap and seems to work pretty well. Or if your Minisforum has TB3/4, you might be able to get an external GPU.
"Images are queued on BI until timeout, and if you hit timeout, it stops processing--but unless your queue is very deep, it might not be a problem."
Could you explain how I may determine if my queue is deep enough and if it's possible to change its size.
"BI and CPAI compete for cycles and can cause misses? You'd have to look at your system metrics to see if that's the case."
How/where would I check my system metrics?
"You might want to consider using Rockchip SBC for CPAI"
This one's way over my head.
"if your Minisforum has TB3/4, you might be able to get an external GPU"
Only USB3.2 on the Minisfourm.
Thanks
The settings are on BI, under the AI tab:
View attachment 218251
The help file explains:
View attachment 218252
Rockchip SBC:
View attachment 218253
And it's performance:
View attachment 218254
See avg inference time at the bottom.
These are my settings. I appreciate the explanation you provided with your settings, however with that said, do my setting look like I'm asking for my hardware to do too much? Also the Rockchip board looks affordable enough but I have no idea how to interface it with my Win 11 NUC. Any guidance would be welcomed.
View attachment 218257
Thanks. I'll continue experimenting with those settings.Those look like the default, you can try bumping timeout to 30s or 45s if you believe it's taking a while for CPAI to return the results. If it's taking too long, then consider the Rockchip board, but I think you should take a closer look at your triggers and the DAT file first.
Pay close attention to the very first image sent to CPAI and the very last image sent, and when CPAI is able to pick up the plate number. That gives you an idea of if your triggers are too late or too early. Looks like your are capturing in the middle of the road where the vehicles are all moving along at decent speed. For vehicles traveling left to right from the camera view, the first image sent to CPAI should be when nearly the entire vehicle is in frame, in the subsequent few images, the license plate should be in the middle of the frame. Adjust your triggers to get to this point. @wipman gave you some great suggestions, especially with the fps. I've found that lowering the fps helps.
As soon as you've found this sweet spot, adjust the # of frames you are sending and end the alert asap so that it can be ready for the next trigger.
I spent days play with these settings to get my cameras to work reasonably well, but I still can't catch every plate, so I am far from an expert, I am sure others can give you better directions.
I have an Orange Pi and I am not sure I get much better results than my Xeon E3 which is probably 10 years old at this point. Agree-- bump that timeout to 60.
Very true... but the Xeon runs my NAS 24/7. Incremental cost is negligible. I think I am the once who convinced Mike Lud to use the RKNN libs. I probably should use it.7W to do it on the Orange Pi vs 180W on your Xeon.
I'm in California, where power is more expensive than Fentanyl.
Thanks. I'll continue experimenting with those settings.
Will do. Cars pass by about 1 every 2-5 minutes on average during the busy time. Obviously I get the random 6 in 1 minute every now and then. ThanksUp the timeout to like 120 seconds. How often do cars come?