Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

ErrorCorner

ErrorCorner Logo ErrorCorner Logo

ErrorCorner Navigation

  • Home
  • Contact Us
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Contact Us
  • About Us
Home/opencv

Discy Latest Questions

Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 4
Kenil Vasani
Asked: December 14, 2020In: Python

Error (-215) size.width>0 && size.height>0 occurred when attempting to display an image using OpenCV

  • 4

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 ...

opencvpython
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 2
Kenil Vasani
Asked: December 14, 2020In: Python

ModuleNotFoundError: No module named ‘utils’

  • 2

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 ...

opencvpythontensorflow
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 2
Kenil Vasani
Asked: December 14, 2020In: Python

error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

  • 2

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 ...

image-processingimage-resizingmachine-learningopencvpython
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 7
Kenil Vasani
Asked: December 14, 2020In: Python

I am having trouble with this error (-215:Assertion failed) !ssize.empty() in function ‘resize’ in opencv

  • 7

I am trying to apply a Keras’ image classifier to my project, but down the road I got stuck with this. Though previously, with the same code I could use OpenCV to read and train images, but after switching to ...

kerasopencvpython
  • 1 1 Answer
  • 9 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 6
Kenil Vasani
Asked: December 14, 2020In: Python

AttributeError: module ‘cv2.cv2’ has no attribute ‘cv’

  • 6

I think I have some issues with the windows system or python 3.6 version. I am facing some attribute error. I have checked and double checked my code and there is no error and i also compare my code to ...

opencvpython
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 1
Kenil Vasani
Asked: December 14, 2020In: Python

No module named ‘cv2’

  • 1

After spending hours trying out others’ suggestions, I still can’t get OpenCV to work. I’d like to build a Python script that checks an image’s/PDF’s color at a certain area (it’s for a printing company to verify that documents have ...

cv2opencvpython
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 1
Kenil Vasani
Asked: December 14, 2020In: Python

OpenCV error – cv2.cvtcolor

  • 1

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 ...

image-processingopencvpython
  • 1 1 Answer
  • 8 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 9
Kenil Vasani
Asked: December 14, 2020In: Python

ImportError: No module named ‘cv2’ Python3

  • 9

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 ...

cv2opencvpythonpython-3.xpython-import
  • 1 1 Answer
  • 11 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 4
Kenil Vasani
Asked: December 14, 2020In: Python

cmake error ‘the source does not appear to contain CMakeLists.txt’

  • 4

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: ...

opencvpython
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 2
Kenil Vasani
Asked: December 11, 2020In: Python

Permission denied error by installing matplotlib

  • 2

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 ...

failed-installationmatplotlibopencvpippython
  • 1 1 Answer
  • 9 Views
Answer
1 2

Sidebar

Ask A Question
  • Popular
  • Kenil Vasani

    SyntaxError: invalid syntax to repo init in the AOSP code

    • 5 Answers
  • Kenil Vasani

    xlrd.biffh.XLRDError: Excel xlsx file; not supported

    • 3 Answers
  • Kenil Vasani

    Homebrew fails on MacOS Big Sur

    • 3 Answers
  • Kenil Vasani

    runtimeError: package fails to pass a sanity check for numpy ...

    • 3 Answers
  • Kenil Vasani

    FATAL EXCEPTION: Firebase-Messaging-Intent-Handle — java.lang.NoClassDefFoundError

    • 2 Answers

Explore

  • Most Answered
  • Most Visited
  • Most Voted
  • Random

© 2020-2021 ErrorCorner. All Rights Reserved
by ErrorCorner.com