Last answered:

07 Jul 2022

Posted on:

20 Apr 2021

2

Python Programmer Bootcamp: Starting to work in Visual Studio

I receive the following error message when running this code:

img = cv2.GaussianBlur(img, (5,5), 0)

error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-oduouqig\opencv\modules\imgproc\src\hough.cpp:2253: error: (-215:Assertion failed) !_image.empty() && _image.type() == CV_8UC1 && (_image.isMat() || _image.isUMat()) in function 'cv::HoughCircles'

Any idea why this is happening?

1 answers ( 0 marked as helpful)
Posted on:

07 Jul 2022

1

I think I have solved this problem: the first time we use Visual Studio Code, we should have on the left side a button with the wording "Open folder". We have to click on that folder and to select the folder in which we have the image and the .py file. I hope this can be useful to other people.

Submit an answer