Skip to content

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

Open

Description

@enzyme69

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!

Activity

  1. enzyme69 commented on Nov 11, 2018

    @enzyme69
    Author

    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

  2. enzyme69 commented on Nov 11, 2018

    @enzyme69
    Author

    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

  3. enzyme69 commented on Nov 11, 2018

    @enzyme69
    Author

    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.

  4. slowly77 commented on Jan 28, 2019

    @slowly77

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions