Skip to content

Support for Korean Characters in Annotator Function Fonts #1631

Closed Answered by onuralpszr
YoungjaeDev asked this question in Q&A
Discussion options

You must be logged in to vote

@YoungjaeDev 👋 Hello, Instead of workaround we already have a solution for Label Annotations and that is RichLabelAnnotator

RichLabelAnnotator doc

import cv2
import supervision as sv
import

image = cv2.imread(<SOURCE_IMAGE_PATH>)

model = get_model(model_id="yolov8n-640")
results = model.infer(image)[0]
detections = sv.Detections.from_inference(results)

rich_label_annotator = sv.RichLabelAnnotator(font_path=<TTF_FONT_PATH>)
annotated_image = rich_label_annotator.annotate(scene=image.copy(), detections=detections)

But If you mean to run on other text require annotator like "PolygonZoneAnnotator," I am sorry we don't have support but for workaround you can do overrides to make use but for…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by YoungjaeDev
Comment options

You must be logged in to vote
1 reply
@onuralpszr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #1630 on October 30, 2024 03:28.