Category : computer-vision

I take the mathematical expression from Computer Vision: Models, Learning and Inference book. Where am i wrong here? import cv2 grayImage = cv2.imread(‘lena.jpeg’, cv2.IMREAD_GRAYSCALE) cv2.imshow(‘Gray Lena’, grayImage) sum1 = 0 for i in range(0, 512): for j in range(0, 512): sum1 += grayImage[i, j] mean = sum1 / (512*512) sum2 = 0 for i in ..

Read more

I am referring to the code from a website https://www.pyimagesearch.com/2017/02/13/recognizing-digits-with-opencv-and-python/ This is my code print(u'{}{}.{} u00b0c’.format(*digits)) cv2.imshow("Input", image) cv2.imshow("Output", output) cv2.waitKey(0) This the error message I am getting IndexError Traceback (most recent call last) <ipython-input-22-184573481772> in <module> 1 # display the digits 2 print(u'{}{}.{} u00b0c’.format(*digits)) 3 cv2.imshow("Input", image) 4 cv2.imshow("Output", output) 5 cv2.waitKey(0) IndexError: Replacement ..

Read more

Iam a beginner and I am learning to code an image classifier. My goal is to create a predict function. in this project I want to make a car prediction model, I have a problem when I will load_image from the keras.preprocessing function there is an error JpegImageFile’ object has no attribute ‘load_img’ this is ..

Read more

i was making a Computer Vision to Control Facebook & Instagram but I am facing an error (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor’ my code is import cv2 import numpy as np import pyautogui cap = cv2.VideoCapture(1) yellow_lower = np.array([22, 93, 0]) yellow_upper = np.array([45, 255, 255]) prev_y = 0 while True: ret, frame = ..

Read more

I’ve been working on detecting motorbike license plate using only OpenCV. My question is: Can I find and draw only the largest contour (which is around the license plate)? If not then what should I do for this problem? Are there any other methods for detecting motorbike license plate? Here is the source code import ..

Read more

Good People of the world, All related files are attached with the Github link: https://github.com/sandeepsinghsengar/PMPU I am getting the following error, also given in slurm .out file (Please click on the above Github link): tensorflow/python/framework/tensor_util.py", line 439, in make_tensor_proto raise ValueError("None values not supported.") What Program is doing: elbo method has been called at line ..

Read more