Ask Your Question

Laminos's profile - activity

2016-11-28 11:31:09 -0500 asked a question videoio error v4l

Hello I have a problem with this error

Videoio error v4l: property <unknown property="" string=""> (21) When i installed libv4l-dev But each time this error message

thenks

2016-11-26 11:19:37 -0500 commented question Capture frames becomes very slow when it's night

I just changed CV_CAP_PROP AUTO EXPOSURE thank you very much

2016-11-26 10:44:07 -0500 commented question Capture frames becomes very slow when it's night

Ok but it is not static how to make it static

2016-11-26 10:15:45 -0500 commented question Capture frames becomes very slow when it's night

my camera it's logitech c170

2016-11-26 10:14:49 -0500 commented question Capture frames becomes very slow when it's night

I just want to have a static acquisition temp and equal to 60fps

2016-11-26 10:06:33 -0500 commented question Capture frames becomes very slow when it's night

You mean there is no possibility to set this with a change in max temp wait

2016-11-26 09:37:44 -0500 commented question Capture frames becomes very slow when it's night

I tried to put that

cap.set(CV_CAP_PROP_FRAME_WIDTH, 160);
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 120);
cap.set(CV_CAP_PROP_FORMAT, CV_8UC1);
cap.set(CV_CAP_PROP_GAIN, 50); // values range from 0 to 100
cap.set(CV_CAP_PROP_EXPOSURE, 50); //-1 is auto, values range from 0 to 100
cap.set(CV_CAP_PROP_WHITE_BALANCE_RED_V, 50); //values range from 0 to 100, -1 auto whitebalance
cap.set(CV_CAP_PROP_WHITE_BALANCE_BLUE_U, 50); //values range from 0 to 100,  -1 auto whitebalance
cap.set(CV_CAP_PROP_BRIGHTNESS, 85);

But it is always the same problem, when I put my finger in the camera the number of capture begins to slow

2016-11-25 08:13:27 -0500 asked a question Capture frames becomes very slow when it's night

Hi everybody, I have a problem with my webcam, has every faith it makes night it becomes slower my code and the following:

    #include "opencv2/opencv.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
void main(void)

{

VideoCapture cap;

cap.open(0);

cap.set(CV_CAP_PROP_FRAME_WIDTH, 160*2);
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 120*2);
cap.set(CAP_PROP_FPS,60);
cap.set(CV_CAP_PROP_POS_MSEC, 100);
cap.set(CV_CAP_PROP_BRIGHTNESS, 100);
cap.set(CV_CAP_PROP_CONTRAST, 100);
cap.set(CV_CAP_PROP_SATURATION, 200);
cap.set(CV_CAP_PROP_HUE, 1);
cap.set(CV_CAP_PROP_GAIN, 100);
cap.set(CAP_PROP_AUTOFOCUS, 0);

//cap.set(CV_CAP_PROP_EXPOSURE, CAP_PROP_ISO_SPEED);
while (1)
{
    Mat frame;
    int64 t = getTickCount();
    cap.grab();
    cap.retrieve(frame);
    t = getTickCount() - t;
    printf("Time elapsed: %fms\n", t * 1000 / getTickFrequency());
    cout << cap.get(CAP_PROP_FPS) << endl;
    imshow("frame", frame);

waitKey(timing);
}

}
2016-11-25 08:13:27 -0500 asked a question capture trames devien trés lent quand c'est nuit

Hi everybody, I have a problem with my webcam, has every faith it makes night it becomes slower my code and the following:

include "opencv2/opencv.hpp"

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

using namespace std; using namespace cv;

int timing = 30;

void main(void) { VideoCapture cap;

cap.open(0);

cap.set(CV_CAP_PROP_FRAME_WIDTH, 160*2);
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 120*2);
cap.set(CAP_PROP_FPS,60);
cap.set(CV_CAP_PROP_POS_MSEC, 100);
cap.set(CV_CAP_PROP_BRIGHTNESS, 100);
cap.set(CV_CAP_PROP_CONTRAST, 100);
cap.set(CV_CAP_PROP_SATURATION, 200);
cap.set(CV_CAP_PROP_HUE, 1);
cap.set(CV_CAP_PROP_GAIN, 100);
cap.set(CAP_PROP_AUTOFOCUS, 0);
//cap.set(CV_CAP_PROP_EXPOSURE, CAP_PROP_ISO_SPEED);
while (1)
{
    Mat frame;
    int64 t = getTickCount();
    cap.grab();
    cap.retrieve(frame);
    t = getTickCount() - t;
    printf("Time elapsed: %fms\n", t * 1000 / getTickFrequency());
    cout << cap.get(CAP_PROP_FPS) << endl;
    imshow("frame", frame);


    waitKey(timing);
}

}