Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any pointer on how to calculate iPhone X, XS, XR sensor? #18

Open
enzyme69 opened this issue Nov 11, 2018 · 4 comments
Open

Any pointer on how to calculate iPhone X, XS, XR sensor? #18

enzyme69 opened this issue Nov 11, 2018 · 4 comments

Comments

@enzyme69
Copy link

enzyme69 commented Nov 11, 2018

I can see the database was kind of up to date on iPhone, but I am trying to calculate the one for iPhone X especially. Any idea? Does it correspond to certain lens, because the Plus size and iPhone X also has 2 lenses? Except for XR.

@cignoni Any idea how to calculate this? Thanks!

@enzyme69
Copy link
Author

enzyme69 commented Nov 11, 2018

iPhone X

focal_pix = (max( w, h ) * focal_mm) / ccdw_mm

focal_pix = 4032 pixel * 4 mm / 4.80 mm == 3360 pixel ? --> but what to do with this value?

focal_pix: the focal length in pixels,
focal_mm: the EXIF focal length (mm),
w,h the image of width and height (pixels),
ccdw_mm: the known sensor width size (mm).

CameraMaker;CameraModel;SensorWidth(mm)
Apple;iPhone 4;4.54
Apple;iPhone 4S;4.54
Apple;iPhone 5;4.54
Apple;iPhone 5S;4.89
Apple;iPhone 6;4.89
Apple;iPhone 6 Plus;4.89

@enzyme69
Copy link
Author

enzyme69 commented Nov 11, 2018

I am comparing all the iPhone and trying to get some numbers to work with the formula, it's really confusing at the moment:

CameraMaker;CameraModel;SensorDescription;SensorWidth(mm);SensorHeight(mm),SensorWidth(pixels),SensorHeight(pixels)

Apple;iPhone 4;"1/3.2"" (~ 4.54 × 3.42 mm);4.54;3.42;2592;1936
Apple;iPhone 4S;"1/3.2"" (~ 4.54 × 3.42 mm);4.54;3.42;3264;2448
Apple;iPhone 5;"1/3.2"" (~ 4.54 × 3.42 mm);4.54;3.42;3264;2448
Apple;iPhone 5S;"1/3"" (~ 4.89 × 3.67 mm);4.89;3.67;3264;2448
Apple;iPhone 6;"1/3"" (~ 4.89 × 3.67 mm);4.89;3.67;3264;2448
Apple;iPhone 6 Plus;"1/3"" (~ 4.89 × 3.67 mm);4.89;3.67;3264;2448

@enzyme69
Copy link
Author

enzyme69 commented Nov 11, 2018

Searching around Google, I got an arbitrary guess that iPhone X is 4.8mm?

@pmoulon
I think the sensor size is 1/3" so 4.80 mm must be the sensor width.According your metadata, it gives Fpix = std::max ( width, height ) * focalmm / ccdw = 3291 = 4032 * 4 / 4.9Internet seems confused and cannot decide if the sensor size is 1/2.8" or 1/3"
https://forums.macrumors.com/threads/8-8-x-has-the-same-sensor-size-1-3-as-6-6-where-is-the-promoted-improvement.2071530/page-4https://www.gsmarena.com/apple_iphone_x-8858.php

openMVG/openMVG#1203

In my previous test, I am using value of 4.0 from focal length and Regard3D still process it, although not sure about the accuracy.

@slowly77
Copy link

@enzyme69 hey,have you finished your work? I want to use openmvg to deal with my photo captured with Iphone 7 PLUS,but i meet the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants