Giter VIP home page Giter VIP logo

avc_va_sdk's Introduction

AVC Android Camera Video Analytics SDK

Build Status

This repository contains native C/C++ VA SDK, Java helper library, and a Motion-Track example module. With this SDK, you can build your own VA modules for AndroVideo camera devices.

Native C/C++ VA SDK

The AVC native C/C++ VA SDK contains code that facilitate building video analytics modules for AndroVideo camera devices.

Getting Started

$ export PATH=$PATH:YOUR_NDK_PATH
  • Go into the working directory and Run ndk-build command
$ ndk-build
#You will find libva_motion_sample.so in libs/armeabi-v7a

Install your VA module

  • Connect camera device via adb
$ adb connect 192.168.0.10
$ adb devices
List of devices attached
192.168.0.10:5555    device
  • Remount system before installing the VA module
$ adb remount
  • Push VA module to device
$ adb push libs/armeabi-v7a/libva_motion_sample.so /vendor/lib/libva_motion_sample.so
  • Update new VA config file
$ adb push va_config.txt /data/misc/media/va_config.txt

# Set va config path once
$ adb shell setprop persist.va.config /data/misc/media/va_config.txt

# Reboot device to enable new setting
$ adb reboot
  • After rebooting, you can see your VA lib is loaded via logcat log
$ adb logcat
D/VABroker(  425 ): int32_t qipcam::VABroker::init(): VAEngines[2].libName = /vendor/lib/libva_motion_sample.so
D/VABroker(  425 ): int32_t qipcam::VABroker::init(): module_api_version = 0x1001

Build Android App with Java VA helper library

The AVC Java help library helps you to build Android applications that can enable/disable your own VA modules and receive your own VA events for further processing.

Getting Started

$ adb logcat
I/AVCLog.IpcamBroadcastRecv( 2418 ): onReceive com.androvideo.va.action.USER_CONFIG
D/AVCIPCam( 2418 ): int32_t qipcam::AVCIPCamService::enableVA(android::String8, int): Enter MotionSample 1
I/va_motion_sample(  423 ): int32_t motiontrack_init(void**):
I/va_motion_sample(  423 ): int32_t motiontrack_get_supported_events(void*, int32_t*, int32_t*):

FAQ

avc_va_sdk's People

Contributors

avc-apo avatar avc-richard avatar avcstevelin avatar louischenbh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.