|
Quote: Unable to unpack module
It's downloaded the package but can't install. I had this on my CUDA machine. It was a permissions issue. Uninstalling CodeProject.AI server, deleting the C:\Program Files\CodeProject folder and reinstalling fixed it.
I've still not determined why this started happening. Installs did work, then they didn't. Possibly a Windows update, or install update, that changed permissions. The other, easier, option is to right-click on the CodeProject\AI\modules folder, select security, and ensure you have write permissions (recursively set these permissions).
cheers
Chris Maunder
|
|
|
|
|
14:23:39:Preparing to install module 'ALPR'
14:23:39:Downloading module 'ALPR'
14:23:40:Installing module 'ALPR'
14:23:41:ALPR: Installing CodeProject.AI Analysis Module
14:23:41:ALPR: ========================================================================
14:23:41:ALPR: CodeProject.AI Installer
14:23:41:ALPR: ========================================================================
14:23:41:ALPR: CUDA Present...True
14:23:41:ALPR: Allowing GPU Support: Yes
14:23:41:ALPR: Allowing CUDA Support: Yes
14:23:41:ALPR: General CodeProject.AI setup
14:23:41:ALPR: Creating Directories...Done
14:23:41:ALPR: Installing module ALPR
14:23:41:ALPR: Downloading Python 3.7 interpreter...Checking 'C:\Program Files\CodeProject\AI\downloads\windows\python37\python37.zip'
Uninstalled and reinstalled.. its now installing modules.
|
|
|
|
|
I have lost count of how many times I have uninstalled and reinstalled.
|
|
|
|
|
Hello,
I believe I am experiencing a memory leak with the latest versions of CodeProject.AI and Blueiris. I can provide my logs but I'm getting consistent crashes of the applications and as shown in my screenshot below I'm constantly starting new python applications.



|
|
|
|
|
2.0.7 also was not working for me at all. I was also having 2 python instances instead of one and it would not detecd in conjunction with BI. Rolled back to 2.0.6, it is working fine (as it was before).
Keep upo the great work and thanks a lot!
|
|
|
|
|
I'm running into issues rolling back. I had to uninstall code project, remove all files, then had to remove cuda and reinstall all after a power cycle.
|
|
|
|
|
It looked like you might have had multiple instances of CodeProject.AI running. That was way too many Python instances to be attributed to one CodeProject.AI instance (there should be no more than 2 Python instances per Python based module)
cheers
Chris Maunder
|
|
|
|
|
Definitely only running one instance. What appeared to be happening is when I first started up I had 3 instances of python then it slowly created more and more. As shown I only had 3 modules installed and running. Also only running as a service so how I don't know how I could have multiple instances running.
|
|
|
|
|
Seems like you called it as I can't reproduce it now. I saw it 3 times on different attempts before I commented lol. On this upgrade, I haven't seen it happen in the last hour... I will let it run this way tonight and well see if it happens.
|
|
|
|
|
This is after one night running. just one instance as a service for me too, but infinite python.exe

|
|
|
|
|
So uninstalled 2.0.7. restarted deleted codepoject folder in programfiles and in programdata then reinstalled it a few times and somehow the final time I no longer had this issue. been running for 24 hours and not seeing it anymore.
|
|
|
|
|
Funny how i post that then not even an hour later I'm seeing the issue again.
Chris here's the results of the requested command for somereason I'm not getting a response back like yours. I tried playing with the command but couldn't determine what I'm doing wrong.
<pre>C:\Users\kyle>wmic process where "ExecutablePath like '%%modules//OCR%%'" get ExecutablePath
No Instance(s) Available.

