opencv3.0

cannot unpack non-iterable numpy.float64 object python3 opencv

雨燕双飞 提交于 2021-01-15 18:40:16
问题 I am getting this error and cant understand why the issue is appearing. Below will be the code and error. The result of the last printable workout [-8.54582258e-01 9.83741381e+02] left [ 0.776281243 -160.77584028] right The code error happens in make_coordinates and the line is slope, intercept = line_parameters Here's the full code: import cv2 import numpy as np vid = cv2.VideoCapture('carDriving.mp4') def processImage(image): gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blur = cv2

cannot unpack non-iterable numpy.float64 object python3 opencv

我们两清 提交于 2021-01-15 18:25:00
问题 I am getting this error and cant understand why the issue is appearing. Below will be the code and error. The result of the last printable workout [-8.54582258e-01 9.83741381e+02] left [ 0.776281243 -160.77584028] right The code error happens in make_coordinates and the line is slope, intercept = line_parameters Here's the full code: import cv2 import numpy as np vid = cv2.VideoCapture('carDriving.mp4') def processImage(image): gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blur = cv2

cannot unpack non-iterable numpy.float64 object python3 opencv

狂风中的少年 提交于 2021-01-15 18:12:49
问题 I am getting this error and cant understand why the issue is appearing. Below will be the code and error. The result of the last printable workout [-8.54582258e-01 9.83741381e+02] left [ 0.776281243 -160.77584028] right The code error happens in make_coordinates and the line is slope, intercept = line_parameters Here's the full code: import cv2 import numpy as np vid = cv2.VideoCapture('carDriving.mp4') def processImage(image): gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blur = cv2

cannot unpack non-iterable numpy.float64 object python3 opencv

谁都会走 提交于 2021-01-15 18:08:26
问题 I am getting this error and cant understand why the issue is appearing. Below will be the code and error. The result of the last printable workout [-8.54582258e-01 9.83741381e+02] left [ 0.776281243 -160.77584028] right The code error happens in make_coordinates and the line is slope, intercept = line_parameters Here's the full code: import cv2 import numpy as np vid = cv2.VideoCapture('carDriving.mp4') def processImage(image): gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blur = cv2

cannot unpack non-iterable numpy.float64 object python3 opencv

空扰寡人 提交于 2021-01-15 18:07:47
问题 I am getting this error and cant understand why the issue is appearing. Below will be the code and error. The result of the last printable workout [-8.54582258e-01 9.83741381e+02] left [ 0.776281243 -160.77584028] right The code error happens in make_coordinates and the line is slope, intercept = line_parameters Here's the full code: import cv2 import numpy as np vid = cv2.VideoCapture('carDriving.mp4') def processImage(image): gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blur = cv2

opencv_createsamples: command not found

ⅰ亾dé卋堺 提交于 2021-01-04 06:41:26
问题 Everytime I run the command opencv_createsamples , I am hit with this error. I know that I need to run opencv from the src but I am not sure how to fully do so. Can somebody give me a detailed and simplified explanation of how I would go about this? 来源: https://stackoverflow.com/questions/61977772/opencv-createsamples-command-not-found

Open CV RTSP camera buffer lag

核能气质少年 提交于 2021-01-02 02:50:27
问题 I'm struggling to understand why I cant get a "LIVE" feed from my IP camera. It appears that there is a buffer and it causes the frames to build up if not being read - and as each iteration of my code takes some time there is a backlog and it ends up being almost slow mo to whats actually happening. I found the below code which triggers a thread to do the reading of the camera on a loop to try and avoid this. But now i'm getting a "LIVE" feed for around 5 frames and then it stalls and shows

split image on the basis of color

巧了我就是萌 提交于 2021-01-01 08:30:48
问题 I have obtained an image after applying k-means with clusters = 3. Now I want to obtain 3 separate images on the basis of colours obtained after k-means. For example, consider the attached image. Now I need one image such that it contains only the blue square. One having the letter v and one with just the background Is there any possible way to do that using OpenCV and python. 回答1: The most general and simplest way to do it is using the three unique gray colors for each region. (Although I

Cant make opencv work on heroku

纵然是瞬间 提交于 2020-12-29 06:46:48
问题 I'm trying to make opencv work on Heroku but i have the following error on the server's log file : 2017-10-05T23:17:08.145096+00:00 heroku[web.1]: State changed from crashed to starting 2017-10-05T23:17:19.477843+00:00 heroku[web.1]: Starting process with command `python Main.py` 2017-10-05T23:17:23.469550+00:00 heroku[web.1]: State changed from starting to crashed 2017-10-05T23:17:23.458477+00:00 heroku[web.1]: Process exited with status 1 2017-10-05T23:17:23.268234+00:00 app[web.1]:

Cant make opencv work on heroku

风流意气都作罢 提交于 2020-12-29 06:46:08
问题 I'm trying to make opencv work on Heroku but i have the following error on the server's log file : 2017-10-05T23:17:08.145096+00:00 heroku[web.1]: State changed from crashed to starting 2017-10-05T23:17:19.477843+00:00 heroku[web.1]: Starting process with command `python Main.py` 2017-10-05T23:17:23.469550+00:00 heroku[web.1]: State changed from starting to crashed 2017-10-05T23:17:23.458477+00:00 heroku[web.1]: Process exited with status 1 2017-10-05T23:17:23.268234+00:00 app[web.1]: