Skip to content

yuzhong-deng/DangerousSituationRecognition

Repository files navigation

DangerousSituationRecognition

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.

Fig2

Significant parameters

  • 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

Installation on TEMI

  1. Install Android Studio
  2. Open TEMI robot and its ADB port
  3. Connect your device with TEMI robot by ADB
  4. Clone this repo to local
  5. Open this project in Android Studio
  6. Run it on the TEMI robot

Customize Tensorflow Lite model

Previous work GLIS604_Dangerous Situation Recognition_ YOLOV4 colab notebook for reference

  1. Label datasets
  2. Generate darknet custom data
  3. Train the datasets by the YOLOv4
  4. Convert the weights to TensorFlow .pb
  5. Convert the TensorFlow weights to TensorFlow Lite
  6. Application on Android (Requires modification in DetectorActivity file in this repo, * A:YOLOv4 * B: standard tensorflow lite weight )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published