Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S-1 B-4 helmet and license plate detection using ML #413

Open
abhiramseshu opened this issue Jun 20, 2024 · 4 comments
Open

S-1 B-4 helmet and license plate detection using ML #413

abhiramseshu opened this issue Jun 20, 2024 · 4 comments

Comments

@abhiramseshu
Copy link

abhiramseshu commented Jun 20, 2024

I am getting the following issue while running my project

_error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:217: error: (-212:Parsing error) Failed to parse NetParameter file: yolov3-custom_7000.weights in function 'cv::dnn::dnn4_v20220524::readNetFromDarknet'
Traceback:
File "C:\Users\abhir\OneDrive\Documents\GitHub\Helmet-and-Number-Plate-Detection-and-Recognition\ev2\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in run_script
exec(code, module.dict)
File "C:\Users\abhir\OneDrive\Documents\GitHub\Helmet-and-Number-Plate-Detection-and-Recognition\source.py", line 12, in
net = cv2.dnn.readNet("yolov3-custom_7000.weights", "yolov3-custom.cfg")

And it cant import keras models

Screenshot 2024-06-20 200553

The packages in the requirements files were

imutils==0.5.4
numpy==1.24.3
opencv_python==4.6.0.66
Pillow==10.0.1
tensorflow==2.13.0
tensorflow_intel==2.13.0

And this is the github repo i got it from

https://github.com/FatimaSidra/Helmet-and-Number-Plate-Detection-and-Recognition

@abhiramseshu
Copy link
Author

These are versions of packages which were installed in that environment

absl-py==2.1.0
altair==5.3.0
astunparse==1.6.3
attrs==23.2.0
blinker==1.8.2
cachetools==5.3.3
certifi==2024.6.2
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
flatbuffers==24.3.25
gast==0.4.0
gitdb==4.0.11
GitPython==3.1.43
google-auth==2.30.0
google-auth-oauthlib==1.0.0
google-pasta==0.2.0
grpcio==1.64.1
h5py==3.11.0
idna==3.7
imutils==0.5.4
Jinja2==3.1.4
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
keras==3.3.3
libclang==18.1.1
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
ml-dtypes==0.3.2
namex==0.0.8
numpy==1.24.3
oauthlib==3.2.2
opencv-python==4.6.0.66
opt-einsum==3.3.0
optree==0.11.0
package_name==0.1
packaging==24.1
pandas==2.2.2
Pillow==10.0.1
protobuf==4.25.3
pyarrow==16.1.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pydeck==0.9.1
Pygments==2.18.0
python-dateutil==2.9.0.post0
pytz==2024.1
referencing==0.35.1
requests==2.32.3
requests-oauthlib==2.0.0
rich==13.7.1
rpds-py==0.18.1
rsa==4.9
six==1.16.0
smmap==5.0.1
streamlit==1.35.0
tenacity==8.4.1
tensorboard==2.16.2
tensorboard-data-server==0.7.2
tensorflow==2.16.1
tensorflow-estimator==2.13.0
tensorflow-intel==2.16.1
tensorflow-io-gcs-filesystem==0.31.0
termcolor==2.4.0
toml==0.10.2
toolz==0.12.1
tornado==6.4.1
typing_extensions==4.5.0
tzdata==2024.1
urllib3==2.2.2
watchdog==4.0.1
Werkzeug==3.0.3
wrapt==1.16.0

@charann29
Copy link
Owner

use gpt and lemme know if you can solve this.. The probable with most opencv projects is the setup itself.

Try this guide completely : https://docs.opencv.org/4.x/d5/de5/tutorial_py_setup_in_windows.html

@abhiramseshu
Copy link
Author

I have tried multiple solutions from gpt 4 but none of them is working

@charann29
Copy link
Owner

charann29 commented Jun 20, 2024

For now replicate this project : https://github.com/brlivsky/helmet-detection-yolo

(OR)

It's getting overloaded : please select a good problem statement from this : https://github.com/topics/machine-learning-projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants