-
Notifications
You must be signed in to change notification settings - Fork 20
Description
ImageFont.load_default(size=...) is invoked per BoundingBox instance, which can become expensive for many detections on large images. Consider caching fonts by font_size (e.g., a small module-level or class-level dict / functools.lru_cache) and reusing the same ImageFont object across instances with the same size.
Originally posted by @Copilot in #482 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels