Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: getFocalLength()



Permlink Replies: 1 - Last Post: Mar 27, 2018 8:28 AM Last Post By: Dagmara Niedzwi... Threads: [ Previous | Next ]
Dagmara Niedzwi...

Posts: 13
Registered: 11/15/15
getFocalLength()
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 26, 2018 6:25 AM
Hi All

How is it possible to get focal length of camera on mobile phone (on Android)? Can we use somehow _di_JCamera_Parameters? I am using Berlin C++ Builder.

I am appreciate any help!

Dagmara
Dagmara Niedzwi...

Posts: 13
Registered: 11/15/15
Re: getFocalLength()
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 27, 2018 8:28 AM   in response to: Dagmara Niedzwi... in response to: Dagmara Niedzwi...
I found solution:

_di_JCamera MainCamera;
_di_JCamera_Parameters Params;
float focal;

MainCamera = TJCamera::JavaClass->open();
Params = MainCamera->getParameters();
focal = Params->getFocalLength();

But question is: how can I be sure if it is front or back camera?

Dagmara Niedzwiecka wrote:
Hi All

How is it possible to get focal length of camera on mobile phone (on Android)? Can we use somehow _di_JCamera_Parameters? I am using Berlin C++ Builder.

I am appreciate any help!

Dagmara
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02