Skip to content
New issue

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

Can the torchvision module add a method to draw text on images? #1429

Open
williamlzw opened this issue Dec 27, 2024 · 4 comments
Open

Can the torchvision module add a method to draw text on images? #1429

williamlzw opened this issue Dec 27, 2024 · 4 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@williamlzw
Copy link

williamlzw commented Dec 27, 2024

Can the torchvision module add a method to draw text on images?

@williamlzw williamlzw changed the title Suggest adding a text drawing method on images to the torchvision module Can the torchvision module add a method to draw text on images? Dec 27, 2024
@GeorgeS2019
Copy link

from PIL import Image, ImageDraw, ImageFont

@ozanMSFT ozanMSFT added the question Further information is requested label Jan 2, 2025
@williamlzw
Copy link
Author

What I mean is that the torchvision module adds a method to draw text on the picture based on SkiaSharp. In this way, there is no need to call other third parties such as opencvsharp to draw text.

@williamlzw
Copy link
Author

The function is used to identify the detection category of the target detection task results.

@ozanMSFT
Copy link
Contributor

hey @williamlzw , thanks for the suggestion.

I assume you're asking a similar function like draw-bounding-boxes

Built-in solution with System.Drawing only works on Windows systems. So, even we add this feature we might use other third party libraries as suggested here. alternatives

I would suggest to use SkiaSharp for the cross-platform support until we decide on this feature.

@ozanMSFT ozanMSFT added Missing Feature enhancement New feature or request and removed Missing Feature labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants