Skip to content
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

ubuntu16.04 环境下编译通过,但运行出错 #19

Open
Oliverwang opened this issue Jul 28, 2018 · 5 comments
Open

ubuntu16.04 环境下编译通过,但运行出错 #19

Oliverwang opened this issue Jul 28, 2018 · 5 comments

Comments

@Oliverwang
Copy link

首先感谢nicewsyly,开源ECO c++版本给我们学习。
我在ubuntu16.04编译通过,但是运行时出错了,不管是否使用cnn特征都一样的错误,我使用的是960x540的视频,错误提示如下如下:
init obj[486 216 46 101]
img_support_sz is : [252 x 252]
eco track...0
process_frame 1
process_frame 2
process_frame 3
process_frame 4
process_frame 5
process_frame 50
process_frame 51
process_frame 52
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.2) /home/mrsy/project/machine-learning-lib/opencv-3.4.2/modules/core/src/matrix.cpp:465: error: (-215:Assertion failed) 0 <= roi.x && 0 <= roi.wid
th && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function 'Mat'

打印信息的代码如下:
image

@Oliverwang
Copy link
Author

打印信息代码中roi计算出来是: [x, y, w, h] = [-31, -31, 63, 63]

@yanliu837
Copy link

Did you solve the problem? I met the same error...

@Oliverwang
Copy link
Author

Unfortunately, it has not been resolved yet.

@nicewsyly
Copy link
Owner

maybe object is out of image boundary, roi&cv::Rect(0,0,img.cols-1,img.rows-1) maybe help

@Oliverwang
Copy link
Author

@nicewsyly 不是区域越界了,我打开cnn特征,就能跑起来,应该是特征计算的时候那里出错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants