Fix shifting of pixels to return whole image array, not one element.
This commit is contained in:
@@ -91,7 +91,8 @@ class SimpleHandRecogniser(HandRecogniser):
|
||||
|
||||
def __shift_pixels(self, image, shift_radius):
|
||||
image[:,:,0] = image[:,:,0] + shift_radius
|
||||
return np.where(image[:,:,0] > 179, image[:,:,0] - 179, image[:,:,0])
|
||||
image[:,:,0] = np.where(image[:,:,0] > 179, image[:,:,0] - 179, image[:,:,0])
|
||||
return image
|
||||
|
||||
def get_gesture(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user