Ask Your Question

shome's profile - activity

2018-11-05 11:35:48 -0600 edited question How to convert openni stream data to cv::gpumat

How to convert openni stream data to cv::gpumat As per stackoverflow openni questionThe data in the openni RGB888Pixel a

2018-11-05 11:30:50 -0600 edited question How to convert openni stream data to cv::gpumat

How to convert openni stream data to cv::gpumat As per stackoverflow openni questionThe data in the openni RGB888Pixel a

2018-11-05 11:11:39 -0600 asked a question How to convert openni stream data to cv::gpumat

How to convert openni stream data to cv::gpumat As per stackoverflow openni questionThe data in the openni RGB888Pixel a

2018-10-14 13:17:58 -0600 commented question How to create thrust device_vector from opencv gpumat and vice-versa

I need to copy the non zero elements of a gpumat to a new gpumat with corresponding indices. I intend to use thrust iter

2018-10-14 13:16:43 -0600 commented question How to create thrust device_vector from opencv gpumat and vice-versa

I need to copy the non zero elements of a gpumat to a new gpumat with corresponding indices. I intend to use thrust iter

2018-10-14 13:12:38 -0600 asked a question compilation error with opencv/...gpu/gpu-thrust-interop/ code

compilation error with opencv/...gpu/gpu-thrust-interop/ code I get compilation error if I try to compile the opencv sam

2018-10-14 12:48:51 -0600 edited question How to create thrust device_vector from opencv gpumat and vice-versa

How to create thrust device_vector from opencv gpumat and vice-versa I need to convert a opencv::gpumat to a thrust::dev

2018-10-14 12:43:43 -0600 asked a question How to create thrust device_vector from opencv gpumat and vice-versa

How to create thrust device_vector from opencv gpumat and vice-versa I need to convert a opencv::gpumat to a thrust::dev

2017-10-10 03:06:21 -0600 received badge  Editor (source)
2017-10-10 03:06:21 -0600 edited question How to calibrate two cameras whose field of View is 180 deg apart

How to calibrate two cameras whose field of View is 180 deg apart I have two cameras which are fixed back to back and th

2017-10-10 03:05:48 -0600 commented question How to calibrate two cameras whose field of View is 180 deg apart

ok. I ll edit it and put it.

2017-10-10 03:02:02 -0600 commented question How to calibrate two cameras whose field of View is 180 deg apart

I need to find the extrinsics between the two cameras. They dont have fish eye lenses. The cameras are two primesense RG

2017-10-10 02:38:49 -0600 asked a question How to calibrate two cameras whose field of View is 180 deg apart

How to calibrate two cameras whose field of View is 180 deg apart I have two cameras which are fixed back to back and th

2017-10-08 00:09:11 -0600 received badge  Enthusiast
2017-10-07 14:21:35 -0600 asked a question opencv 3.3 multicamera calibration: size of pattern

opencv 3.3 multicamera calibration: size of pattern I am trying to use the opencv multi camera calibration from http://d

2017-05-19 00:30:17 -0600 asked a question Minoru 3d: How to reduce delay between left and right frames?

I am using the following code(from simulataneous_minoru3d_opencv_forums) to access video from minoru 3d webcam. However there is observable lag between left and right frame. I have tried increasing frame rate, reducing image size but all are failing. How can I reduce the time lag between the frames? It should be possible as i ahave seen youtube videos captured by minoru which dont seem to have any lag.

#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;

void Main_GrabFrom2CamWriteMosaic()
{
// SELECT CAM ID FOR YOUR CAMS
int camL = 0, camR = 1;

VideoCapture capL(camL);
VideoCapture capR(camR);

//SET SAME SETTINGS ON BOTH CAM
Size frameSize(320, 240);
double fps = 30;

capL.set(CV_CAP_PROP_FRAME_WIDTH, frameSize.width);
capL.set(CV_CAP_PROP_FRAME_HEIGHT, frameSize.height);
capL.set(CV_CAP_PROP_FPS, fps); //desired  FPS 

capR.set(CV_CAP_PROP_FRAME_WIDTH, frameSize.width);
capR.set(CV_CAP_PROP_FRAME_HEIGHT, frameSize.height);
capR.set(CV_CAP_PROP_FPS, fps); //desired  FPS 

// GRAB ONCE TO GET FRAME INFO (we'll lost this frames)
Mat imgL, imgR;
if (!(capL.read(imgL) && capR.read(imgR))) {
    std::cerr << "Unable to grab from some CAM";
    capL.release(); capR.release();
    return;
}

// ENSURE RIGHT TYPE AND SIZE
frameSize = imgL.size();
// this will hold images from both cams 
Mat frame(Size(2 * frameSize.width, frameSize.height), imgL.type());
// define ROI to compose mosaic
Mat frameL(frame(Rect(0, 0, frameSize.width, frameSize.height)));
Mat frameR(frame(Rect(frameSize.width, 0, frameSize.width, frameSize.height)));
// IN CASE YOU WANT TO SAVE A VIDEO
bool isColor = imgL.type() == CV_8UC3;
CV_Assert(isColor);
double fourcc;

// THE GRAB LOOP
for (;;)
{
    // GRAB THE NEXT FRAME FROM VIDEO CAMERA
    if (! (capL.grab() && capR.grab()) ) {
        std::cerr << "Unable to grab from one or both cameras"; 
        break;
    }
    // ENCODE AND RETURN THE JUST GRABBED FRAME
    // you can't grab into a ROI
    capL.retrieve(imgL);
    capR.retrieve(imgR);
    if (imgL.empty() || imgR.empty()) {
        std::cerr << "Empty frame received from some CAM !";
        break;
    }
    // COMPOSE MOSAIC show and save
    imgL.copyTo(frameL);
    imgR.copyTo(frameR);
    cv::imshow("frame", frame);
    if (cv::waitKey(30) >= 0) break;
}
capL.release();
capR.release();

}

int main() {

Main_GrabFrom2CamWriteMosaic();

return 0;
}