[Libreoffice-bugs] [Bug 114721] New: Special char: find the char by drawing it

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 27 20:39:22 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=114721

            Bug ID: 114721
           Summary: Special char: find the char by drawing it
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: legarrec.vincent at gmail.com
                CC: legarrec.vincent at gmail.com
            Blocks: 109232

Created attachment 138698
  --> https://bugs.documentfoundation.org/attachment.cgi?id=138698&action=edit
ocr_symbol.tar.xz

It would be really nice to be able to find char by drawing it.

I started working on it. Please find enclosed few patches. If you rather github
: https://github.com/bansan85/core/tree/ocr. I didn't used gerrit because
patches are actually really unstable.

What does patches do and how does it work ?

1) Add a check button to show a drawing area that allow drawing.
2) Draw the char. Left click to add black, right click to rub out.
3) Uncheck the draw check button and let the "almost" magic do:
4) Ĝet list of all "special character" and convert it in 15*15px bitmap.
5) Use lib fann to create and learn the neuronal network. Be careful, this step
is taking about 30-45 minutes. After the network created, the result is saved
in /tmp/fann.net so it can be reused after. The idea is to make a (online?)
database with generated network for each font to avoid this step.
6) Search the drawn char in the network and sort result by probability for each
char (output of the network).
7) Show sorted char in the window.

Theses steps is what it *should* do. But I'm having lots of trouble :

After my modifications, opening the special Character often crashes. I almost
done nothing during this step, so I don't know how to solve this problem. Maybe
I did something wrong when I added the check box or the drawing area.

Is it a problem to add a dependency with fann ? If it is, I can create my own
library, I already done it 10 years ago. By additional heavy work, the library
should use blas / opencl.

Part 6 looks to be buggy. I can't open the network generated using fann under
Libreoffice but I can open it by a simple "hello world fann". Maybe the
instability of the opening the window is the reason ???

Where should I put the code about fann and ocr ? In another class ? In the cui
lib ? In another lib ?


So actually, I need the help of someone that already done some development for
LibreOffice. I worked on the base but I'm stuck for writing the final code with
enough QA.

Any help will be appreciated.

Thanks,
Best regards,


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=109232
[Bug 109232] [META] Special character dialog bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171227/f35ce8e3/attachment.html>


More information about the Libreoffice-bugs mailing list