Ask Your Question
0

Capture and store frame

asked 2013-04-02 20:58:50 -0600

Tomazi gravatar image

updated 2013-04-03 07:51:19 -0600

Andrey Pavlenko gravatar image

Hey People.....!

I am at the end of my iBoxing software project which detects, tracks and classifies variety of punches....The final major bit of my application is to capture a frame at which a PUNCH has been detected and store it somewhere in Project directory or anywhere....

QUESTIONS:

1.How can I grab & store frames from camera?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-03 03:13:33 -0600

updated 2013-04-03 07:48:21 -0600

Andrey Pavlenko gravatar image

The VideoCapture does exactly what you want.

Steps to follow:

  • Create the VideoCapture interface, giving the index of your webcam to it.
  • Grab a frame, which is automatically stored in a Mat
  • Use the imwrite functionality to store the Mat into an image.
edit flag offensive delete link more

Comments

Thx for the clear addition :) indeed it is imwrite instead of imsave...

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-03 07:50:16 -0600 )edit

Question Tools

Stats

Asked: 2013-04-02 20:58:50 -0600

Seen: 677 times

Last updated: Apr 03 '13