79386005

Date: 2025-01-25 01:01:18
Score: 0.5
Natty:
Report link

If you have Black and White Text, that means that your background is something else.

  1. You might be able to use Canny Edge Detection to detect the characters, and then fill them in.

  2. You might be able to use an adapted Global Thresholding technique, where you find two thresholds, one for White Text and the other for Black Text. When you convert your image to grayscale, and assuming your background is gray since you didn't provide an image, anything between these two thresholds would be background and can be removed. Everything else would be foreground and would be your Text.

If your text was an actual color other than White, you would have to try to isolate it before any grayscale conversion.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Brandon Petty