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

FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.

A Java API to read, write and create MP4 container. Manipulating containers is different from encoding and decoding videos and audio.

What can you do?

  • Muxing audio/video into an MP4 file
  • Append recordings that use same encode settings
  • Adding/Changing metadata
  • Shorten recordings by ommiting frames.

android-spock allows to run Spock on Android.

Godot is a fully featured game engine. It focuses on having great tools, and a visual oriented workflow that can export to PC, Mobile and Web platforms with no hassle. The editor, language and APIs are feature rich, yet simple to learn, allowing you to become productive in a matter of hours.

Sample project created to reinforce some of the main concepts described in the tech talk "Effective Android UI".

AnUitor is a result of my rebranding experiences of one android app what i was working on. Because of structure of project(s), not using themes, complexity of UI and app itself, it was really hell and time consuming work to finish app rebranding. Project structure had been done like sub-projects, because of big amount of different assets, logic, etc. I found out also AnUitor very useful in time of UI refactoring/bugfixing other apps what i didn't know much deeply from UI perspective.

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