幫你分割影片或圖片,並自動偵測其中的肢體位置資訊.
-
PoseNet
- posenet
-
Efficient Pose
- efficientpose-i-lite
- efficientpose-ii-lite
- efficientpose-iv
-
MoveNet
- movenet-lightning
- movenet-thunder
-
Blaze Pose
- blazepose-full
- blazepose-upper
git clone [email protected]:PSheon/video-to-frames.git
測試用: development.js
專案用:production.js
cp config/default.js config/production.js
預設使用 input
資料夾下的 sample.mp4
Options 1. 使用 Node.js 本地開發
安裝 Node.js 相依套件
npm install
開始開發
npm run dev
Options 2. 使用 Docker 建立本地容器
建立本地容器與第一次建立容器
npm run docker:build && npm run docker:init
容器被建立後可直接執行
npm run docker:run
Options 3. 使用 Node.js 建立專案版本
安裝相依套件並編譯 TS
npm install && npm run build
npm run start
設定名稱 | 說明 | 型別 | 預設值 | 規範 |
---|---|---|---|---|
DELETE_PREVIOUS_OUTPUT | 是否保留前一次的結果 | Boolean | true |
|
INPUT_FILEPATH | 輸入文件的資料夾路徑 | String | input |
|
INPUT_FILENAME | 輸入文件的名稱 | String | sample.mp4 |
文件必須是 圖片 或 影片 格式 |
SPLIT_FRAME_IMAGE_PREFIX | 分割出來的圖片前綴 | String | frame |
|
INPUT_VIDEO_START_TIME | 開始推理影片的時間 | String | 0.0 |
只有在輸入文件是影片格式時生效 |
INPUT_VIDEO_DURATION | 推理時間的長度 | String | 30.0 |
只有在輸入文件是影片格式時生效 |
INPUT_VIDEO_FRAME_SAMPLING | 分割影像的每秒採樣率 | Number | 10 |
只有在輸入文件是影片格式時生效 |
MODEL_NAME | 使用的模型名稱 | String | efficientpose-ii-lite |
可用模型:"posenet" | "efficientpose-i-lite" | "efficientpose-ii-lite" | "efficientpose-iv" | "movenet-lightning" | "movenet-thunder" | "blazepose-full" | "blazepose-upper" |
POSENET_INFERENCE_FLIP_HORIZONTAL | 是否翻轉輸入影像 | Boolean | false |
只有在模型是"posenet"時生效 |
EFFICIENTPOSE_MODEL_MIN_SCORE_THRESHOLD | 最低信心閥值 | Number | 0.45 |
只有在模型是"efficientpose"時生效 |
BLAZEPOSE_MODEL_MIN_SCORE_THRESHOLD | 最低信心閥值 | Number | 0.3 |
只有在模型是"blazepose"時生效 |