Ask Your Question
0

What is the default working directory while using opencv?

asked 2016-02-25 20:11:41 -0600

Sitesh gravatar image

I'm using opencv by integrating with ANACONDA.Whenever I try to display an image,it throws the following error.

error Traceback (most recent call last) <ipython-input-3-6a5dc0fa20da> in <module>() ----> 1 cv2.imshow('stinkbug',img) 2 cv2.waitKey(0) 3 cv2.destroyAllWindows()

error: C:\builds\master_PackSlaveAddon-win64-vc12-static\opencv\modules\highgui\src\window.cpp:281: error: (-215) size.width>0 && size.height>0 in function cv::imshow please help me regarding the problem.

edit retag flag offensive close merge delete

Comments

  • your image did not load, please check the path there.
  • there is no "default working directory" in opencv
berak gravatar imageberak ( 2016-02-26 09:27:42 -0600 )edit

Ok thank you.I got the working directory.It is C:\user.But how can I change it?

Sitesh gravatar imageSitesh ( 2016-02-26 10:07:01 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-27 11:47:25 -0600

As the first comment said, the reason of error is due to path of image.

"The image should be in the working directory or a full path of image should be given." https://opencv-python-tutroals.readth...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-25 20:11:41 -0600

Seen: 2,139 times

Last updated: Feb 25 '16