MCPcopy Create free account
hub / github.com/andybarry/makerscanner / FrameGrab

Method FrameGrab

Cameras.cpp:131–139  ·  view source on GitHub ↗

TODO: remove this

Source from the content-addressed store, hash-verified

129
130// TODO: remove this
131IplImage *Cameras::FrameGrab()
132{
133 if (!CaptureExists()) return NULL;
134 for (int i=0; i < 8; i++) cvGrabFrame(m_MyCapture); // it takes a few images to get to the newest one
135 m_LastFrame = cvRetrieveFrame(m_MyCapture);
136 //cvShowImage("My Camera", m_LastFrame);
137 return m_LastFrame;
138
139}
140
141// Save an image
142// TODO: remove this

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected