We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, if cigar/glasses image does not fit on top of the original image, the traceback is something like this:
File "/Users/user/.virtualenvs/user-venv/lib/python3.5/site-packages/thug/meme/thug.py", line 122, in _draw_on_top background = cv2.bitwise_and(background, background, mask=mask_inv) cv2.error: /Users/travis/build/skvark/opencv-python/opencv/modules/core/src/arithm.cpp:241: error: (-215) (mtype == 0 || mtype == 1) && _mask.sameSize(*psrc1) in function binary_op
Better exception is at least required. Best solution would probably be automatic rescaling of the sub image (cigar/glasses).
The text was updated successfully, but these errors were encountered:
Add better exception handling for draw_on_top
ef9ea4d
Relates to #1
No branches or pull requests
For example, if cigar/glasses image does not fit on top of the original image, the traceback is something like this:
File "/Users/user/.virtualenvs/user-venv/lib/python3.5/site-packages/thug/meme/thug.py", line 122, in _draw_on_top background = cv2.bitwise_and(background, background, mask=mask_inv) cv2.error: /Users/travis/build/skvark/opencv-python/opencv/modules/core/src/arithm.cpp:241: error: (-215) (mtype == 0 || mtype == 1) && _mask.sameSize(*psrc1) in function binary_op
Better exception is at least required. Best solution would probably be automatic rescaling of the sub image (cigar/glasses).
The text was updated successfully, but these errors were encountered: