Add additional image processing #1

Merged
pradana.aumars merged 2 commits from Yun/videocr:master into master 2021-07-13 16:16:53 +02:00
Contributor

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 2021-07-13 09:14:12 +02:00
7f6881749f Add additional image processing
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
Yun added 1 commit 2021-07-13 10:20:48 +02:00
pradana.aumars merged commit b005e36fcd into master 2021-07-13 16:16:53 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pradana.aumars/videocr#1
No description provided.