1 | initial version |
Lines and faces are completely different objects, so you shouldn't count on facedetect.py. Try to start from the Hough transform. You can grep OpenCV C/C++ samples for this function, there should be some useful code samples.
HoughLines
should be a perfect function for pencils on paper, but melting ice will produce curves, not strict edges. Nevertheless you can start with this function, and switch later to tracking with Optical Flow or something. You can put several dozens of points to the every edge, and then track how they move down. But you should constrain the Optical Flow in a way so it searches for new points' positions in the vertical direction only. If the ice is melting slowly, you can even implement your own search with a block-matching-like technique.
2 | No.2 Revision |
Lines and faces are completely different objects, so you shouldn't count on facedetect.py. Try to start from the Hough transform. You can grep OpenCV C/C++ samples for this function, there should be some useful code samples.
HoughLines
should be a perfect function for pencils on paper, but melting ice will produce curves, not strict edges. Nevertheless you can start with this function, and switch later to tracking with Optical Flow or something. You can put several dozens of points to the every edge, and then track how they move down. But you should constrain the Optical Flow in a way so it searches for new points' positions in the vertical direction only. If the ice is melting slowly, you can even implement your own search with a block-matching-like technique.