Coder Social home page Coder Social logo

android-camera-wrapper's Introduction

Camera Wrapper with GLSurfaceView for android

Android introduced Camera2 in API level 21 and its dificult to support old devices and new devices in one app. The way the new API works is vastly different from the old one. Which sometimes mean implementing two independent pathways for both the cameras.

This is an attempt to wrap the two APIs in one Class and give an API for common use cases.

This comes with a GLSurfaceView for preview surface as I find it the most versatile (for adding OpenGLES shaders etc)

Current supported functions :

  1. Open - opens a camera (defaults to front facing) and begins previewing on the GLSurfaceView
  2. Swap Camera - flips between front facing and rear facing camera

Usage

  1. initialize camera
  2. set Renderer for your GLSurfaceView

android-camera-wrapper's People

Contributors

dennyabrain avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

vikasrathore

android-camera-wrapper's Issues

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.