You can find a white rhombus using the following steps:
Here's the code that implements these steps:
main.py2075 chars59 lines
Note: This code assumes that the white rhombus has black background in the image. If the background is white, then you need to invert the image first before applying edge detection algorithm.
gistlibby LogSnag