I need to detect a specific shape that I generate from a Image in a bigger Image.
For Explanation: I have a picture of 2 identical Parts, but one Part is flipped upside down. Now I want to detect the Orientation of the Parts via Python. The tricky part is, that the parts that I want to detect can sometimes lay a little bit different on the image.
What I already tried:
- Multi Score Template Matching
- Multi Scale Template Matching
- Feature Matching
- Depth analysis
Note that The angle, in which the photo is taken of the sample image and the to detect parts will be the same eventually.
I think the most discrete feature is the orientation of the gaps in the part. If they are pointing upwards the sample is in the TOP position but if they are pointing down, the sample is in BOTTOM position. Do you guys have any leads as to how I can do that? Is there a Way in OpenCV?