Giter Site home page Giter Site logo

vemarav / react-native-vision-camera Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrousavy/react-native-vision-camera

0.0 0.0 0.0 117.24 MB

๐Ÿ“ธ The Camera library that sees the vision.

Home Page: https://react-native-vision-camera.com

License: MIT License

Shell 0.69% JavaScript 1.04% Ruby 0.94% C++ 15.50% C 0.08% Objective-C 3.29% Java 2.53% Kotlin 25.33% TypeScript 23.19% Objective-C++ 5.34% Swift 21.54% CMake 0.54%

react-native-vision-camera's Introduction

VisionCamera

Features

VisionCamera is a powerful and fast Camera component for React Native. It features:

  • ๐Ÿ“ธ Photo and Video capture
  • ๐Ÿ“ฑ Customizable devices and multi-cameras ("fish-eye" zoom)
  • ๐ŸŽž๏ธ Customizable resolutions and aspect-ratios (4k/8k images)
  • โฑ๏ธ Customizable FPS (30..240 FPS)
  • ๐Ÿงฉ Frame Processors (JS worklets to run QR-Code scanning, facial recognition, AI object detection, realtime video chats, ...)
  • ๐Ÿ” Smooth zooming (Reanimated)
  • โฏ๏ธ Fast pause and resume
  • ๐ŸŒ“ HDR & Night modes
  • โšก Custom C++/GPU accelerated video pipeline (OpenGL)

Install VisionCamera from npm:

yarn add react-native-vision-camera
cd ios && pod install

..and get started by setting up permissions!

Documentation

V3

You're looking at the V3 version of VisionCamera, which features a full rewrite on the Android codebase and a huge refactor on the iOS codebase. If you encounter issues on V3, you can also downgrade to V2, which is still partially supported.

Example

function App() {
  const devices = useCameraDevices('wide-angle-camera')
  const device = devices.back

  if (device == null) return <LoadingView />
  return (
    <Camera
      style={StyleSheet.absoluteFill}
      device={device}
      isActive={true}
    />
  )
}

See the example app

Adopting at scale

This library helped you? Consider sponsoring!

VisionCamera is provided as is, I work on it in my free time.

If you're integrating VisionCamera in a production app, consider funding this project and contact me to receive premium enterprise support, help with issues, prioritize bugfixes, request features, help at integrating VisionCamera and/or Frame Processors, and more.

Socials

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.