Prerequisites
What problem are you trying to solve?
This isn't a feature request, but it didn't fit the bug template. Not sure whether this is a bug, a docs issue, or user error.
On an iOS device with an ultra-wide-angle camera:
const device = useCameraDevice('back', { physicalDevices: ['ultra-wide-angle', 'wide-angle', 'telephoto'] })
console.log(device.minZoom)
console.log(device.zoomLensSwitchFactors)
Proposed API / solution
The docs on zooming say:
If a virtual Camera contains an 'ultra-wide-angle' Camera (the "0.5x Camera"), the user may zoom out to less than 1 (here 0.5) instead.
minZoom <= 1 (e.g. 0.5x)
natural zoom = 1
maxZoom >= 1 (e.g. 3x)
And the section on zoomLensSwitchFactors says:
const camera = ... // Triple-Camera (0.5x, 1x, 3x)
camera.zoomLensSwitchFactors // [1, 3]
But the actual output is:
console.log(device.minZoom) // 1
console.log(device.zoomLensSwitchFactors) // [2, 8]
Is this the expected output?
In vision camera v4, there was a neutralZoom property, but that doesn't exist in v5. If minZoom is correctly returned as 1, how is the application meant to determine that neutralZoom should be 2?
Alternatives considered
No response
Platforms this should target
iOS
Would you be willing to contribute this?
No, I'm requesting only.
Additional context
No response
Submission
Prerequisites
What problem are you trying to solve?
This isn't a feature request, but it didn't fit the bug template. Not sure whether this is a bug, a docs issue, or user error.
On an iOS device with an ultra-wide-angle camera:
Proposed API / solution
The docs on zooming say:
And the section on zoomLensSwitchFactors says:
But the actual output is:
Is this the expected output?
In vision camera v4, there was a neutralZoom property, but that doesn't exist in v5. If
minZoomis correctly returned as 1, how is the application meant to determine thatneutralZoomshould be 2?Alternatives considered
No response
Platforms this should target
iOS
Would you be willing to contribute this?
No, I'm requesting only.
Additional context
No response
Submission