Python code for the extraction of patches from input images. The function get_patches_and_labels returns a set of nd-arrays along with a list of labels defined by labelsValue inside the function. It can be used for the creation of a dataset to be used for training of a certain classifier.
Requirements: Python 3, opencv 3
Directory structure:
.
|--images
|--points
| |--PositivePoints.txt
|--output
|--script.py
|--Demo.py
|--README.md