-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
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
ip camera or web camera. error: (-215:Assertion failed) !ss ize.empty() in function 'cv::resize' #2709
Comments
@xiaowo1996 👋 Hello, thank you for your interest in our work! This issue seems to lack the minimum requirements for a proper response, or is insufficiently detailed for us to help you. Please note that most technical problems are due to:
$ git clone https://github.com/ultralytics/yolov5 yolov5_new # clone latest
$ cd yolov5_new
$ python detect.py # verify detection
# CODE TO REPRODUCE YOUR ISSUE HERE
If none of these apply to you, we suggest you close this issue and raise a new one using the 🐛 Bug Report template, providing screenshots and a minimum reproducible example of your issue. Thank you! RequirementsPython 3.8 or later with all requirements.txt dependencies installed, including $ pip install -r requirements.txt EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are passing. These tests evaluate proper operation of basic YOLOv5 functionality, including training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu. |
@glenn-jocher hi , i get the newest by git clone. but the same error was appear. |
@xiaowo1996 we only offer support for issues arising from the default repository code. If you believe you have a reproducible issue with unmodified code, we suggest you close this issue and raise a new one using the 🐛 Bug Report template, providing screenshots and a minimum reproducible example to help us better understand and diagnose your problem. Thank you! |
@glenn-jocher ok , I had solve the problem. i close this issue .the data from images or video is different from stream data. if you want do some operation to image from stream data use this, im1 = np.array(im0s[0].copy()). |
when i use detect.py in ip camera or web camera. I do resize function to img. the error appear (-215:Assertion failed) !ss ize.empty() in function 'cv::resize'. (i get the face bounding box and i resize it and input it in another model to interference )but if i use --source img/video(offline inference) ,it works perfely.
i just add the code in detect.py
i just add this in detect.py .it can works well in offline interference but error in ip camera or web camera.
The text was updated successfully, but these errors were encountered: