Ask Your Question
0

StabilizerBase with image sequence

asked Jul 4 '17

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?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Jul 5 '17

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");
Preview: (hide)

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 (Jul 5 '17)edit

Question Tools

1 follower

Stats

Asked: Jul 4 '17

Seen: 465 times

Last updated: Jul 05 '17