byrayhana / realtime-shape-detection-

realtime shape detection opencv
1 stars 0 forks source link

hey can this code be used for realtime shape detection of basic shapes #1

Open Outlooker007 opened 1 year ago

Outlooker007 commented 1 year ago

helloo,Iam looking for a code to detect realtime shapes for controlling pick and place robotic arm,pls help me out as i have no idea about programming

byrayhana commented 1 year ago

Hi, yes it can be used to detect triangles, rectangles, and circles. İf you want to add more specific shapes you can edit from line 46 to 54 and add controllers. For example; you can @@add

            elif len(approx)==5: 
                 cv2.putText(frame,"pentagon",(x,y),font,1,(0,0,0))

@Outlooker007