Question: Python coding import numpy as np #It's kk to import whatever you want from the local util module if you would like: #from util.X import
| Python coding import numpy as np | |
| #It's kk to import whatever you want from the local util module if you would like: | |
| #from util.X import ... | |
| def count_fingers(im): | |
| ''' | |
| Example submission for coding challenge. | |
| Args: im (nxm) unsigned 8-bit grayscale image | |
| Returns: One of three integers: 1, 2, 3 | |
| ''' | |
| #Let's guess randomly! Maybe we'll get lucky. | |
| labels = [1, 2, 3] | |
| random_integer = np.random.randint(low = 0, high = 3) | |
| return labels[random_integer] The Challenge and Data Your mission is to write a computer vision algorithm to count the number fingers in an image from a Leap Motion Infrared Camera. In this repository you'll find a pickle file containing 42 training examples.
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
