Giter Site home page Giter Site logo

camera2basicstream's Introduction

Android Camera2BasicStream

This little demo is based on the Camera2Basics example. I really needed to pipe out every frame the camera provides to a specific endpoint e.g for streaming. The camera2 api is quite new and right now its a little bit more complicated to grab a frame and convert it to a bitmap for your processing needs.

The app will work on the nexus4 and the moto x. Why that ?

The imageformat YUV420SP is not used anymore now you have to deal with yuv_420_888. The problem is YUV_420_888 is still not implemented correctly that means you simply cant use it. It will be fixed in Android (5.1.1). The fallback is jpeg(HAL_PIXEL_FORMAT_RGBA_888) not every camera/mobile delievers that format so the implementation is kinda weak for now and not really fast but it works ! :)

Pre-requisites

  • Android SDK v23
  • Android Build Tools v23.0.1
  • Android Support Repository

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

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.