Comments (9)
3.9.2 (v4)
Well, what is it? I'm assuming V4 then?
So I just ran this on my iPhone 15 Pro:
const f = useCameraFormat(device, [{ photoResolution: 'max' }])
console.log(JSON.stringify(f))
And I get
{
"minISO": 55,
"photoHeight": 6048,
"fieldOfView": 71.28567504882812,
"videoHeight": 3024,
"autoFocusSystem": "phase-detection",
"supportsVideoHdr": false,
"pixelFormats": [
"yuv",
"yuv",
"rgb",
"unknown",
"yuv",
"unknown",
"yuv",
"unknown",
"rgb"
],
"videoStabilizationModes": [
"auto",
"off"
],
"videoWidth": 4032,
"minFps": 1,
"supportsPhotoHdr": false,
"photoWidth": 8064,
"supportsDepthCapture": false,
"maxISO": 12320,
"maxFps": 30
}
..which is 8064x6048, the maximum available photo resolution.
I think the problem you're seeing is because you are using the wrong device
, not all devices have the same formats. See the "Camera Devices" documentation for more information.
Maybe you need to select the triple camera:
const device = useCameraDevice('back', {
physicalDevices: ['ultra-wide-angle-camera', 'wide-angle-camera', 'telephoto-camera']
})
..as those devices use multiple devices to deliver photos that are stitched together - hence the higher resolution.
from react-native-vision-camera.
hi,
Thank you for your help. So, I've experimented with the different physical devices ('ultra-wide-angle-camera', 'wide-angle-camera', 'telephoto-camera' and various multi-cam configurations. Still can't seem to capture pictures that are of the same high-resolution as a native device's camera. Here's a brief breakdown:
Using an iPhone 15 pro max, the example app in 'react-native-vision-camera iOS example', the result is: 8MP, 2160x3840
Using an iPhone 15 pro max, my react-native-vision-camera app and
const device = useCameraDevice('back', {
physicalDevices: ['wide-angle-camera']
});
the result is: 12MP, 3024 x 4032
Using an iPhone 15 pro max, my react-native-vision-camera app and
const device = useCameraDevice('back', {
physicalDevices: ['ultra-wide-angle-camera', 'telephoto-camera']
});
the result is: 12MP, 3024 x 4032
Using an iPhone 15 pro max, my react-native-vision-camera app and
const device = useCameraDevice('back', {
physicalDevices: ['ultra-wide-angle-camera', 'wide-angle-camera', 'telephoto-camera']
});
the result is: 12MP, 3024x4032
Using an iPhone 15 pro max, my react-native-vision-camera app and
const device = useCameraDevice('back', {
physicalDevices: ['ultra-wide-angle-camera', 'wide-angle-camera']
});
the result is: 12MP, 3024x4032
Using the iPhone 15 pro max's camera:
the result is: 24MP, 5712 x 4284
[The scene was exactly the same for all of the above picture taking]
So, the question is, how can I configure react-native-vision-camera to use the same high-resolution as the default camera (i.e, 24MP, 5712 x 4284)?
Thank you so much for your help
kind regards
from react-native-vision-camera.
I think the default Camera shoots ProRAW or HEIF or something where it can do higher resolution. VisionCamera doesn't have support for that yet (see #1851)
from react-native-vision-camera.
Would you happen to know when "react-native-vision-camera" will support RAW and Apple ProRAW Formats?
from react-native-vision-camera.
As mentioned in the issue I linked, it is currently a feature request I'm raising money for (to fund the development) - I don't plan on developing this for free in my free time
from react-native-vision-camera.
Could you explain how the process works, please?
from react-native-vision-camera.
People donate some funds, and once the pool is full I will implement it.
from react-native-vision-camera.
how long does it generally take for the funds to reach the appropriate level? how long will it take to implement the feature? what if more funds are needed (ie., it is more complex than originally assessed)?
from react-native-vision-camera.
I don't know, I don't have a lot of experience with that.
But generally people don't like paying money for open source, so it's hard to raise funds.
If it takes longer, no more money will be requested, that's my risk.
from react-native-vision-camera.
Related Issues (20)
- Android build fails - Task configureCMakeDebug[arm64-v8a] - due linkage with react-native-reanimated 🔧 HOT 3
- Black screen with useSkiaProcessor 🐛 HOT 1
- IOS 12 does not work with version 4.0.0? (according to the guide, it should) HOT 2
- 🐛 Camera FPS throttles on low light, and torch doesn't always work HOT 8
- 🐛 Function inside `runAsync` in `useSkiaFrameProcessor` runs only once HOT 5
- 🐛 Photo is not what is in the preview HOT 10
- 🐛 On iOS 15, takePhoto produces a very low quality photo HOT 4
- 💭 Overlay using SVG does not match the camera preview on Android HOT 6
- Open Flash light by click on the Icon HOT 4
- 💭 Is this supposed to be compatible with RN 0.72 ? HOT 2
- Flash documented as `auto` by default, but actually `off` HOT 2
- 🐛 Task :react-native-vision-camera:compileDebugKotlin FAILED on React Native 0.74.X Android Platform HOT 8
- 🐛 Camera Preview does not align with taken picture HOT 5
- 🐛 Front camera recording is inverted when going from Back to Front camera during recording on Android HOT 4
- 🐛 Square ratio preview has low quality HOT 6
- Is there a way to make the codeScanner only scan the barcode once? HOT 2
- 🐛 Switching between aspect ratios HOT 2
- 🐛 useSkiaFrameProcessor makes camera being blank HOT 8
- 🐛 App crashes when using Camera with frame processor after last update HOT 1
- 🐛 `[session/invalid-output-configuration]`: Cannot create session on some Xiaomi phones HOT 4
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.