Comments (6)
Okay I updated the PR #2659 - it now works like a charm!
from react-native-vision-camera.
I'm not sure about maxPhotoDimensions
- I don't know if I even need to set that? Maybe I can just leave it out, as I think the capture pipeline uses the highest available resolution by default anyways.... trying that in #2659
Would be great if you could also help with testing that - I wanna know if there are any differences between setting maxPhotoDimensions
to the highest possible resolution of the format, and just not setting it at all.
from react-native-vision-camera.
hey @mrousavy, thank you for looking into this! And sure thing, I would love to help! How can I best test it for you? I started off by running the example of v4 branch and the fix/maxresolution branch and noting down the format for both. These don't seem to differ, does that then mean setting maxPhotoDimensions
isn't needed? Futhermore, the crash indeed goes away with the fix/maxresolution branch.
Format on v4
{ minISO: 22, photoHeight: 2160, fieldOfView: 65.70668029785156, videoHeight: 2160, autoFocusSystem: 'phase-detection', supportsVideoHdr: false, pixelFormats: [ 'yuv', 'yuv', 'rgb' ], videoStabilizationModes: [ 'auto', 'cinematic', 'off', 'standard' ], videoWidth: 3840, minFps: 3, supportsPhotoHdr: false, photoWidth: 3840, supportsDepthCapture: false, maxISO: 880, maxFps: 60 }
Format on fix/maxresolution
{ minISO: 22, photoHeight: 2160, fieldOfView: 65.70668029785156, videoHeight: 2160, autoFocusSystem: 'phase-detection', supportsVideoHdr: false, pixelFormats: [ 'yuv', 'yuv', 'rgb' ], videoStabilizationModes: [ 'auto', 'cinematic', 'off', 'standard' ], videoWidth: 3840, minFps: 3, supportsPhotoHdr: false, photoWidth: 3840, supportsDepthCapture: false, maxISO: 880, maxFps: 60 }
from react-native-vision-camera.
thanks - does the resulting photo have the same resolution?
from react-native-vision-camera.
Yes!
Photofile on fix/maxresolution
{ "isRawPhoto":false, "thumbnail":null, "path":"file:///private/var/mobile/Containers/Data/Application/C3519339-ECC7-46D5-B0DB-E6322504865E/tmp/28245647-7C3A-4B2C-B956-D4F1A161F853.jpeg", "height":2160, "metadata":{ "{MakerApple}":{ "1":14, "2":null, "3":{ "timescale":1000000000, "epoch":0, "value":3216802336416, "flags":1 }, "4":0, "5":167, "6":123, "7":1, "8":[ -0.06240756809711456, -0.9795665740966797, -0.23674972355365753 ], "12":[ 0.31640625, 1.4296875 ], "13":0, "14":0, "15":3, "16":1, "20":1, "23":0, "25":0, "31":0, "32":"2F939D99-18E5-4EC4-B9F7-4987194D6090", "35":[ 25, 268435531 ], "37":40, "38":1, "39":12.925505638122559, "43":"65A8E65E-6D11-438A-81AB-C293AC08B1B8", "45":5365, "46":1, "47":114, "54":80, "55":4, "59":0, "60":4, "65":false, "74":2 }, "{TIFF}":{ "ResolutionUnit":2, "Software":"16.3.1", "Make":"Apple", "DateTime":"2024:03:18 17:40:31", "XResolution":72, "HostComputer":"iPhone SE (2nd generation)", "Model":"iPhone SE (2nd generation)", "YResolution":72 }, "DPIHeight":72, "Orientation":6, "{Exif}":{ "DateTimeOriginal":"2024:03:18 17:40:31", "ExposureTime":0.01, "FNumber":1.8, "LensSpecification":[ 3.99, 3.99, 1.8, 1.8 ], "ExposureBiasValue":0, "ColorSpace":1, "FocalLenIn35mmFilm":32, "BrightnessValue":0.15357126268642995, "ExposureMode":0, "LensModel":"iPhone SE (2nd generation) back camera 3.99mm f/1.8", "SceneType":1, "PixelXDimension":3840, "ShutterSpeedValue":6.645877377994082, "SensingMethod":2, "SubjectArea":[ 1920, 1079, 2112, 950 ], "ApertureValue":1.6959938131099002, "SubsecTimeDigitized":"693", "FocalLength":3.99, "LensMake":"Apple", "SubsecTimeOriginal":"693", "OffsetTimeDigitized":"+01:00", "PixelYDimension":2160, "ISOSpeedRatings":[ 800 ], "WhiteBalance":0, "DateTimeDigitized":"2024:03:18 17:40:31", "OffsetTimeOriginal":"+01:00", "ExifVersion":"0232", "OffsetTime":"+01:00", "Flash":16, "ExposureProgram":2, "MeteringMode":5 }, "DPIWidth":72 }, "isMirrored":false, "orientation":"landscape-right", "width":3840 }
from react-native-vision-camera.
Okay then I think it makes sense to just remove that prop.
from react-native-vision-camera.
Related Issues (20)
- 🐛 Static background audio noise in the recorded video. HOT 1
- 🐛 V4 No supported surface combination is found when attaching all use-cases HOT 7
- 🐛 I updated my react native version to 0.73.6 my device's back camera and front camera undefined, I have checked it in several android devices all gives the same issue. 💭 HOT 2
- 🐛 takePhoto() generate a fully green image - An unknown error occurred while creating the Camera Session, but the Camera can recover from it HOT 2
- 🐛 Not bound to a valid Camera HOT 2
- 🐛 session/camera-not-ready The Camera is not ready yet! Wait for the onInitialized() callback! HOT 3
- 🐛 Preview stretched / zoomed-in on android HOT 23
- 🔧 CameraDevicesManager.kt: (10, 47): Unresolved reference: RCTDeviceEventEmitter HOT 3
- ✨ chunked recording HOT 7
- 💭 IPhone15 pro max QR code flashing back
- 🐛 Torch stays on after closing the camera HOT 1
- Hi Im using react-native:0.73.6 after capturing photo or video if I try to close the view I have: FATAL EXCEPTION: mrousavy/VisionCamera.main 💭 HOT 2
- 🐛 Error on iOS device while running the react-native-vision-camera example HOT 2
- 🔧 New version "react-native-vision-camera": "^3.9.2" always showing error
- `VisionCamera` does not specify a Swift version and none of the targets (`foobar`) integrating it have the `SWIFT_VERSION` attribute set HOT 1
- ✨ Support export of rawBytes/Data in barcode scanning HOT 2
- 🐛 takePhoto() intermittently failing with [unknown/unknown: Failed to submit capture request] on v4.0.0-beta.10 HOT 1
- Execution failed for task ':react-native-vision-camera:compileDebugKotlin'🔧 HOT 4
- 🐛 photoResolution: 'max' not the same as native camera photo. HOT 9
- 💭 Place text on a frame HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-vision-camera.