Add additional image processing #1

Merged
pradana.aumars merged 2 commits from Yun/videocr:master into master 12 months ago
Yun commented 12 months ago

Ordered process:

  1. dilation - thicken white portion of subtitles
  2. resize - temporary hardcoded to 47% (assuming subtitles are 68 pixels in height)
  3. apply hsv color mask - filter out non gray pixels and filter out pixels that are not bright enough
  4. invert image - make it black text on white background
  5. add border to top and bottom - assuming subtitles are cropped closely

Also update tesseract config options

Ordered process: 1. dilation - thicken white portion of subtitles 2. resize - temporary hardcoded to 47% (assuming subtitles are 68 pixels in height) 3. apply hsv color mask - filter out non gray pixels and filter out pixels that are not bright enough 4. invert image - make it black text on white background 5. add border to top and bottom - assuming subtitles are cropped closely Also update tesseract config options
Yun added 1 commit 12 months ago
7f6881749f Add additional image processing
Yun added 1 commit 12 months ago
pradana.aumars merged commit b005e36fcd into master 12 months ago
The pull request has been merged as b005e36fcd.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.