I am trying to identify if an object (busbar in this case) is placed correctly in the groove of a mould or not. Please see the image for clarity.
https://drive.google.com/open?id=1raZ9Fo3I3kdxrOdbaFpHG9n6yuXDMPqC
The object circled in red is incorrectly placed, whereas the object circled in green is correct. If the problem is too generic, can you please atleast point me to the topics/apis I can use using opencv.