Replies: 2 comments 5 replies
-
Hi, @7assanx7 👋🏻! Your labels are resolved here:
If you want to display a different name you'll need to change this part |
Beta Was this translation helpful? Give feedback.
5 replies
-
How can I display the image of only 1 class that is detected? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i want to display prediction of bicycle in another language like arabic language so how can i do that in this code :
import cv2
import argparse
import pyttsx3
from ultralytics import YOLO
import supervision as sv
import numpy as np
def parse_arguments() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="YOLOv8 live")
parser.add_argument(
"--webcam-resolution",
default=[1280, 720],
nargs=2,
type=int
)
args = parser.parse_args()
return args
def main():
args = parse_arguments()
frame_width, frame_height = args.webcam_resolution
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, frame_width)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, frame_height)
if name == "main":
main()
in specific more i want if yolo detect class 0 or bicycle display text "the label in any language " on webcam frame
Beta Was this translation helpful? Give feedback.
All reactions