android-imaging-utils


Source link: https://github.com/ravindu1024/android-imaging-utils

android-imaging-utils

A simple library that makes it easier to use the camera and do image processing via opencv.

Blur:

RGB2Gray:

Edge Detection (Canny):

Installation

1 - Add this to the allProjects repositories:

 maven {
 url 'https://jitpack.io' 
}

2 - Add this as an app dependency:

 compile 'com.github.ravindu1024:android-imaging-utils:1.0.0'

Features

  • OpenCV integration
  • Helper classes for Camera and Video Recording

Usage

1 - Open Camera

CameraController.connect(CameraController.CameraType.Default, 90);
  CameraController.PreviewSize p = CameraController.getBestPreviewSize(640, 480);
 //get the best preview matching the aspect ratio  CameraController.setPreviewCallback(...);
  CameraController.startPreview(previewTexture, p);

2 - Close/Disconnect Camera

CameraController.disconnect();

3 - Start Video Recording

VideoRecorder.startRecording(saveFilePath, rotation, maxRecordLengthMillis, camCoderProfile);

4 - Stop Recording

VideoRecorder.stopRecording();

Supported ABIs

  • armeabi
  • armeabi-v7a
  • arm64-v8a
  • mips
  • x86

Binary Size

The library size will be around 40MB with opencv 3.3.0 so if you need to keep the apk size small, include the following in your app gradle file, in the android tag

splits {

abi {

 enable true

  reset()

  include "x86", "armeabi-v7a"

 universalApk false

}

  
}

This creates 2 apk files - one for arm and one for x86 platforms.

If you only need to use the CameraController and VideoRecoder classes without any image processing, add the following to your app gradle file

packagingOptions{

exclude 'lib/*/libopencv_java3.so'
  
}

Resources

This compiler will generate you db class, content provider and several helper class for you from a describing file. You can set several options like package name, database name, database version, content authority and others.

An extension to Moshi that provides general purpose, simple and yet useful JsonAdapters that are not present in the main library.

A pure MVC base library on android. Using it, your code can be very clean in MVC pattern: light Activity, light View, light Model.

A download progressbar with cool animation.

A fluent API to integrate with Strava on Android apps.

A painless way to pick future time.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes