Ask Your Question
0

Skipping frame in android-openCV application

asked 2013-04-10 07:43:59 -0600

NightLife gravatar image

I want to process evry 3 input frame from camera on my android-openCV application. my frames have Mat format and I am using "CameraBridgeViewBase". On the other words, I want to skip some frame without processing.

Can anybody help me?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-10 09:55:00 -0600

Do the following:

Mat temp;

for (int i = 0 ; i < 3; i++){
    temp = capture.read(); //read frame
}

process(temp);

Basically this reads in 3 frames but only remembers the last one.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-10 07:43:59 -0600

Seen: 479 times

Last updated: Apr 10 '13