Comments (11)
Last time I checked, RNVC does all kinds of wired things within simulators. On iOS simulators it outright refuse to work.
from react-native-vision-camera.
RNVC does all kinds of wired things within simulators
Well it's hard to simulate Cameras. Also, CameraX handles that part. The logs appear to be from the Camera simulation, not something I wrote.
On iOS simulators it outright refuse to work
Not my fault, Apple doesn't provide Cameras on Simulators. It's a Simulator, not an Emulator.
from react-native-vision-camera.
Just to clarify, you are seeing exactly the same behaviour on 3.9.x and on 4.x.x? Because I'm sure that 4.x.x should work.
from react-native-vision-camera.
That is fair. I am really trying to troubleshoot an issue with Android 9 device (black screen). I do not have access to the device, so I was looking for ways to reproduce the error.
I've tested specifically with 3.9.2 and 4.0.1
from react-native-vision-camera.
I'm not intended to blame anything on RNVC.
I'm just stating the fact that this lib does not work with simulators and, potentially telling OP that he'd better get a real phone to test this lib out.
And I figure we can declare "simulator support" as complete out of scope and then there is no need to care about whose fault it is.
from react-native-vision-camera.
The actual problem I am trying to troubleshoot is that the camera show a back screen on some Android 9 devices (Specifically LG G6 H873. It seems fine on Samsung and a few other devices I've tried).
On 4.0.1, can you try to add the prop photoQualityBalance='speed' or photoQualityBalance='quality' and see if it fixes the black screen issue.
from react-native-vision-camera.
I can try that. For clarity, we are only using the camera for reading QR code.
from react-native-vision-camera.
I can try that. For clarity, we are only using the camera for reading QR code.
Then the photoQualityBalance
prop has no effect.
from react-native-vision-camera.
I've got a hold of a LG Device which I can reproduce the error, not much in logcat that makes sense to me, but now I can play with different settings:
15:03:45.117 I Camera #0: Unavailable!
15:03:45.120 I Updating CameraSession...
15:03:45.133 I PreviewView onMeasure(1440, 2352)
15:03:45.133 D coverSize :: 1920x1080 (0.5625), 1440x2352 (0.6122448979591837)
15:03:45.133 D Fitted dimensions set: 1440x2560
15:03:45.165 I PreviewView Surface created! Surface(name=null)/@0x592a6c
15:03:45.166 I Setting Preview Output...
15:03:45.167 I PreviewView Surface updated! Surface(name=null)/@0x592a6c 1920 x 1080
15:03:45.312 I Camera 0: Opened!
15:03:45.382 I Successfully configured Camera #0!
15:03:45.382 I Resizing PreviewView to 1680 x 720...
15:03:45.384 I Configuring Session for Camera #0...
15:03:45.386 I Adding 1280 x 720 CodeScanner Output in Format #35...
15:03:45.410 I PreviewView Surface updated! Surface(name=null)/@0x592a6c 1680 x 720
15:03:45.519 I Considering local module com.google.mlkit.dynamite.barcode:10000 and remote module com.google.mlkit.dynamite.barcode:0
15:03:45.520 I Selected local version of com.google.mlkit.dynamite.barcode
15:03:45.574 I vendor::lge::hardware::configstore::V1_0::IConfigStore::getUBWCUsageFlag retrieved: 0 (default)
15:03:45.591 I Camera 0: Creating Capture Session #1000... Hardware Level: 3} | Outputs: [android.hardware.camera2.params.OutputConfiguration@d89b816e]
15:03:45.592 I Using legacy API (<28)
15:03:45.614 I Camera 0: Capture Session #1000 configured!
15:03:45.617 I Successfully configured Session with 1 outputs for Camera #0!
15:03:45.617 I Successfully updated CameraSession Configuration! isActive: false
15:03:45.618 I invokeOnInitialized()
15:03:45.618 I invokeOnStopped()
15:03:45.620 I Updating CameraSession Configuration...
15:03:45.621 W Preview Output is null, aborting...
15:03:45.621 I Successfully updated CameraSession Configuration! isActive: true
15:03:45.621 I invokeOnStarted()
15:03:45.623 I Updating CameraSession Configuration...
15:03:45.625 I Configuring Session for Camera #0...
15:03:45.625 I Closing BarcodeScanner..
15:03:45.631 I Adding 1680 x 720 Preview Output...
15:03:45.634 I Resizing PreviewView to 1680 x 720...
15:03:45.638 I Adding 1280 x 720 CodeScanner Output in Format #35...
15:03:45.649 I Considering local module com.google.mlkit.dynamite.barcode:10000 and remote module com.google.mlkit.dynamite.barcode:0
15:03:45.649 I Selected local version of com.google.mlkit.dynamite.barcode
15:03:45.651 I Camera 0: Creating Capture Session #1001... Hardware Level: 3} | Outputs: [android.hardware.camera2.params.OutputConfiguration@9f263cc6, android.hardware.camera2.params.OutputConfiguration@ec50e69b]
15:03:45.651 I Using legacy API (<28)
15:03:45.690 I Camera 0: Capture Session #1001 configured!
15:03:45.690 I Camera 0: Capture Session #1000 closed!
15:03:45.691 I Successfully configured Session with 2 outputs for Camera #0!
15:03:45.712 I Successfully updated CameraSession Configuration! isActive: true
from react-native-vision-camera.
@cvarjao That's VisionCamera 3. Can you please try with VisionCamera 4 and post the logs here? I doubt that the issue is reproduceable there.
from react-native-vision-camera.
we updated to 4.0.1
and the problem with the physical device went away. So, we can close this one since the emulator issue might be unrelated. Thanks!
from react-native-vision-camera.
Related Issues (20)
- barcodeScan mask flipped view HOT 1
- 💭 Is it possible to display the front and back cameras at the same time HOT 1
- ✨ Contrast HOT 1
- _NativeCameraModule.CameraModule.getLocationPermissionStatus is not a function (it is undefined)🔧 HOT 1
- 💭 Two separate frame processors at different target FPS HOT 7
- 🐛 [AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces'. HOT 2
- APK Size increase After implementing react-native-vision-camera lib double the apk size HOT 4
- 💭 Why the Photo Result Does Not Come Out in the Specified Aspect Ratio HOT 1
- 🐛 `finally` on a `Promise` stops camera on Android HOT 3
- 🐛 [V4][Android] Release crash: maxImages (6) has already been acquired HOT 1
- 🔧 Not able to build expo dev client when using any of the given frame processing plugin for OCR HOT 2
- 🐛 [Android] isActive change doesn't happen fast enough causing device/camera-already-in-use error when switching to native camera app HOT 1
- 🔧 Execution failed for task ':react-native-vision-camera:compileReleaseKotlin'. HOT 3
- 🔧 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change. HOT 10
- 💭 Android: Frameprocessor HOT 7
- 💭 Focus not work HOT 1
- 🐛 Memory leak Android HOT 6
- 💭 [iOS] Did someone manage to get to reasonable FPS with ML Kit Pose Detection (native frame processor plugin)? HOT 2
- 💭 Lifecycle methods for native frame processors HOT 5
- 💭 How to access GPS location tags in photo metadata? 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.