Remove a Caption-Text from a picture
Originally, it was an experimental test aimed at removing a "caption-text" filter from a snap, while avoiding methods where the values would be too far apart, like the risk of "content-fill aware" applied to the entire banner, for example, where the deviations from the original colors are significant. However, this project is currently not actively maintained. Nevertheless, it may receive updates in the future.
- Recovery of the original pixel by "subtracting" a colour with alpha from an rgb colour (low differential margin)
- Doc File with text
First, extract the caption text with a raster graphics editor.
Then, run this selection with py .\ctr.py run-extra 'img.png' 0 0 0 150 221 120 255 32 0 150 2 11
(for example)
Download Source Code Project, Install dependencies and run this command :
py .\ctr.py run-extra image_path red green blue alpha value_correction threshold1 minval1 inpaintmethod1 threshold2 minval2 size inpaintmethod2
or download executable here : https://ypetit.web-edu.fr/captiontextremover/download/0.0.0/CaptionTextRemover.exe
Read the tutorial step by step here : https://ypetit.web-edu.fr/captiontextremover/get-started/ Running may take a few minutes to a few hours
Open the list of commands
py .\ctr.py help
Get the version of ctr project
py .\ctr.py version
Learn more about ctr project
py .\ctr.py about
Learn about author(s)
py .\ctr.py credits
Run ctr with 1 image file
py .\ctr.py run image_path red green blue alpha value_correction
Run ctr with 1 image file
py .\ctr.py run-extra image_path red green blue alpha value_correction threshold1 minval1 inpaintmethod1 threshold2 minval2 size inpaintmethod2
This project is opensource in order to share a concept. The code is not necessarily clean.
If you are interested in improving CaptionTextRemover, don't hesitate to join the project !
The next missions are :
-
Code maintenance (python best practices)
-
Reduce package usage
-
Reduce processing time