jya-dev / supernote-tool

Unofficial python tool for Supernote
Apache License 2.0
237 stars 25 forks source link

Extract pen strokes from .note #31

Open Bootstrap360 opened 1 year ago

Bootstrap360 commented 1 year ago

Hello @jya-dev

Thank you for your contribution. I have spend a few hours poking around your source code and using the debugger to try and find where I can extract the list (x, y) values for each layer inside the .note file.

The closest I have gotten is the get_totalpath but I do not know how to dedecode this data.

francescoboc commented 6 months ago

I would also be interested in this, as it seems that the --pdf-type vector option is not using the actual pen strokes but rather tracing the png. So basically we are going from vector (original pen strokes) -> to raster (png conversion) -> to vector again, which seems unnecessary! Amazing tool btw!

jya-dev commented 1 month ago

Hi, As you suggest, I too believe that toolpath has the original pen strokes. When I look inside the toolpath data in a binary editor there are areas that clearly look like coordinate data, but I haven't yet found a way to parse this properly.