drishti: facefilter not working on android device

The facefilter app is currently not running on Android (or at least 1 tested device that worked previously). A number of things have changed since I last ran this. I believe I may have some details wrong in the CMake 3.7 update. I see some warnings in build log:

Warning: Android platform 'android-19' does not exist in SDK.

And

cd /Users/dhirvonen/devel/elucideye/drishti/_builds/android-ndk-r10e-api-19-armeabi-v7a-neon-MinSizeRel/src/app/qt/facefilter && /Users/dhirvonen/devel/hunter/_Base/xxxxxxx/a39c9bc/2e813cc/Install/bin/androiddeployqt --verbose --output /Users/dhirvonen/devel/elucideye/drishti/_builds/android-ndk-r10e-api-19-armeabi-v7a-neon-MinSizeRel/src/app/qt/facefilter --input /Users/dhirvonen/devel/elucideye/drishti/_builds/android-ndk-r10e-api-19-armeabi-v7a-neon-MinSizeRel/src/app/qt/facefilter/qtdeploy.json --ant /usr/local/bin/ant --android-platform android-19
Warning: Android platform 'android-19' does not exist in SDK.
Generating Android Package
  Input file: /Users/dhirvonen/devel/elucideye/drishti/_builds/android-ndk-r10e-api-19-armeabi-v7a-neon-MinSizeRel/src/app/qt/facefilter/qtdeploy.json
  Output directory: /Users/dhirvonen/devel/elucideye/drishti/_builds/android-ndk-r10e-api-19-armeabi-v7a-neon-MinSizeRel/src/app/qt/facefilter/
  Application binary: /Users/dhirvonen/devel/elucideye/drishti/_builds/android-ndk-r10e-api-19-armeabi-v7a-neon-MinSizeRel/src/app/qt/facefilter/libfacefilter.so
  Android build platform: android-19
  Install to device: No

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 39

Most upvoted comments

Looks like detectionRange:minDepth and detectionRange:maxDepth is mandatory. Adding random value to facefilter.json makes application work for me.

I’m testing android-ndk-r10e-api-19-armeabi-v7a-neon toolchain now. Have to comment out next lines:

# set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
# set(CMAKE_CXX_VISIBILITY_PRESET hidden)

and add this json block with weird names:

    "front": {
        "description": "Front-facing camera",
        "sensor": {
            "intrinsic": {
                "size": {
                    "width": 640,
                    "height": 480
                },
                "principal": {
                    "x": 320.0,
                    "y": 240.0
                },
                "focal_length_x": 1000.0
            }
        }
    }

Now I got runtime errors (at least it starts!). Investigating.