-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
OpenCV(4.5.2) 👎 error: (-5:Bad argument) in function 'rectangle' #368
Comments
Try to change following lines in core/utils.py as defined below: Line 152 -> c1, c2 = (int(coor[1]), int(coor[0])), (int(coor[3]), int(coor[2])) |
@lazarjovanovicnissatech Thank you, it worked! :D |
@lazarjovanovicnissatech Thank you! I have been struggling with this as well. |
@lazarjovanovicnissatech same problem occured in windows 10. You are great, i think repo should be updated |
Hi everybody, i'm new in this topics, i dont undertand where can i find that lines to fix the error. Anybody can help me please?? step by step im a rookie, jajaja! Tks so much! |
So, you have at first to clone the repo. Then, inside, there is a directory called core where you have to enter. Inside core directory, there is a file called utils.py. Open this file in any editor that counts line in code and modify specified lines from above. |
That's a really cool solution thanks :) |
Hi everyone, getting the same error in juypter notebook. Unable to locate |
How should we tackle this problem on Kaggle? |
I think Line is not be installed with pip install cv2 on conda |
Hi, I have this problem to: |
solved |
I face this problem how to solve and where the repo for cloning::
|
i referred this issue hunglc007/tensorflow-yolov4-tflite#368
Probably it depends on the version of the dependencies, but if you face those type issues, just put
|
Traceback (most recent call last):
|
Im facing this issue kindly help me out |
Thank you it worked :) |
how to solve the error
|
For the code: This error coming .. cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'resize'
|
I'm also having issues as well it's giving this error:
|
hello, where to find the 'utils.py'? |
inside the "core" folder |
Following worked for me: |
I have a problem: Output names: ['output', 'onnx::Shape_425', 'onnx::Shape_440', 'onnx::Shape_455']
|
After saving the model, running detection with 'python detect.py --weights ./checkpoints/yolov4-416 --size 416 --model yolov4 --images ./data/images/kite.jpg' give me an error of:
cv2.error: OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function 'rectangle' > Overload resolution failed: > - Can't parse 'pt1'. Sequence item with index 0 has a wrong type > - Can't parse 'pt1'. Sequence item with index 0 has a wrong type > - Can't parse 'rec'. Expected sequence length 4, got 2 > - Can't parse 'rec'. Expected sequence length 4, got 2
The text was updated successfully, but these errors were encountered: