Category : opencv

while running my code using cv2 i got this error: converted_image = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) #The function converts an input image from one color space to another cv2.error: OpenCV(4.5.3) C:UsersrunneradminAppDataLocalTemppip-req-build-c2l3r8zmopencvmodulesimgprocsrccolor.cpp:182: error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor’ Source: Python..

Read more

Im doing a PPE detection module and currently the program able to detect workers safety wears such as hat and vest. What i’m trying to do is setting up a restricted area with hard-coded rectangle, and whenever the program detected a worker coordinate intersect the restricted hard-coded rectangle it will prompt Human Detected in Restricted ..

Read more

I was using mmdetection but while installing the "setup.py" file this error appears File "setup.py", line 98 sources=[os.path.join(*module.split(‘.’), p) for p in sources], SyntaxError: only named arguments may follow *expression link from where I have cloned the repo : https://github.com/open-mmlab/mmdetection.git Please let me know the solution Source: Python-3x..

Read more

Initially this was a .npy file , i converted the .npy file to a .png file , saved it to a folder as a gray scale image , i’m trying to read the image , but cv.imread still wants me to read the image as a gray scale image ,hence i suffixed 0 while reading ..

Read more