Skip to content

Conversation

@SangGuKim
Copy link

Please disregard the default font changes.
The main modifications are in yolo.py and yolov5_utils.py, which I patched to work properly on the N150 laptop with only an internal GPU. If you feel this is not an ideal solution, feel free to ignore it.

In addition:

  • label.py was fixed to correct the initial color in the color selection dialog.
  • text_graphical_effect.py was fixed to correct the shadow color (B and R channels were swapped).

The OCR module caused issues on XPU, and since I couldn’t find a proper fix, I worked around it by using Google Lens instead.

Thank you.

SangGuKim and others added 18 commits August 31, 2025 00:16
- Adjusted `xoff` calculation in `VerticalTextDocumentLayout.updateDrawOffsets()`
- Replaced tight bounding box (`act_rect`) with font metrics width (`cfmt.tbr.width()`)
- Ensures characters are centered consistently in vertical writing mode
- Prevents Korean glyphs from appearing misaligned or shifted to the right
- Conditionally activate "BallonsTranslator" Conda environment via conda activate
- Implement fallback mechanism to search and execute alternative activate.bat if Conda not initialized
- Directly activates BallonsTranslator environment with Python 3.12 via Conda
- Replaces manual environment checks with automatic activation script
- conditional execution of conda-env.bat for Python 3.12, ensuring compatibility with newer versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants