Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 2088 articles
Browse latest View live
↧

Freeing Ram by deleting image matrix

I have a simple code import cv2 import numpy as np Image = cv2.imread('blue.jpg') Threshold = np.zeros(Image.shape, np.uint8) cv2.threshold(Image, 121, 255, cv2.THRESH_BINARY, Threshold)...

View Article


Help with the basics

I'm really new to Open CV and could really use some guidance. I'm not even able to load an image to open cv, I'm using python.

View Article


OpenCV - first frame covers second frame

I am trying to take and display 2 photos, but as result I see first one two times. I have tried using two variables for frames and saving them as file. How can I fix the problem? #!/usr/bin/python...

View Article

Facial recognition server

Hi guys ! I'm new to OpenCV and i'm really excited about this ! I'm currently working on a home automation/security project. Briefly, you need to authenticate yourself trough a keypad after the door...

View Article

Problem reading an image inside a temporary file on raspberry pi 2.

I've been looking all night to find a solution or at least understant where the problem is comming from so here i am. I'm runnning a Flask server linked to my Apache with wsgi. I am recovering a...

View Article


How do I load an OpenCV generated yaml file in python?

It appears that OpenCV is writing yaml 1.0 but PyYaml only wants to read yaml 1.1 (http://pyyaml.org/#Whatimplementationshouldyouuse and...

View Article

Contour approximation. Avoid extra rectangle height

Binary image ![image description](/upfiles/14559470246425772.png) When I draw rectangle it gives me rectangle with maximum height. I dont want to use `enter code here` epsilon =...

View Article

Detecting isolated region in a heatmap?

I am a beginner to image analysis and am trying to write a program that does the following- What I have is the image of a heat map. Something that looks like ![image...

View Article


DLL load failed with opencv 3.1 and python 3.5

Hello, I installed library OpenCV 3.1 successfully - i used whl file, but i can't import cv2 anyway in my script. I saw this topic: [link...

View Article


Simple OpenCV test generates blank image from tutorial

ALL, New to Python and OpenCV - trying to follow the tutorials. Created Python 2.7.11 environments (32b & 64b) with Miniconda Included numpy 1.10.4 & matplotlib 1.5.1 Added opencv (3.1.0)...

View Article

Loading a pre-trained KNN classifier - python

I know there is a save command for the KNN classifier, that outputs the model in XML. Is there any corresponding load command to load that model back into python I am using cv2 3.0.0 and Python 2.7

View Article

How can I use the second argument of sift.detectAndCompute() ?

Hi, I'm using SIFT algorithm for comparing the features between two images. I'm curious to know about the second argument of sift.detectAndCompute() method. I'm using none in my script. I know the...

View Article

Chessboard and Circle calibration provide radically different results

I have a 35mm nominal focal length camera that I'm trying to calibrate using a PyQt front end I'm building onto OpenCV's python library. It finds and displays matched points. Everything works except...

View Article


Problem with pyzo and opencv

Good morning everybody !! I'm working on ubuntu 14.04 LTS and I use pyzo for programing python. For my studies, I must use opencv, so I have instaled it but he doesn't work on pyzo but he work on an...

View Article

Pixel value (ni, nj) to real world coordinate (x, y) (Python)

Here is what I'm trying to do. I wish to translate a pixel from an image I captured from my IP camera to a real world coordinate on a field. I have calibrated the camera, and so I have all extrinsic...

View Article


getRotationMatrix2D gives error

The python function getRotationMatrix2D as follows center = tuple(np.array(image.shape)/2) rot_mat = cv2.getRotationMatrix2D(center,angle,1.0) result = cv2.warpAffine(image, rot_mat,...

View Article

Extracting only blue from given image

Hi Guys I Have an input image as ![image description](/upfiles/14555562032060474.jpg) I Have used the following code to brighten blue import cv2 import numpy as np Image = cv2.imread('blue.jpg')...

View Article


Raspberry pi camera Y'UV420p to something native (YUV,HSV)?

What would be the **fastest** way to convert those **YUV420p bytes** into **similar openCV format**. I am doing this for threading or sockets offloading the color tracking. I am trying to use Unencoded...

View Article

Help required converting a few lines of Python to Java (Android)

Hi, I've been trying to implement the following Python example from the OpenCV docs into Java for OpenCV4Android:...

View Article

Handwriting recognition with SVM, changing training and testing values

http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_ml/py_svm/py_svm_opencv/py_svm_opencv.html In this example OpenCV gives, the training set is of 250 and testing amount is also...

View Article
Browsing all 2088 articles
Browse latest View live