Ask Your Question
0

StabilizerBase with image sequence

asked 2017-07-04 04:41:10 -0500

martisan gravatar image

Hi all,

I'm currently trying to do video stabilization using the videostab module.

At the moment I have to set the frame source using:

Ptr<VideoFileSource> source = makePtr<VideoFileSource>(inputPath);

Is there any way I can use an image sequence instead of VideoFileSource?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-07-05 00:42:19 -0500

berak gravatar image

this should be possible, VideoCapture has an image sequence reader, which can be constructed with a printf like string.

assuming, you got numbered image files like:

/some/folder
+-  img00001.png
+-  img00002.png
+-  img00003.png

you should be able to call it like:

Ptr<VideoFileSource> source = makePtr<VideoFileSource>("/some/folder/img%5d.png");
edit flag offensive delete link more

Comments

1

This is exactly what I was looking for @berak. I've tested and it's working great! Thank you for the help. Really appreciate it.

martisan gravatar imagemartisan ( 2017-07-05 03:33:05 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-07-04 04:41:10 -0500

Seen: 96 times

Last updated: Jul 05 '17