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

🐛 Front camera returns null metadata #3354

Open
3 of 5 tasks
agrik-monere opened this issue Jan 7, 2025 · 1 comment
Open
3 of 5 tasks

🐛 Front camera returns null metadata #3354

agrik-monere opened this issue Jan 7, 2025 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@agrik-monere
Copy link

What's happening?

Image taken by front camera returns null metadata:

"exif": {
"ShutterSpeedValue": null,
"MaxApertureValue": null,
"ExposureProgram": null,
"ResolutionUnit": null,
"ColorSpace": null,
"CompressedBitsPerPixel": null,
"MakerNote": null,
"SubSecTimeOriginal": null,
"SubSecTimeDigitized": null,
"MeteringMode": null,
"SubSecTime": null,
"ExifVersion": null,
"BitsPerSample": null,
"ImageWidth": "4224",
"YResolution": null,
"Software": null,
"XResolution": null,
"Orientation": "0",
"ImageLength": "3136",
"YCbCrPositioning": null,
"Make": null,
"Model": null,
"InteroperabilityIndex": null,
"Flash": null,
"ExposureBiasValue": null,
"FocalLength": null,
"ExposureTime": null,
"ISOSpeedRatings": null,
"WhiteBalance": null,
"DateTime": null,
"DateTimeDigitized": null,
"FNumber": null
}

The back camera metadata is perfect though

Reproduceable Code

const imageFile = await camera.current.takePhoto({
      qualityPrioritization: 'quality',
});
Exif.getExif(imageFile.path).then(res => console.log("metadata-->", res))

Relevant log output

"exif": {
        "ShutterSpeedValue": null,
        "MaxApertureValue": null,
        "ExposureProgram": null,
        "ResolutionUnit": null,
        "ColorSpace": null,
        "CompressedBitsPerPixel": null,
        "MakerNote": null,
        "SubSecTimeOriginal": null,
        "SubSecTimeDigitized": null,
        "MeteringMode": null,
        "SubSecTime": null,
        "ExifVersion": null,
        "BitsPerSample": null,
        "ImageWidth": "4224",
        "YResolution": null,
        "Software": null,
        "XResolution": null,
        "Orientation": "0",
        "ImageLength": "3136",
        "YCbCrPositioning": null,
        "Make": null,
        "Model": null,
        "InteroperabilityIndex": null,
        "Flash": null,
        "ExposureBiasValue": null,
        "FocalLength": null,
        "ExposureTime": null,
        "ISOSpeedRatings": null,
        "WhiteBalance": null,
        "DateTime": null,
        "DateTimeDigitized": null,
        "FNumber": null
},

Camera Device

{
  "formats": [],
  "sensorOrientation": "landscape-right",
  "hardwareLevel": "full",
  "maxZoom": 8,
  "minZoom": 1,
  "maxExposure": 24,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "wide-angle-camera"
  ],
  "supportsFocus": false,
  "supportsRawCapture": true,
  "isMultiCam": false,
  "minFocusDistance": 0,
  "minExposure": -24,
  "name": "FRONT (1)",
  "hasFlash": false,
  "hasTorch": false,
  "position": "front",
  "id": "1"
}

Device

Redmi Note 8 Pro

VisionCamera Version

3.6.4

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

@agrik-monere agrik-monere added the 🐛 bug Something isn't working label Jan 7, 2025
Copy link

Guten Tag, Hans here! 🍻 Thank you for providing detailed information about your issue. It looks like you're experiencing a valid bug with the front camera metadata returning null.

Since you mentioned that you can reproduce this issue in the VisionCamera Example app, it helps narrow down the problem. If you haven't already, please check if there are any updates or patches available for your version, and make sure the device is compatible with the library's features.

If the problem persists, it might be helpful to gather additional logs from adb logcat while reproducing the issue, just to help mrousavy diagnose it further. Keep up ze good work, and let's see if we can get this resolved!

Note: If you think I made a mistake, please ping @mrousavy to take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant