Fix shifting of pixels to return whole image array, not one element.

This commit is contained in:
DSTO\pivatom
2018-12-18 13:26:36 +10:30
parent df8bec3b3e
commit 363122fe29

View File

@@ -91,7 +91,8 @@ class SimpleHandRecogniser(HandRecogniser):
def __shift_pixels(self, image, shift_radius): def __shift_pixels(self, image, shift_radius):
image[:,:,0] = image[:,:,0] + 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): def get_gesture(self):
""" """