Code Monkey home page Code Monkey logo

Comments (9)

mrousavy avatar mrousavy commented on May 24, 2024

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.

erssykes avatar erssykes commented on May 24, 2024

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.

mrousavy avatar mrousavy commented on May 24, 2024

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.

erssykes avatar erssykes commented on May 24, 2024

Would you happen to know when "react-native-vision-camera" will support RAW and Apple ProRAW Formats?

from react-native-vision-camera.

mrousavy avatar mrousavy commented on May 24, 2024

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.

erssykes avatar erssykes commented on May 24, 2024

Could you explain how the process works, please?

from react-native-vision-camera.

mrousavy avatar mrousavy commented on May 24, 2024

People donate some funds, and once the pool is full I will implement it.

from react-native-vision-camera.

erssykes avatar erssykes commented on May 24, 2024

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.

mrousavy avatar mrousavy commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.