Comments (12)
from opencv_zoo.
Thank you for quick response. It's (640,480). I've also tried with (1280,720)
from opencv_zoo.
To reproduce , you can set number of pixels to 0 manually like this
frame[:,:,:] = 122
frame[:-padd, :-padd, :] = 0
from opencv_zoo.
Could you share the minimal reproducer?
from opencv_zoo.
Sure. Just insert following 3 lines in line 108 of demo.py file
padd = 70
frame[:,:,:]=122
frame[:-padd, :-padd, :] = 0
and run demo.py file
from opencv_zoo.
I tried with these three lines on my m1 macbook. Things are it did not crash but went very slow with your three lines of code. Also tried commented out frame[:,:,:]=122
, it went smooth again. I guess some internal computation has problem with a massive area of pixel value 122. So the problem isn't with black pixels.
from opencv_zoo.
Maybe this can help to reproduce. Remove those three lines, start camera, select an object and then close the camera with your hand or something black for 2-3 seconds. In my cases it writes target lost and then crushes
from opencv_zoo.
Okay, it can be reproduced on my side. Let me look into the issue tomorrow.
from opencv_zoo.
Okay, the problem is confirmed. Problem is when the target is lost, the bounding box gets larger and larger (the wrong bounding box pattern is recorded regardless of score) and the size of roi grows until out-of-memory error. See crop_image
and update
:
from opencv_zoo.
I will submit a PR to fix this problem.
from opencv_zoo.
@saghavart I submitted a PR to fix the problem hopefully. Feel free to review and test it opencv/opencv#25760.
from opencv_zoo.
Hello @saghavart , my patch to fix the problem has been merged. Feel free to have a try on your side. Closing this issue for now.
from opencv_zoo.
Related Issues (20)
- AttributeError: module 'cv2' has no attribute 'TrackerVit_Params' HOT 9
- K-best BB VitTracker (feature/Question) HOT 3
- VitTracker weights (question) HOT 10
- Mediapipe pose estimation performance HOT 5
- Refreshing template in Vit (Question) HOT 4
- Dynamic Input Shape? HOT 2
- Lack of charsets in models\text_recognition_crnn HOT 8
- `quantize-ort.py` doesn't reproduce the quantized models in the repos HOT 3
- Is it possible to parallelize face detection process using the face_detection_yunet model in C++? HOT 6
- How to process output of face detection network when batch of images is used as network input? HOT 7
- SFace: Quantized model is slower HOT 2
- 为什么输入的两张相同的图片经过处理以后维度会不一样 HOT 10
- 求助求助,随便选两个图片对比的相似度都很高。 HOT 3
- Add Java demos (Last update on 2024-04-07) HOT 4
- I can't run the yunet_2023mar in OpenCV4.9.0 HOT 2
- Face Anti-Spoofing opencv HOT 1
- 总是报错 HOT 1
- 奇怪的问题 HOT 1
- SFaceRecognizer model face recognition C++ test failed HOT 2
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 opencv_zoo.