News for hackers. Stuff that matters.
Re:$1 Unistroke Recognizer by endergen on Saturday September 19, 2015 @09:23PM (#10246209)
I wrapped their latest recognizer the $P Point-Cloud Recognizer, as a node.js module here: https://github.com/francoislaberge/outlines

Their implementation is quite clean, it really is a nice clean algorithm. It takes reading it to understand the type of shapes (templates) that work best and also as a user how best to draw them. I added a demo that shows you as you draw what it's internal state is and best guess so far: http://francoislaberge.com/outlines/demo/index.html

Re:$1 Unistroke Recognizer by sgentle on Saturday September 19, 2015 @10:29PM (#10246360)
Very cool. It's interesting that, depending on how I draw it, I get a much higher match for "D" when I draw a box than when I draw a D.

It seems like it might be tricky to train it on what not to recognise. Or maybe you just need a lot of template gestures.

Re:$1 Unistroke Recognizer by endergen on Sunday September 20, 2015 @12:24AM (#10246554)
Yeah, I think you really have to design your set of recognized gestures to make them have a low chance of ambiguity.

Hmmm, and yeah you could add templates that are variants of an intended output. To improve the chance of matching important gestures

Re:$1 Unistroke Recognizer by ryanmarsh on Sunday September 20, 2015 @10:36AM (#10247648)
I really love the feedback in the demo as to what the recognizer is guessing. If my Palm had that I believe I might have been even faster at writing graffiti. It allows you to quickly correct a "letterform" to get the desired glyph.
Re:$1 Unistroke Recognizer by wodenokoto on Sunday September 20, 2015 @01:00AM (#10246607)
There's also a 1¢ recognizer, which supposedly improves this one in every way, yet has gone about fairly unnoticed, comparatively.

http://dl.acm.org/citation.cfm?id=2331074

Re:$1 Unistroke Recognizer by logicallee on Sunday September 20, 2015 @03:52AM (#10246881)
Re:$1 Unistroke Recognizer by wodenokoto on Sunday September 20, 2015 @09:33AM (#10247437)
you need to expand on your point, because I don't get at all.
Re:$1 Unistroke Recognizer by logicallee on Sunday September 20, 2015 @01:39PM (#10248311)
"There's also a 1¢ recognizer, which supposedly improves on the $1 recognizer in every way, yet for some reason isn't valued as highly...."
Re:$1 Unistroke Recognizer by conradev on Saturday September 19, 2015 @09:26PM (#10246219)
Also, the following $N multistroke recognizer: https://depts.washington.edu/aimgroup/proj/dollar/ndollar.ht...

I built a pretty cool tweak for iOS 5 that integrated it into the operating system:

https://www.youtube.com/watch?v=35SX6A9fE0g

I haven't thought about it in a long time, but I still think that these gestures could be a great shortcut interface for a multi-touch OS, especially with pressure sensitivity. A deep press could activate the gesture recognizer.

Re:$1 Unistroke Recognizer by Sanddancer on Sunday September 20, 2015 @12:12AM (#10246530)
My brain can't help but think that we've kinda gone full circle here when simple-stroke gesture recognition is thought of as an interesting new interface idea. I mean, it's been about twenty years since a little app called Graffiti from a little company called Palm gave a brand new way of interfacing with an Apple handheld. Not knocking you at all, because it's a pretty cool app, just commentary on how history repeats itself.
Re:$1 Unistroke Recognizer by userbinator on Saturday September 19, 2015 @08:32PM (#10246085)
I wonder how the CPU and RAM requirements compare to this:

https://en.wikipedia.org/wiki/Graffiti_(Palm_OS)

Re:$1 Unistroke Recognizer by mentat on Saturday September 19, 2015 @10:33PM (#10246368)
Back in the day I got quite decent at using that to take notes in class. Was an interesting tool.
Re:$1 Unistroke Recognizer by jlebrech on Sunday September 20, 2015 @03:01AM (#10246795)
graffiti was excellent, we should look into reintroducing it for VR applications. you add touchpads to VR wands and you could have decent enough wpm.
Re:$1 Unistroke Recognizer by PhasmaFelis on Sunday September 20, 2015 @01:26AM (#10246649)
Article did not answer my first question, which is why this thing is called "$1". I clicked expecting to discover some sort of cheap hardware device.
Re:$1 Unistroke Recognizer by rspeer on Sunday September 20, 2015 @02:07AM (#10246708)
I'm confused by the name too. It seemed abundantly clear that they were hoping to collect a micropayment from people who used the software, until I read more and it turned out to just be the name of the software.
Re:$1 Unistroke Recognizer by pkamb on Sunday September 20, 2015 @12:55PM (#10248165)
> To enable novice programmers to incorporate gestures into their UI prototypes, we present a “$1 recognizer” that is easy, cheap, and usable almost anywhere in about 100 lines of code
Re:$1 Unistroke Recognizer by PhasmaFelis on Sunday September 20, 2015 @04:49PM (#10249049)
That's a little clearer, but it's also not in the linked article.
Re:$1 Unistroke Recognizer by murbard2 on Sunday September 20, 2015 @11:05AM (#10247765)
Note, this is released freely under the new BSD license; it is not being sold for the one U.S. dollar; it's just name.
Re:$1 Unistroke Recognizer by asgard1024 on Sunday September 20, 2015 @12:22AM (#10246550)
It seems (from my experiments) that recognition treats all rotations of objects equally. So for instance it recognizes right bracket as left if drawn backwards. I think there should be a caveat warning there.

I think it's a neat toy, but frankly I don't understand what attracts GUI designers to gestures. They seem lot more complicated than just buttons (even if you would have to push an extra button to get the menu), they are not obvious and you have to learn them to do correctly. Am I missing something?

Re:$1 Unistroke Recognizer by walrus on Sunday September 20, 2015 @12:37AM (#10246579)
I like gestures for the same reason I like keyboard shortcuts: you don't have to aim. There's a tradeoff in UIs: large number of targets with few actions, or large number of actions with few targets. An example of the former is a typical web page, where every link is a target and the only actions are open and open-in-tab. An example of the latter is vim, where there are only a couple targets (buffer and command bar) and every key is an action.
Re:$1 Unistroke Recognizer by imauld on Sunday September 20, 2015 @12:41AM (#10246585)
Am I supposed to not be able to see what I'm drawing?
Re:$1 Unistroke Recognizer by drcode on Sunday September 20, 2015 @12:14AM (#10246532)
It would be awesome if someone used this to create a note-taking tool for apple/android smart watches that used the graffiti alphabet: https://en.wikipedia.org/wiki/Graffiti_(Palm_OS)
Re:$1 Unistroke Recognizer by birslip on Sunday September 20, 2015 @05:39AM (#10247021)
I built a game around this recognizer ("Magic Touch": https://www.youtube.com/watch?v=Ze9k0lseb-8 ). It's a very neat way to do shape recognition in real time. It's very well suited for mobile devices although it's far from being perfect. The interesting bit was to make the recognition lenient enough but still good enough to recognize the shapes accurately. Think about the difference between a 'V' and a 'U'. Anyway I would love to see more real world uses of this clever recognizer!
Re:$1 Unistroke Recognizer by daurnimator on Saturday September 19, 2015 @10:20PM (#10246340)
Drawing anything with a clockwise motion I got a caret.
Re:$1 Unistroke Recognizer by akovaski on Saturday September 19, 2015 @10:31PM (#10246364)
I think this just recognizes your gestures (i.e. it does not recognize shapes you draw). I added an example of a clockwise triangle (using the site's "Add as example of existing type") and it was then able to recognize clockwise triangles.
Re:$1 Unistroke Recognizer by joosters on Sunday September 20, 2015 @05:05AM (#10246973)
Sam here. The direction/ordering of the stroke seems important, I wonder why?

They could 'fix' this by adding reverse forms of each of the strokes. I wonder why they haven't? Does doing so drastically reduce the detection accuracy?

Re:$1 Unistroke Recognizer by lindig on Sunday September 20, 2015 @07:56AM (#10247223)
I've downloaded the PDF for the paper linked on the page (http://faculty.washington.edu/wobbrock/pubs/uist-07.01.pdf) and some of the images are not showing. Is this a problem with OS X Preview.app or a general problem?
Re:$1 Unistroke Recognizer by hollerith on Sunday September 20, 2015 @01:30PM (#10248284)
The software assigns any sufficiently long user input to one of the 16 gestures.

In contrast, human-to-human communication consider much (most?) of the space of possible speech acts to be gibberish.

In other words, the software never gives up on trying to classify a user-input sequence no matter how wacky it is.

Re:$1 Unistroke Recognizer by yertle_vert on Sunday September 20, 2015 @01:59PM (#10248372)
Yes, but it does returns a match certainty value (0-1). If you used this library you could just assume gibberish if below 0.8 for example.
Re:$1 Unistroke Recognizer by dthal on Saturday September 19, 2015 @10:34PM (#10246371)
I've played around with this some, and the recognition isn't perfect, but I'm very impressed with how well it can pick up a new pattern from even just one example.
Re:$1 Unistroke Recognizer by dragontamer on Sunday September 20, 2015 @12:15AM (#10246537)
If you draw brackets from bottom up they are recorded inverted.

For example, } drawn from bottom up is "recognized" as {.

Re:$1 Unistroke Recognizer by regularfry on Sunday September 20, 2015 @09:09AM (#10247370)
That's because it's rotationally insensitive, which is a rather interesting property. I'm not sure how useful it is, but it certainly surprised me.
Re:$1 Unistroke Recognizer by mmusson on Sunday September 20, 2015 @02:14PM (#10248421)
When I used this code for a simple application, I made a small change to the recognized to limit the rotational invariance so that a gesture that was rotated more than a certain angle threshold would not match.
Re:$1 Unistroke Recognizer by dleibovic on Saturday September 19, 2015 @09:49PM (#10246275)
I had trouble getting it to recognize my "arrow"
Re:$1 Unistroke Recognizer by doomrobo on Saturday September 19, 2015 @10:24PM (#10246349)
The arrow has to be made by starting the head on the left side, drawing back to the center, and ending on the right
Re:$1 Unistroke Recognizer by QuercusMax on Saturday September 19, 2015 @10:21PM (#10246344)
Same here. It seems like it's very picky.
Re:$1 Unistroke Recognizer by intruder on Sunday September 20, 2015 @01:29AM (#10246659)
Stroke order matters. As does amount of strokes per gesture.

Once you get that, it's fairly accurate.

Re:$1 Unistroke Recognizer by airza on Sunday September 20, 2015 @01:18PM (#10248245)
is there a browser that still supports these gestures? Firefox did 10 years ago with an addon...
Re:$1 Unistroke Recognizer by aqwwe on Saturday September 19, 2015 @08:55PM (#10246134)
backward C gives me a caret
Re:$1 Unistroke Recognizer by bazzargh on Saturday September 19, 2015 @09:10PM (#10246169)
Add your drawing as a template, and try again. The point of the $1-family of recognizers is not what they recognize 'out of the box' but that they're very simple to code, and it's easy to extend them by adding example gestures.
Re:$1 Unistroke Recognizer by mrob on Saturday September 19, 2015 @09:48PM (#10246274)
"Check" is detected as "left square bracket" if the end of the stroke curves up slightly.