We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff3b93d commit 7afa3dcCopy full SHA for 7afa3dc
Face and eye Recognition/gesture_control.py
@@ -1,17 +1,18 @@
1
import cv2 as cv
2
+
3
# import numpy as np
4
-img = cv.imread('..\img\hand1.jpg' , 0)
5
-flag,frame = cv.threshold(img , 70 , 255 , cv.THRESH_BINARY)
+img = cv.imread("..\img\hand1.jpg", 0)
6
+flag, frame = cv.threshold(img, 70, 255, cv.THRESH_BINARY)
7
-contor,_ = cv.findContours(frame.copy(),cv.RETR_TREE,cv.CHAIN_APPROX_SIMPLE)
8
+contor, _ = cv.findContours(frame.copy(), cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
9
10
hull = [cv.convexHull(c) for c in contor]
11
-final = cv.drawContours(img , hull , -1 , (0 , 0 , 0) )
12
-cv.imshow('original_image' , img)
13
-cv.imshow('thres' , frame)
14
-cv.imshow('final_hsv' , final)
+final = cv.drawContours(img, hull, -1, (0, 0, 0))
+cv.imshow("original_image", img)
+cv.imshow("thres", frame)
15
+cv.imshow("final_hsv", final)
16
17
cv.waitKey(0)
-cv.destroyAllWindows()
18
+cv.destroyAllWindows()
0 commit comments