Hi, this is my first post to this forum, so apologies if I have posted this in the incorrect area.
I have been playing around with JordiCP's wrapper for the OpenCV library and so far so good. The examples previously posted were very helpful. However I was wondering if someone had a small sample project that uses Warp Transformations, more specifically that uses the 'GetPerspectiveTransform' and 'WarpPerspective' functions. I can't seem to find any examples anywhere.
In brief, I am trying to identify playing cards by pointing the camera of my tablet on them.. This is how far I have got;
1) I have used OCVJavaCameraView to get video frames as OCVMats
2) I have successfully grayscaled, blurred and created a threshold image
3) I have found all the contours of the card and successfully isolated the two shapes on the top left of the card. That is, the card face value and the suit.
4) I now have the contour of the card value and contour of the card suit.
5) But now I need to flatten those shapes to a size of say 200 x 300, so I can then compare it to a previously saved image of the card.
Any help or example code would be appreciated. Thank you
I have been playing around with JordiCP's wrapper for the OpenCV library and so far so good. The examples previously posted were very helpful. However I was wondering if someone had a small sample project that uses Warp Transformations, more specifically that uses the 'GetPerspectiveTransform' and 'WarpPerspective' functions. I can't seem to find any examples anywhere.
In brief, I am trying to identify playing cards by pointing the camera of my tablet on them.. This is how far I have got;
1) I have used OCVJavaCameraView to get video frames as OCVMats
2) I have successfully grayscaled, blurred and created a threshold image
3) I have found all the contours of the card and successfully isolated the two shapes on the top left of the card. That is, the card face value and the suit.
4) I now have the contour of the card value and contour of the card suit.
5) But now I need to flatten those shapes to a size of say 200 x 300, so I can then compare it to a previously saved image of the card.
Any help or example code would be appreciated. Thank you