Ask Your Question
0

Resolution and Focal lengths menu in OpenCV-Android Application

asked 2013-03-14 02:03:46 -0500

NightLife gravatar image

updated 2013-03-14 02:04:49 -0500

Hi Friends,

I need to use the special resolution range menu and also focal lengths to control the OpenCV camera in my android application.

When I use "getResolutionList()" , the maximum resolution is "1280-by-720", but I need "1948-by-1488" as a minimum resolution in my menu. What should I do to solve this problem?

Also, how can I adjust the "Focal Lengths" (zoom) option in my application.

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-03-14 02:33:54 -0500

  1. getResolutionList() function returns a list of supported camera preview resolutions. You cannot get video stream from camera of other size without scaling. Camera can support larger resolutions, but for photos only.

  2. Focal length is optical parameters of your lens. Android camera API does not support changing focal length. Also as I know, all Android based devices, except some Android based photo cameras, has fixed lens without optical zoom.

edit flag offensive delete link more

Comments

Thank you for useful data.

1) I am using Android Camera for my Project(Samsung Galexy) so I can change the focal lenghts manually but I want to do it as a menu option for 5 choices.

2) Manually I can choose the resolution (4600-by-3200) as the maximum. So, Why getResolutionList() function can not support this resolution?

Thank you again :)

NightLife gravatar imageNightLife ( 2013-03-14 03:27:45 -0500 )edit
  1. getResolutionList() function returns value reported by camera API. Potentially, camera supports additional preview resolutions, but it they are not documented/reported by API.
  2. There is tutorial-3 example in OpenCV4Android SDK, that implements menu for resolutions and color filters. You can use it as reference.
Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-03-14 03:40:42 -0500 )edit

Thank you my friend for the help. :)

NightLife gravatar imageNightLife ( 2013-03-14 03:52:34 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-03-14 02:03:46 -0500

Seen: 759 times

Last updated: Mar 14 '13