This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/components/TinyMaix/examples/maixhub_image_classification
2022-11-18 16:05:54 +08:00
..
include [feat] add tinymaix component and demo 2022-11-18 16:05:54 +08:00
CMakeLists.txt [feat] add tinymaix component and demo 2022-11-18 16:05:54 +08:00
main.c [feat] add tinymaix component and demo 2022-11-18 16:05:54 +08:00
README.md [feat] add tinymaix component and demo 2022-11-18 16:05:54 +08:00

MaixHub image classification demo

  • Train your model on MaixHub first
  • Download model file and unzip, copy model-*-final.h to this directory, rename to model_final.h, and copy model_info.h too
  • Change config in main.c according to your model(params can be found in report.json)
  • Use python3 ../../tools/img2c.py test_img.jpg width height to generate test input image c file and copy to this directory
  • mkdir build && cd build && cmake .. && make, then execute ./classification if you use Linux

Change include/tm_port.h configs like TM_MAX_KCSIZE according to your model size.