maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   N900 camera API (https://talk.maemo.org/showthread.php?t=38671)

zolakt 2009-12-29 01:18

N900 camera API
 
Hi,

I'm interested in what all is available in N900 camera API.
Are there any "more advanced" features available, like various readings, functions more advance than "take picture" or "set resolution".

For instance, is it possible to get some readings from auto focus, like distance of focus point?

Especially, are there any video recognition algorithms implemented, like face recognition. Maybe some easy to use third party solutions?

Any help or info is most appreciated

pH5 2009-12-29 08:28

Re: N900 camera API
 
The Maemo 5 Developer Guide in the section Imaging and Sharing shows that the camera control is handled by GDigicam and Camerabin (both rather high-level).
danielwilms posted links to GDigicam and Camerabin examples here. Camerabin is contained in gst-plugins-bad.
Check the photography interface for the information that is available internally.
I think this interface is actually implemented by gstv4l2cam (gstreamer0.10-plugins-camera). I am not aware of documentation for this outside of what you get via apt-get source.

lardman 2009-12-29 21:07

Re: N900 camera API
 
Quote:

For instance, is it possible to get some readings from auto focus, like distance of focus point?
The code that performs these functions (and white balance, etc.) is currently closed and supplied by Ti (and therefore likely to remain closed).

There is interest in the community (and from the relevant Nokians iirc) to open up the camera app itself and allow different plugins for these functions.

You could of course write e.g. a gstreamer plugin right now to perform autofocus (contrast based) and return whatever info you wanted from it.

Quote:

Especially, are there any video recognition algorithms implemented, like face recognition. Maybe some easy to use third party solutions?
No, but by opening up the camera app it should let people write these sorts of things. Sounds interesting anyway :)

zolakt 2009-12-29 21:18

Re: N900 camera API
 
Quote:

Originally Posted by lardman (Post 445745)
You could of course write e.g. a gstreamer plugin right now to perform autofocus (contrast based) and return whatever info you wanted from it.

Can you give me some more info on gstreamer plugins?
Any link to help me get started with this?

lardman 2009-12-30 00:12

Re: N900 camera API
 
For help in writing a plugin see the GStreamer website. To perform the actual focusing commands you'd ideally use the GStreamer photography interface, then it's just ;) a case of writing the contrast optimisation code to drive the focus back and forward and find the best position.

Easy! ;)

Actually there has already been quite a bit of interest in developing an open camera system and allowing people to use/implement SLR-type features. I wonder if a wiki page would be a good place to collaborate on something like this? That and a Garage project for some code.

zolakt 2009-12-30 13:28

Re: N900 camera API
 
Quote:

Originally Posted by lardman (Post 445993)
For help in writing a plugin see the GStreamer website. To perform the actual focusing commands you'd ideally use the GStreamer photography interface, then it's just ;) a case of writing the contrast optimisation code to drive the focus back and forward and find the best position.

Thanks!
I can't say I fully understand. I will have to read the stuff on the website first.

Just to get one thing straight, do I need to "override" the whole autofocusing command, and implement it manually, or can I just get some reading (focus distance for start) from the already implemented function?

Brank 2010-02-12 08:49

Re: N900 camera API
 
Quote:

Originally Posted by lardman (Post 445745)

Quote:

Especially, are there any video recognition algorithms implemented, like face recognition. Maybe some easy to use third party solutions?
No, but by opening up the camera app it should let people write these sorts of things. Sounds interesting anyway

I could swear someone with legit information verified that the cam does support face recognition but it is disabled. The early versions supposedly had face recognition enabled, but due to limit of time before n900 was to be released, they decided to disable it?

mankir 2010-02-12 09:10

Re: N900 camera API
 
Would be nice to have some of the functions, which are included in the Canon Hack Development Kit (CHDK):

-Zebra Mode (shows areas in the picture which are too bright / dark)
-Live Histogramm (shows frequency of colours in a graph)
-Remote access (could be by USB / Bluetooth / IR, Call, SMS or maybe as a Webcam by Wlan)
-Script support (motion detecting)
-HDR and longtime duration support


All times are GMT. The time now is 15:03.

vBulletin® Version 3.8.8