Questions tagged [opencv3.0]

OpenCV (Open Source Computer Vision) is a library for real time computer vision. (This tag is for questions about OpenCV 3.0. Use [opencv] for general questions.)

OpenCV is an open source computer vision library

Version 3.0 released in June 2015. Its documentation can be found here.

For more information, see .

2111 questions
7
votes
2 answers

How to extract relevant information from receipt

I am trying to extract information from a range of different receipts using a combination of Opencv, Tesseract and Keras. The end result of the project is that I should be able to take a picture of a receipt using a phone and from that picture get…
R.E.
  • 79
  • 1
  • 3
7
votes
1 answer

Python openCV matchTemplate on grayscale image with masking

I have a project where I want to locate a bunch of arrows in images that look like so: ibb.co/dSCAYQ with the following template: ibb.co/jpRUtQ I'm using cv2's template matching feature in Python. My algorithm is to rotate the template 360 degrees…
TonyZ
  • 123
  • 1
  • 8
7
votes
1 answer

How to manually set exposure on a Facetime HD camera in Python opencv 3.2.0 OSX El Capitan

I am trying to figure out how to manually set the exposure for my Facetime HD camera in the opencv program I am writing in Python. I am using opencv version 3.2.0, python 2.7, and running on OSX El Capitan. I am writing a program which will take a…
7
votes
1 answer

What is the best convolutional neural networks (CNN) library for OpenCV? (with simple implementation and example)

What is the best convolutional neural networks (CNN) library for OpenCV? (with simple implementation and example)
user5422312
7
votes
7 answers

Python: Print only one time inside a loop

I have a code where I want capture a video from a camera. I want to use Logging library of Python to get messages on the shell or export them to a text file. Here is a part of my code where inside the while loop I want to print Camera Opened…
Tes3awy
  • 2,166
  • 5
  • 29
  • 51
7
votes
1 answer

Why do I compile the same code on the Visual Studio and Qt, but get different results?

Here is the thing. I was re-writing my OpenCV code on Qt framework these days, and the code runs well on the Visual Studio 2013, but when I run it on the Qt, something weird happend. To simplify the problem, I write another code to do experiment,…
X.S. Wang
  • 217
  • 2
  • 8
7
votes
2 answers

python opencv matchTemplate is mask feature implemented?

OpenCV, as of version 3.0.0, added a mask feature to the matchTemplate method. It supports template matching with transparent templates by defining a mask on the template. My python program below works fine, but if I add a mask parameter to the…
jaredrada
  • 1,130
  • 3
  • 12
  • 25
7
votes
4 answers

python opencv cv2 matchTemplate with transparency

OpenCV 3.0.0 added the ability to specify a mask while performing templateMatch. When I specify a mask I get this error: error: (-215) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function…
jaredrada
  • 1,130
  • 3
  • 12
  • 25
7
votes
2 answers

Opencv, DSO missing from command line collect2: error: ld returned 1 exit status

I installed OpenCV to Ubuntu 14.04. I'm trying to fallow tutorials at opencv website. I got an error while running this code. I'm using eclipse to run the code. I'm getting this error while building project. I added, opencv_core,…
seleucia
  • 1,046
  • 4
  • 17
  • 30
7
votes
1 answer

What is the purpose of ACCESS_FAST in OpenCV 3.0?

To get cv::UMat from a cv::Mat in OpenCV 3.0, you use this function : UMat cv::Mat::getUMat(int accessFlags, UMatUsageFlags usageFlags=USAGE_DEFAULT ) the variable accessFlags is an enumeration type that takes one of the values below: enum {…
ProEns08
  • 1,856
  • 2
  • 22
  • 38
7
votes
3 answers

OpenCV imwrite gives washed-out result for jpeg images

I am using OpenCV 3.0 and whenever I read an image and write it back the result is a washed-out image. code: cv::Mat img = cv::imread("dir/frogImage.jpg",-1); cv::imwrite("dir/result.jpg",img); Does anyone know whats causing…
zindarod
  • 6,328
  • 3
  • 30
  • 58
7
votes
6 answers

Caffe: opencv error

I've built opencv 3.0 from source and can run a few sample apps, build against the headers ok so I presume it's installed successfully. I'm also using python3 and I now go to install and build caffe. I set a few variables in Makefile.config as I'm…
user1561108
  • 2,666
  • 9
  • 44
  • 69
7
votes
2 answers

input arguments of python's cv2.calibrateCamera

I get the following error when I try to calibrate camera using cv2.calibrateCamera: rms, camera_matrix, dist_coefs, rvecs, tvecs = cv2.calibrateCamera(pts3d, pts2d, self.imgsize, None, None) cv2.error:…
krips89
  • 1,683
  • 4
  • 17
  • 32
7
votes
3 answers

How to specify a color using Scalar class

I do not know how to specifiy a color using Scalar class in the below posted method? Features2d.drawKeypoints(mKeyPoints_0, mKeyPoints_0, outImage, Scalar color, Features2d.DRAW_RICH_KEYPOINTS);
Amrmsmb
  • 1
  • 27
  • 104
  • 226
6
votes
2 answers

java.lang.UnsatisfiedLinkError: dlopen failed: library "../../lib/libopencv_core.so" not found

I'm developing a face recognition application using android and openCV. My android studio version is 3.5.3 and openCV version is 3.4.10. The phone on which I'm running my application is arm64-v8a and I'm getting this error : 2020-04-15 15:00:40.425…
divine_rythm
  • 149
  • 3
  • 9