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

Error #16

Open
haziqbulat opened this issue Dec 28, 2020 · 0 comments
Open

Error #16

haziqbulat opened this issue Dec 28, 2020 · 0 comments

Comments

@haziqbulat
Copy link

haziqbulat commented Dec 28, 2020

[
OpenCV Error: Sizes of input arguments do not match (The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array') in cv::arithm_op, file C:\projects\opencv-python\opencv\modules\core\src\arithm.cpp, line 659
Traceback (most recent call last):
File "C:/Users/Haziq/PycharmProjects/CardDetector/CardDetector.py", line 86, in '<'module'>'
k].suit_diff = Cards.match_card(cards[k], train_ranks, train_suits)
File "D:\OpenCV-Playing-Card-Detector-master\Cards.py", line 260, in match_card
diff_img = cv2.absdiff(qCard.rank_img, Trank.img)
cv2.error: C:\projects\opencv-python\opencv\modules\core\src\arithm.cpp:659: error: (-209) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function cv::arithm_op
]
I got the error above when a card enter the camera's sight and immediately closed.
p/s= Remove the " ' " from the module.
Thanks in advance.

@haziqbulat haziqbulat changed the title Camera Error Dec 28, 2020
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