First off, thanks for setting this up. I have been meaning to add ALPR for a while and the camera has been in my attic for probably 2 years testing in the dark and light.
I setup CodeProject.AI in docker (beta 2.08) on another host on Linux yesterday. I have been able to do a little bit of face recognition, and object detection (cats, tables, etc). Gives me some confidence the server is set up correctly and BI can talk to it.
I turned on the ALPR function in BI and installed the plugin on the AI server. When I did that, everything kind of failed in BI....no detection of anything....
I started looking into the thread a bit (there is a lot here), and I just now trying to load a picture of a car with a clean plate into the server. That seems to not be working, so not surprised BI isn't working. I need to debug this first.
I know that picture looks small, but that license plate is pretty clear in the file. When I click "Read License plate", the upper write box says "sent request to server", and nothing happens. Log says this...
"17:31:47:Client request 'alpr' in the queue (...f99d1d)"
Here is my setup of the server....
Did I miss something here? I don't see the CPU pegging or anything like it is overwhelmed. I don't have a graphics card or any other acceleration running at this time-- though if this all works my guess is I might need some.
---------
Edit:
I do see this in the log...
16:58:45:
16:58:45:Started License Plate Reader module
16:58:45:ALPR_adapter.py: Traceback (most recent call last):
16:58:45:ALPR_adapter.py: File "/app/modules/ALPR/ALPR_adapter.py", line 8, in
16:58:45:ALPR_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
16:58:45:ALPR_adapter.py: File "/app/modules/ALPR/../../SDK/Python/analysis/codeprojectai.py", line 30, in
16:58:45:ALPR_adapter.py: import aiohttp
16:58:45:ALPR_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
16:58:45:Module ALPR has shutdown
16:58:45:ALPR_adapter.py: has exited
16:58:46:Starting /app...ules/OCR/bin/linux/python38/venv/bin/python "/app/modules/OCR/OCR_adapter.py"
16:58:46:
16:58:46:Module 'Optical Character Recognition' (ID: OCR)
16:58:46:Active: True
16:58:46:GPU: Support disabled
16:58:46
arallelism: 0
16:58:46
latforms: windows,linux,macos,macos-arm64
16:58:46:FilePath: OCR_adapter.py
16:58:46:ModulePath: OCR
16:58:46:Install: PostInstalled
16:58:46:Runtime:
16:58:46:Queue: OCR_queue
16:58:46:Start pause: 1 sec
16:58:46:Valid: True
16:58:46:Environment Variables
16:58:46:
16:58:46:Started Optical Character Recognition module
16:58:46:OCR_adapter.py: Traceback (most recent call last):
16:58:46:OCR_adapter.py: File "/app/modules/OCR/OCR_adapter.py", line 8, in
16:58:46:OCR_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
16:58:46:OCR_adapter.py: File "/app/modules/OCR/../../SDK/Python/analysis/codeprojectai.py", line 30, in
16:58:46:OCR_adapter.py: import aiohttp
16:58:46:OCR_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
16:58:47:Module OCR has shutdown
Interesting since it should be installed...
docker exec -it aicode_codeprojetai_1 bash
root@7fc37909277b:/app/server# pip3 install aiohttp
Requirement already satisfied: aiohttp in /usr/local/lib/python3.8/dist-packages (3.8.4)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.8/dist-packages (from aiohttp) (22.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.8/dist-packages (from aiohttp) (1.3.3)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.8/dist-packages (from aiohttp) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.8/dist-packages (from aiohttp) (1.8.2)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.8/dist-packages (from aiohttp) (6.0.4)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.8/dist-packages (from aiohttp) (1.3.1)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.8/dist-packages (from aiohttp) (2.1.1)
Requirement already satisfied: idna>=2.0 in /usr/local/lib/python3.8/dist-packages (from yarl<2.0,>=1.0->aiohttp) (3.4)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead:
12. Virtual Environments and Packages
root@7fc37909277b:/app/server# cd /usr/