ユーザ用ツール

サイト用ツール


m5stickv

文書の過去の版を表示しています。


m5stickv

ドキュメント

仕様

M5StickVではkmodelというフォーマットのモデルを使います。
TensorFlow Liteのモデル(tflite)からMaix Toolboxを使ってkmodelに変換できます。

機械学習

コンソール

maixpyideから新規コンソール接続し、ctrl+cでpythonコンソールになる。

grayscale

import sensor, image, time, lcd
lcd.init(freq=15000000)
sensor.reset()                      # Reset and initialize the sensor. It will
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA)   # Set frame size to QVGA (320x240)
sensor.skip_frames(time = 2000)     # Wait for settings take effect.
while(True):
  clock.tick()                    # Update the FPS clock.
  img = sensor.snapshot()         # Take a picture and return the image.
  img = img.to_grayscale()
  lcd.display(img)                # Display on LCD
                                  # to the IDE. The FPS should increase once disconnected.
m5stickv.1574687955.txt.gz · 最終更新: 2019/11/25 22:19 by nabezo