augraphy icon indicating copy to clipboard operation
augraphy copied to clipboard

Word based scribbles based on user input

Open kwcckw opened this issue 3 years ago • 2 comments

From this discussion https://github.com/sparkfish/augraphy/issues/76, we would need word based scribble effect.

Initially, i think we may improve current scribble augmentation to accept text file or user input. Then we need to draw those words by using certain font type (which i have no idea yet) so that it looks like a scribble. Along with the drawing process, we may need some other effect such as rotation, scaling and shifting too. Or is there any other better way to do this?

kwcckw avatar Jan 04 '22 13:01 kwcckw

We might be able to use this: https://github.com/builtree/handwrite

proofconstruction avatar Jan 26 '22 18:01 proofconstruction

We might be able to use this: https://github.com/builtree/handwrite

Thanks, will look into that after this.

kwcckw avatar Jan 27 '22 02:01 kwcckw

If we can find a good way to convert SVG to a rasterized image, then we could use this handwriting generator:

https://github.com/sjvasquez/handwriting-synthesis https://www.calligrapher.ai/

jboarman avatar Mar 19 '23 18:03 jboarman

If we can find a good way to convert SVG to a rasterized image, then we could use this handwriting generator:

https://github.com/sjvasquez/handwriting-synthesis https://www.calligrapher.ai/

Yes, that should be possible. In this discussion they did mention on converting svg into numpy: https://stackoverflow.com/questions/55440483/how-can-i-optimize-the-palette-image-size-with-pil/55442505#55442505

kwcckw avatar Mar 20 '23 00:03 kwcckw

This is now resolved in this update: https://github.com/sparkfish/augraphy/pull/278

kwcckw avatar Oct 13 '23 01:10 kwcckw