2016-03-23 10:27:14 -0600 | answered a question | Snapshot using command line. Is there a quicker way to get a snapshot? At the moment it is taking about 3 seconds. This will be running in the background so I don't need to see it. imwrite seems to do all the steps(even when I have closed it). Is there a different function that will do just the write????? Thanks. |
2016-03-23 06:38:28 -0600 | asked a question | Location of .hpp files Hi There. This may seem like an odd question but I cannot determine where the header files are located on my pc. There are gazillions of files in different folders but am not sure which one. In my visual studio project (which works fine) the include directory is: C:\opencv 310\build\include. If lets say we view the highgui.hpp file from that folder the only code in it is: ifdef __OPENCV_BUILDerror this is a compatibility header which should not be used inside the OpenCV libraryendifinclude "opencv2/highgui.hpp"There is no reference to any source code here. According to this page (http://opencv-srf.blogspot.co.uk/2013...) imread() is a function declared in "opencv2/highgui/highgui.hpp" header file. Where can I view the actual source code for these functions and why is the header file from above not contain anything? Mark. |
2016-03-18 05:42:21 -0600 | asked a question | Snapshot using command line. Hi Folks. I am trying to take a snapshot from a usb camera from the command line. I have it kind of working. I want to have 3 different commands: open, snapshot and close. I want to open the camera initially and then take snapshots as I please. However the frame grab seems to close the camera down and so it has to be opened again. Is it possible to use one command to open the camera and then another to grab the frame and another to close the camera and is it possible to grab a frame and leave the camera open? My code is below, Thanks, Mark. include <opencv2 opencv.hpp="">include <iostream>using namespace cv; using namespace std; std::string open_cmd("open"); std::string close_cmd("close"); std::string snapshot_cmd("snap"); int main(int argc, char argv[], char*) { //Open the first webcam plugged in the computer // return 0; } |