04-10-2008, 10:50 PM | #1 |
Member
Posts: 13
Karma: 56
Join Date: Mar 2008
Location: London
Device: iRex iLiad
|
Teasing :D
Hi *,
Check the attached pic I started to play a bit with the note taking feature of the iliad, which led me to wonder if it was possible to generate a pdf from the scribbles and the image used.. alas the java scribble merging application only seems to work for PDF scribble. I guess it would be trivial to modify the java app, but I had a look at the xml scribbling format, and when I saw it was so straightforward I quickly wrote myself a MacOSX viewer for the notes, using the png image as a background. But then... I suddenly remembered the Ink handwriting recognition engine. This thing comes straight from the ill-fated Apple Newton PDA (such a loss!), but what is nice is that it is available and installed by default on OSX Turns out it's not too difficult to feed Ink a set of custom datapoints, and after some tweaking it doesn't work too bad apparently, as can be seen on the screenshot... So far, this is only highly experimental code, and it'll probably take a bit more time to have a really usable application. |
04-11-2008, 01:53 AM | #2 |
Addict
Posts: 281
Karma: 904
Join Date: Oct 2007
Location: Kent, UK
Device: iRex iLiad, Psion 5MX, nokia n800
|
Very cool! This looks very promising. I don't suppose this is something that could be legally shared for use on non-Macs. I mean that ex-Newton code/application, is it?
|
Advert | |
|
04-11-2008, 04:53 AM | #3 | |
Member
Posts: 13
Karma: 56
Join Date: Mar 2008
Location: London
Device: iRex iLiad
|
Quote:
For windows, I don't know if the stuff they use on tabletpc is downloadable for free for non-tabletpc and if it's easy to hook something like that (probably is). For linux I don't know a good HWR lib but one may exist. If HWR engine are available, the app could be ported easily via GNUstep. Last edited by rio; 04-11-2008 at 05:03 AM. |
|
04-11-2008, 07:38 AM | #4 |
aka Anne Lyle
Posts: 85
Karma: 437516
Join Date: Feb 2008
Location: Cambridge, UK
Device: Sony PRS-600
|
That is way cool! When I got my iLiad and found out that HWR wasn't supported on the Mac I was very disappointed, but this could be the answer
If you need any beta testers, email me via the forum - I have some basic Unix knowledge, though I'm a relative newcomer to the Mac so I don't know diddly about OSX-specific scripting tools |
04-11-2008, 07:59 AM | #5 | |
Connoisseur
Posts: 97
Karma: 177
Join Date: Sep 2007
Device: Hanlin V2 & V6
|
Quote:
How do you hook into the library...? (I had a browse through the ADC notes, but as far as I can tell, it only works with tablets...?) |
|
Advert | |
|
04-11-2008, 08:30 AM | #6 | |
Member
Posts: 13
Karma: 56
Join Date: Mar 2008
Location: London
Device: iRex iLiad
|
Quote:
The only problem is that you are supposed to tell the engine when phrases are complete, and that seems to impact quite a bit the recognition. So far I just have a very crude way of segmenting the strokes in phrases, which kinda work but it shouldn't be difficult to come up with a vertical frequency method to classify the strokes, and that should be more robust. |
|
04-11-2008, 08:32 AM | #7 |
Wizard
Posts: 1,745
Karma: 4382514
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X
|
Sometimes even I couldn´t read my own handwriting - how should a software do it ?
|
04-11-2008, 08:32 AM | #8 | |
Member
Posts: 13
Karma: 56
Join Date: Mar 2008
Location: London
Device: iRex iLiad
|
Quote:
|
|
04-11-2008, 08:41 AM | #9 | |
Connoisseur
Posts: 97
Karma: 177
Join Date: Sep 2007
Device: Hanlin V2 & V6
|
Quote:
Unfortunately, if I understand you, & the Ink Services docs correctly, this would only work with actual "vector"/points data i.e. a PNG image file wouldn't work as an input. Damn. Hopefully, one day, I'll be able to hack the V2, & be able to obtain raw data from the touchpad... Ah well, wish you all the luck with this! |
|
04-11-2008, 09:26 AM | #10 | |
Member
Posts: 13
Karma: 56
Join Date: Mar 2008
Location: London
Device: iRex iLiad
|
Quote:
This irx file is a simple xml-encoded file containing the raw data from the scribbles. What I do then is I get the file on the mac, parse it to extract the data points, and use those along with the background png image to re-render the note in a cocoa view (which then allows me to print it or generate a pdf of it). The recognition phase simply consist in feeding the same data points that to the Ink HWR engine, and I get back the recognized text. An additional thing to do is to segment the points in phrases, and so far my method is really crude and I want to implement a better segmenting tool. So to sum it up, I don't see anything here that wouldn't work on the V2 (particularly considering I'm using the same OS version!) edit: hum, maybe I just completely misunderstood you and the V2 is some kind of other tablet-like hardware, not an Iliad V2, that would exports notes in PNG... then yes if that's the case, it won't be easy. Although you can try to vectorise the PNG (should work quite well) and use the vectorised points to feed the Ink engine. But that's certainly a lot more work! Last edited by rio; 04-11-2008 at 09:29 AM. |
|
04-11-2008, 09:30 AM | #11 |
Connoisseur
Posts: 97
Karma: 177
Join Date: Sep 2007
Device: Hanlin V2 & V6
|
|
04-11-2008, 10:14 AM | #12 |
Member
Posts: 13
Karma: 56
Join Date: Mar 2008
Location: London
Device: iRex iLiad
|
Yup
:-/ that makes things much harder indeed. One way would be to first vectorise the PNG (there's nice libs for that, iirc autotrace), then segment the points, then feed that back to a HWR engine. |
04-11-2008, 10:49 AM | #13 |
aka Anne Lyle
Posts: 85
Karma: 437516
Join Date: Feb 2008
Location: Cambridge, UK
Device: Sony PRS-600
|
|
04-11-2008, 10:51 AM | #14 |
Member
Posts: 22
Karma: 10
Join Date: Mar 2007
Location: France
Device: Sony Reader
|
About the Windows side of things : there's also the (MS) Ink from the TabletPC architecture available on MS systems, as said earlier. Users of Vista should have the component installed by default. Windows XP (-non TPC version) can download the SDK/extension from the MS site : http://www.microsoft.com/downloads/d...displaylang=en
|
04-11-2008, 11:22 AM | #15 | |
Member
Posts: 13
Karma: 56
Join Date: Mar 2008
Location: London
Device: iRex iLiad
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad Teasing 2: extract snippets/tag PDFs | daudi | iRex Developer's Corner | 15 | 05-26-2008 01:39 PM |