# Tflite_Javacv_Rtmp_App **Repository Path**: liangchenxijin_2025/Tflite_Javacv_Rtmp_App ## Basic Information - **Project Name**: Tflite_Javacv_Rtmp_App - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-07 - **Last Updated**: 2025-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TF Lite Android App ## 本程序实现功能 ### 1,摄像头数据实时推流到服务器,在本程序中,服务器设置的是边缘设备(android系统开发板)使用前需要配置sys ### 2,获取推流时的byte[]数组 转成图片后 利用自训练的Tflite分类模型和opencv算法,综合分析出当前货车的载物类别和行驶行为 ## Building from Source with Bazel 1. Follow the [Bazel steps for the TF Demo App](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#bazel): 1. [Install Bazel and Android Prerequisites](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install-bazel-and-android-prerequisites). It's easiest with Android Studio. - You'll need at least SDK version 23. - Bazel requires Android Build Tools `26.0.1` or higher. - You also need to install the Android Support Repository, available through Android Studio under `Android SDK Manager -> SDK Tools -> Android Support Repository`. 2. [Edit your `WORKSPACE`](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#edit-workspace) to add SDK and NDK targets. - Make sure the `api_level` in `WORKSPACE` is set to an SDK version that you have installed. - By default, Android Studio will install the SDK to `~/Android/Sdk` and the NDK to `~/Android/Sdk/ndk-bundle`. 2. Build the app with Bazel. The demo needs C++11: ```shell bazel build -c opt --cxxopt='--std=c++11' \ //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo ``` 3. Install the demo on a [debug-enabled device](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install): ```shell adb install bazel-bin/tensorflow/contrib/lite/java/demo/app/src/main/TfLiteCameraDemo.apk ```