Description
[
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.