I came across this Github project and thought it might be interesting to see if I could "shortcut" wrap it and make it work "from B4A".
The B4A library files are too large to post here. You can download them from here:
https://www.dropbox.com/s/83w5g8tolgd4n31/NewHandWaveLibFiles.zip?dl=0
...or you can download the B4A generated APK files from here and install the trial app:
https://www.dropbox.com/s/1s6d15owfkqzldd/b4aNewHandWave.apk?dl=0
You need to enable AppCompat V3.20 and DesignSupport V2.00 to make use of this app.
Start the app and then move your have from left to right, right to left, bottom to top, and top to bottom over the front facing camera (about 15cm or so above the camera) - it should report the detected motion via a toast message.
Extract resource.zip, DemoRes.Zip, and LibRes.zip and copy the folders with their contents to be on the same folder level as that of the /Files and /Objects folders of the B4A project
Have tested this on S4 mini with KitKat and also on a device with Lollipop.
I will spend some time on it and try to convert this to a library that can be used 100% from within B4A - but this posting just to demonstrate the motion detection via the front facing camera
The B4A library files are too large to post here. You can download them from here:
https://www.dropbox.com/s/83w5g8tolgd4n31/NewHandWaveLibFiles.zip?dl=0
...or you can download the B4A generated APK files from here and install the trial app:
https://www.dropbox.com/s/1s6d15owfkqzldd/b4aNewHandWave.apk?dl=0
You need to enable AppCompat V3.20 and DesignSupport V2.00 to make use of this app.
Start the app and then move your have from left to right, right to left, bottom to top, and top to bottom over the front facing camera (about 15cm or so above the camera) - it should report the detected motion via a toast message.
Extract resource.zip, DemoRes.Zip, and LibRes.zip and copy the folders with their contents to be on the same folder level as that of the /Files and /Objects folders of the B4A project
Have tested this on S4 mini with KitKat and also on a device with Lollipop.
I will spend some time on it and try to convert this to a library that can be used 100% from within B4A - but this posting just to demonstrate the motion detection via the front facing camera
Attachments
Last edited: