Contour/object detection with skimage & opencv
ฝัง
- เผยแพร่เมื่อ 25 ธ.ค. 2024
- ##contourdetection #objectdetection #opencv #skimage #cv2 #python #machinelearning
Full code: github.com/mdi...
im= plt.imread('squirrel.jpeg')
gray= cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
contours= skimage.measure.find_contours(gray, level=125)
for contour in contours:
plt.plot(contour[:,1], -contour[:,0], color='red')