We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I run this below code. it does not detect objects. detecting window also not working. please anyone help me
import cv2 import matplotlib.pyplot as plt import cvlib as cv import urllib.request import numpy as np from cvlib.object_detection import draw_bbox import concurrent.futures
url='http://192.169.1.4/cam-hi.jpg' im=None
def run1(): cv2.namedWindow("detection", cv2.WINDOW_AUTOSIZE) while True: img_resp=urllib.request.urlopen(url) imgnp=np.array(bytearray(img_resp.read()),dtype=np.uint8) im = cv2.imdecode(imgnp,-1)
bbox, label, conf = cv.detect_common_objects(im, confidence=0.6, model="yolov3-tiny") print(bbox, label, conf) im = draw_bbox(im, bbox, label, conf) cv2.imshow("live transmission",im) key=cv2.waitKey(5) if key==ord('q'): break
cv2.destroyAllWindows()
if name == 'main': print("started") with concurrent.futures.ProcessPoolExecutor() as executer: f1= executer.submit(run1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I run this below code. it does not detect objects. detecting window also not working. please anyone help me
import cv2
import matplotlib.pyplot as plt
import cvlib as cv
import urllib.request
import numpy as np
from cvlib.object_detection import draw_bbox
import concurrent.futures
url='http://192.169.1.4/cam-hi.jpg'
im=None
def run1():
cv2.namedWindow("detection", cv2.WINDOW_AUTOSIZE)
while True:
img_resp=urllib.request.urlopen(url)
imgnp=np.array(bytearray(img_resp.read()),dtype=np.uint8)
im = cv2.imdecode(imgnp,-1)
cv2.destroyAllWindows()
if name == 'main':
print("started")
with concurrent.futures.ProcessPoolExecutor() as executer:
f1= executer.submit(run1)
The text was updated successfully, but these errors were encountered: