pathak22 / pyflow

Fast, accurate and easy to run dense optical flow with python wrapper
Other
649 stars 139 forks source link

How to optmize the parameters for better results #14

Open Wazaki-Ou opened 6 years ago

Wazaki-Ou commented 6 years ago

Hi there,

I modified the demo code to feed a video and extract the flow between 2 consecutive frames. while the first result seems to be good, starting the next one, the result looks a bit weird. I am posting two pictures to show that. the original video is a dog walking around inside a room (camera top-down view). I turned the np result to a picture to view the process and as I said, except the first one, the rest does not look right: (I resized the frames to make it go faster, but original size gives the same results)

flow1

flow2

I can only think that it might be caused by the parameters set at the beginning. Or is it something else ? please let me know if you know how to get accurate optical flow.

Thank you !!