luat_lib_tflm.c 412 B

1234567891011121314151617
  1. #include "luat_base.h"
  2. /*
  3. // shore frame data, fill from file or camera
  4. int8 tflm_frame[96*96];
  5. int do_person_detection(signed char* in, signed char* out);
  6. // call do_person_detection
  7. void xxx() {
  8. int8 result[2];
  9. int ret = do_person_detection(tflm_frame, result);
  10. if (ret == 0) {
  11. LLOGD("no_person %d has_person %d", result[0], result[1]);
  12. }
  13. // return to lua ? or sys.publish ?
  14. }
  15. /*