Questions tagged [opencv3.1]

Use this tag only for questions that are specific to version 3.1 of OpenCV, for general questions use the [opencv] tag.

OpenCV is an open source computer vision library

Version 3.1 released in December 2015. Its documentation can be found here.

For more information, see .

340 questions
0
votes
0 answers

Why is my C++ OpenCV 3.4.1 Neural Network predicting so badly?

I am trying to develop an Artificial Neural Network in C++ using OpenCV 3.4.1 with the aim of being able to recognise 33 different characters, including both numbers and letters, but the results I am obtaining are always wrong. I have tested my…
0
votes
1 answer

Diagnosis of "Place of Load" in a truck

I have a picture of a truck from the side.Also, using the background removal, I have a binary image of the truck. I've also been able to locate wheels in the truck.Then remove the top of the wheels in the image.Like what you see in the picture…
kasra
  • 55
  • 7
0
votes
0 answers

How to determine object is detected or not with opencv

I am using ORB feature matching algorithm to detect the object . I have followed this Sample . I am able to detect the object which is used as template Mat. So i have the Rect of the object in the current Frame Mat . How can i make a decision…
Diaz diaz
  • 284
  • 1
  • 7
  • 21
0
votes
1 answer

OpenCV Aruco not compiling

Trying to compile opencv-3.4.1 with opencv_contrib-3.4.1 in Visual Studio 15 and I'm getting the following error. CMAKE ... -------------------------------------------------------------- Configuring done Generating done Visual Studio 1>------…
Bradmage
  • 1,233
  • 1
  • 15
  • 41
0
votes
1 answer

portation: opencv 2.4.3 -> opencv 3.1., cvGetMat was not declared in this scope

I am currently trying to port a code which is based on opencv 2.x to opencv 3.x (higher than 3.1). Within this code a function, namely cvGetMat(...) is being used. Since this function doesn't exist in opencv 3.x, I need a proper replacement. Does…
lonewolf07
  • 51
  • 1
  • 1
  • 6
0
votes
0 answers

Compare two objects in image

I need to compare two images to find the equality . I have searched a lot about AR and openCV. Already gone through compare two images in android and Tried OpenCV samples too . With OPENCV only ORB is free to use and it will compare images in…
Diaz diaz
  • 284
  • 1
  • 7
  • 21
0
votes
2 answers

can't load digits trained caffe model with opencv readnetfromcaffe

I've built digits from this tutorial recently, everything is ok and I finally trained my AlexNet model (also trained a SqueezNet so that I can upload the model here) ! the problem is when I download my model from Digits, I can not load it into my…
Amir
  • 155
  • 3
  • 16
0
votes
0 answers

OpenCV - HoughCircles gives 5-10% inaccuracy

Using EmguCV with C#, MS VS 2015. Goal is to recognise black circles on white sheet (with some dust). Circles radiuses is about 80 pixels, no adjoining circles. Given IntPtr ptrImg contains byte[] with grayscale image (8 bits per sample, one…
0
votes
1 answer

Render String as a Library Attribute in Python OpenCV

I want to render an array which contains a string value as a library attribute but Line number 3 throws an error. color_maps = ['AUTUMN','BONE', 'COOL', 'HOT', 'HSV', 'JET', 'OCEAN', 'PINK', 'RAINBOW','SPRING', 'SUMMER', 'WINTER'] image =…
alyssaeliyah
  • 2,214
  • 6
  • 33
  • 80
0
votes
1 answer

OpenCV 3.4.1-dev "libv4l2: error set_fmt gave us a different result then try_fmt!"

I am attempting to pull simple video from a USB camera, which I will then export to either .AVI or .PNG, as required. I have implemented OpenCV, version 3.4.1-dev, in both a Python3 script and a C++ program. Both the Python3 script and the C++…
0
votes
0 answers

OpenCV object detection is not finding object in image

I have trained my own cascade of cycles and trying to detect cycle in image and it is not working. I am using following code. While training cascade I used image size 24 X 24. used 20 negative images and 15 positive images. import cv2 import…
Rajan Sharma
  • 325
  • 1
  • 4
  • 11
0
votes
1 answer

How can I convert GPS coordinate to pixel on the screen in OpenCV?

I'm writing an application in c++ which gets the camera pose using fiducial markers and also as input get a lat/lon coordinate in the real world and as output streams a video with X marker which shows the location of the coordinate on the…
Alophind
  • 842
  • 2
  • 12
  • 27
0
votes
1 answer

unrolled label of a Cap using chessboard pattern (OpenCV c++)

I´m trying to use a chessboard pattern, to get the information of the cylinder map and rectifie the "distortion" so that image shows the cap surface unrolled. I made a first test with a one shot calibration and cv::fisheye::undistortImage to get a…
smoli1984
  • 1
  • 4
0
votes
0 answers

opencv_createsamples doesn't work correctly

I'm using opencv-3.3.1 on windows. I have a 'pos' file containing my positive images and a file called 'info.txt' which contains the address, number and the coordinates of object in positive images. In order to make a .vec file I use this…
M.Mehranian
  • 167
  • 5
0
votes
1 answer

Difference between numpy 3D array and openCV imread object

This is the code I used to generate CSV file for all images. """Generate data.csv from data folder in working directory. """ from cv2 import imread,cvtColor,COLOR_RGB2GRAY,resize from os import listdir from numpy import…