Faisal-FS / CameraX-In-Java

Implementation of CameraX In Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CameraX-In-Java

Implementation of CameraX In Java.

Tutorial

This project is a reference code made for the video 'Camera X in Java | Image Capture, Video Capture, Image Analysis'.

Link: https://youtu.be/IrwhjDtpIU0

Features

  • Captures the photo via front camera or rear camera
  • Records the video
  • Perform real time analysis on the frames
  • Android 13 supported

Screenshots

HOME
home
Image Capture Video Capture
Image Capture Video Capture

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

The things you need before installing the software.

  • Android Studio

Installation

Clone this repository and import into Android Studio

git clone git@github.com:Faisal-FS/CameraX-In-Java.git

Configuration

Gradle Dependencies:

dependencies {
    def cameraxVersion = "1.1.0-alpha05"
    implementation "androidx.camera:camera-core:${cameraxVersion}"
    implementation "androidx.camera:camera-camera2:${cameraxVersion}"
    implementation "androidx.camera:camera-lifecycle:${cameraxVersion}"

    // CameraX View class
    implementation 'androidx.camera:camera-view:1.0.0-alpha25'
}

Permissions:

First enable permissions from the app info in device settings.

* Camera
* Microphone
* Read/Write External Storage

Did I help you out? Consider buying me a coffee 😎

https://www.buymeacoffee.com/codingreel

About

Implementation of CameraX In Java


Languages

Language:Java 100.0%