チートシート - myantyuWorld/ap_cat_decision GitHub Wiki
開発でよく使用するコマンド(よくわすれて調べるので)
sshでラズパイ接続
$ ssh [email protected]
yolo分析開始(手動)
$ python detect.py --source 0 # webcam
file.jpg # image
file.mp4 # video
path/ # directory
path/*.jpg # glob
'https://youtu.be/NUsoVlDFqZg' # YouTube video
'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream
motion
Motion概要
start motion
sudo motion -n <- -n はコンソールで起動(バッググラウンドではない
余計なプロセスを削除
ps -def | grep motion
からの、
sudo pkill motion
motion 写真とったら、の処理
https://www.itmedia.co.jp/news/articles/1912/27/news036.html
on_picture_save curl -X POST -F imageFile=@/home/pi/motion/11-20210914220041-00.jpg http://192.168.0.100:5000/api/motion
mongo db
use {database name}
show collections
db.{colleciton name}.find()
db.{colleciton name}.find().count()
db.{colleciton name}.findone()