Tagged Questions
1
vote
1answer
127 views
XML or YML parsing in OpenCV with Python
With opencv you can save/load data with YML or XML format. It is easy with cv::FileStorage using c++ API. I cannot make it work with python API.
Here is an example of an YML file created using opencv ...
0
votes
1answer
31 views
OpenCV Python: Convert RGB to YCrCb
I can't seem to convert RGB to YCrCb in the new OpenCV python API (cv2). When I run this code:
img = cv2.imread('img1.jpg')
imgYCC = cv2.cvtColor(img, cv2.COLOR_RGB2YCrCb)
, I get this error:
...
0
votes
1answer
20 views
PyOpenGL, issue with 3D graphics on a screen using glFrustum and glTranslate
Overview:
I am trying to create a 3D application similar to this:
www.youtube.com/watch?v=h9kPI7_vhAU.
I am using OpenCV2.2, Python2.7 and pyOpenGL.
This can be achieved by this background maths ...
0
votes
0answers
8 views
openCV install Error using brew
i am trying to install opencv on my MacbookPro OSX 10.6.8 (snow leopard)
and Xcode version is 3.2.6
and result of "which python" is
Hong-Jun-Choiui-MacBook-Pro:~ teemo$ which python
...
0
votes
0answers
31 views
Efficent way to generate regular pattern of 2D shapes?
I am trying to find the most efficient way to generate a series of images based on a number of input variables. The output should be a series of "zones" connected by "channels" to a central region in ...
0
votes
1answer
32 views
Using mouse event callbacks within Python classes
I'd like to write a program that in its simplest form opens a window showing a webcam capture using OpenCV and printing the coordinates of the mouse cursor hovering over the window in terminal. For ...
2
votes
0answers
180 views
Practical implementation of OpenCV Kalman filter w/python?
I'm neither an expert in OpenCV or python but after far too much messing around with poor c# implementations of cv libraries I decided to take the plunge.
Thus far I've got 'blob' (read-contour) ...
0
votes
0answers
8 views
building opencv-python with visual studio 2010sp 1
I built opencv 2.4 from sources, but after installation i can't access opencv from python.
Import cv2 fails with error:
ImportError: DLL load failed: The specified module could not be found.
I ...
0
votes
1answer
23 views
OpenCV VideoCapture cannot read video in Python but able in VS11
As title, I am not able to read video using VideoCapture in python with the following code:
v = 'C:\\test.mp4'
import cv2
cap = cv2.VideoCapture(v)
if cap.isOpened():
print "Finally"
else:
print ...
1
vote
2answers
62 views
How can i delete largest contour in a skeleton image in python?
I would like to delete the circumference (the outermost perimeter of a sign) of this wheel skeleton sign except what's inside.
I think about a function findcontours() and delete the largest contour ...
0
votes
1answer
28 views
TypeError: expected a single-segment buffer object
I am trying to use OpenCV and Python to detect circular shapes in a webcam capture. Im using a Hough transform for the circle detection, which in it self took several hours for me to figure out (and ...
0
votes
0answers
199 views
python cv2.circle sub-pixel drawing
Does anyone know how to use cv2.circle with the sub-pixel "shift" parameter?
import cv2
import numpy as np
i1 = np.zeros((256, 256, 3), np.float32)
cv2.circle(i1, (199,199), 10, (1,0,0), -1)
...
0
votes
2answers
218 views
Trying to use opencv with python on mac os x 10.6
I'm new to python and I'm trying to use the openCV libraries.
After lots of reading and lots of trial and error I decided to ask here.
I installed the openCV with macports, still I keep getting the ...
0
votes
1answer
34 views
error: mat.isContinuous() when calling cv.ShowImage
I just upgraded to Python 2.7.4 (from 2.7.3) and OpenCV 2.4.5 (from 2.4.0) as I needed some of the new functionality they come with.
I previously had a couple of lines of code which were working well ...
0
votes
1answer
19 views
Random Trees in OpenCV from python
according to the docs (open CV version 2.4) I can use random tree ensembles from python (http://docs.opencv.org/modules/ml/doc/random_trees.html)
after importing cv2 I can see the variable cv2.RTree, ...