2016-03-18 08:09:36 -0600 | asked a question | Install opencv 3.1.0 contrib with opencv 2.4 Hello, I have opencv4tegra on a Nvidia Jetson TX1 but I need the dnn module from the extra modules. So, is it possible to install the extra modules from opencv 3.1.0 along side opencv4tegra (opencv 2.4.12) and use both versions in the same c++ program? |
2015-11-10 15:54:59 -0600 | asked a question | Using Kinect with Opencv 3.0.0 Hello I am trying to get disparity maps from a Microsoft kinect for xbox 360. I have opencv 3.0.0 and openni2 with libfreenect installed. When I run my code My kinect starts projecting the IR pattern but then I get a bunch of errors OpenNI2-FreenectDriver: Using libfreenect v0.5.3 OpenNI2-FreenectDriver: Found device freenect://0 OpenNI2-FreenectDriver: Opening device freenect://0 [Stream 70] Negotiated packet size 1920 write_register: 0x0105 <= 0x00 write_register: 0x0006 <= 0x00 write_register: 0x0012 <= 0x03 write_register: 0x0013 <= 0x01 write_register: 0x0014 <= 0x1e write_register: 0x0006 <= 0x02 write_register: 0x0017 <= 0x00 [Stream 80] Negotiated packet size 1920 write_register: 0x000c <= 0x00 write_register: 0x000d <= 0x01 write_register: 0x000e <= 0x1e write_register: 0x0005 <= 0x01 [Stream 70] Lost 2 total packets in 0 frames (inf lppf) [Stream 70] Lost 5 total packets in 0 frames (inf lppf) write_register: 0x0047 <= 0x00 OpenNI2-FreenectDriver: (ERROR) Unexpected size for XN_STREAM_PROPERTY_ZERO_PLANE_DISTANCE OpenCV Error: Unspecified error (CvCapture_OpenNI2::readCamerasParams : Could not read virtual plane distance! ) in readCamerasParams, file /home/ubuntu/opencv-3.0.0/modules/videoio/src/cap_openni2.cpp, line 379 terminate called after throwing an instance of 'cv::Exception' what(): /home/ubuntu/opencv-3.0.0/modules/videoio/src/cap_openni2.cpp:379: error: (-2) CvCapture_OpenNI2::readCamerasParams : Could not read virtual plane distance! in function readCamerasParams Aborted |
2015-10-22 00:18:44 -0600 | asked a question | Capture webcam with low latencey Hi, I am trying to get stereo vision on the nvidia jetson tk1. But,there is a lot of lag in getting the images itself even when I am not doing stereo vision. Is there a way to encode the images on the gpu itself without having to transfer the images to gpu ones I encode the images on the cpu? Or is there any other way to just get the images faster from the webcams? |
2015-10-17 04:21:01 -0600 | asked a question | cannot create StereoBM object I am trying to get disparity maps from a pair of webcams when I try to initialize a StereoBM object using one of these StereoBM sbm; //or StereoBM sbm(); //or StereoBM sbm(BASIC_PRESET, 16*5, 21); it dosent work I keep getting these errors src/goneFishin.cpp: In function ‘int main(int, char**)’: /src/goneFishin.cpp:73:12: error: cannot declare variable ‘sbm’ to be of abstract type ‘cv::StereoBM’ /usr/local/include/opencv2/calib3d.hpp:349:20: note: because the following virtual functions are pure within ‘cv::StereoBM’: /usr/local/include/opencv2/calib3d.hpp:325:26: note: virtual void cv::StereoMatcher::compute(cv::InputArray, cv::InputArray, cv::OutputArray) /usr/local/include/opencv2/calib3d.hpp:328:25: note: virtual int cv::StereoMatcher::getMinDisparity() const /usr/local/include/opencv2/calib3d.hpp:329:26: note: virtual void cv::StereoMatcher::setMinDisparity(int) /usr/local/include/opencv2/calib3d.hpp:331:25: note: virtual int cv::StereoMatcher::getNumDisparities() const /usr/local/include/opencv2/calib3d.hpp:332:26: note: virtual void cv::StereoMatcher::setNumDisparities(int) /usr/local/include/opencv2/calib3d.hpp:334:25: note: virtual int cv::StereoMatcher::getBlockSize() const /usr/local/include/opencv2/calib3d.hpp:335:26: note: virtual void cv::StereoMatcher::setBlockSize(int) /usr/local/include/opencv2/calib3d.hpp:337:25: note: virtual int cv::StereoMatcher::getSpeckleWindowSize() const /usr/local/include/opencv2/calib3d.hpp:338:26: note: virtual void cv::StereoMatcher::setSpeckleWindowSize(int) /usr/local/include/opencv2/calib3d.hpp:340:25: note: virtual int cv::StereoMatcher::getSpeckleRange() const /usr/local/include/opencv2/calib3d.hpp:341:26: note: virtual void cv::StereoMatcher::setSpeckleRange(int) /usr/local/include/opencv2/calib3d.hpp:343:25: note: virtual int cv::StereoMatcher::getDisp12MaxDiff() const /usr/local/include/opencv2/calib3d.hpp:344:26: note: virtual void cv::StereoMatcher::setDisp12MaxDiff(int) /usr/local/include/opencv2/calib3d.hpp:356:25: note: virtual int cv::StereoBM::getPreFilterType() const /usr/local/include/opencv2/calib3d.hpp:357:26: note: virtual void cv::StereoBM::setPreFilterType(int) /usr/local/include/opencv2/calib3d.hpp:359:25: note: virtual int cv::StereoBM::getPreFilterSize() const /usr/local/include/opencv2/calib3d.hpp:360:26: note: virtual void cv::StereoBM::setPreFilterSize(int) /usr/local/include/opencv2/calib3d.hpp:362:25: note: virtual int cv::StereoBM::getPreFilterCap() const /usr/local/include/opencv2/calib3d.hpp:363:26: note: virtual void cv::StereoBM::setPreFilterCap(int) /usr/local/include/opencv2/calib3d.hpp:365:25: note: virtual int cv::StereoBM::getTextureThreshold() const /usr/local/include/opencv2/calib3d.hpp:366:26: note: virtual void cv::StereoBM::setTextureThreshold(int) /usr/local/include/opencv2/calib3d.hpp:368:25: note: virtual int cv::StereoBM::getUniquenessRatio() const /usr/local/include/opencv2/calib3d.hpp:369:26: note: virtual void cv::StereoBM::setUniquenessRatio(int) /usr/local/include/opencv2/calib3d.hpp:371:25: note: virtual int cv::StereoBM::getSmallerBlockSize() const /usr/local/include/opencv2/calib3d.hpp:372:26: note: virtual void cv::StereoBM::setSmallerBlockSize(int) /usr/local/include/opencv2/calib3d.hpp:374:26: note: virtual cv::Rect cv::StereoBM::getROI1() const /usr/local/include/opencv2/calib3d.hpp:375:26: note: virtual void cv::StereoBM::setROI1(cv ... (more) |