[Tellico-users] Webcam barcode scanning

View: New views
13 Messages — Rating Filter:   Alert me  

[Tellico-users] Webcam barcode scanning

by Rory Verleysen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

First & foremost, thank you for this great piece of software!!

I'm having some problems enabling the webcam image capture..
I have no idea how to enable it in tellico :| , i've searched through the
mailing list, forum & help files but found nothing except some loose help
requests.

I'm using a uvc webcam, working perfectly with 'mplayer tv://'.
I've build the latest svn revision (1041828) but i could not detect any
noticeable changes considering this issue.
I also tried the build in debug mode but for some reason, there's no debug
info appearing in the console.

I have attached the build output & v4l-info output.

Can someone give me a hand here?


Thanks in advance!

Regards



_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

v4linfoout.bz2 (1K) Download Attachment
buildout.bz2 (9K) Download Attachment

Re: [Tellico-users] Webcam barcode scanning

by Sebastian Held-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.,

you need to explicitly enable the webcam support (it is experimental code).
Try to use ccmake instead of cmake (I do not remember the correct name of the
option).

Regards,
Sebastian

Am Mittwoch 28 Oktober 2009 19:58:49 schrieb Rory Verleysen:

> Hi all,
>
> First & foremost, thank you for this great piece of software!!
>
> I'm having some problems enabling the webcam image capture..
> I have no idea how to enable it in tellico :| , i've searched through the
> mailing list, forum & help files but found nothing except some loose help
> requests.
>
> I'm using a uvc webcam, working perfectly with 'mplayer tv://'.
> I've build the latest svn revision (1041828) but i could not detect any
> noticeable changes considering this issue.
> I also tried the build in debug mode but for some reason, there's no debug
> info appearing in the console.
>
> I have attached the build output & v4l-info output.
>
> Can someone give me a hand here?
>
>
> Thanks in advance!
>
> Regards
>
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Morten Bo Johansen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sebastian Held <sebastian@...> wrote:

> you need to explicitly enable the webcam support (it is experimental
> code). Try to use ccmake instead of cmake (I do not remember the
> correct name of the option).

Is there some documentation somewhere on how this is supposed to work
from and end user's point of view? I could not find anything in the
tellico handbook. What webcams are supported? My superficial
understanding is that any webcam supported by v4l will work. I have
compiled tellico from svn and enabled webcam and v4l support. I believe
barcode support is compiled in:

   $ strings /opt/kde4/bin/tellico | grep barcode
   barcodeRecognition::barcodeRecognitionThread  
   barcode
   N18barcodeRecognition24barcodeRecognitionThreadE
   B/home/mojo/src/kde/extragear/office/tellico/src/barcode/barcode_v4l.cpp
   bool barcodeRecognition::barcode_v4l::grab_init()
   QImage barcodeRecognition::barcode_v4l::grab_one2()

I plug in my webcam which works fine with mplayer, I fire up tellico and
activate the isbn search dialog. Nothing happens. What am I supposed to
do?

Thanks,

Morten

_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Rory Verleysen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

There exists no documentation considering this subject.
All v4l capable video devices should be supported, please do take into account
you'll need a webcam which can focus.

To compile with webcam support use ccmake (as stated before in this thread) &
make sure the ENABLE_WEBCAM option is set to ON. Recompile afterwards.
You'll need the libv4l* & libksane* packages.

Afterwards when running Tellico make sure your webcam device is plugged in &
available. If so, when opening the Internet Search dialog a new dialog will
appear showing your webcams output, also a thread is started, taking images
from the video & attempting to recognise the barcode.

Hope this helps somewhat.

Regards

On Thursday 29 October 2009 17:51:49 Morten Bo Johansen wrote:

> Sebastian Held <sebastian@...> wrote:
> > you need to explicitly enable the webcam support (it is experimental
> > code). Try to use ccmake instead of cmake (I do not remember the
> > correct name of the option).
>
> Is there some documentation somewhere on how this is supposed to work
> from and end user's point of view? I could not find anything in the
> tellico handbook. What webcams are supported? My superficial
> understanding is that any webcam supported by v4l will work. I have
> compiled tellico from svn and enabled webcam and v4l support. I believe
> barcode support is compiled in:
>
>    $ strings /opt/kde4/bin/tellico | grep barcode
>    barcodeRecognition::barcodeRecognitionThread
>    barcode
>    N18barcodeRecognition24barcodeRecognitionThreadE
>    B/home/mojo/src/kde/extragear/office/tellico/src/barcode/barcode_v4l.cpp
>    bool barcodeRecognition::barcode_v4l::grab_init()
>    QImage barcodeRecognition::barcode_v4l::grab_one2()
>
> I plug in my webcam which works fine with mplayer, I fire up tellico and
> activate the isbn search dialog. Nothing happens. What am I supposed to
> do?
>
> Thanks,
>
> Morten
>
> _______________________________________________
> tellico-users mailing list
> tellico-users@...
> https://mail.kde.org/mailman/listinfo/tellico-users
>
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Morten Bo Johansen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rory Verleysen <rory.verleysen@...> wrote:
> Hi,

