arthuro555
Posts: 10
Joined: Mon Aug 27, 2018 11:57 am

RPI camera don't work with zBar

Thu Oct 18, 2018 9:35 am

Hi.
My camera doesn't work with zbar, but works fine with raspistill. The modprobe bcmsomething is activated. zbar can't find /dev/video0. What do I have to do?

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: RPI camera don't work

Thu Oct 18, 2018 10:03 am

Does this old topic help?
viewtopic.php?t=68247
or this one
viewtopic.php?t=204954
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

arthuro555
Posts: 10
Joined: Mon Aug 27, 2018 11:57 am

Re: RPI camera don't work with zBar

Thu Oct 18, 2018 10:30 am

The second link gave me the solution, but there is a new problem now: when I try to use zbar (zbarcam or in python), it says system error in zbar in v4l2_start(): starting video stream: operation not permitted. I also tried with sudo that gave the same error. pls help.

arthuro555
Posts: 10
Joined: Mon Aug 27, 2018 11:57 am

Re: RPI camera don't work with zBar

Fri Oct 19, 2018 9:30 am

I realy need help, I work on a project and don't have much Tim, does anybody Know something that could help me?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPI camera don't work with zBar

Tue Nov 13, 2018 3:56 pm

I've used raspistill in combination with zbar in a bash script.

Worked fine IIRC.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

arthuro555
Posts: 10
Joined: Mon Aug 27, 2018 11:57 am

Re: RPI camera don't work with zBar

Tue Nov 13, 2018 5:42 pm

raspistill needs 5 seconds and it should be detected within 1 or 2 seconds
but thanks!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPI camera don't work with zBar

Tue Nov 13, 2018 9:42 pm

raspistill capture time can be reduced to just under 1s. Should be good enough to do a detection in 2 seconds.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

arthuro555
Posts: 10
Joined: Mon Aug 27, 2018 11:57 am

Re: RPI camera don't work with zBar

Wed Nov 14, 2018 3:26 pm

Aha. and how do i do that? I didnt saw anything like this in raspistill --help.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPI camera don't work with zBar

Wed Nov 14, 2018 3:45 pm

arthuro555 wrote:
Wed Nov 14, 2018 3:26 pm
Aha. and how do i do that? I didnt saw anything like this in raspistill --help.
raspistill -t 1000 -o fred.jpg

Takes the image after 1 second. (1000ms), You can reduce that number a bit until it stops working, usually about 600/700 before it fails.

https://www.raspberrypi.org/documentati ... /camera.md
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

arthuro555
Posts: 10
Joined: Mon Aug 27, 2018 11:57 am

Re: RPI camera don't work with zBar

Wed Nov 14, 2018 5:44 pm

I tried that but zbar needs 7 seconds every time. It's, again, a way too long.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPI camera don't work with zBar

Wed Nov 14, 2018 7:25 pm

Try dropping the resolution of the capture. The smaller the image the faster zbar can read and process and you don't need a lot of resolution for qr codes.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “Troubleshooting”