sudheerachary / Mesh-Flow-Video-Stabilization

Online video stabilization using a novel MeshFlow motion model
317 stars 65 forks source link

an error or imperfection when the frame don't have any feature point #4

Closed zhongtao93 closed 5 years ago

zhongtao93 commented 5 years ago

In mesh_flow.ipynb , an error occur when one frame has no feature point: # calculate optical flow p1, st, err = cv2.calcOpticalFlowPyrLK(old_gray, frame_gray, p0, None, **lk_params)

This problem occur definitely when a video has a blank or black frame, can you provide a more rebust code for this solution.

Thank you very much!

zhongtao93 commented 5 years ago

I had fixed it, thx

manaclan commented 5 years ago

I had fixed it, thx

how did you fix it? I'm having the same issue