最新 / RSS

KazLog ChangeLog

2009-05 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

最近 7 日分 / 今月の一覧

2009-05-28 Thu

Scala Programing Language [Linux]

2009-05-19 Tue

nhocr [Linux]

$ cd ./O2-tools-2.00

$ ./configure --prefix=/usr/local/ ; make ; sudo make install

$ cd ../nhocr-0.16

$ ./configure --prefix=/usr/local/ --with-O2tools=/usr/local ; make ; sudo make install

$ setenv NHOCR_DICDIR /usr/local/share

$ convert input.jpg input.pgm

$ nhocr -line -o output.txt test/hello.pgm


$ cd ../iulib-0.3

$ ./configure ; make ; sudo make install

$ cd ..

$ svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr

$ cd tesseract-ocr

$ ./configure ; make ; sudo make install

$ cd ../ocropus-0.3

$ ./configure --without-fst --without-leptonica; make ; sudo make install


$ cd ../nhocr-0.16/

$ vi ocropus/rec-nhocr-0.3.lua

/opt/nhocr -> /usr/local

$ sudo cp ocropus/rec-nhocr-0.3.lua /usr/local/share/ocropus/scripts/rec-nhocr.lua

$ setenv OCROSCRIPTS /usr/local/share/ocropus/scripts

// $ ocroscript recognize data/pages/alice_1.png

$ ocroscript rec-nhocr ~/Desktop/Screenshot.png


$ gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=jpeg -r300 -sOutputFile=kuwabara_01.%02d.pdf.jpg kuwabara_01.pdf


// ここまでは完璧.

// 後は、レイアウト。でも、MySQLに登録して、マッチングをかけるだけなら、もうできるはず。


$ cd ../weocr-toolkit-0.13

$ ./configure --prefix=/usr/local/ --with-O2tools=/usr/local ; make ; sudo make install

$ vi bin/execocr_tesseract.tmpl html/* cgi-bin/*

/opt/weocr -> /usr/local

/cgi-bin -> /weocr

$ sudo cp bin/execocr_tesseract.tmpl /usr/local/bin/execocr_tesseract

$ cd bin/; sudo cp filenorm run_xalan wo_cleandir /usr/local/bin ; cd -

$ mkdir /var/www/html/weocr/; cp html/* cgi-bin/* /var/www/html/weocr

$ sudo vi /etc/httpd/conf/httpd.conf

AddHandler cgi-script .cgi


Options FollowSymLinks ExecCGI

AllowOverride None

$ cd /var/www/html/weocr/; make ; cd -

(Location of error unknown)XSLT Error (javax.xml.transform.TransformerConfigurationException): getAssociatedStylesheets failed

make: *** [srvspec.html] Error 255

あれ?

// $ java -cp /usr/share/java/xalan-j2.jar org.apache.xalan.xslt.Process -HTML -IN srvspec.xml -OUT srvspec.html

// javaが悪い。OSをupdateしたらなおるかも。

// ということでpending


nhocrを使って、ocrと全文検索を組み合わせてみた

http://yes.kazumichi.org/

2009-04-22 Wed

ARtoolkit on FC5 [Linux]

$ sudo yum install freeglut-devel freeglut

$ ./Configure

1 y n n


cf. http://akita-nct.jp/yamamoto/comp/OpenGL/OpenGL.html

http://slashdot.jp/~MK/journal/429169

Logicool Qcam Cool on FC5 [Linux]

http://mxhaard.free.fr/download.html

$ make && sudo make install

'owner'でこけるので、一部コメントアウト

cf. http://t.snkz.org/?cat=5

Fedoraのバージョンをあげようか。無線も特にFC5じゃなくてもいいし。[]

ただ、面倒なんですよね。

2009-04-11 Sat

hplip [Linux]

http://hplipopensource.com/


# sudo yum install libtool-ltdl-devel [riken]

http://www.gphoto.org/proj/libgphoto2/

# tar zxvf libgphoto2-2.4.5.tar.gz && configure --prefix=/usr && make && sudo make instlal


# sudo yum install python-ctypes


http://www.freedesktop.org/wiki/Software/dbus#head-ed92e8f84ae0374ae3a2e3f714c2eb0037a84868

# ./configure --prefix=/usr && make && sudo make install


http://dbus.freedesktop.org/releases/dbus-glib/

# ./configure --prefix=/usr && make && sudo make install


http://dbus.freedesktop.org/releases/dbus-python/

# ./configure && make && sudo make install


/*

https://answers.launchpad.net/hplip/+question/35150

# install SIP.tar.gz

# install PyQT3

/


# sh hplip-3.9.2.run


// not finished

// we have to upgrade Linux OS.

2009-03-26 Thu

2009-03-25 Wed

2009-03-18 Wed

Skype on FC5 [Linux]

# yum install qt4 qt4-x11

# rpm -Uhv skype-2.0.0.72-fc5.i586.rpm

https://developer.skype.com/jira/browse/SCL-265

making audio-cd from mp3 files on Linux [Linux]

2009 : 01 02 03 04 05 06 07 08 09 10 11 12
2008 : 01 02 03 04 05 06 07 08 09 10 11 12
2007 : 01 02 03 04 05 06 07 08 09 10 11 12
2006 : 01 02 03 04 05 06 07 08 09 10 11 12
2005 : 01 02 03 04 05 06 07 08 09 10 11 12
2004 : 01 02 03 04 05 06 07 08 09 10 11 12

最終更新時間: 2009-05-28 23:58