Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 11, 2013, 04:11 AM   #1
ern
macrumors newbie
 
Join Date: Jul 2011
How to use zbar with python in OS X?

I'm trying to use my macbook iSight camera as a barcode scanner. And I'm using Python to build my application. I found that zbar is a open source library. It has iOS SDK and Linux editions but no OS X edition. I wonder which one should I use in OS X? I don't know much of Objective-C.
Thanks for your help in advance.
ern is offline   0 Reply With Quote
Old Aug 11, 2013, 09:29 AM   #2
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Hello! You're referring to the zbar here, right? You should definitely start from the Linux version, which has a variety of required and optional dependencies you'll have to deal with. Got Xcode? You'll need to install the command-line tools for it to compile zbar and its dependencies from source code.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old Aug 12, 2013, 06:44 PM   #3
ern
Thread Starter
macrumors newbie
 
Join Date: Jul 2011
Thanks. I installed through homebrew. It works OK now. But I cannot find any resource in Python. Maybe I should use Objective-C?
ern is offline   0 Reply With Quote
Old Aug 13, 2013, 04:38 AM   #4
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Quote:
Originally Posted by ern View Post
Thanks. I installed through homebrew. It works OK now. But I cannot find any resource in Python. Maybe I should use Objective-C?
zbar does have a Python binding. Are you trying to use Python 3? That may be the source of your difficulty; zbar's Python interface only works with Python 2.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   1 Reply With Quote
Old Aug 13, 2013, 09:28 AM   #5
ern
Thread Starter
macrumors newbie
 
Join Date: Jul 2011
Quote:
Originally Posted by wrldwzrd89 View Post
zbar does have a Python binding. Are you trying to use Python 3? That may be the source of your difficulty; zbar's Python interface only works with Python 2.
No, I'm using Python 2.7
I mean I can't google open source code using Python with iSight. So should I change to Objective-C?
ern is offline   0 Reply With Quote
Old Aug 13, 2013, 04:03 PM   #6
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Quote:
Originally Posted by ern View Post
No, I'm using Python 2.7
I mean I can't google open source code using Python with iSight. So should I change to Objective-C?
Huh. Here I can't help.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
zbar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Python.app ThunderBow Mac Programming 2 Apr 24, 2013 12:27 PM
Good Python 3.3 course vmachiel Mac Programming 2 Mar 11, 2013 03:42 AM
Python Environment Telp Mac Programming 2 Jan 12, 2013 11:37 AM
Python 3.2.3 dboxall123 Mac Programming 4 Sep 27, 2012 10:53 AM
Zbar bad access.. IDMah iPhone/iPad Programming 3 Jun 8, 2012 02:23 PM

Forum Jump

All times are GMT -5. The time now is 03:14 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC