This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP4460 Android 4.1.2 JB dual camera

Follow up from:

http://e2e.ti.com/support/omap/f/849/t/371345.aspx

Hello, we are still trying to get stereo camera working on a variscite dart4460 board.

We use Android 4AJ.2.2. device/ti/blaze/Config.mk looks like this:

OMAP_ENHANCEMENT := true
OMAP_ENHANCEMENT_BURST_CAPTURE := true
OMAP_ENHANCEMENT_S3D := true
OMAP_ENHANCEMENT_CPCAM := true
OMAP_ENHANCEMENT_VTC := true

define ti-clear-vars
$(eval OMAP_ENHANCEMENT:=) \
$(eval OMAP_ENHANCEMENT_BURST_CAPTURE:=) \
$(eval OMAP_ENHANCEMENT_S3D:=) \
$(eval OMAP_ENHANCEMENT_CPCAM:=) \
$(eval OMAP_ENHANCEMENT_VTC:=)
endef


S3D enhancement is set to true by default, however we only see two cameras (ID 0 and 1) and are not able to connect to camera ID 2.

Questions:

- do we have to make further modifications for android build to get camera ID 2 available?

- does default ducati-m3.bin provide stereo mode or do we have to modify this as well?

Best regards,

Damian

  • Hello Damian,

    About your questions:

    #1: From CameraHAL you can see that sensor ID=0 refers to back camera,  sensor ID=1 refers to front right camera. There is a special case of sensor ID=2 which refers to dual camera. So in an application, you can select sensor ID=2 and CameraHAL will output a single frame with L and R views stitched together. You will need to set some more parameters like Top-Bottom, Left-Right, resolution etc to be able to get a good output.

    #2: To enable stereoscopic vision, you need to set OMAP_ENHANCEMENT_S3D to true in Config.mk (device/ti/blaze). After this build your android.

    You need to create an android app in which it has to open the camera (ID=2). [use Camera.open(int ID) ].

    ducati-m3.bin does not provide stereo mode. It is necessary to modify your Ducati source.

    In addition:

    Ducati Camera software exists as an OpenMAX™ component compliant with Khronos OpenMAX™ IL V1.1.2 specification. JPEG encoding also takes place within OMX Camera component. Ducati camera component has been designed to bring in standardization (OpenMAX™), to enable easy 3rd party algorithm integration, to comfortably enable use-case creation and modification, and to conveniently support new sensor adaptation.

    Camera driver supports switching between the two camera sensors - primary and secondary. Primary sensor may be up to 16 MPix and secondary up to 5 MPix. Camera includes a dynamic sensor detection algorithm that detects the sensor currently in use from an array of known possibilities, except when using an external-ISP.

    Best regards,

    Yanko