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
0
votes
0 answers

Accessing an IP camera in Ubuntu through Code::Blocks IDE

I am working on a task in which I have to access live stream of an IP Camera (Edimax IC-3110P) using OpenCV 3. My Host system is Windows 10 and I have used Virtualbox to run Ubuntu 16.04 (Xenial) 64-bit. I am using C++ and Code::Blocks(IDE). Finally…
Winbuntu
  • 127
  • 1
  • 4
  • 15
0
votes
0 answers

Error compiling opencv_3.4.0 from source

I encountered the following error while trying to make opencv-3.4.0 from source: main:StaticLib theo$ make -j8 [ 0%] Built target gen-pkgconfig [ 1%] Built target ittnotify [ 3%] Built target zlib [ 5%] Built target gen_opencv_python_source [ …
theo_novak
  • 5
  • 2
  • 3
0
votes
1 answer

How do I output the result return from cv2.read() into a file

I first read an image using im = cv2.read(image) and it supposed to return an np array. So I did im.dump('output.txt') in which the output file gave me a bunch of junk How do I visualize the array reading from input image? Any TensorFlow method I…
Liu Hantao
  • 620
  • 1
  • 9
  • 19
0
votes
0 answers

Is there a way to rotate the output of cv::Rect in opencv 3

I extracted parts of an image using the cv::Rect Mat myimg = imread("gopro.png"); Mat draw = Mat(myimg.size(), myimg.type(), Scalar::all(0)); Rect r2 = Rect(417, 144, 153, 85); myimg(r2).copyTo(draw(r2)); It copies the rectangle just fine. My…
0
votes
0 answers

Know exact value of gradients and colors not mean in OpenCV?

I want to know the dominant colors present in the image below. I know a algorithm in openCV named k-mean algorithm but one should know the k before hand so I want to know how to find that k and exact RGB value of colors that are dominant and not the…
Shashank Singh
  • 647
  • 1
  • 5
  • 22
0
votes
0 answers

Python3 : AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'

I am getting the following error: Python3 : AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d' for the line: sift = cv2.xfeatures2d.SIFT_create() I have tried installing opencv-contrib-python and uninstalling opencv-python and they…
NoobProg
  • 81
  • 1
  • 4
  • 10
0
votes
1 answer

How to build a face detection program using opencv and start a timer to record the time as long as face stays on the screen?

I want to build a face detection python OpenCV program which starts a timer as soon as a face is detected. If the face is removed in front of the webcam, timer sets to 0 and it restarts once a new face is detected. Till now what I have tried. import…
Ritesh
  • 29
  • 8
0
votes
0 answers

How to change inches to meters ?

Here's the code, how to change inches to meters ? box = cv2.boxPoints(marker) cv2.drawContours(image, [box.astype(int)], -1, (0, 255, 0), 2) cv2.putText(image, "%.2fft" % (inches / 12), (image.shape[1] - 200, image.shape[0] - 20),…
TupCen
  • 1
  • 1
0
votes
2 answers

Python OpenCV stream video error in executable

In my python application I'm using OpenCV, among other things, to stream a Video from an IP camera: cap = cv2.VideoCapture("http://usr:psw@192.168.1.1/video.cgi") and everithing works fine. But i needed to obtain an executable, and so I used…
luke88
  • 958
  • 19
  • 40
0
votes
1 answer

Error compiling Aruco on Mac OS X: Undefined symbols for architecture x86_64:

I am trying to compile Aruco using their short example. I am using Mac OS X (10.13.2), the compiler is clang (900.0.39.2), opencv (3.4.1_2 installed via brew) and Aruco (3.0.4). The simple example is: #include #include…
kungphil
  • 1,759
  • 2
  • 18
  • 27
0
votes
0 answers

Raspberry python script with opencv won't execute at startup

I have a Python 3 script on the Raspberry Pi 3 that uses opencv 3.4 to take pictures of from a Logitech webcamera and then upload it to dropbox. Code is adapted from pyimageserach. So far the script works when I manually execute it from terminal…
0
votes
0 answers

Detecting 3D Image Formats in Python

3D videos are usually saved either as Side-By-Side images, or Over-Under images. For example: SBS OU My TV can automatically detect when 3D content is being played - even when there's no specific file metadata. It does this by analysing the images…
Terence Eden
  • 14,034
  • 3
  • 48
  • 89
0
votes
1 answer

Python - Image Appearance in Window is different after it is saved on file using OpenCV

I have this code below: cv2.imshow('RGB Transform Image', rgb_transform) cv2.waitKey() cv2.imwrite('rgb_transformed_image', rgb_transform ) When I displayed the image, it look likes below: But after looking at the save file, the image looks like…
alyssaeliyah
  • 2,214
  • 6
  • 33
  • 80
0
votes
1 answer

Finding Clusters of Contours based on criteria

I have detected the contours in an image of a barcode, and fount the minrect for each bar. There are other objects in the image, so I'd like to isolate the barcode by finding clusters of similarly angled rectangles. I am new to C++ opencv, so I'm…
0
votes
0 answers

Is OpenCV compiled from sources faster than OpenCV installed using pip

Apologies if the question is not relevant to this forum, but i have read comments around turning certain flags on/off during compiling from source which makes opencv Faster. Is there some truth to this
lucidxistence
  • 409
  • 5
  • 15