When using CUDA to try implement a pipe-lined execution model, timing an asynchronous function call results in the measured time being the same as when the synchronous function is called :
cv::cuda::Stream stream1;
cuda::GpuMat img1, descR, KeyP;
img1.upload(im_gray);
t2 = clock();
gpuOrb->detectAndComputeAsync(img1, cv::noArray(), KeyP, descR, false, stream1);
r3 = (clock()- t2)/(double)CLOCKS_PER_SEC;
std::cout << "Asynchronous call : " << r3 << std::endl;
stream1.waitForCompletion();
Could anyone elaborate why this is the case? In theory the time measured for the function call should insignificant compared to the synchronous call, as the device is synchronized after the function call was measured
↧
Asynchronous performance lacking
↧
Is that possible to simple image processing is possible on opencv on stm microcontroller platform?
Hello
Myself denish limbachiya work as an embedded hardware engineer
my queery is regarding it is possible we can do image processing using on opencv on stm electronics microcontroller platform?
↧
↧
Create image in Python from C pointer (openCV Mat return from C DLL)
Without giving you all details (DLL, wrapper C and code C++), I am using the **OpenCV** library in my DLL to perform some operations on images. For now, I am using four methods of this library : `threshold`, `adaptivethreshold`, `filter2D` and `GaussianBlur`. In Python I succeeded to recreate image from the function which return the result of the `threshold` method but from the other I have some shifts (different for each methods and different values of the same parameter on the same method). My DLL return an `unsigned short *` pointer because I deal with uint8/16 images.
Moreover, if I call these functions using the different OpenCV methods from a C++ program, I get a correct image without shift.
For example, on Python, I recreate the image from the pointer return by the `filter2D` function using :
# Definition of the function on the Python wrapper
mydll.imSmooth.argtypes = [c_void_p, c_void_p, c_int, c_int, c_int, c_int, c_int]
mydll.imSmooth.restype = POINTER(c_ushort)
# Call function
ptrImg = imSmooth(someImage.__array_interface['data'][0], someImage.width, someImage.height, someImage.type, 2, 2)
# Create image from pointer received by the DLL
numpy.ctypeslib.as_array(cast(ptrImg, POINTER(c_uint16)), shape=(self.img.shape)).copy()
And in C++ I have:
unsigned short * myClass::imSmooth(void *ptrImg, int width, int height, int inputType, int kernelWidth, int kernelHeight)
{
// imgResult (Mat object) is a class Variable
// Get image and reshape it as Mat object
Mat imgTemp = Mat(height, width, inputType, (uchar*)ptrImg).clone();
// Convert if needed
if (inputType < 5)
imgTemp.convertTo(imgTemp, CV_32FC1);
imgResult = imgTemp.clone();
// Create kernel (normalized matrix)
Mat kernel = Mat(kernelHeight, kernelWidth, CV_32FC1, 1) / (float)(kernelWidth*kernelHeight);
// Process filter with my own kernel
filter2D(imgTemp, imgResult, -1, kernel, Point(-1, -1), (0, 0), BORDER_DEFAULT);
// Convert to initial type if needed
if (imgResult.type() != inputType)
imgResult.convertTo(imgResult, inputType);
// Return result
return imgResult.ptr();
}
Let's see the images without and with shift:
[![C++ image][1]][1]
[![Python image][2]][2]
I don't know if it comes from my way to recreate an image from a pointer on Python, or maybe some OpenCV function rearrange data and so my Python function works correctly but with data in a different order than usual.
Thank you in advance for any advice/help.
[1]: https://i.stack.imgur.com/NTWbS.png
[2]: https://i.stack.imgur.com/FtIfi.png
↧
Where can i get trained haarcascade XML file to count human heads?
I searched for the haarcascade XML file for head detection in 'C:\openCV\sources\data\haarcascades_cuda' , but i can't see such files there..Please help me to find the same.
↧
Python OpenCV stream to Android Studio
Hi everyone,
Is there any way where I can stream a live video from python opencv (code from https://www.pyimagesearch.com/2017/09/18/real-time-object-detection-with-deep-learning-and-opencv/) to android studio? If not, can I stream it live in web first and get it in android?
Thanks for your reply.
↧
↧
What does Rvec and Tvec of aruco markers correspond to?
Hi all,
I'm currently doing a project using ArUco marker tracking.
I'm just a bit confused what the rvec and the tvecs are supposed to be. According to the official document, it's supposed to be the rotational vectors and the translational vectors that represents the camera coordinate position relative to the aruco marker's xyz coordinate.
But one thing I discovered today is the following:
First, I placed a calibrated camera looking straight down onto the aruco marker. I then moved the aruco marker towards its positive x direction. Theoretically, if the rvecs and the tvecs are representing the 'camera position' relative to the aruco frame, then the act of moving the marker in its positive x-direction should mean 'moving the camera to the negative x-direction' relatively. However, the tvec data shows that the x component has increased.
So I'm confused, if the rvec/tvecs are supposed to be the vectors for 'camera pose estimation' as the document states, or it is actually for 'marker pose estimation'.
Thanks all, please share your opinions on this.
↧
I am getting this error please help and I have all the ways to resolve it

OpenCV(3.4.1) Error: Unknown error code -49 (Input file is empty) in cvOpenFileStorage, file /Users/travis/build/skvark/opencv-python/opencv/modules/core/src/persistence_c.cpp, line 384
OpenCV(3.4.1) Error: Unknown error code -49 (Input file is empty) in cvOpenFileStorage, file /Users/travis/build/skvark/opencv-python/opencv/modules/core/src/persistence_c.cpp, line 384
Traceback (most recent call last):
File "OpenCV10.py", line 30, in
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
TypeError: Incorrect type of self (must be 'CascadeClassifier' or its derivative)
↧
How can i save only one image using the imwrite command without press any key?
I'm using OpenCV for facial recognize and i want to save automatically only one image when the person is detected in front of webcam withou press any key.
In this case i want to save only one image and the command imwrite is saving multiple images.

↧
interactive calibration application fails assertion when compiled for debug
Environment: openCV 3.4.2, Windows 10, VS2017
I have recompiled the interactive calibration application in debug mode (After modifying parts of main.cpp and calibPipeline.cpp to work with Spinnaker library from FLIR). Everything is more-or-less working up to when the maximum number of frames are collected and the filterFrames function in calibController.cpp starts removing poor frames from the queue. (I haven't made any changes to this code)
At this point the debugger halts, reporting a debug assertion failure as shown below in mat.inl.hpp:
template inline
_Tp* Mat::ptr(int y)
{
CV_DbgAssert( y == 0 || (data && dims >= 1 && (unsigned)y < (unsigned)size.p[0]) );
return (_Tp*)(data + step.p[0] * y);
}
after some debugging I've traced the offending line of code in calibController.cpp to:
std::copy(mCalibData->perViewErrors.ptr((int)worstElemIndex + 1), mCalibData->perViewErrors.ptr((int)numberOfFrames),newErrorsVec.ptr((int)worstElemIndex));
I'm simultaneously trying to get up to speed with openCV, C++, and VS 2017 and have reached (or maybe exceeded) the limits of my knowledge so I'm not sure where to go next.
The code seems to make sense and when compiled for release, the code executes without crashing but I've always heard that it's a bad idea to assume that asserts are false alarms...
↧
↧
Can't connect to cammera
I'am trying to connect to my hikvision DS-2CD2032-I camera, with no success.
Code:
import numpy as np
import cv2 as cv
cap = cv.VideoCapture('rtsp://username:password@IP:554/1')
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
# Display the resulting frame
cv.imshow('frame', gray)
if cv.waitKey(1) & 0xFF == ord('q'):
break
# When everything done, release the capture
cap.release()
cv.destroyAllWindows()
Error:
> gray = cv.cvtColor(frame,> cv.COLOR_BGR2GRAY) error:> OpenCV(3.4.2)> c:\build\3_4_winpack-bindings-win32-vc14-static\opencv\modules\imgproc\src\color.hpp:253:> error: (-215:Assertion failed)> VScn::contains(scn) &&> VDcn::contains(dcn) &&> VDepth::contains(depth) in function> 'cv::CvtHelper cv::Set<3,4,-1>,struct> cv::Set<1,-1,-1>,struct> cv::Set<0,2,5>,2>::CvtHelper'
With the same urls (["rtsp://user:password@IP:554/1", "rtsp://user:password@IP:554/h264_stream"]) I have managed to connect with VLC player, but not with this script.., also if I define cv.VideoCapture(0), my laptop camera capturing works with no problem.
Your help is greatly appreciated.
↧
complete code of "Adding a new algorithm to the Facemark API"
The code listed in ["https://docs.opencv.org/3.4.2/d4/d3e/tutorial_facemark_add_algorithm.html"](https://docs.opencv.org/3.4.2/d4/d3e/tutorial_facemark_add_algorithm.html) is not complete and has errors like duplication defination `Config config`. Are there places has the decent verision of the demo code ?
↧
Download a vector of GpuMats to Host
I have a std::vector that I want to access on my host. How would I perform one batch memcpy operation (or download operation) to return a vector of cv::Mats? I am running this on the Jetson TX2, so I have the ability to do unified shared memory.
↧
Explanation of findContours/Suzuki Method
The code I have been working on uses several of the OpenCV CUDA functions to speed things up and I can write my own CUDA kernel code.
One thing that would help is if there was a CUDA version of findContours.
Without that, many times an image can be processed on the GPU (e.g., correcting for camera calibration, Canny, etc.) but then has to be transferred back to the CPU for findContours. Then, the data has to be transferred back to the GPU for further processing. Going from the GPU to the CPU and back chews up time. Even if a CUDA version of findContours was no faster than the CPU version, because it would eliminate the GPU-CPU-GPU transfer cost, it would result in increased performance. Over the years, I have seen several people ask about a CUDA version of findContours and, now, I am considering taking on that challenge.
I know that findContours uses the method described in the Suzuki (1985) paper and I have that. Maybe I am unusually slow, but that paper seems less than clear to me. I am wondering if anyone knows of another paper or book with a more clear explanation of the Suzuki method. (Yes, I know I could try to figure it out from the code itself).
Any help appreciated.
↧
↧
Explanation of findContours/Suzuki Method
The code I have been working on uses several of the OpenCV CUDA functions to speed things up and I can write my own CUDA kernel code.
One thing that would help is if there was a CUDA version of findContours.
Without that, many times an image can be processed on the GPU (e.g., correcting for camera calibration, Canny, etc.) but then has to be transferred back to the CPU for findContours. Then, the data has to be transferred back to the GPU for further processing. Going from the GPU to the CPU and back chews up time. Even if a CUDA version of findContours was no faster than the CPU version, because it would eliminate the GPU-CPU-GPU transfer cost, it would result in increased performance. Over the years, I have seen several people ask about a CUDA version of findContours and, now, I am considering taking on that challenge.
I know that findContours uses the method described in the Suzuki (1985) paper and I have that. Maybe I am unusually slow, but that paper seems less than clear to me. I am wondering if anyone knows of another paper or book with a more clear explanation of the Suzuki method. (Yes, I know I could try to figure it out from the code itself).
Any help appreciated.
↧
Explanation of findContours/Suzuki Method
The code I have been working on uses several of the OpenCV CUDA functions to speed things up and I can write my own CUDA kernel code.
One thing that would help is if there was a CUDA version of findContours.
Without that, many times an image can be processed on the GPU (e.g., correcting for camera calibration, Canny, etc.) but then has to be transferred back to the CPU for findContours. Then, the data has to be transferred back to the GPU for further processing. Going from the GPU to the CPU and back chews up time. Even if a CUDA version of findContours was no faster than the CPU version, because it would eliminate the GPU-CPU-GPU transfer cost, it would result in increased performance. Over the years, I have seen several people ask about a CUDA version of findContours and, now, I am considering taking on that challenge.
I know that findContours uses the method described in the Suzuki (1985) paper and I have that. Maybe I am unusually slow, but that paper seems less than clear to me. I am wondering if anyone knows of another paper or book with a more clear explanation of the Suzuki method. (Yes, I know I could try to figure it out from the code itself).
Any help appreciated.
↧
UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory
I am trying to compile & run the ukf test in the following directory:
~/opencv_contrib/modules/tracking/test/test_ukf.cpp
when I try to compile it using ( **g++ test_ukf.cpp** ) command I get:
> In file included from> test_ukf.cpp:42:0:> test_precomp.hpp:13:26: fatal error:> opencv2/ts.hpp: No such file or> directory compilation terminated.
Then I specify the include directory where ts.hpp exists using : **g++ -o app -I/home/akde/opencv/modules/ts/include/ test_ukf.cpp** But this time I get
> In file included from> test_precomp.hpp:13:0,> from test_ukf.cpp:42: /home/akde/opencv/modules/ts/include/opencv2/ts.hpp:22:22:> fatal error: cvconfig.h: No such file> or directory compilation terminated.
Finally I searched for the **cvconfig.h** and found it in 2 places:
1-/home/akde/opencv/build/opencv2/cvconfig.h
2-/home/akde/opencv/build/cvconfig.h
I specified the locations and compiled using:
**g++ -o app -I/home/akde/opencv/modules/ts/include/ -I/home/akde/opencv/build/opencv2 test_ukf.cpp**
and
**g++ -o app -I/home/akde/opencv/modules/ts/include/ -I/home/akde/opencv/build test_ukf.cpp**
and
**g++ test_ukf.cpp -o app "pkg-config --cflags --libs opencv" -I/home/akde/opencv/modules/ts/include/ -I/home/akde/opencv/build**
This time I get a gigantic error:
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/cc1Bc7jy.o: In function `UKF_br_landing_point_Test::TestBody()':
test_ukf.cpp:(.text+0x29): undefined reference to `cv::utils::trace::details::Region::Region(cv::utils::trace::details::Region::LocationStaticStorage const&)'
test_ukf.cpp:(.text+0x42): undefined reference to `cv::ipp::setIppStatus(int, char const*, char const*, int)'
test_ukf.cpp:(.text+0x47): undefined reference to `cv::theRNG()'
test_ukf.cpp:(.text+0x51): undefined reference to `cvtest::param_seed'
test_ukf.cpp:(.text+0x70): undefined reference to `cvtest::checkIppStatus()'
/tmp/cc1Bc7jy.o: In function `UKF_br_landing_point_Test::Body()':
test_ukf.cpp:(.text+0x1cd): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x2cf): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x342): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
test_ukf.cpp:(.text+0x381): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x414): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x487): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
test_ukf.cpp:(.text+0x5ef): undefined reference to `cv::Mat::eye(int, int, int)'
test_ukf.cpp:(.text+0x621): undefined reference to `cv::operator*(double, cv::MatExpr const&)'
test_ukf.cpp:(.text+0x763): undefined reference to `cv::tracking::UnscentedKalmanFilterParams::UnscentedKalmanFilterParams(int, int, int, double, double, cv::Ptr, int)'
test_ukf.cpp:(.text+0x8cc): undefined reference to `cv::tracking::createUnscentedKalmanFilter(cv::tracking::UnscentedKalmanFilterParams const&)'
test_ukf.cpp:(.text+0x910): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x9fc): undefined reference to `cv::RNG::fill(cv::_InputOutputArray const&, int, cv::_InputArray const&, cv::_InputArray const&, bool)'
test_ukf.cpp:(.text+0xa49): undefined reference to `cv::operator*(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text+0xb1b): undefined reference to `cv::RNG::fill(cv::_InputOutputArray const&, int, cv::_InputArray const&, cv::_InputArray const&, bool)'
test_ukf.cpp:(.text+0xb68): undefined reference to `cv::operator*(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text+0xc23): undefined reference to `cv::noArray()'
test_ukf.cpp:(.text+0xd45): undefined reference to `testing::internal::DoubleNearPredFormat(char const*, char const*, char const*, double, double, double)'
test_ukf.cpp:(.text+0xd6b): undefined reference to `testing::Message::Message()'
test_ukf.cpp:(.text+0xd9e): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
test_ukf.cpp:(.text+0xdb7): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
test_ukf.cpp:(.text+0xdc6): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x12ef): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_br_mean_squared_error_Test::TestBody()':
test_ukf.cpp:(.text+0x148d): undefined reference to `cv::utils::trace::details::Region::Region(cv::utils::trace::details::Region::LocationStaticStorage const&)'
test_ukf.cpp:(.text+0x14a6): undefined reference to `cv::ipp::setIppStatus(int, char const*, char const*, int)'
test_ukf.cpp:(.text+0x14ab): undefined reference to `cv::theRNG()'
test_ukf.cpp:(.text+0x14b5): undefined reference to `cvtest::param_seed'
test_ukf.cpp:(.text+0x14d4): undefined reference to `cvtest::checkIppStatus()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_br_mean_squared_error_Test::Body()':
test_ukf.cpp:(.text+0x1631): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x1733): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x17a6): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
test_ukf.cpp:(.text+0x17e5): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x1878): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x18eb): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
test_ukf.cpp:(.text+0x1a6c): undefined reference to `cv::Mat::eye(int, int, int)'
test_ukf.cpp:(.text+0x1a9e): undefined reference to `cv::operator*(double, cv::MatExpr const&)'
test_ukf.cpp:(.text+0x1be0): undefined reference to `cv::tracking::UnscentedKalmanFilterParams::UnscentedKalmanFilterParams(int, int, int, double, double, cv::Ptr, int)'
test_ukf.cpp:(.text+0x1d95): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x1ddf): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x1e37): undefined reference to `cv::tracking::createUnscentedKalmanFilter(cv::tracking::UnscentedKalmanFilterParams const&)'
test_ukf.cpp:(.text+0x1f3c): undefined reference to `cv::RNG::fill(cv::_InputOutputArray const&, int, cv::_InputArray const&, cv::_InputArray const&, bool)'
test_ukf.cpp:(.text+0x1f89): undefined reference to `cv::operator*(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text+0x205b): undefined reference to `cv::RNG::fill(cv::_InputOutputArray const&, int, cv::_InputArray const&, cv::_InputArray const&, bool)'
test_ukf.cpp:(.text+0x20a8): undefined reference to `cv::operator*(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text+0x2163): undefined reference to `cv::noArray()'
test_ukf.cpp:(.text+0x2241): undefined reference to `cv::operator-(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text+0x2368): undefined reference to `cv::operator/(cv::Mat const&, double)'
test_ukf.cpp:(.text+0x23db): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
test_ukf.cpp:(.text+0x23fe): undefined reference to `cv::noArray()'
test_ukf.cpp:(.text+0x244f): undefined reference to `cv::norm(cv::_InputArray const&, int, cv::_InputArray const&)'
test_ukf.cpp:(.text+0x247e): undefined reference to `cv::noArray()'
test_ukf.cpp:(.text+0x24cf): undefined reference to `cv::norm(cv::_InputArray const&, int, cv::_InputArray const&)'
test_ukf.cpp:(.text+0x24fe): undefined reference to `cv::noArray()'
test_ukf.cpp:(.text+0x254f): undefined reference to `cv::norm(cv::_InputArray const&, int, cv::_InputArray const&)'
test_ukf.cpp:(.text+0x257e): undefined reference to `cv::noArray()'
test_ukf.cpp:(.text+0x25cf): undefined reference to `cv::norm(cv::_InputArray const&, int, cv::_InputArray const&)'
test_ukf.cpp:(.text+0x264c): undefined reference to `testing::Message::Message()'
test_ukf.cpp:(.text+0x267f): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
test_ukf.cpp:(.text+0x2698): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
test_ukf.cpp:(.text+0x26a7): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x2736): undefined reference to `testing::Message::Message()'
test_ukf.cpp:(.text+0x2769): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
test_ukf.cpp:(.text+0x2782): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
test_ukf.cpp:(.text+0x2791): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x2820): undefined reference to `testing::Message::Message()'
test_ukf.cpp:(.text+0x2853): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
test_ukf.cpp:(.text+0x286c): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
test_ukf.cpp:(.text+0x287b): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x290a): undefined reference to `testing::Message::Message()'
test_ukf.cpp:(.text+0x293d): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
test_ukf.cpp:(.text+0x2956): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
test_ukf.cpp:(.text+0x2965): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x303d): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x307c): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x30b8): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x30f4): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_ungm_mean_squared_error_Test::TestBody()':
test_ukf.cpp:(.text+0x32b9): undefined reference to `cv::utils::trace::details::Region::Region(cv::utils::trace::details::Region::LocationStaticStorage const&)'
test_ukf.cpp:(.text+0x32d2): undefined reference to `cv::ipp::setIppStatus(int, char const*, char const*, int)'
test_ukf.cpp:(.text+0x32d7): undefined reference to `cv::theRNG()'
test_ukf.cpp:(.text+0x32e1): undefined reference to `cvtest::param_seed'
test_ukf.cpp:(.text+0x3300): undefined reference to `cvtest::checkIppStatus()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_ungm_mean_squared_error_Test::Body()':
test_ukf.cpp:(.text+0x34a8): undefined reference to `cv::tracking::UnscentedKalmanFilterParams::UnscentedKalmanFilterParams(int, int, int, double, double, cv::Ptr, int)'
test_ukf.cpp:(.text+0x34d8): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x3546): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x35b9): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
test_ukf.cpp:(.text+0x35f8): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x3666): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x36d9): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
test_ukf.cpp:(.text+0x3718): undefined reference to `cv::Mat::eye(int, int, int)'
test_ukf.cpp:(.text+0x3978): undefined reference to `cv::Mat::zeros(int, int, int)'
test_ukf.cpp:(.text+0x39f3): undefined reference to `cv::tracking::createUnscentedKalmanFilter(cv::tracking::UnscentedKalmanFilterParams const&)'
test_ukf.cpp:(.text+0x3ae8): undefined reference to `cv::RNG::fill(cv::_InputOutputArray const&, int, cv::_InputArray const&, cv::_InputArray const&, bool)'
test_ukf.cpp:(.text+0x3bbf): undefined reference to `cv::RNG::fill(cv::_InputOutputArray const&, int, cv::_InputArray const&, cv::_InputArray const&, bool)'
test_ukf.cpp:(.text+0x3c0c): undefined reference to `cv::operator*(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text+0x3c54): undefined reference to `cv::operator*(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text+0x3f81): undefined reference to `testing::Message::Message()'
test_ukf.cpp:(.text+0x3fb4): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
test_ukf.cpp:(.text+0x3fcd): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
test_ukf.cpp:(.text+0x3fdc): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
test_ukf.cpp:(.text+0x44d2): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
/tmp/cc1Bc7jy.o: In function `__static_initialization_and_destruction_0(int, int)':
test_ukf.cpp:(.text+0x5142): undefined reference to `testing::internal::GetTestTypeId()'
test_ukf.cpp:(.text+0x51b0): undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
test_ukf.cpp:(.text+0x51f9): undefined reference to `testing::internal::GetTestTypeId()'
test_ukf.cpp:(.text+0x5267): undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
test_ukf.cpp:(.text+0x52b0): undefined reference to `testing::internal::GetTestTypeId()'
test_ukf.cpp:(.text+0x531e): undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
/tmp/cc1Bc7jy.o: In function `testing::internal::scoped_ptr::reset(perf::(anonymous namespace)::MatDepth const*)':
test_ukf.cpp:(.text+0x579c): undefined reference to `testing::internal::IsTrue(bool)'
/tmp/cc1Bc7jy.o: In function `testing::internal::ValuesInIteratorRangeGenerator::Iterator::Equals(testing::internal::ParamIteratorInterface const&) const':
test_ukf.cpp:(.text+0x59bb): undefined reference to `testing::internal::IsTrue(bool)'
test_ukf.cpp:(.text+0x59da): undefined reference to `testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int)'
test_ukf.cpp:(.text+0x5a26): undefined reference to `testing::internal::GTestLog::~GTestLog()'
test_ukf.cpp:(.text+0x5a69): undefined reference to `testing::internal::GTestLog::~GTestLog()'
/tmp/cc1Bc7jy.o: In function `testing::internal::ValuesInIteratorRangeGenerator::Iterator const* testing::internal::CheckedDowncastToActualType::Iterator const, testing::internal::ParamIteratorInterface const>(testing::internal::ParamIteratorInterface const*)':
test_ukf.cpp:(.text+0x5b66): undefined reference to `testing::internal::IsTrue(bool)'
test_ukf.cpp:(.text+0x5b8c): undefined reference to `testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int)'
test_ukf.cpp:(.text+0x5bb1): undefined reference to `testing::internal::GTestLog::~GTestLog()'
test_ukf.cpp:(.text+0x5bf8): undefined reference to `testing::internal::GTestLog::~GTestLog()'
/tmp/cc1Bc7jy.o: In function `cv::Mat::~Mat()':
test_ukf.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to `cv::fastFree(void*)'
/tmp/cc1Bc7jy.o: In function `cv::Mat::operator=(cv::Mat const&)':
test_ukf.cpp:(.text._ZN2cv3MataSERKS0_[_ZN2cv3MataSERKS0_]+0x115): undefined reference to `cv::Mat::copySize(cv::Mat const&)'
/tmp/cc1Bc7jy.o: In function `cv::Mat::col(int) const':
test_ukf.cpp:(.text._ZNK2cv3Mat3colEi[_ZNK2cv3Mat3colEi]+0x56): undefined reference to `cv::Mat::Mat(cv::Mat const&, cv::Range const&, cv::Range const&)'
/tmp/cc1Bc7jy.o: In function `cv::Mat::clone() const':
test_ukf.cpp:(.text._ZNK2cv3Mat5cloneEv[_ZNK2cv3Mat5cloneEv]+0x4e): undefined reference to `cv::Mat::copyTo(cv::_OutputArray const&) const'
/tmp/cc1Bc7jy.o: In function `cv::Mat::create(int, int, int)':
test_ukf.cpp:(.text._ZN2cv3Mat6createEiii[_ZN2cv3Mat6createEiii]+0x9d): undefined reference to `cv::Mat::create(int, int const*, int)'
/tmp/cc1Bc7jy.o: In function `cv::Mat::release()':
test_ukf.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x4b): undefined reference to `cv::Mat::deallocate()'
/tmp/cc1Bc7jy.o: In function `cv::utils::trace::details::Region::~Region()':
test_ukf.cpp:(.text._ZN2cv5utils5trace7details6RegionD2Ev[_ZN2cv5utils5trace7details6RegionD5Ev]+0x1f): undefined reference to `cv::utils::trace::details::Region::destroy()'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult::AppendMessage(testing::Message const&)':
test_ukf.cpp:(.text._ZN7testing15AssertionResult13AppendMessageERKNS_7MessageE[_ZN7testing15AssertionResult13AppendMessageERKNS_7MessageE]+0x73): undefined reference to `testing::Message::GetString[abi:cxx11]() const'
/tmp/cc1Bc7jy.o: In function `BallisticModel::stateConversionFunction(cv::Mat const&, cv::Mat const&, cv::Mat const&, cv::Mat&)':
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x8a): undefined reference to `cv::operator*(double, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x143): undefined reference to `cv::operator+(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x1a7): undefined reference to `cv::operator*(double, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x1c7): undefined reference to `cv::operator+(cv::Mat const&, cv::MatExpr const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x23e): undefined reference to `cv::operator+(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x2a2): undefined reference to `cv::operator*(double, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x2c2): undefined reference to `cv::operator+(cv::Mat const&, cv::MatExpr const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x339): undefined reference to `cv::operator+(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x3a2): undefined reference to `cv::operator*(double, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x3c2): undefined reference to `cv::operator+(cv::Mat const&, cv::MatExpr const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x439): undefined reference to `cv::operator+(cv::Mat const&, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x4a2): undefined reference to `cv::operator*(double, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x4d4): undefined reference to `cv::operator*(double, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x4f4): undefined reference to `cv::operator+(cv::Mat const&, cv::MatExpr const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x514): undefined reference to `cv::operator+(cv::MatExpr const&, cv::MatExpr const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x534): undefined reference to `cv::operator+(cv::MatExpr const&, cv::Mat const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x561): undefined reference to `cv::operator*(double, cv::MatExpr const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x581): undefined reference to `cv::operator+(cv::Mat const&, cv::MatExpr const&)'
test_ukf.cpp:(.text._ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_[_ZN14BallisticModel23stateConversionFunctionERKN2cv3MatES3_S3_RS1_]+0x5a1): undefined reference to `cv::operator+(cv::MatExpr const&, cv::Mat const&)'
/tmp/cc1Bc7jy.o: In function `UKF_br_landing_point_Test::UKF_br_landing_point_Test()':
test_ukf.cpp:(.text._ZN25UKF_br_landing_point_TestC2Ev[_ZN25UKF_br_landing_point_TestC5Ev]+0x14): undefined reference to `testing::Test::Test()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_br_mean_squared_error_Test::UKF_DISABLED_br_mean_squared_error_Test()':
test_ukf.cpp:(.text._ZN39UKF_DISABLED_br_mean_squared_error_TestC2Ev[_ZN39UKF_DISABLED_br_mean_squared_error_TestC5Ev]+0x14): undefined reference to `testing::Test::Test()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_ungm_mean_squared_error_Test::UKF_DISABLED_ungm_mean_squared_error_Test()':
test_ukf.cpp:(.text._ZN41UKF_DISABLED_ungm_mean_squared_error_TestC2Ev[_ZN41UKF_DISABLED_ungm_mean_squared_error_TestC5Ev]+0x14): undefined reference to `testing::Test::Test()'
/tmp/cc1Bc7jy.o: In function `testing::internal::scoped_ptr, std::allocator>>::reset(std::__cxx11::basic_string, std::allocator>*)':
test_ukf.cpp:(.text._ZN7testing8internal10scoped_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5resetEPS7_[_ZN7testing8internal10scoped_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5resetEPS7_]+0x29): undefined reference to `testing::internal::IsTrue(bool)'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult testing::internal::CmpHelperGE(char const*, char const*, double const&, double const&)':
test_ukf.cpp:(.text._ZN7testing8internal11CmpHelperGEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperGEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x49): undefined reference to `testing::AssertionSuccess()'
/tmp/cc1Bc7jy.o: In function `testing::internal::scoped_ptr, std::allocator>>::reset(std::__cxx11::basic_stringstream, std::allocator>*)':
test_ukf.cpp:(.text._ZN7testing8internal10scoped_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEEE5resetEPS7_[_ZN7testing8internal10scoped_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEEE5resetEPS7_]+0x28): undefined reference to `testing::internal::IsTrue(bool)'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult testing::internal::CmpHelperOpFailure(char const*, char const*, double const&, double const&, char const*)':
test_ukf.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureIddEENS_15AssertionResultEPKcS4_RKT_RKT0_S4_[_ZN7testing8internal18CmpHelperOpFailureIddEENS_15AssertionResultEPKcS4_RKT_RKT0_S4_]+0x81): undefined reference to `testing::AssertionFailure()'
test_ukf.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureIddEENS_15AssertionResultEPKcS4_RKT_RKT0_S4_[_ZN7testing8internal18CmpHelperOpFailureIddEENS_15AssertionResultEPKcS4_RKT_RKT0_S4_]+0x138): undefined reference to `testing::AssertionResult::AssertionResult(testing::AssertionResult const&)'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult& testing::AssertionResult::operator<<(char const (&) [12])':
test_ukf.cpp:(.text._ZN7testing15AssertionResultlsIA12_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA12_cEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult& testing::AssertionResult::operator<<(char const* const&)':
test_ukf.cpp:(.text._ZN7testing15AssertionResultlsIPKcEERS0_RKT_[_ZN7testing15AssertionResultlsIPKcEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult& testing::AssertionResult::operator<<(char const (&) [3])':
test_ukf.cpp:(.text._ZN7testing15AssertionResultlsIA3_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA3_cEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult& testing::AssertionResult::operator<<, std::allocator>>(std::__cxx11::basic_string, std::allocator> const&)':
test_ukf.cpp:(.text._ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_[_ZN7testing15AssertionResultlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
/tmp/cc1Bc7jy.o: In function `testing::AssertionResult& testing::AssertionResult::operator<<(char const (&) [5])':
test_ukf.cpp:(.text._ZN7testing15AssertionResultlsIA5_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA5_cEERS0_RKT_]+0x28): undefined reference to `testing::Message::Message()'
/tmp/cc1Bc7jy.o:(.rodata._ZTV41UKF_DISABLED_ungm_mean_squared_error_Test[_ZTV41UKF_DISABLED_ungm_mean_squared_error_Test]+0x20): undefined reference to `testing::Test::SetUp()'
/tmp/cc1Bc7jy.o:(.rodata._ZTV41UKF_DISABLED_ungm_mean_squared_error_Test[_ZTV41UKF_DISABLED_ungm_mean_squared_error_Test]+0x28): undefined reference to `testing::Test::TearDown()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_ungm_mean_squared_error_Test::~UKF_DISABLED_ungm_mean_squared_error_Test()':
test_ukf.cpp:(.text._ZN41UKF_DISABLED_ungm_mean_squared_error_TestD2Ev[_ZN41UKF_DISABLED_ungm_mean_squared_error_TestD5Ev]+0x20): undefined reference to `testing::Test::~Test()'
/tmp/cc1Bc7jy.o:(.rodata._ZTV39UKF_DISABLED_br_mean_squared_error_Test[_ZTV39UKF_DISABLED_br_mean_squared_error_Test]+0x20): undefined reference to `testing::Test::SetUp()'
/tmp/cc1Bc7jy.o:(.rodata._ZTV39UKF_DISABLED_br_mean_squared_error_Test[_ZTV39UKF_DISABLED_br_mean_squared_error_Test]+0x28): undefined reference to `testing::Test::TearDown()'
/tmp/cc1Bc7jy.o: In function `UKF_DISABLED_br_mean_squared_error_Test::~UKF_DISABLED_br_mean_squared_error_Test()':
test_ukf.cpp:(.text._ZN39UKF_DISABLED_br_mean_squared_error_TestD2Ev[_ZN39UKF_DISABLED_br_mean_squared_error_TestD5Ev]+0x20): undefined reference to `testing::Test::~Test()'
/tmp/cc1Bc7jy.o:(.rodata._ZTV25UKF_br_landing_point_Test[_ZTV25UKF_br_landing_point_Test]+0x20): undefined reference to `testing::Test::SetUp()'
/tmp/cc1Bc7jy.o:(.rodata._ZTV25UKF_br_landing_point_Test[_ZTV25UKF_br_landing_point_Test]+0x28): undefined reference to `testing::Test::TearDown()'
/tmp/cc1Bc7jy.o: In function `UKF_br_landing_point_Test::~UKF_br_landing_point_Test()':
test_ukf.cpp:(.text._ZN25UKF_br_landing_point_TestD2Ev[_ZN25UKF_br_landing_point_TestD5Ev]+0x20): undefined reference to `testing::Test::~Test()'
/tmp/cc1Bc7jy.o:(.rodata._ZTI41UKF_DISABLED_ungm_mean_squared_error_Test[_ZTI41UKF_DISABLED_ungm_mean_squared_error_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/tmp/cc1Bc7jy.o:(.rodata._ZTI39UKF_DISABLED_br_mean_squared_error_Test[_ZTI39UKF_DISABLED_br_mean_squared_error_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/tmp/cc1Bc7jy.o:(.rodata._ZTI25UKF_br_landing_point_Test[_ZTI25UKF_br_landing_point_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/tmp/cc1Bc7jy.o:(.rodata._ZTIN6cvtest17SkipTestExceptionE[_ZTIN6cvtest17SkipTestExceptionE]+0x10): undefined reference to `typeinfo for cv::Exception'
collect2: error: ld returned 1 exit status
So what is the problem and what should I do to run test_ukf.cpp?
PS: I can run basic .cpp programs which uses cv::KalmanFilter like in here https://docs.opencv.org/3.3.1/d1/da2/kalman_8cpp-example.html[link text](https://docs.opencv.org/3.3.1/d1/da2/kalman_8cpp-example.html)
↧
how can use gstreamer with rtsp stream
Hello,
I have found that gstreamer can be use to play video frame from web-cam as below:
VideoCapture cap("v4l2src ! video/x-raw,format=BGR,width=640,height=480,framerate=30/1 ! appsink",CAP_GSTREAMER);
Now, i have tried to make some changes to read video frame for "rtsp" stream,but i got some errors.
Can anyone modify above line to use "rtsp" stream instead of camera-device '0'.
Regards,
Kishan Patel.
↧
↧
Informative websites related to OpenCV
i think it will be useful if we add links of informative websites related to OpenCV here.
Lets create a list together.
>>**Last additions ( 11.08.2018 ):**
>>[William A. Hoff](http://inside.mines.edu/~whoff/)
**C ++**
--------
- http://codecapsule.com/category/computer-vision/
- [OpenCV simplified for beginners by the use of examples](http://opencvexamples.blogspot.com/p/table-of-contents.html)
- http://web.archive.org/web/20150314235728/http://opencv-code.com/
- [MoreThanTechnical](http://www.morethantechnical.com/?s=opencv)
- [notes on different topics of computer vision by Jürgen Brauer](http://www.juergenwiki.de)
- http://www.bogotobogo.com
- http://www.shervinemami.info/openCV.html
- https://github.com/MasteringOpenCV/code
- [Some good patterns to be followed in C++ API](http://www.codergears.com/Blog/?p=535)
- https://gilscvblog.wordpress.com/
- http://harismoonamkunnu.blogspot.in/
- http://study.marearts.com/p/contents-table.html
- http://www.jayrambhia.com
- http://computer-vision-talks.com/tags/opencv.html
- http://aishack.in/tutorials/
- http://eric-yuan.me/
- http://ramsrigoutham.com/
- http://www.nithinrajs.in/category/image-processing/
- [http://nghiaho.com/ (Where boredom, free time, and curiosity meet together)](http://nghiaho.com/)
- [Using OpenCV's Test Framework (With CMake)](http://quentin.bonnard.eu/blog/2013/10/16/Using-OpenCV_s_test_framework_with_CMake/)
- http://opencv-srf.blogspot.com.tr/p/opencv-c-tutorials.html
- http://bytefish.de/tag/opencv/
- http://felix.abecassis.me/category/opencv
**PYTHON**
----------
- [Nullege is a search engine for Python source code.](http://nullege.com/codes/search/cv.AbsDiff)
- [Abid Rahman K's blog](http://www.opencvpython.blogspot.com/) , maybe same content at [opencv-python-tutroals](http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_tutorials.html)
- http://www.got-blogger.com/opencvpython/
- http://opencvpython.blogspot.dk/
- http://hanzratech.in/categories/opencv/
- http://scikit-learn.org/stable/auto_examples/index.html
**JAVA**
-----------
* http://opencv-java-tutorials.readthedocs.org/en/latest/
* https://github.com/atduskgreg/opencv-processing
**ANDROID**
-----------
- https://github.com/DeLaSalleUniversity-Manila
**COMPUTER VISION**
-------------------
- http://www.computervisionblog.com
- [Awesome Computer Vision](https://github.com/jbhuang0604/awesome-computer-vision)
- [Andrej Karpathy](http://cs.stanford.edu/people/karpathy/)
- [Reproducible Research in Computational Science](http://www.csee.wvu.edu/~xinl/reproducible_research.html)
- https://msopentech.com/blog/tag/opencv/
- http://vision.ucsd.edu/~pdollar/research.html
- http://arxiv.org/list/cs.CV/recent
- https://github.com/kjw0612/awesome-deep-vision ( thank to @berak)
- https://www.reddit.com/r/computervision/
- http://web.media.mit.edu/~roys/
- http://www.cs.berkeley.edu/~rbg/
- http://www.haralick.org/
- http://davidstutz.de/tag/computer-vision-2/
- [cvlibs.net](http://www.cvlibs.net/projects.php)
**Other Related & Non-English Resources**
-------------------
- http://opencv.jp/
- http://acodigo.blogspot.com.es/p/tutorial-opencv.html
- http://www.aprendiendoando.com/opencv
- http://turing.iimas.unam.mx/~ivanvladimir/es/content/teach/curso_aprendizaje_automatico_s4.html
- http://visionlabs.cl/blog/?cat=5
- http://disparity.wikidot.com/
- http://www.tutorialspoint.com/computer_graphics/index.htm
- http://hanzratech.in/categories/opencv/
- https://github.com/isocpp/CppCoreGuidelines
- http://rodrigob.github.io/
- http://www.codeproject.com/search.aspx?q=opencv&x=0&y=0&sbo=kw&pgnum=3
- [Open Source Landmarking Library](http://cmp.felk.cvut.cz/~uricamic/clandmark/)
- [Learning, Recognition, and Surveillance](http://lrs.icg.tugraz.at/)
- [Something More for Research - Hemprasad Badgujar](https://hemprasad.wordpress.com/)
**Academic Web Pages**
- [Computer Vision Group at RWTH Aachen University](http://www.vision.rwth-aachen.de/)
- [IPOL Journal · Image Processing On
Line](http://www.ipol.im/)-Very
useful journal with access to source
code & paper.
- [Berkeley University Computer Vision
page](http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/)
- [University of Central Florida](http://crcv.ucf.edu/research)
- Computer Vision Foundation [open access](http://www.cv-foundation.org/openaccess/menu.py)
- [Computer Vision Group](http://vision.in.tum.de/publications)
- [Middlebury Stereo Vision](http://vision.middlebury.edu/stereo/) - Stereo Based
- [Larry S. Davis](http://www.umiacs.umd.edu/~lsd/)
- [William Robson Schwartz](http://homepages.dcc.ufmg.br/~william/index.html)
- [Zhang Ming's github repo contains academic papers about Computer Vision](https://github.com/starimpact/papers)
- [http://www.cvpapers.com/](http://www.cvpapers.com/)
- [Active Vision Laboratory - University of Oxford](http://www.robots.ox.ac.uk/ActiveVision/Publications/index.html)
- [Torr Vision Group](http://www.robots.ox.ac.uk/~tvg/)
- [Philipp Krähenbühl](http://www.philkr.net/home)
- [James Hays](http://www.cc.gatech.edu/~hays/)
- [William A. Hoff](http://inside.mines.edu/~whoff/)
**DATABASE**
- [Center for Machine Learning and Intelligent Systems](http://archive.ics.uci.edu/ml/datasets.html)
- [Unfiltered faces for gender and age classification](http://www.openu.ac.il/home/hassner/Adience/data.html)
- [Motion and Change Detection - Video Database](http://wordpress-jodoin.dmi.usherb.ca/)
- [The Stanford Mobile Visual Search Dataset](http://web.cs.wpi.edu/~claypool/mmsys-dataset/2011/stanford/index.html)
- [Adience collection of unfiltered faces for gender and age classification](http://www.openu.ac.il/home/hassner/Adience/data.html)
**SOFTWARE & PROJECT & SOURCE CODE**
- [Automatic License Plate Recognition library - openalpr](https://github.com/openalpr/openalpr)
- [Repositiory for Eye Gaze Detection and Tracking](https://github.com/iitmcvg/eye-gaze)
- [webcam-pulse-detector](https://github.com/thearn/webcam-pulse-detector)
↧
convert cv::Mat from/to VTK point type
I found that viz module has some functions that bridge cv::Mat and vtkPoints, specifically the `vtkCloudMatSink` and `vtkCloudMatSource`. However, those classes are not exposed in header files of cv::viz. How can I use those classes? Or there are other ways to transfer/bridge/convert cv::Mat to vtkPoint? Thank!
↧
OpenCV 3.4.1 build error on CentOS release 6.7 (Final): ld error
.
Linking CXX shared library ../../lib/libopencv_ml.so
[ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/main.cpp.o
/usr/local/bin/ld: ../../lib/libopencv_core.so.3.4.1: __bss_start: invalid version 21 (max 0)
/usr/local/bin/ld: ../../lib/libopencv_core.so.3.4.1: error adding symbols: bad value
collect2: 错误:ld 返回 1
make[2]: *** [lib/libopencv_ml.so.3.4.1] 错误 1
make[1]: *** [modules/ml/CMakeFiles/opencv_ml.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.cpp.o
[ 50%] [ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/convhull.cpp.o
Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.cpp.o
[ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.cpp.o
[ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.dispatch.cpp.o
[ 50%] [ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.cpp.o
Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/cornersubpix.cpp.o
[ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/sumpixels.cpp.o
[ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/samplers.cpp.o
[ 50%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/clahe.cpp.o
[ 50%] [ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/phasecorr.cpp.o
Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/generalized_hough.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/contours.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/shapedescr.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/utils.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/grabcut.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/gabor.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/opencl_kernels_imgproc.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.sse4_1.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.sse4_1.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.avx.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/accum.avx.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.avx2.cpp.o
[ 51%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.avx2.cpp.o
[ 52%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/undistort.avx2.cpp.o
[ 52%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.avx2.cpp.o
Linking CXX shared library ../../lib/libopencv_flann.so
/usr/local/bin/ld: ../../lib/libopencv_core.so.3.4.1: __bss_start: invalid version 21 (max 0)
/usr/local/bin/ld: ../../lib/libopencv_core.so.3.4.1: error adding symbols: bad value
collect2: 错误:ld 返回 1
make[2]: *** [lib/libopencv_flann.so.3.4.1] 错误 1
make[1]: *** [modules/flann/CMakeFiles/opencv_flann.dir/all] 错误 2
Linking CXX shared library ../../lib/libopencv_imgproc.so
/usr/local/bin/ld: ../../lib/libopencv_core.so.3.4.1: __bss_start: invalid version 21 (max 0)
/usr/local/bin/ld: ../../lib/libopencv_core.so.3.4.1: error adding symbols: bad value
collect2: 错误:ld 返回 1
make[2]: *** [lib/libopencv_imgproc.so.3.4.1] 错误 1
make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] 错误 2
make: *** [all] 错误 2
↧