m5stickv
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
m5stickv [2019/11/19 14:59] – 作成 nabezo | m5stickv [2020/08/13 10:17] – nabezo | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== m5stickv ====== | + | ====== m5stickv |
https:// | https:// | ||
https:// | https:// | ||
+ | |||
行 10: | 行 11: | ||
https:// | https:// | ||
+ | ===== 参考 ===== | ||
+ | |||
+ | K210 物体認識モデルの生成 | ||
+ | https:// | ||
+ | |||
+ | M5StickC+BeetleC+M5StickVで自動運転する | ||
+ | https:// | ||
+ | |||
+ | Wi-FiがないM5StickVを、M5StickCと繋ぎLINEに投稿してみるまでの手順 | ||
+ | https:// | ||
+ | |||
+ | M5StickVではじめる軽量モデルの実世界への応用 | ||
+ | https:// | ||
+ | |||
+ | UnitV で画像シリアル転送の味見 | ||
+ | https:// | ||
+ | |||
+ | UnitV と M5StickC で動画ストリーミングを堪能 | ||
+ | https:// | ||
+ | |||
+ | ===== 仕様 ===== | ||
+ | M5StickVではkmodelというフォーマットのモデルを使います。 | ||
+ | TensorFlow Liteのモデル(tflite)からMaix Toolboxを使ってkmodelに変換できます。 | ||
+ | |||
+ | ===== firmware ===== | ||
+ | m5stack社のfirmware | ||
+ | |||
+ | m5stackに搭載しているsipeed社Maixpyの最新farmware(m5sticv用がある) | ||
+ | |||
+ | kflash_guiで書き込む(download) | ||
+ | |||
+ | |||
+ | |||
+ | ===== 機械学習 ===== | ||
+ | |||
+ | V-Training https:// | ||
+ | |||
+ | mnist https:// | ||
+ | |||
+ | M5StickVで独自のモデルを使って画像認識 | ||
+ | |||
+ | m5stickvのモデルで有るkmodelはtensorflowliteから作成出来る | ||
+ | https:// | ||
+ | |||
+ | |||
+ | ===== コンソール ===== | ||
+ | maixpyideから新規コンソール接続し、ctrl+cでpythonコンソールになる。 | ||
+ | |||
+ | ===== sample ===== | ||
+ | import sensor, image, time, lcd | ||
+ | lcd.init(freq=15000000) | ||
+ | sensor.reset() | ||
+ | sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE) | ||
+ | sensor.set_framesize(sensor.QVGA) | ||
+ | sensor.skip_frames(time = 2000) # Wait for settings take effect. | ||
+ | while(True): | ||
+ | img = sensor.snapshot() | ||
+ | ################################# | ||
+ | img = img.to_grayscale() | ||
+ | ################################# | ||
+ | lstbcd = img.find_barcodes() | ||
+ | for bcd in lstbcd: | ||
+ | img.draw_string(2, | ||
+ | ################################# | ||
+ | lcd.display(img) | ||
+ | # to the IDE. The FPS should increase once disconnected. | ||
m5stickv.txt · 最終更新: 2021/05/29 21:22 by nabezo