This project skeleton contains the minimal files and structure to help you start the assignment. You still need to open the project in Android Studio, provide proper Gradle files, add OpenCV SDK, and configure NDK.
android-opencv-opengl-assignment/
βββ app/
β βββ src/
β β βββ main/
β β βββ java/com/example/app/MainActivity.kt
β β βββ java/com/example/app/NativeLib.kt
βββ jni/
β βββ native-lib.cpp
βββ CMakeLists.txt
βββ web/
β βββ index.html
β βββ index.ts
β βββ package.json
β βββ tsconfig.json
βββ .gitignore
βββ README.md
- Minimal Kotlin files showing how to call JNI.
- Minimal C++ native file (OpenCV calls are stubbed; include OpenCV in your CMake when available).
- A CMakeLists.txt that is a placeholder β adjust paths for OpenCV SDK on your machine.
- A tiny TypeScript web viewer skeleton.
- README with instructions and next steps.
- Open Android Studio and create a proper Android project (or import this folder into a full project).
- Add Gradle (
build.gradle
,settings.gradle
) and Android manifest β not included in this skeleton. - Download OpenCV Android SDK and point
CMakeLists.txt
to the OpenCV SDK path. - Configure
app/build.gradle
to enable externalNativeBuild (CMake) and set the NDK version. - Build and run on an Android device with USB debugging enabled.
- Place sample processed images into
/web
to preview the web viewer.
Author: Gurram Gowthami