Comments (7)
I have Successfully installed opencv-contrib-python-4.5.5.64
from yolov4-detector-and-distance-estimator.
Make sure to choose the correct environment, while running the code.
from yolov4-detector-and-distance-estimator.
what do you mean by choosing the correct environment? What should i do to solve this issue? I'm using pycharm to run your code.
from yolov4-detector-and-distance-estimator.
a python Virtual Envnieorment in which you have installed required version of opencv
from yolov4-detector-and-distance-estimator.
but the version you have mentioned is not being installed in the environment
from yolov4-detector-and-distance-estimator.
have you got any specific error message while installation process?
from yolov4-detector-and-distance-estimator.
Hi,
I've got the same error. I've applied an answer from https://stackoverflow.com/questions/32978575/how-to-fix-indexerror-invalid-index-to-scalar-variable in three places.
But I think without CUDA it is too slow for my RPi4.
And I got another error:
[h264 @ 0x10ad7e20] error while decoding MB 45 2, bytestream -13
Traceback (most recent call last):
File "/home/swim/Yolov4-Detector-and-Distance-Estimator/DistanceEstimation.py", line 92, in
data = object_detector(frame)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/swim/Yolov4-Detector-and-Distance-Estimator/DistanceEstimation.py", line 35, in object_detector
classes, scores, boxes = model.detect(image, CONFIDENCE_THRESHOLD, NMS_THRESHOLD)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.6.0) ./modules/imgproc/src/resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
from yolov4-detector-and-distance-estimator.
Related Issues (13)
- How to have a train file to have weight? HOT 2
- To develop this code HOT 1
- note: This error originates from a subprocess, and is likely not a problem with pip. HOT 2
- how do we need to take pictures of other objects is there any specific position
- how i do need to measure the width of objects, there are differnet views of the objects( ex : for motorbike how can we measure the width of the bike from front view or side view)
- Target of Detect HOT 1
- have a error HOT 1
- Does it work on a panoramic 360 camera ? HOT 1
- IndexError: invalid index to scalar variable. (CaptureReferenceImage.py) HOT 7
- Error in running HOT 1
- If
- if i have my own .pth file,how can i convert .pth to .weights
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov4-detector-and-distance-estimator.