Commit 67a8085c authored by Aylen Ricca's avatar Aylen Ricca
Browse files

changes to getfrom camera -not file

parent 987b4534
......@@ -142,9 +142,9 @@ int utilBlobs_initialize(){
}
img = cvRetrieveFrame(capture);
/*img = cvLoadImage(imagen,1);
//img = cvLoadImage(imagen,1);
imgSize = cvGetSize(img);
frame = cvCreateImage(imgSize, img->depth, img->nChannels);*/
frame = cvCreateImage(imgSize, img->depth, img->nChannels);
frameNumber = 0;
return 1;
......@@ -154,7 +154,7 @@ int utilBlobs_initialize(){
* Elimina las estructuras utilizadas por el modulo.
*/
void utilBlobs_terminate(){
//cvReleaseImage(&frame);
cvReleaseImage(&frame);
cvReleaseCapture(&capture);
}
......@@ -168,8 +168,8 @@ int utilBlobs_getFrame(){
}
img = cvRetrieveFrame(capture);
/* img = cvLoadImage(imagen,1);
cvConvertScale(img, frame, 1, 0);*/
/* img = cvLoadImage(imagen,1);*/
cvConvertScale(img, frame, 1, 0);
std::stringstream filename;
filename << "IMG" << std::setw(5) << std::setfill('0') << num++ << ".png";
cvSaveImage(filename.str().c_str(),frame);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment