Ask Your Question
0

Unable to use both cameras of Evo 4G using OpenCV4Android.

asked 2013-04-11 16:30:04 -0500

updated 2013-04-11 16:53:08 -0500

I'm planning to calculate disparity map by taking two pictures from the two back cameras of Evo 4G. However, I'm able to use only one camera. I tried different index.

index

  • 0 gives me left camera (one of the back cameras)
  • 1 gives me front camera
  • -1 gives me left camera (one of the back cameras).

I once got other camera using -1 index, but it's not working anymore. I'm using CameraBridgeViewBase.

I have seen on Google group of android-opencv that people have successfully used both cameras of Evo 3D phone. I want to know how to do it? Is there some other index? or is there some other way using which I can use this.

P.S. Native Camera doesn't work. (Android 4.0.3).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-12 02:53:47 -0500

The answer is basically in the following topic:

http://answers.opencv.org/question/8328/can-i-open-2-android-cameras-concurrently/

It is not supported in the android openCV to access the two cameras. You have to switch to the Java interface instead.

edit flag offensive delete link more

Comments

This seems a bit silly question. but what do you mean by Java interface? I'm using java bindings of opencv. the ones that is shown in example tutorial 1 which accesses phone camera. Is that Java interface? or you're talking about some android utilities (which are not related to opencv).

jayrambhia gravatar imagejayrambhia ( 2013-04-12 06:17:53 -0500 )edit

You have the android interface, which are specific bindings for android commands. Next to that you have standard libraries in Java to access camera interfaces. I think that is what they suggest. Don't know for sure, but could this link help you? http://www.vogella.com/articles/AndroidCamera/article.html#tutorial_cameraapi. Also @Alexander Smorkalov, could you elaborate on what you exactly meant in that topic?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-12 06:26:41 -0500 )edit

I think I have bad news, look at this topic. It seems that the phone doesn't support access to both cams at same time: http://developer.sprint.com/show_thread.do?forumId=528&threadid=26999&messageId=78914

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-12 06:30:12 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-11 16:30:04 -0500

Seen: 272 times

Last updated: Apr 12 '13