Implementing stuff (I suck at commits sometimes lol)
This commit is contained in:
@@ -7,7 +7,7 @@ img = cv2.imread('H:\car\GestureRecognition\IMG_0818.png', 1)
|
||||
img = cv2.resize(img, None, fx=0.1, fy=0.1, interpolation = cv2.INTER_AREA)
|
||||
|
||||
min_seg_threshold = 1.2
|
||||
max_seg_threshold = 1.8
|
||||
max_seg_threshold = 3
|
||||
|
||||
# prevent divide by zero, by just forcing pixel to be ignored.
|
||||
np.where(img[:,:,1] == 0, 0, img[:,:,1])
|
||||
|
||||
15
GestureRecognition/handrecogniser.py
Normal file
15
GestureRecognition/handrecogniser.py
Normal file
@@ -0,0 +1,15 @@
|
||||
class HandRecogniser:
|
||||
"""
|
||||
Interface for Recognising simple hand gestures from an image (or frame of a video)
|
||||
"""
|
||||
def load_image(self, image_path):
|
||||
"""
|
||||
Loads the given image, can be lazy loading.
|
||||
"""
|
||||
pass
|
||||
|
||||
def get_gesture(self):
|
||||
"""
|
||||
Gets a the gesture recognised in the image.
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user