Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.97 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.97 KB

OpenCV Example

Simple Android Application template connected to OpenCV libs version 2.4.11.

Description

This project designed and developed to be template that just connected to OpenCV libs 2.4.11. It designed to used by anyone who want to connect android studio with opencv, so anyone want to make an android application that connected to opencv, he can use this project as starter code.

What this project do?

This project just connected to openCV 2.4.11 and it convert colored image to grayscale image to make sure that the OpenCV works fine.

Screenshots

How to use it as starter code?

This project contain one activity. You can replace the XML code in activity_main.xml with the initial android XML code:

screen shot 2016-08-08 at 4 15 41 am

Also, in MainActivity.java you can delete all variables and the inner class ConvertInBackground, then you will have a new Android project that connected to OpenCV.

NOTE

DO NOT DELETE THE FOLLOWING CODE:

static{ if (!OpenCVLoader.initDebug()) ...}

License

Copyright (C) 2018 Shehab Salah

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.