-
Notifications
You must be signed in to change notification settings - Fork 15
How to use Hand detection script
Hitansh Singla edited this page Jul 1, 2019
·
1 revision
To detect, crop and save hands from the original data, we need the following:
- Master branch
- Dvc data
Directory structure should look like
- xray
- TensorFlow
- data
- train
- XR_HAND
- train
- src
- features
- hand_detection
- features
- cd into /src/features/hand_detection
- Change the following as per your desires:
- PATH_TO_TEST_IMAGES_DIR = '../../../train/XR_HAND_CROPPED'
- SAVE_PATH = r'../../../train/XR_HAND_CENTRED_NEW'
- Now you can run the script using
python3 detect_and_save_hands.py
- It will save the detected hands in the save_path.
- Possible errors that may occur:
- No model found: mainly due to dvc pull issue
- Protobuf issue: Check this
- object detection util not found issue: this line should be above that import statement.
os.chdir(r'../../../data/TensorFlow/workspace/training_demo/')