Bug 401269 - Shape recognition for the freehand line tool
Summary: Shape recognition for the freehand line tool
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.5.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-21 10:39 UTC by Christos
Modified: 2018-11-22 08:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christos 2018-11-21 10:39:36 UTC
SUMMARY

This is a feature request, I don't know if this is the right place for this, but here it goes:

Add shape recognition for the freehand line tool: Drawing a circle creates a perfect circle, a hand drawn line become a straight line, triangles and other shapes are recognized.

https://youtu.be/Wqc64fdLtYo


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.14
(available in About System)
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION

Video: https://youtu.be/Wqc64fdLtYo
Comment 1 Laura David Hurka 2018-11-21 14:35:51 UTC
There was KGestures once (or still is?), which used libstroke.

gschem still uses libstroke. It claims, that it can detect when you are trying to draw an 'E' as gesture, but even struggles at detecting a 'D'. I had to draw it in exactly one style. Do you know which library (if any) xournal uses?

Shape recognition could make annotating much more fluent, because you don't have to chose the right annotation tool every time. (I assume that you can underline/highlight with shape recognition.)
Comment 2 Christos 2018-11-22 08:11:16 UTC
From what I've seen xournal doesn't have a gesture recognition as such, just a simple shape recognition, and yes it makes annotating much more fluent (that is why I'm asking for this feature).

There is an explanation of xournal's shape recognition here: https://sourceforge.net/p/xournal/support-requests/6/

And there is a github mirror of the official repository (I am lost at sourceforge) here: https://github.com/xournal/xournal/

Under this repository you can find the shape recognition algorithm here:
https://github.com/xournal/xournal/blob/master/src/xo-shapes.c


Also I've found an attempt at a rewrite of xournal in C++ called xournalpp: https://github.com/xournalpp/xournalpp

and I think I remember it also uses shape recognition (I guess taken from xournal) but for me it's a mess to install so I am not using it.