> There exists no documentation considering this subject. All v4l capable
> video devices should be supported, please do take into account you'll
> need a webcam which can focus.

Thanks. My webcam is the cheapest of the cheapest. So I suppose it is the
lack of focusing capability which is the problem, since the other
prerequisites you mentioned are in order.


Morten

_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Sebastian Held-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

no, that's not the problem. I've a cheap one, too (without focus).
One debug method is to use strace:

strace -e trace=open ./tellico

[...] (click on search)
open("/usr/share/kde4/apps/khtml/khtml.rc", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/entry-templates/Compact.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/tellico-common.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/dev/video0", O_RDWR)             = 22
open("/sys/class/video4linux/video0/dev", O_RDONLY) = 25
open("/sys/class/video4linux/video0/device/modalias", O_RDONLY) = 25
open("/sys/devices/virtual/dmi/id/board_vendor", O_RDONLY) = 25
open("/sys/devices/virtual/dmi/id/board_name", O_RDONLY) = 25
open("/sys/devices/virtual/dmi/id/product_version", O_RDONLY) = 25
open("/dev/shm/usb-0000:00:1d.7-1.1:PC Camera", O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW|O_CLOEXEC, 0600) = -1 EEXIST (File exists)
open("/dev/shm/usb-0000:00:1d.7-1.1:PC Camera", O_RDWR|O_NOFOLLOW|O_CLOEXEC) = 25
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.rw3789", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 28
[...]

Important is the line "/dev/video0". Here tellico opens this device without an error.


Now the same again without a webcam connected:

[...] (click on search)
open("/usr/share/kde4/apps/khtml/khtml.rc", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/entry-templates/Compact.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/tellico-common.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/dev/video0", O_RDWR)             = -1 ENOENT (No such file or directory)
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.rw6603", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 22
[...]

The device cannot be opened.


Now without webcam support compiled in:

[...] (click on search)
open("/usr/share/kde4/apps/khtml/khtml.rc", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/entry-templates/Compact.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/tellico-common.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.K19515", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 22
open("/usr/share/icons/oxygen/16x16/actions/edit-find.png", O_RDONLY|O_LARGEFILE) = 22
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.A19515", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 22
[...]

Tellico does not try to open /dev/video0

regards,
Sebastian


Am Donnerstag 29 Oktober 2009 19:56:54 schrieb Morten Bo Johansen:

> Rory Verleysen <rory.verleysen@...> wrote:
> > Hi,
> >
> > There exists no documentation considering this subject. All v4l capable
> > video devices should be supported, please do take into account you'll
> > need a webcam which can focus.
>
> Thanks. My webcam is the cheapest of the cheapest. So I suppose it is the
> lack of focusing capability which is the problem, since the other
> prerequisites you mentioned are in order.
>
>
> Morten
>
> _______________________________________________
> tellico-users mailing list
> tellico-users@...
> https://mail.kde.org/mailman/listinfo/tellico-users
>
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Morten Bo Johansen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sebastian Held <sebastian@...> wrote:

> no, that's not the problem. I've a cheap one, too (without focus).
> One debug method is to use strace:

> strace -e trace=open ./tellico

> [...] (click on search)

When I do this, I get the following. It opens the /dev/video0 device, but
then several instances of error messages pertaining to missing system info
files follows. Is this just a case of my webcam not registering itself
adequately for this to work? Like I said, the webcam works with mplayer so
it is certainly supported in linux.

Thanks,

Morten

open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.updated", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE|O_CLO
EXEC, 0666) = 11
open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.lock.N10612", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CL
OEXEC, 0600) = 11
open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.lock.o10612", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CL
OEXEC, 0600) = 11
open("/opt/kde4/share/apps/khtml/khtml.rc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 11
open("/opt/kde4/share/apps/tellico/entry-templates/Compact.xsl", O_RDONLY|O_LARGEFILE) = 11
open("/opt/kde4/share/apps/tellico/tellico-common.xsl", O_RDONLY|O_LARGEFILE) = 11
open("/dev/video0", O_RDWR)             = 11
open("/sys/class/video4linux/video0/dev", O_RDONLY) = 12
open("/sys/class/video4linux/video0/device/modalias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/class/video4linux/video0/device/idVendor", O_RDONLY) = 12
open("/sys/class/video4linux/video0/device/idProduct", O_RDONLY) = 12
open("/sys/class/dmi/id/sys_vendor", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/devices/virtual/dmi/id/sys_vendor", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/class/dmi/id/product_name", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/devices/virtual/dmi/id/product_name", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/class/dmi/id/product_version", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/devices/virtual/dmi/id/product_version", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/class/dmi/id/board_vendor", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/devices/virtual/dmi/id/board_vendor", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/class/dmi/id/board_name", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/devices/virtual/dmi/id/board_name", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/class/dmi/id/board_version", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/devices/virtual/dmi/id/board_version", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.lock.I10612", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 11
open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.lock.u10612", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 11
open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.lock.d10612", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 11
open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.lock.V10612", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 11
open("/var/tmp/kdecache-mojo/kpc/kde-icon-cache.updated", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE|O_CLOEXEC, 0666) = 11


_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Michael Rauter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Donnerstag, den 29.10.2009, 22:47 +0100 schrieb Sebastian Held:
> Hi,
>
> no, that's not the problem. I've a cheap one, too (without focus).
> One debug method is to use strace:
>
> strace -e trace=open ./tellico

Thank you for that hint.

I had to rename my webcam-device to /dev/webcam because I'm using a
tv-card which is named /dev/video0. With named devices I can use cheese
or skype without problems.
Is it possible to change the device name in tellico?


_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Sebastian Held :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Am Donnerstag 29 Oktober 2009 23:38:45 schrieb Michael Rauter:
> Is it possible to change the device name in tellico?

Yes, certainly: modify the code and recompile ;)
There is neither a gui or config file option, but see the file
src/barcode/barcode_v4l.cpp

Sebastian

>
>
> _______________________________________________
> tellico-users mailing list
> tellico-users@...
> https://mail.kde.org/mailman/listinfo/tellico-users
>

_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Michael Rauter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Freitag, den 30.10.2009, 07:08 +0100 schrieb Sebastian Held:
> Hi,
>
> Am Donnerstag 29 Oktober 2009 23:38:45 schrieb Michael Rauter:
> > Is it possible to change the device name in tellico?
>
> Yes, certainly: modify the code and recompile ;)
> There is neither a gui or config file option, but see the file
> src/barcode/barcode_v4l.cpp

