
Install Cordova with npm to start a course using Webassembly OpenCV, with basic HTML, CSS, JavaScript, and Bash skills, and 2 GB RAM and 16 GB disk for Android development.
Create a new project, add a new platform to this project, prepare the Android SDK, download the Android SDK, unpack the Android SDK, and download the Java JDK.
Register to download the Java JDK, guided by Oracle registration info, and explore its relevance to Webassembly, OpenCV, and Apache Cordova.
Unpack the java jdk, install java, set JAVA_HOME, and install javac. Check java version and javac version, and add ANDROID_HOME to .bashrc.
Accept all licenses to proceed with WebAssembly, OpenCV, and Cordova development. Learn licensing steps essential for starting projects in these technologies.
Install Android packages and gradle to set up the Android build environment for Webassembly, OpenCV, and Apache Cordova projects.
Build a minimal Cordova app for android that builds, marking the end of stage one.
Install cmake and other required tools to prepare the development environment for Webassembly, OpenCV, and Cordova projects.
Clone the emscripten sdk from github to download and install webassembly tooling for OpenCV and Cordova development.
Check the emcc installation to enable webassembly workflows with OpenCV in Apache Cordova projects and ensure cross-platform compatibility.
Learn how to obtain OpenCV from GitHub and build opencv.js using WebAssembly to enable computer vision in web apps.
Add two essential plugins to the project, one for permissions and one for the camera, to enable access and imaging capabilities.
Explore an optional Vim install and configuration step, and learn that you can use any editor of your choice.
Modify the config.xml to update the widget id, name, and description, then edit the AndroidManifest file to add camera permissions.
Edit index.html to set a content security policy and update the app title, add a video input and a bordered canvas, and copy the opencv.js file to the correct directory.
Install google chrome and enable developer mode, tapping kernel compilation seven times. Enable usb debugging, connect the device, verify adb visibility, install and start the app, and grant camera access.
Edit index.js to add a minimal init, remove cordova dependencies, and implement functions that permit camera access, detect the back camera, and check if opencv is ready.
Create a campermit function that uses a plugin to obtain camera permission, start the camera if granted, or print an error, and declare a global variable.
Create a findbackkam function to get the back camera id using enumerateDevices. Create a findbackkam function to get the back camera id using enumerateDevices.
Create a checkocvready function to verify OpenCV readiness in a WebAssembly demo, and note it's not proper for production; bundlers like Webpack improve initialization.
Explore how to implement a start_video function to initiate video playback in your app, following the example shown.
Create a filter image function, apply a canny edge detection filter, invert colours, and manipulate data with JavaScript for testing.
Perform the final build, connect your phone, install the application on the phone, and start it to verify that everything runs as expected.
In this course you will learn how to write mobile apps.
We will use Linux and create android app in multiplatform framework.
Basic web building skills are required.
You don't need Android Studio or Eclipse or any heavy IDE.
Hardware requirements: 2GB RAM 16GB HD
Ubuntu 18.04 Desktop.
This course ends with working app.
Webassembly - runs code faster in web browser
OpenCV - Computer Vision Library
Apache Cordova - multi-platform mobile app building framework
This course ends with fully working app that detects edges in video stream.
Course consists of three sections.
Section 1 Basic installation and configuration for simple apps (1-7)
Section 2 OpenCV and Webassembly installation and configuration (8-16)
Section 3 Creating simple demo app (17-23)
1 Npm and Cordova installation.
2 Project creation and jdk download.
3 Oracle registration info
4 Java installation
5 Accept all licenses
6 Install android packages and gradle
7 Building app using cordova to check installation
8 Install cmake and other requirements
9 Webassembly download and install
10 Check emcc
11 Build opencvjs
12 Adding plugins to project
13 Optional step vim install and config
14 config.xml
15 index.html
16 Google chrome install and adb basics
17 Index.js adding init
18 Camera permissions
19 Finding back camera
20 Checking OpenCV is ready for use
21 Starting video
22 Filtering to find edges
23 Final build