#๐ Will someone help me making an object detector model
19 messages ยท Page 1 of 1 (latest)
@thin night
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
https://discord.com/channels/267624335836053506/1411767054947586108 bro dont open duplicate posts if ur old one is still active 
A) Your lack of planning isn't our emergency and
B)
!rule hw
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
i am sorry for my lack of planning and i never said anyone to make my project for me i am asking to assist me telling me how to do the work
Have you considered reading the first mesage in this channel that wasn't yours? Namely the bot reply that even pinged you?
heres the code
import cv2
import cvlib as cv
from cvlib.object_detection import draw_bbox
Start webcam
video = cv2.VideoCapture(0)
while True:
ret, frame = video.read()
if not ret:
break
# Detect objects (using YOLOv3-tiny by default)
bbox, label, conf = cv.detect_common_objects(frame, model='yolov3-tiny')
# Draw bounding boxes
output_image = draw_bbox(frame, bbox, label, conf)
# Show result
cv2.imshow("Object Detection", output_image)
# Press 'q' to quit
if cv2.waitKey(1) & 0xFF == ord('q'):
break
video.release()
cv2.destroyAllWindows()
!code
!code
import cv2
import cvlib as cv
from cvlib.object_detection import draw_bbox
Start webcam
video = cv2.VideoCapture(0)
while True:
ret, frame = video.read()
if not ret:
break
# Detect objects (using YOLOv3-tiny by default)
bbox, label, conf = cv.detect_common_objects(frame, model='yolov3-tiny')
# Draw bounding boxes
output_image = draw_bbox(frame, bbox, label, conf)
# Show result
cv2.imshow("Object Detection", output_image)
# Press 'q' to quit
if cv2.waitKey(1) & 0xFF == ord('q'):
break
video.release()
cv2.destroyAllWindows()
!close
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.