I have a image with ID card, Bank card and signature i want to get id_card.jpg
and bank_card.jpg
and signature.jpg
.
The problem ID card and Bank card has the same width and height, i don't know how to detect each other. But the color is different suggestion possible get by color or the best idea is to get name of each card and after crop each card by name ??
I'm so new in this domain and i work in emergency project that why i will very grateful if someone can help me.
The image look like
With this code i get only bank card, not work like i want :(
# I want here to get name of each object i dont know how after loop and crop
for i in range(len(contours)):
area = cv2.contourArea(contours[i])
if hierarchy[i][3] == -1:
cv2.drawContours(orig, contours, -1, (0, 255, 0), 3)
I can get draw now i need to crop.
So how can i get name of each object and crop using opencv and deep learning and thanks?