-
Notifications
You must be signed in to change notification settings - Fork 179
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 Error: Assertion failed #22
Comments
because of area not plus 1? |
it is happening when I playing with the number at mtcnn.cpp : to lower values such as 6 or 8. try to speeding up the detection. Because I am using a stationary cam and there is always one face 1/4 of the screen and centered. |
I think U should study MTCNN paper first, |
I also met the same problem:OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat。I have modified it for a long time, but it is still unsolved. Does anyone know why? |
I've solved this problem. |
how ? |
the code Rect temp((*it).y1, (*it).x1, (*it).y2 - (*it).y1, (*it).x2 - (*it).x1); |
都是中国人,我说汉语。就是我测试过,坐标值有时候会超出行列的范围,在图像的矩形ROI选取时就要出错,所以要加个判断条件。 |
哎呀,那就好说嘛,加个qq 898600252,还有开源的东西,都是nms在box reg前做,我觉得这也是bug |
What is the maximum cpu core used ? my mac book only using 2-3 cores ? Can we increase it ? |
@MyraBaba may be the first step,you can rewrite it with thread pool. |
@xggIoU I modified as you mentioned but I have still below error.
|
it is may be In the mtcnn constructor, cols and rows , should be equal the image cols and rows |
It has been fixed! Thanks for replying!!
At2019-05-16 17:00:48,spring [email protected]:
if ((*it).exist&& ((*it).y1<(*it).y2)&&((*it).x1<(*it).x2))
@xggIoU I modified as you mentioned but I have still below error.
`OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /media/pi/APULLU-01/opencv-3.4.0/modules/core/src/matrix.cpp, line 538
terminate called after throwing an instance of 'cv::Exception'
what(): /media/pi/cc-01/opencv-3.4.0/modules/core/src/matrix.cpp:538: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat
`
it is may be In the mtcnn constructor, cols and rows , should be equal the image cols and rows
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi,
After a while , around few thousands frame it gives below error. I couldnt figure it out .
Is there anybody faced same problem ?
thx
The text was updated successfully, but these errors were encountered: