Quantcast
Channel: OpenCV Q&A Forum - Latest question feed

OpenCV 3.3 - gstreamer error

Hello, I am trying to use H264 codec using the following initialization for VideoWriter: VideoWriter writer = VideoWriter("file.mp4", CV_FOURCC('H', '2', '6', '4'), 15, Size(DEFAULT_FRAME_Y,...

View Article


Trouble Loading Caltech Data

Hi, I have built the opencv_contrib repository from source along with the regular opencv repository. Following the information from this link...

View Article


Building minimal OpenCV with just Features2D

Hi I want to build a minimal version of OpenCV 3.2.0 which includes the features2d module, for including in an iOS project. I'm using the handy build_framework.py script to generate the library. By...

View Article

Unknown crash in ocl.cpp

I have an application that, ten minutes ago, was compiling and running perfectly. Now, it will not run, crashing on this line: ` g_isOpenCLAvailable = ::clGetPlatformIDs(0, NULL, &n) ==...

View Article

Count Non Zero error!

Here's a part of code # If foreground construct label mask and count the number of pixels labelMask = np.zeros(thresh.shape, dtype="uint8") labelMask[labels == label] = 255 numPixels =...

View Article


How to install kinect and OpenCV C++ in Visual Studio

Hello guys, I have a big problem. I am initiant in the kinect and i don't know install the Kinect with OpenCV C++ on the Visual Studio. My initial aim is open a frame of the Kinect and show this frame....

View Article

Relating flags and numbers for functions like imread or namedWindow.

I saw an example for the usage of `namedWindow` as shown below:> namedWindow("edges", 1) I believe that the number `1` is related to a flag such as `WINDOW_AUTOSIZE`. However, I am not able to find...

View Article

Keras -> TensorFlow -> OpenCV/dnn

I try to use a Tensorflow model (created with Keras) in OpenCV/dnn (3.3.0). But I get the following error message: OpenCV Error: Unspecified error (Unknown layer type Shape in op flatten_1/Shape) This...

View Article


troubles with Ellipse2Poly

Hi everybody! I'm new to OpenCV and I'm encountering a strange trouble with the ellipse2Poly function. Let's take this sample of code: std::vectorallPoints ; cv::ellipse(mat, cv::Point2d(150,150),...

View Article


How remove 'bubble' contours from image

I am trying to remove a kind of "bubble" contours from my images. I can draw them scrolling the list of PointOfMat retrieved with Imgproc.findContours, but I am not able to detect them between others....

View Article

Passing multiple parameters with the setMouseCallback function

Is it possible to do? As of know I am using the following to pass an image to the callback: static void onMouse( int event, int x, int y, int, void* param) { // Mount back the parameters Mat* ptrImage...

View Article

Which one is the faster between Python and Java for OpenCV?

Which one do you choose? And Why?

View Article

Use OpenCV to obtain PiCar MJPG-streamer video

I have built a SunFounder PiCar-V (Raspberry Pi 3 running Raspbian) which uses a Python server "running a software written for the MJPG-streamer project". I wish to capture the video stream with OpenCV...

View Article


Fixing the color format of the video feed

I am using the following code to access video feed from a camera (`lsusb` command in Jetson TX1 terminal lists the camera as **Pixart Imaging, Inc.**). **Code:** #include #include #include int main() {...

View Article

OpenCV crashes in production

Hi, I am running an application in production and I see my python process crash while performing opencv imdecode. Some of these images are bad images that usually crash the system but I need to make...

View Article


How can I publish my book in OpenCV Library?

I have written a book about OpenCV for beginners. The book is focused on the the problems a beginner faces when starts working with OpenCV. How can I publish the my book in OpenCV Library?

View Article

OpenCv3 AdaBoost RAW_OUTPUT

I am using openCV and adaBoost to detect people in laser range data. To get the label of a samples the the following function is used: cv::ml::StatModel::predict (sample, noArray(), 0) I also tried to...

View Article


how to turn contours into vectors?

Hi I have a simple irregular shape. I have a broken edges of this shape in black and white after pre-processing it. I extracted the contours from this image. I want to convert this contour to a simple...

View Article

Tracking Mocap markers in 3D from multiple cameras

I am wondering if there is a way to track mocap(Motion Capture) markers in 3D from multiple cameras using OpenCV. I am using 8 cameras for tracking and the data I have at hand is video recordings from...

View Article

Correct use of fisheye::distortPoints()

I am trying to figure out how to distort (not undistort!) an image. This is the code that I am using: #include #include #include #include #include using namespace std; using namespace cv; using...

View Article

Root mean square error (RMS error)

I am trying to calculate the RMS error between the two images (chess board). One is real and another is warped virtual image. In order to do it I have pointed 4 fixed corner points on two images...

View Article


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 ( 25.08.2017 ):** >>[Adience collection of...

View Article


Opencv for web/jsf ?

Hi, I created a JAR file using opencv to detect face in java I´m trying to implement in a java prime face project, but I get a error, dont found opencv dll In a normal application, I dont get any error...

View Article

help finding memory corruption in code that writes to a cv::Mat

Please note, I am not the author of the code that has the problem below. I am having trouble running the https://github.com/CMU-Perceptual-Computing-Lab/openpose that uses opencv. You can see the...

View Article

Writing jpeg 2000 images with 16 bit

Hi all, I know there has been a post about OpenCV's issue with writing jp2 images with 16 bit depth, but I'm posting this here in case there has been a workaround since the last post. All I did was to...

View Article


libopencv_java3 library not found

I have downloaded the opencv sdk which contains libraries for all architectures except x86_64 I needed libopencv_java3.so file for x86_64 which is used in...

View Article

Detect fixed string in the image

I need to find some fixed string in an image, there is a lot of string in the image and all of them digital print on it, but we need to find some string like this "asdf6543210" in the image. In my JAVA...

View Article

Streaming Logitec C922 at 60fps with C++

Hi I would like to capture images with a webcam (i.e. logitech C922) with C++. Does anyone succeed in capturing images with the webcam at 60fps and 720p? I read the code in the following thread and...

View Article

Montreal edges Orlando in MLS, moves into 4th spot in East

ORLANDO, Florida (AP) - Dominic Oduro scored in a second straight game to help Montreal beat Orlando City 1-0 on Sunday and move into fourth place in the Eastern Conference.Montreal sits one point...

View Article



Image may be NSFW.
Clik here to view.

najlepsze paski do wybielania zebow

Choć transport paliw najczęściej kojarzył będzie się nam z zwykłym tirem, który posiada zapakowaną naczepę albo również składami poruszającymi się po torach kolejowych i zmierzającymi do wskazanej...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>