VoxelCubes / PanelCleaner

An AI-powered tool to clean manga panels.
GNU General Public License v3.0
208 stars 16 forks source link

Add CSV OCR Output #18

Closed UserJHansen closed 1 year ago

UserJHansen commented 1 year ago

Hi,

I think it would be useful to get a csv file out of the ocr mode for identifying where the text is and to make it easier to work with.

I will work on implementing this and there should be a pull request soon, the csv output should follow this pattern:

filename startx starty endx endy text
VoxelCubes commented 1 year ago

Oh, yes that's a good idea, it'd make it easier to pipe that into other programs. It'd be best to add it as another flag like --csv for the ocr mode. If you have any questions or issues, I'll gladly help.

VoxelCubes commented 1 year ago

Oh, I just gave it a look and you already thought of implementing it as a --csv option, excellent. I'll review the PR shortly, thanks!