#107 Camera start_finder support for front (2nd) camera

open
nobody
None
5
2008-10-17
2008-10-17
aaaaapo
No

The documentation (PythonForS60_1_4_4_doc.pdf, Chapter 5.4 camera) says about camera's start_finder:

camera.start_finder(callable [, backlight_on=1, size=main_pane_size ])

But not a word about the 2nd camera (front camera in my N82).

Could it be possible to select the camera in the start_finder()-call like it is possible in take_photo() (6th parameter, "position=(0|1)"?

Discussion

  • Nico Blodow
    Nico Blodow
    2008-12-06

    Same problem here.

    Meanwhile, as a quick hack, you can copy the contents of the file "epoc32/winscw/c/resource/camera.py" into your python script instead of "import camera". Then, in the first sensible line of code, change "_my_camera=_camera.Camera(0)" to "_my_camera=_camera.Camera(1)". You need to replace all occurences to "camera.foo" to "foo" since camera is not treated like a class because its member functions occur in your own script file.

    If you are cool, add a member function in that camera.py file to set that camera number and post it.

    Cheers, Nico