
The following Code will detect the object present in the image ,whether it is a Cube or a Cylinder or Sphere based on Contour Approximation.The below Code is written Using the Python API for OpenCV Library.
Script:
import cv2# Importing the Opencv Libraryimport numpy as np# Importing...