Using tegaki-recognize running on Mac OS X

77 views
Skip to first unread message

tee.aye.w

unread,
Nov 29, 2009, 3:27:54 AM11/29/09
to Tegaki Handwriting Recognition Project
Hello. I've been trying to get tegaki-recognize running on Mac OS X
10.6.2, but I've had not success so far. I downloaded the zinnia model
zip file, unzipped it, renamed it "zinnia" and I put it in "/Library/
Application Support/tegaki/models" directory, run tegaki-recognize but
when I push the "Models" button I keep getting the "No recognizers and/
or no models installed!" message.

There are no related messages on the Console, although at some point
the following message comes up:

11/29/09 5:14:04 PM [0x0-0x742742].org.pythonmac.unspecified.tegaki-
recognize[18663] Xlib: extension "RANDR" missing on display "/tmp/
launch-NmruZV/:0".


Anyone know what might be going wrong here?

Mathieu Blondel

unread,
Nov 29, 2009, 3:48:48 AM11/29/09
to Tegaki Handwriting Recognition Project


On Nov 29, 5:27 pm, "tee.aye.w" <tee.ay...@gmail.com> wrote:
> Hello. I've been trying to get tegaki-recognize running on Mac OS X
> 10.6.2, but I've had not success so far. I downloaded the zinnia model
> zip file, unzipped it, renamed it "zinnia" and I put it in "/Library/
> Application Support/tegaki/models" directory, run tegaki-recognize but
> when I push the "Models" button I keep getting the "No recognizers and/
> or no models installed!" message.

In /Library/Application Support/tegaki/models/, create a folder
"zinnia", and then in this folder, put the .meta and .model files that
were in the zip file. You can put several zinnia models in the
"zinnia" folder.

Mathieu

Thomas Weisbach

unread,
Nov 29, 2009, 5:11:09 AM11/29/09
to tegak...@googlegroups.com
Hmmm. I tried that but the result is the same.

> pwd
/Library/Application Support/tegaki/models/zinnia
> ls
handwriting-ja.meta handwriting-ja.model

Is there way to get more information about what might be going wrong? A debug setting perhaps?


--

You received this message because you are subscribed to the Google Groups "Tegaki Handwriting Recognition Project" group.
To post to this group, send email to tegak...@googlegroups.com.
To unsubscribe from this group, send email to tegaki-hwr+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tegaki-hwr?hl=en.



Mathieu Blondel

unread,
Nov 29, 2009, 6:03:19 AM11/29/09
to tegak...@googlegroups.com
On Sun, Nov 29, 2009 at 7:11 PM, Thomas Weisbach <tee....@gmail.com> wrote:

> /Library/Application Support/tegaki/models/zinnia
>> ls
> handwriting-ja.meta handwriting-ja.model

OK I've just checked and it's a bug. For now, you can use Library in
your personal folder instead:

$ ls /Users/mathieu/Library/Application\ Support/tegaki/models/zinnia/
handwriting-ja.meta handwriting-ja.model

I'll fix the bug for next release and update the website with the
folder that works for now.

Thanks

Thomas Weisbach

unread,
Nov 29, 2009, 6:26:00 AM11/29/09
to tegak...@googlegroups.com
Thanks! It's working for me now.

Mathieu Blondel

unread,
Dec 9, 2009, 1:00:23 AM12/9/09
to tegak...@googlegroups.com
No luck with macports?

tw

unread,
Dec 21, 2009, 11:41:46 AM12/21/09
to tegak...@googlegroups.com
OK. I just tried again and I noticed that tegaki-recognize is getting built at /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/tegaki-recognize , but that location isn't in my paths so 'which tegaki-recognize' isn't working, but I can run it with python.

Strangely this version of tegaki-recognize doesn't find the model I have installed in my user directory. I also noticed that I launch it I get the error 'Xlib: extension "RANDR" missing on display "/tmp/launch-OSU3aP/:0"'.

I'll have to look at this more later, but I'm glad that the build is (most) working.

On Dec 9, 2009, at 3:00 PM, Mathieu Blondel wrote:

> No luck with macports?

Mathieu Blondel

unread,
Dec 21, 2009, 11:24:47 PM12/21/09
to tegak...@googlegroups.com
On Tue, Dec 22, 2009 at 1:41 AM, tw <tee....@gmail.com> wrote:
> OK. I just tried again and I noticed that tegaki-recognize is getting built at /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/tegaki-recognize , but that location isn't in my paths so 'which tegaki-recognize' isn't working, but I can run it with python.

The only important thing is to run the python interpreter from
macports (the one in /opt) so that pygtk from macports can be found.
tegaki-recognize can be run directly from
tegaki-recognize/bin/tegaki-recognize in your copy of the git repo and
you can add tegaki-python/ and tegaki-pygtk/ to PYTHONPATH. For
example, you can add the following in a file "tegakidev.sh":

#!/bin/sh

tegakiroot=/path/to/gitrepo/hwr

PYTHONPATH=$tegakiroot/tegaki-python:$tegakiroot/tegaki-pygtk
$tegakiroot/tegaki-recognize/bin/tegaki-recognize

> Strangely this version of tegaki-recognize doesn't find the model I have installed in my user directory. I also noticed that I launch it I get the error 'Xlib:  extension "RANDR" missing on display "/tmp/launch-OSU3aP/:0"'.

I get this warning too. Doesn't seem very important though. Maybe this
can be fixed by setting the DISPLAY environment variable
appropriately.

> I'll have to look at this more later, but I'm glad that the build is (most) working.

Glad that it is (mostly) working ;-)

If you're still up to contribute a cocoa UI, create a new directory
(e.g. tegaki-pyobjc) to put the reusable components and then
tegaki-recognize can be modified to use tegaki-pyobjc on OS X and
tegaki-pygtk elsewhere. To start simple, I would try to port the
simple recognizer UI (tegaki-recognize --simple) first.

Mathieu

Reply all
Reply to author
Forward
0 new messages