Simple Android Application template connected to OpenCV libs version 2.4.11.
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.
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.
This project contain one activity. You can replace the XML code in activity_main.xml with the initial android XML code:
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.
DO NOT DELETE THE FOLLOWING CODE:
static{ if (!OpenCVLoader.initDebug()) ...}
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.