Danger Recognition is a fall detection Android application based on a TEMI robot. It utilizes TEMI robot SDK and Tensorflow Lite Framework to realize functions.
-
Dangerous body center height threshold: com/example/dangeroussituationrecognition/DetectorActivity.java:225
-
Times of fall confirmation rounds: com.example.dangeroussituationrecognition.DetectorActivity#detectPeriod
-
Tensorflow Lite model weight file: com.example.dangeroussituationrecognition.DetectorActivity#TF_OD_API_MODEL_FILE
-
Tensorflow lite model labels file: com.example.dangeroussituationrecognition.DetectorActivity#TF_OD_API_LABELS_FILE
- Install Android Studio
- Open TEMI robot and its ADB port
- Connect your device with TEMI robot by ADB
- Clone this repo to local
- Open this project in Android Studio
- Run it on the TEMI robot
Previous work GLIS604_Dangerous Situation Recognition_ YOLOV4 colab notebook for reference
- Label datasets
- Generate darknet custom data
- Train the datasets by the YOLOv4
- Convert the weights to TensorFlow .pb
- Convert the TensorFlow weights to TensorFlow Lite
- Application on Android (Requires modification in DetectorActivity file in this repo, * A:YOLOv4 * B: standard tensorflow lite weight )