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

Font Detection #22

Open
maeriil opened this issue Oct 15, 2023 · 0 comments
Open

Font Detection #22

maeriil opened this issue Oct 15, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed High Priority Urgent requirement

Comments

@maeriil
Copy link
Owner

maeriil commented Oct 15, 2023

The font detection module does not currently work as intended.

The purpose of the module is to be able to detect the font and font size of the texts in the image. It is almost nearly impossible to detect font style so fixing this is not a priority currently.

Currently, the module is not calculating the original font size correctly. The algorithm works as follows currently:

  1. Set left = MINIMUM_FONT_SIZE * scale, right = MAXIMUM_FONT_SIZE * scale
  2. Binary search the right font size using the comparator is_font_size_small and is_font_size_big.
  3. Return the found font_size

However, the issue lies inside is_font_size_small and is_font_size_big which needs to be further investigated and fixed asap.

@maeriil maeriil added bug Something isn't working help wanted Extra attention is needed High Priority Urgent requirement labels Oct 15, 2023
@maeriil maeriil added this to the Backend API Release milestone Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed High Priority Urgent requirement
Projects
None yet
Development

No branches or pull requests

1 participant