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.
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.
Asked: 2016-02-15 22:14:31 -0600
Seen: 315 times
Last updated: Feb 15 '16
Area of a single pixel object in OpenCV
Weird result while finding angle
cv2.perspectiveTransform() with Python
cv2 bindings incompatible with numpy.dstack function?
Getting single frames from video with python
Line detection and timestamps, video, Python
Different behaviour of OpenCV Python arguments in 32 and 64-bit systems
have a look at the tutorials ,
e.g. here
then come back ?
Maybe you can watch this video first: opencv-python. Then you can try to understand this tutorial
Ok Thank you. For loading the image, what should be the Image location? It isn't loading images at the desktop and download folder (OS X)
if you're trying to do something like this
than the image location is where your Python script is. Otherwise you should specify path to image
Ok. How do I load an image at a custom path. Say my desktop?
img = cv2.imread('/home/user/Desktop/messi5.jpg')
I get this error. OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file
check if the path is correct
It is, double checked it. I'm using OPENCV-3.1.0, on OS X