m5stickv
文書の過去の版を表示しています。
m5stickv
ドキュメント
仕様
M5StickVではkmodelというフォーマットのモデルを使います。 TensorFlow Liteのモデル(tflite)からMaix Toolboxを使ってkmodelに変換できます。
機械学習
https://hellobreak.net/m5stickv-vtraining-10-14/
mnist https://qiita.com/moritalous/items/1c014afbb97a2e48bbdf
M5StickVで独自のモデルを使って画像認識 https://www.lancard.com/blog/2019/09/24/m5stickv%E3%81%A7%E7%8B%AC%E8%87%AA%E3%81%AE%E3%83%A2%E3%83%87%E3%83%AB%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E7%94%BB%E5%83%8F%E8%AA%8D%E8%AD%98/
m5stickvのモデルで有るkmodelはtensorflowliteから作成出来る https://qiita.com/hnakagawa/items/300e50134b03fb3e0350
コンソール
maixpyideから新規コンソール接続し、ctrl+cでpythonコンソールになる。
sample
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): img = sensor.snapshot() # Take a picture and return the image. #################################grayscale化 img = img.to_grayscale() #################################barcode読み取り lstbcd = img.find_barcodes() for bcd in lstbcd: img.draw_string(2, 2, bcd.payload(),scale=2) ################################# lcd.display(img) # Display on LCD # to the IDE. The FPS should increase once disconnected.
m5stickv.1574690714.txt.gz · 最終更新: 2019/11/25 23:05 by nabezo