AdamSpannbauer / python_video_stab

A Python package to stabilize videos using OpenCV
https://adamspannbauer.github.io/python_video_stab/html/index.html
MIT License
697 stars 120 forks source link

stabilization of defocused video #14

Closed rijutawankar closed 6 years ago

rijutawankar commented 6 years ago

I am trying to stabilize a defocused video that I have captured from my mobile camera. However this error is popping up whenever it starts transformation. I have downloaded some defocused videos from the Internet. Its working fine on them but not on videos recorded from camera

File "/home/rijuta/.virtualenvs/videoanalytics/local/lib/python2.7/site-packages/vidstab/VidStab.py", line 297, in stabilize show_progress=True) File "/home/rijuta/.virtualenvs/videoanalytics/local/lib/python2.7/site-packages/vidstab/VidStab.py", line 155, in gen_transforms self._gen_trajectory(input_path=input_path, show_progress=show_progress) File "/home/rijuta/.virtualenvs/videoanalytics/local/lib/python2.7/site-packages/vidstab/VidStab.py", line 105, in _gen_trajectory for i, matched in enumerate(status): TypeError: 'NoneType' object is not iterable

AdamSpannbauer commented 6 years ago

Thanks for reporting the issue.

I will do my best to recreate and fix the error. Is there anyway you could share the video that resulted in the exception? I understand if you can't/don't want to, but it could likely speed up the fix if you are able/willing.

FYI: My current focus is to get live video working and pushed to master this weekend, but I will start on this as soon as I complete the other task

AdamSpannbauer commented 6 years ago

I have been unable to recreate this issue. It might have been related to an inconsistency around keypoint detectors in the imutils package that has since been fixed.

@rijutawankar I am going to close this issue unless you can provide a reproducible example. Otherwise, I'm not sure how to fix.