react-native-vision-camera | 📸 The Camera library that sees the vision | Computer Vision library

 by   mrousavy Swift Version: 3.9.0-beta.6 License: MIT

kandi X-RAY | react-native-vision-camera Summary

kandi X-RAY | react-native-vision-camera Summary

react-native-vision-camera is a Swift library typically used in Artificial Intelligence, Computer Vision, React Native, OpenCV applications. react-native-vision-camera has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

The Camera library that sees the vision.

            kandi-support Support

              react-native-vision-camera has a medium active ecosystem.
              It has 4177 star(s) with 655 fork(s). There are 40 watchers for this library.
              There were 10 major release(s) in the last 6 months.
              There are 351 open issues and 351 have been closed. On average issues are closed in 39 days. There are 86 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of react-native-vision-camera is 3.9.0-beta.6

            kandi-Quality Quality

              react-native-vision-camera has 0 bugs and 11 code smells.

            kandi-Security Security

              react-native-vision-camera has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              react-native-vision-camera code analysis shows 0 unresolved vulnerabilities.
              There are 7 security hotspots that need review.

            kandi-License License

              react-native-vision-camera is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              react-native-vision-camera releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 2204 lines of code, 120 functions and 88 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-vision-camera
            Get all kandi verified functions for this library.

            react-native-vision-camera Key Features

            No Key Features are available at this moment for react-native-vision-camera.

            react-native-vision-camera Examples and Code Snippets

            No Code Snippets are available at this moment for react-native-vision-camera.

            Community Discussions


            React-native-vision-camera can't access to normal camera in back
            Asked 2022-Mar-07 at 07:02

            i am trying to use 'normal' camera on my iphone 11 pro. I use react-native-vision-camera. When i run this code:



            Answered 2022-Mar-07 at 07:02

            tl;dr - Single-lens smartphone cameras commonly have a wide-angle lens of roughly 22mm and 30mm equivalent. So basically, you would want to choose wide-angle, as this is the "normal" type.

            based on the react-native documentation, there are three Identifiers for a physical camera (one that exists on the back/front of the device):

            "ultra-wide-angle-camera" | "wide-angle-camera" | "telephoto-camera"

            "ultra-wide-angle-camera": A built-in camera with a shorter focal length than that of a wide-angle camera. (focal length between below 24mm)

            "wide-angle-camera": A built-in wide-angle camera. (focal length between 24mm and 35mm)

            "telephoto-camera": A built-in camera device with a longer focal length than a wide-angle camera. (focal length between above 85mm)

            now that we have that settled, let's take a look at cameras' focal lengths that are equivalent to phone cameras' focal length (resource)

            Camera type Focal length Angle-of-view Wide-angle 22mm to 30mm ~84° to ~62° Telephoto 50mm to 80mm ~40° to ~25° Ultrawide-angle 12mm to 18mm ~112° to ~90° Periscope 103mm to 125mm ~20° to ~16°

            what is considered a "normal" focal length is 35mm, so you should choose wide-angle since it is the closest (and eventually with the angle of view the user might be even closer to 35mm), further more the wide-angle is the most common focal-length for phone camera lens



            Google MLKIt TextRecognition on iOS return always empty result
            Asked 2022-Feb-07 at 16:19

            I am using react-native, react-native-vision-camera (with frameProcessor) and mlkit to perform in device text recognition.

            My code works on Android, but I got always empty results on iOS.

            Here is my Objective C implementation:



            Answered 2022-Feb-07 at 14:15

            Solved by updating iPhone iOS version to last version.



            CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" on React Native ios
            Asked 2022-Feb-02 at 19:23

            I am trying to install React Native Firebase Mlkit to my existing iOS React Native app. My app is already using various Firebase packages (app, auth, firestore, etc.).

            I am following the instructions from the guide. I tried both automatic and manual installation. But when I run pod install, I got this error:



            Answered 2022-Feb-02 at 19:23

            1) First off Firebase/MLVisionTextModel is deprecated (FirebaseMLVisionTextModel has been deprecated in favor of MLKitTextRecognition). You can read the migration guide here (

            2) If you ever have errors like was resolved to x.x.x, which depends on Firebase/CoreOnly (= x.x.x) A lot of times you can fix this by adding this below at the very top of your PodFile to specify what version to use.



            Accessing Cache Images to upload to S3, in React native
            Asked 2022-Jan-12 at 11:31

            Using react-native-vision-camera, I saw that there is a path for the image. It seem readable by react native tag.

            I attempted to upload using this path (I used both file:// for android, and same for IOS), however it failed. Each time the file was detected as "jpeg" or "jpg" but I couldn't access it.

            After downloading (From S3 amazon where I uploaded) and converting the jpg to txt, I only find the "file://path".



            Answered 2022-Jan-12 at 11:31

            AWS-AMPLIFY support uploading file as BLOB and converting to specified file extension (JPEG, PNG,...).

            Assume that we have local file URI - file:///storage/emulated/0/Android/data/

            Let we refactor s3UploadBackup function



            How do you implement React-native-gesture-handler with React Navigation 6.x Native Stack Navigator (RN>0.6)?
            Asked 2021-Nov-30 at 08:25

            So, I am building a prototype android app as an internship project for a startup in React Native v0.66. I was new to RN but not React when I set up the project. My choice for navigation fell upon React Navigation 6.x and their Native Stack Navigator because it performs better than the regular Stack Navigator, although is not as customizable according to docs.

            Now I want to use react-native-gesture-handler in my project. According to their docs,

            "If you are using a native navigation library like wix/react-native-navigation you need to follow a different setup for your Android app to work properly. The reason is that both native navigation libraries and Gesture Handler library need to use their own special subclasses of ReactRootView.

            Instead of changing Java code you will need to wrap every screen component using gestureHandlerRootHOC on the JS side. This can be done for example at the stage when you register your screens."

            I suppose this includes React Navigation-Native Stack Navigator as well? There is code example of how to implement RNGH with wix/react-native-navigation, but none, anywhere, for my case:



            Answered 2021-Nov-30 at 08:25


            How to hot reload a development package in an Expo app example nested folder?
            Asked 2021-May-28 at 20:54

            Is it possible to an Expo app example to load a module located in the parent folder AND to see changes in the example app when i rebuild the package (with tsc -w to rebuild on any saved files)? I precise that the module is not publish on npm yet.

            I've already succeed to do that using monorepo architecture with yarn workspaces and expo-yarn-workspaces package. But what about the case when you don't want to publish your package like a monorepo?

            For example, in this repo There is an example RN app in bare workflow and in its package.json there is no mention of the developed package (meaning that it's not installed like a normal dependency). But in the app src/App.tsx, the package is used like that :



            Answered 2021-May-28 at 20:54

            Finally, I've found something that works for me. You can find my config for metro if you want here: With it, you can access the parent component from the expo app, modify it and immediately see the hot-reload changes. Create a file metro.config file in your expo root app directory with that code inside:



            Swift linker error: Undefined symbol for surely available API presentationDimensions
            Asked 2021-Mar-07 at 11:05

            I'm developing a Camera App which uses the presentationDimensions(...) API:



            Answered 2021-Mar-07 at 11:05

            Finally found the answer. I had SWIFT_VERSION pinned to 5.0, but iOS 13 came with Swift 5.2 so pinning Swift to 5.2 (and removing the LIBRARY_SEARCH_PATH pointing to 5.0) solved it.

            That means, this:


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install react-native-vision-camera

            You can download it from GitHub.


            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • npm

            npm i react-native-vision-camera

          • CLONE
          • HTTPS


          • CLI

            gh repo clone mrousavy/react-native-vision-camera

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link