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

Face bounding box is outside the input image #57

Open
tsminh opened this issue Aug 5, 2020 · 0 comments
Open

Face bounding box is outside the input image #57

tsminh opened this issue Aug 5, 2020 · 0 comments

Comments

@tsminh
Copy link

tsminh commented Aug 5, 2020

I met a problem that the bounding box laying outside of my input image (360x640).

Something like this.

https://i.imgur.com/Tdcu0bU.png

So when i run into this line

faces[i,:,:,:] = cv2.resize(input_img[yw1:yw2 + 1, xw1:xw2 + 1, :], (img_size, img_size))

it throws this error:

cv2.error: OpenCV(4.1.1) /io/opencv/modules/imgproc/src/resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

Is this a problem of res10_300x300_ssd_iter_140000 model ?

I also scale my input image larger (720x1280 for example) but it s still.

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

1 participant