I pulled my log traffic but as I can't load it here I'm not sure how to send it for review. In the last hour, it looks like this is the origination in the logs of the issue to my untrained eye. If you provide me away to send the full log file in I'm willing to do so just let me know.
2023-02-01 16:03:31: face.py: Not using half-precision for the device 'NVIDIA GeForce GTX 1660 Ti'
2023-02-01 16:03:31: face.py: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?face_queue: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:31: face.py: Timeout connecting to the server
2023-02-01 16:03:31: face.py: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?face_queue: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:31 [ConnectionRefusedError]: Unable to check the command queue face_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:33: ALPR_adapter.py: [ConnectionRefusedError] : Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?ALPR_queue: [ConnectionRefusedError] : Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33: ALPR_adapter.py: Pausing on error for 1.0 secs.
2023-02-01 16:03:33 [ConnectionRefusedError]: Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34: ModuleRunner Stop
2023-02-01 16:03:34: Sending shutdown request to python/ObjectDetectionYolo
2023-02-01 16:03:34: Client request 'Quit' in the queue (#reqid ba510d2d-8889-499a-ae5e-81eeaf15c175)
2023-02-01 16:03:34: Sending shutdown request to python/FaceProcessing
2023-02-01 16:03:34: Client request 'Quit' in the queue (#reqid 59a94d5a-f4ea-4298-ab92-7ed01ee0171f)
2023-02-01 16:03:34: Sending shutdown request to python/ALPR
2023-02-01 16:03:34: Client request 'Quit' in the queue (#reqid cd385a27-ad52-4d53-a799-b85da2d6237c)
2023-02-01 16:03:34: face.py: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?face_queue: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34: face.py: Timeout connecting to the server
2023-02-01 16:03:34: face.py: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?face_queue: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34 [ConnectionRefusedError]: Unable to check the command queue face_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34: ALPR_adapter.py: Timeout connecting to the server
2023-02-01 16:03:34: ALPR_adapter.py: [ConnectionRefusedError] : Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?ALPR_queue: [ConnectionRefusedError] : Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34: ALPR_adapter.py: [ConnectionRefusedError] : Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?ALPR_queue: [ConnectionRefusedError] : Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34 [ConnectionRefusedError]: Unable to check the command queue ALPR_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34: face.py: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?face_queue: [ConnectionRefusedError] : Unable to check the command queue face_queue. Is the server running, and can you connect to the server?
2023-02-01 16:03:34: face.py: Not using half-precision for the device 'NVIDIA GeForce GTX 1660 Ti'
2023-02-01 16:03:34: face.py: Timeout connecting to the server
Thanks,
Kyle
|
|
|
|
|
I get this as well, if I start and stop CodeProject.AI via Blue Iris control panel it will spawn 2 new instances of python.
|
|
|
|
|
Hubert S wrote: 2.0.7 also was not working for me at all.
What do the logs say?
There are 2 python instances for each module: one for the python instance that the venv refers to, and one for the venv's python instance.
Running wmic process where "ExecutablePath like '%%modules\\OCR%%'" get ExecutablePath gives you:

cheers
Chris Maunder
|
|
|
|
|
Upgrading back to .7 now and will provide shortly rolling back to .6 I have no issues.
|
|
|
|
|
@chris-maunder any further things you can point me towards I'm still in this state and have disabled the server for now since it causing the machine to crash. posted results in above thread.
|
|
|
|
|
If you've allowed Blue Iris to stop/start the CodeProject.AI service then could I suggest disabling that and seeing if that makes any difference?
cheers
Chris Maunder
|
|
|
|
|
Thanks, making this change now and will report back.
Thanks,
Kyle
|
|
|
|
|
@chris-maunder this does seem to be the most likely culprit I haven't seen multiple instances again.
|
|
|
|
|
We've seen a new release of Blue Iris come out and on our end it seems to have reduced a few of the issues we'd seen earlier. Maybe it's a combo of the update and this change.
cheers
Chris Maunder
|
|
|
|
|
I've done some testing on the ALPR module and it seem to generally cope well with various regions, but one thing I noticed is is seems to not be able to detect any square plates. I am going with this being the plate finder rather than the OCR/Syntax part of the pipeline.
This does put a bit of a limit on it's usefulness in the real world as it misses most motorcycles, the rear plates of a lot of commercial vehicles and smoe other vehicle types.
Nice job on the white on black etc though
@MikeLud.. I realise this is your own time spent on this so if you want some assistance PM me as this would not be my first ALPR rodeo so to speak.
|
|
|
|
|
Square plates. That raises a very interesting point.
Mike's been working on an updated version that I'm merging with the current code and testing. I'm hoping I'll have it done today. The changes mainly involve deskewing plates, and this works on finding the longest line on the assumption that plates are wider than they are high.
Any chance you could send me a couple of sample images with square plates that you're seeing issues with? I'll debug against them directly. (chris@codeproject.com)
cheers
Chris Maunder
|
|
|
|
|
See my email to you..
Cheers
Paul
|
|
|
|
|
Chris
To identify the square plates might need the license-plate model to be retrained. Also the post processing will need to be changed to identify two lines of text and return them.
|
|
|
|
|
These are all in the provided test samples.
"
BC-Licence-Plate.jpg

all the squares return nothing.
ABC123.PNG
your-text.jpg
oh-canada.jpg
I can understand why CN_CDNX_GI1.jpg is not working, because it probably only expects one plate at a time.
The rest seem to work as intended.
|
|
|
|