I am trying to run a simple program that reads an image from OpenCV. However, I am getting this error: error: ......\modules\highgui\src\window.cpp:281: error: (-215) size.width>0 && size.height>0 in function cv::imshow Any idea what this error means? Here is my code: from matplotlib import pyplot ...
Discy Latest Questions
I’m trying to run the object_detection API in Tensorflow using my webcam as an input. The error says: “from utils import label_map_util ModuleNotFoundError: No module named ‘utils'” Which relates to the lines: from utils import label_map_util from utils import visualization_utils as vis_util I’ve ...
I am building an image processing classifier. This line is giving me an error: input_img_resize=cv2.resize(input_img,(128,128)) The error: ('error: /io/opencv/modules/imgproc/src/imgwarp.cpp:3483: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize') My code: PATH = os.getcwd() # Define data path data_path = PATH + '/data' data_dir_list = os.listdir(data_path) img_rows=128 img_cols=128 num_channel=3 num_epoch=30 num_classes ...
I am a newbie to openCV and I am stuck at this error with no resolution. I am trying to convert an image from BGR to grayscale format using this code- img = cv2.imread('path//to//image//file') gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) This seems to be working ...
I have such a problem (face_det) [email protected]:~$ python3 Python 3.5.3 (default, Apr 22 2017, 00:00:00) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module ...
I’m installing opencv in ubuntu 16.04. After installing the necessary prerequisites I used the following command:- [email protected]:~/opencv_contrib$ mkdir build [email protected]:~/opencv_contrib$ cd build [email protected]:~/opencv_contrib/build$ [email protected]:~/opencv_contrib/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX+/usr/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules -D BUILD_EXAMPLES=ON .. but it produced an error:- CMake Error: ...
I installed opencv with all dependencies. After the installation I tried to import matplotlib for a simple example. Then I got the following error, when I tried to install matplotlib via pip with pip install matplotlib: Could not install packages due to ...