To run the code, first put all the dataset and program file in the same folder.
Download dataset here: https://drive.google.com/open?id=0B1_962u-W17hZk15UF9MNElSOTg
Put this folder in the same path with script.
If run in the terminal, go to the directory where the program file locate.
Then run the program in the terminal using the command: Python –test.py --dataset “dataset_name” --neighbors “# of neighbors”
You may need OpenCV, see link here: http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_setup/py_intro/py_intro.html