Started to Learn OpenCV with Python
- OpenCv for Python
- Imutils v0.5.2 - grab_contours() only works for v0.5.2... so make sure you have this version.
pip install --upgrade imutilscan be used for the same.
I have made .ipnyb files so that one can see what is going on step by step. Change image = cv2.imread("doc1.jpeg") to image = cv2.imread(args["image"]) instead of image file name while exporting the ipnyb file to python file.
You will only need the file and image - 'test.jpeg'.
Only 'tetris.png' is required.
You will need a module called 'pyimagesearch' and 'doc1.jpeg'. Unzip the 'pyimagesearch.zip' file and paste it in the same folder as your Python file.
Only 'test_05.png' image is required for the same.
A 'red_dot.png' file is given to test the tracker. The current tracker is made for detecting a red dot.. open the image in any other device or google for any red dot. The model shall work.
You need to provide the width of leftmost object present in the image as reference. I used 'measure.jpeg' image to test the working. It has correctness upto 93-95%.
You need to install dlib - Checkout here - https://www.pyimagesearch.com/2018/01/22/install-dlib-easy-complete-guide/ Also, you need a facial_landmarks_68 dataset. Download it from here : http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
I used it on an image child.jpg.. You can pass on any other image for testing.