Open Outlooker007 opened 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
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