Ty, sometimes Linux is to easy for me. I thougt to complicated ;)

Greetings,

Michael


_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by robbystephenson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 29 October 2009, Sebastian Held wrote:
> Hi,
>
> Am Donnerstag 29 Oktober 2009 23:38:45 schrieb Michael Rauter:
> > Is it possible to change the device name in tellico?
>
> Yes, certainly: modify the code and recompile ;)
> There is neither a gui or config file option, but see the file
> src/barcode/barcode_v4l.cpp

Eventually, I do want to add some config options and better help and
documentation. :) Eventually...

Robby
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Michael Rauter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Freitag, den 30.10.2009, 07:08 +0100 schrieb Sebastian Held:
> Hi,
>
> Am Donnerstag 29 Oktober 2009 23:38:45 schrieb Michael Rauter:
> > Is it possible to change the device name in tellico?
>
> Yes, certainly: modify the code and recompile ;)
> There is neither a gui or config file option, but see the file
> src/barcode/barcode_v4l.cpp
>
got it configured and compiled, now I get the following error on start:

open("/dev/webcam", O_RDONLY)           = 21
tellico(14233) barcodeRecognition::barcode_v4l::grab_init: v4l: Unable
to find a supported capture format.


Michael

_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] Webcam barcode scanning

by Sebastian Held-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Montag 02 November 2009 20:22:02 schrieb Michael Rauter:

> Am Freitag, den 30.10.2009, 07:08 +0100 schrieb Sebastian Held:
> > Hi,
> >
> > Am Donnerstag 29 Oktober 2009 23:38:45 schrieb Michael Rauter:
> > > Is it possible to change the device name in tellico?
> >
> > Yes, certainly: modify the code and recompile ;)
> > There is neither a gui or config file option, but see the file
> > src/barcode/barcode_v4l.cpp
>
> got it configured and compiled, now I get the following error on start:
>
> open("/dev/webcam", O_RDONLY)           = 21
> tellico(14233) barcodeRecognition::barcode_v4l::grab_init: v4l: Unable
> to find a supported capture format.

Tellico uses lib4vl for the conversion process (from webcam to RGB). May be
your version of libv4l is too old?

Sebastian

>
>
> Michael
>
> _______________________________________________
> tellico-users mailing list
> tellico-users@...
> https://mail.kde.org/mailman/listinfo/tellico-users
>
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users