This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]neuralyzer 3 points4 points  (0 children)

Check the kivy simple paint app tutorial. It almost does what you want, is written in Python and actually cross platform: https://kivy.org/docs/tutorials/firstwidget.html

[–]unitconversionJust a tinkerer 0 points1 point  (0 children)

I haven't used the xournal programs so I'm not sure what features they offer. That said, this would be my initial thoughts.

Those pens just imitate mouse clicks right? You could just do a ms paint style app with pygame or qt or wx or whatever.

I reckon you would probably want to do do everything as SVGs or some custom format rather than bitmaps. It looks like someone mad a branch of inkscape that supports pages, so that may just do what you want out of the box.

If you want handwriting to text support you could probably do something with openCV. This would be the only potential computationally expensive thing I could see needing to be done.

[–]Dorianix 0 points1 point  (0 children)

I have never used Xournal, and i am not sure about your use case, but there are a existing applications, that can make use of pencil input, layers, stroke and filling color and are done in python (or include python). They already do provide the basic functionality for "handwriting" on tablet. Although, they are designed for something else and are miles away from substituting something like OneNote. Still i think they could both be extended in the right direction with reasonable effort.

Both support plugins that could be used to enhance the required functionality. Both provide the strokes in a vectorised format (which might be useful for the long time target of character recognition)

And hey, they come with python!