Re: [Pyobjc-dev] PyObjC on iOS - access camera APIs
Brought to you by:
ronaldoussoren
From: <end...@gm...> - 2011-07-11 03:58:36
|
Hi. I'd like to inform you that I was finally able to access the camera and take photo programatically. Let me know if you are interested in more details. I will post a working port of my iCam project written in PyObjC, relying on this module, at http://mobile-revival.110mb.com/ReVival/ (alias http://go.to/slog) in the following days. iCam is a cross platform video surveillance application using camera phones that I worked on for more than 1 year. The project transforms a mobile phone in a surveillance camera with motion detection. One can also create a network of such devices connected via Bluetooth or WiFi, where the master phone transmits via 3G/GSM. The photo/video information can be uploaded on YouTube, Picasa, etc. The phone application can be controlled remotely via Internet. This project is deployed and in use for almost 1 year. Best regards. On Thu, Jun 30, 2011 at 1:48 AM, <end...@gm...> wrote: > Hi. > I am trying to implement in PyObjC the program available at > > https://github.com/erica/iphone-3.0-cookbook-/tree/b8ca8905d17015839a0917e1dcd407d055890236/C07-Images/04-Snapping%20Images. > > Although I am a "beginner" in PyObjC, I spent a couple of days trying to > very seriously translate this script to PyObjC and tried my best to find out > all errors. > However, it doesn't work: the application doesn't execute normally after > entering viewDidLoad() - it doesn't change appearance of UI as specified > there. I guess it has to do with the fact I am not loading (or using the > specification) of the TestBedViewController.xib file, which describes > properties of TestBedViewController - I translated only the main.m and did > not use by any means the TestBedViewController.xib - I do not know how can I > load this file in PyObjC on iOS... > Please find the PyObjC code I wrote so far here: > http://mobile-revival.110mb.com/ReVival/HelloPython.py . > > I run my PyObjC scripts on iOS version 3.1.2. PyObjC is version 1946-4, > Python is version 2.5.1-5 (obtained with Cydia 1.1.1; and libffi is version > 130618-4). > > Best regards. > Alex > > |