OpenPoseç¶ãã
ä»åã¯å 容ã ãã ãé·ãã
- ãã£ã¦ãããããã¨
- 使ããã¼ã¿
- ã»ãã«ã
- å°ãã¿ : Bingãã£ããã§ããããã¡ã¤ã«ã®ã³ã¼ãçæ
- OpenPoseå®è¡
- å¦çæéã«ã¤ãã¦
- ä»ã¾ã§ã®ç»åãã¼ã¿ã§å確èª
- 9/12追å
- 以ä¸
ãã£ã¦ãããããã¨
ãã¢ãã®æã®åãã®èªèãããããããã®åã«ã¡ãã£ã¨ãã£ã¦ã¿ããã¨æã£ã¦ããã®ãã人以å¤ã«ã姿å¢æ¨å®ãã¦ãããããã©ããã
ã¬ã³ãã©ãªã人ã£ã½ãè¦ããã®ã§ã姿å¢æ¨å®ãã¦ãããããªæ°ãããã
ã¨ãããã¨ã§ãã£ã¦ã¿ãã
使ããã¼ã¿
HGã®ãã«ããã¹ã«ãã¹ããã§ã
ä»ã«ãã¬ã³ãã©ã®åçããã£ãã®ã§ãããã試ãã¦ã¿ãã
ã»ãã«ã
ä»ã¾ã§æ®ã£ãã¬ã³ãã©ã®åçæ¢ãã¦ãããã»ãã«ãé¢ç½ãããªãã®ããã£ãã®ã§ãã¤ãã§ã«ã
ãå°å ´ã¬ã³ãã
ã¦ãã³ã¼ã³ãã
ã¯ã«ã
å¼ççç«æ´å²ã¨æ°ä¿ã®åç©é¤¨ã«ã¦ã
ãã®åç©é¤¨ã¯ãä¸è¬å±ç¤ºã¯åçæ®å½±OKã
SNSãããã°ã§ã®å
¬éã¯ããããããªãããç¦æ¢ã¨ã¯æ¸ããã¦ããªãã®ã§ãåé¡ãªãã®ã§ã¯ã
ããã°ã§åçä»ãã®è¨äºãä¸ãã¦ã人ã¯ããããåé¡ãªãã®ã§ã¯ï¼
åçæ®å½±ã«ã¤ã㦠- å¼ççç«æ´å²ã¨æ°ä¿ã®åç©é¤¨
ãã£ãºãã¼ã©ã³ãã®ãã¾ãã
ãã¼ããã§ã¯ãªãã
çµæ§äººã£ã½ãã
åé³ãã¯ãã
ãã¶ã®ç®±ã
ã«ããã«ãã®ã²ã¨
2016å¹´æ«ã横æµã®ã¨ããã·åãUQ mobileã®ã¤ãã³ãã§ã
"å¬ã®æä¾ã¤ãã³ãï¼"ãUQ mobileÃUQ WiMAX ã¹ãã·ã£ã«ãç¬ãSHOWãéå¬ |
èå権ã¨ãããããªã·ãã£æ¨©ã¨ãã®åé¡ããããããªã®ã§ãåçè¼ããã®ã¯ä¿çã
ãã¡å
ã§åãåããã ããã¦ã¿ãã
ããè¿çæ¥ã¦OKã ã£ãããåçæ²è¼ãã¾ãã
ãã±ã¢ã³
Pokemon Goã®ã¹ã¯ã·ã§ã
ãããããã¯äººã£ã½ãã
å µé·ã¤ã©ã¹ã
2015å¹´ ä¸éã®æ£®ç¾è¡é¤¨ã§éå¬ãããé²æã®å·¨äººå±ã§ã
ãããåçæ®å½±OKã ã£ãã
SNSå
¬éãç¹ã«ç¦æ¢ããã¦ãªãã£ãã¨æããããã
ã¤ãã³ãã¬ãã¼ãè¨äºãçµæ§åºã¦ããããã
å°ãã¿ : Bingãã£ããã§ããããã¡ã¤ã«ã®ã³ã¼ãçæ
ç»åãã¼ã¿ãããã°ã«æ稿ããã«ãããããã®ã¾ã¾ã ã¨ãµã¤ãºã大ããã¦ã¯ã¦ãªãã©ãã©ã¤ãã®å®¹éãå¿é ãªã®ã§ãã¾ã¨ãã¦ãªãµã¤ãºãããã¨èããã
ffmpegã§ã¾ã¨ãã¦ã§ããªããï¼
ffmpegãã®ãã®ã§ã¯ãå ¥åãã¡ã¤ã«ã¯1ã¤ãã¤ããæå®ã§ããªãããã§ãããããã¡ã¤ã«ãä½ãå¿ è¦ãããããã
Bingãã£ããã«èãã¦ã¿ã
ffmpegã§ã®ãªãµã¤ãºãããã©ã«ãå
ã®å
¨ç»åãã¡ã¤ã«ã«é©ç¨ããwindows ããããã¡ã¤ã«ãä½ã£ã¦ãã ããã
ã¨èãã¦ã¿ãã¨ããã
以ä¸ã®ããããã¡ã¤ã«ãä½æãããã¨ã§ãæå®ãããã©ã«ãå
ã®å
¨ç»åãã¡ã¤ã«ããªãµã¤ãºã§ãã¾ãã
@echo off set /p folder_path="Enter the folder path: " set /p resolution="Enter the resolution (e.g. 1920x1080): " for %%i in ("%folder_path%\*.jpg") do ( ffmpeg -i "%%i" -vf scale=%resolution% -q:v 2 "%%~ni_resized.jpg" ) for %%i in ("%folder_path%\*.png") do ( ffmpeg -i "%%i" -vf scale=%resolution% -q:v 2 "%%~ni_resized.png" ) echo "Resizing complete." pause
ä¸è¨ããããã¡ã¤ã«ã§ã¯ã以ä¸ã®ããã«ãªãµã¤ãºãè¡ãã¾ãã
- ãã©ã«ããã¹ã¨è§£å度ãã¦ã¼ã¶ã¼ã«å
¥åãã¦ãããã¾ãã
- æå®ãããã©ã«ãå
ã®å
¨ã¦ã®jpgã¨pngç»åã«å¯¾ãã¦ãæå®ããã解å度ã«ãªãµã¤ãºãã¾ãã
- ãªãµã¤ãºå¾ã®ç»åã¯ãå
ã®ãã¡ã¤ã«åã«ã_resizedããä»ããååã§ä¿åããã¾ãã
ãã®ããããã¡ã¤ã«ã¯ãWindowsç°å¢ã§åä½ãã¾ããã¾ããffmpegãã¤ã³ã¹ãã¼ã«ããã¦ããå¿
è¦ãããã¾ããffmpegãã¤ã³ã¹ãã¼ã«ããã¦ããªãå ´åã¯ã¹ãåèã«ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
ã½ã¼ã¹: Bing ã¨ã®ä¼è©± 2023/9/4
(1) ffmpeg + ããããã¡ã¤ã«ã§ç»åãä¸æ¬ãªãµã¤ãºãã - Qiita.
https://qiita.com/studio_haneya/items/1e69c2001600a273a7da.
(2) Use FFmpeg to resize image - Stack Overflow. https://stackoverflow.com/questions/28806816/use-ffmpeg-to-resize-image.
(3) Resize more than one image using ffmpeg - Super User. https://superuser.com/questions/839751/resize-more-than-one-image-using-ffmpeg.
(4) undefined. https://qiita.com/studio_haneya/items/ae44e39b5a389cf8cf6e.
ã¦ãªæãã§ä½ã£ã¦ããã¾ããã
ã³ã¼ããè¦ãæããçµæ§ãããããªæãã
- jpgãpngã®æ¡å¼µåãããªãã¨ä½¿ããªããã
OpenPoseã®åºåç»åã¯å ¨é¨pngã«ãªã£ã¦ãã®ã§ãããã¯åé¡ãªãã - å¤æå¾ãã¡ã¤ã«ã®ååã®ä»ãæ¹ã¨ãã¯æ°ãå©ãã¦ãã
- å¤æå¾ãã¡ã¤ã«ã¯ããããã¡ã¤ã«ã¨åããã©ã«ãã®ä¸ã«å
¥ãã
å ¨ãã©ã«ãã«å®è¡ããã¨ããã¡ã¤ã«ãæ··ãã£ã¦ã¡ãã£ã¨é¢åã ããæ¥ä»ã§ã½ã¼ãããã°åãããããã - 解å度ã¯"1920x1080"ã®ããã«ãã¨æ¸ããã¦ãããããã®æå®ã®ä»æ¹ãªããæ£ããã¯"1920:1080"ã®ããã«ããªãã¨ãããªããåºãã¦ããããªã³ã¯ãè¦ãã°ããããã
ã¨ãããããã®ã¾ã¾ä½¿ã£ã¦ã¿ãã
ä¸è¨åãããä¾ã
2ãã¡ã¤ã«å
¥ã£ã¦ããhaniwaããã©ã«ãã
Enter the folder path: haniwa Enter the resolution (e.g. 1920x1080): 320:-1 ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat 60. 3.100 / 60. 3.100 libavdevice 60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc 57. 1.100 / 57. 1.100 Input #0, png_pipe, from 'haniwa\2013-09-14 15.31.59_rendered.png': Duration: N/A, bitrate: N/A Stream #0:0: Video: png, rgb24(pc), 2448x3264, 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (png (native) -> png (native)) Press [q] to stop, [?] for help Output #0, image2, to '2013-09-14 15.31.59_rendered_resized.png': Metadata: encoder : Lavf60.3.100 Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 320x427, q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc60.3.100 png [image2 @ 000001e0e06701c0] The specified filename '2013-09-14 15.31.59_rendered_resized.png' does not contain an image sequence pattern or a pattern is invalid. [image2 @ 000001e0e06701c0] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image. frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x video:274kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat 60. 3.100 / 60. 3.100 libavdevice 60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc 57. 1.100 / 57. 1.100 Input #0, png_pipe, from 'haniwa\2013-09-14 15.32.09_rendered.png': Duration: N/A, bitrate: N/A Stream #0:0: Video: png, rgb24(pc), 2448x3264, 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (png (native) -> png (native)) Press [q] to stop, [?] for help Output #0, image2, to '2013-09-14 15.32.09_rendered_resized.png': Metadata: encoder : Lavf60.3.100 Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 320x427, q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc60.3.100 png [image2 @ 000001b3b4ad01c0] The specified filename '2013-09-14 15.32.09_rendered_resized.png' does not contain an image sequence pattern or a pattern is invalid. [image2 @ 000001b3b4ad01c0] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image. frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x video:259kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown "Resizing complete." ç¶è¡ããã«ã¯ä½ããã¼ãæ¼ãã¦ãã ãã . . .
ãã¡ã¤ã«åã«ã¤ãã¦ããé£çªå½¢å¼ã®ãã¡ã¤ã«åãããªããã¨ããææã¯ããããå¤æèªä½ã¯ã§ããã
ã®ã§ãã®ã¾ã¾ä½¿ãã
Bingãã£ãããããããã¨ããã¾ããé¡ããããã
OpenPoseå®è¡
ä»åã¯ç»åãã¼ã¿ãªã®ã§ã--image_dir
ã§ãç»åãä¿åãã¦ãããã£ã¬ã¯ããªãæå®ã
種å¥ãã¨ã«ãã£ã¬ã¯ããªåãããã
ã¬ã³ãã©
ä¸è¨ã®åç以å¤ãå«ãã¦11æãå¦çã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\gunpla" --write_images output/openpose_iroiro-1/gunpla Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 174.751445 seconds. (base) PS C:\work\openpose_test\openpose>
å ¨é¨ã§11æã1æå½ããå¦çæéã¯ç´15.9ç§ã
å¦ççµæã
HG ãã«ããã¹ã«ãã¹ã¯ã ãã ã£ããHGUC ã¸ã§ã¹ã¿ãã£ãã³ãã
å¯ä¸ãRG ã¬ã³ãã ã¨ã¯ã·ã¢ã ãã¡ããã¨éª¨æ ¼æ¨å®ãããã
é ãæ±ãã¦ãæãã®ãã¼ãºã§ã¯ãå·¦è
ã¨é é¨ãé¤ãã¦ãå½ã¦ã¯ããããéª¨æ ¼ãçµæ§åã£ã¦ãã
ã¨ã¯ã·ã¢ã¯çµæ§äººã£ã½ãã®ãã
ãå°å ´ã¬ã³ãã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\odaiba" --write_images output/openpose_iroiro-1/odaiba Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 176.706481 seconds. (base) PS C:\work\openpose_test\openpose>
è¨12æã1æå½ãã14.7ç§ã
ããããã¦ã¬ã³ãã ã ãéª¨æ ¼ãã¤ãã¦ããããé¢ç¯ä½ç½®ãéãã
ã¦ãã³ã¼ã³ã¬ã³ãã ã¯ãé常ã¢ã¼ãã ããããã¹ããã¤ã¢ã¼ãã ããããæ¼ã ãããå¤ã ããããå ¨ãéª¨æ ¼ã®æ¨å®ããããªãã£ãã
æåã«ãã人ã¯ãã¡ãã¨èªèããã¦ããã
ãã£ã±ãæ¬ç©ã®äººéã¯èªèãããããã
ã¯ã«ã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\haniwa" --write_images output/openpose_iroiro-1/haniwa Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 26.612257 seconds. (base) PS C:\work\openpose_test\openpose>
è¨2æã1æå½ãã13.3ç§ã
çæ¹ã®ã¯ã«ãã¯èªèãããã
é¡ã¨è©ã¾ã§ã
é¡ã¯ãç®é¼»è³ã®ä½ç½®ããã£ããèªèããã¦ããã
ãã£ãºãã¼ã©ã³ãã®ãã¾ãã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\kumasan" --write_images output/openpose_iroiro-1/kumasan Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 2.683394 seconds. (base) PS C:\work\openpose_test\openpose>
ããã¯1æã ãã2.68ç§ã
確èªãã¦ã¿ãã¨ãLINEããè½ã¨ããç»åãã¼ã¿ã®ããã§ã解å度960x1280ã ã£ãã
ãªã®ã§ã¡ãã£ã¨å¦çéãã£ãã®ãã
ãã®ãã¾ããã¯çµæ§äººã£ã½ãã®ãããã£ããéª¨æ ¼ãèªèããã¦ãã
é¼»ã®ä½ç½®ã¯äººã¨ã¯éãããããã§ããã¡ãã¨æ£ããé¼»ã®ä½ç½®ãèªèããã¦ãã
è
°ã®ä½ç½®ã¯ã¡ãã£ã¨ããã¦ãããããªç足ãªäººã¯ããªãããã¨ãããã¨ãã
åé³ãã¯ãã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\mikusan" --write_images output/openpose_iroiro-1/mikusan Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 34.207318 seconds. (base) PS C:\work\openpose_test\openpose>
è¨3æã1æå½ãã11.4ç§ã
å
¨æ»
ã
ããã©ã«ã¡çãä¸å身ã ããå
¨èº«ãã®3ãã¿ã¼ã³ãã£ãããããã§ãã ãã ã£ãã
ã«ããã«ãã®ã²ã¨
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\katchikachi" --write_images output/openpose_iroiro-1/katchikachi Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 55.067579 seconds. (base) PS C:\work\openpose_test\openpose>
è¨3æã1æå½ãã18.4ç§ã
ãã®ç»åã¯å
¬éé£ãããã--disable_blending
ã®ãªãã·ã§ã³ãä»ããã¨ãéª¨æ ¼æ
å ±ã ãã®åºåç»åã«ãã¦ãããããã
ã¨ãããã¨ã§ãã£ã¦ã¿ãã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\katchikachi" --write_images output/openpose_iroiro-1/katchikachi-2 --disable_blending Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 3.058115 seconds. (base) PS C:\work\openpose_test\openpose>
ãªããå¦çããã¡ãéããªã£ãã1æå½ãã1ç§ã
ç»ååºåã¨ããéãåå ã ã£ãã®ãï¼
3æã®ç»åå
¨é¨ã§éª¨æ ¼ãèªèãããã
ã©ãã«ã«ããã«ãã®äººãããããããã ãã§ããããã ããã
ãã±ã¢ã³
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\pokemon" --write_images output/openpose_iroiro-1/pokemon Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 3.742565 seconds. (base) PS C:\work\openpose_test\openpose>
ããã¯1æã ãã3.7ç§ã
èªèãããã
å µé·ã¤ã©ã¹ã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\heicho" --write_images output/openpose_iroiro-1/heicho Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 15.569506 seconds. (base) PS C:\work\openpose_test\openpose>
1æã ãã15.6ç§ã
é¡ã¨å³è©ãããã¾ã§ãªãèªèããã¦ããã
ãã以å¤ã¯ããã¾ãã
ã¤ã©ã¹ãã ã¨ã¡ãã£ã¨é£ããã£ããã
å¦çæéã«ã¤ãã¦
å¦ç対象ã«ããç»åãã¼ã¿ã¯å¤ãiPhoneã§æ®å½±ãããã®ãããã
- 2448x3264
- 3024x4032
ã®2種é¡ãæ··ãã£ã¦ãã
â»ãã±ã¢ã³ã ããã¹ã¯ã·ã§ãªã®ã§ã750x1334ã®è§£å度ã
解å度ãã¨ã®éã
ã¬ã³ãã©ã®ä¸ã§éª¨æ ¼èªèãã¦ãããã¬ã³ãã ã¨ã¯ã·ã¢ã®1æã§ã解å度ãå¤ãã¦å¦çæéãè¦ã¦ã¿ãã
ã¾ãã¯å ã®è§£å度(2448x3264)ã
s\openpose_iroiro\gunpla-2" --write_images output/openpose_iroiro-1/gunpla-2 Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 11.890717 seconds. (base) PS C:\work\openpose_test\openpose>
解å度縦横ååã«ãã¦ã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\gunpla-3" --write_images output/openpose_iroiro-1/gunpla-3 Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 5.531187 seconds. (base) PS C:\work\openpose_test\openpose>
ååãããã«ãªã£ãã
åºåå½¢å¼ã«ããéã
--display 0
ã§ãå¦çéä¸ã®ç»å表示ããªããªããããã§ã©ããªããã
解å度ã¯å
ã®ã¾ã¾ã«ãã¦ããã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\gunpla-2" --write_images output/openpose_iroiro-1/gunpla-4 --display 0 Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 12.285879 seconds. (base) PS C:\work\openpose_test\openpose>
å¤ãããªãã£ãã
--disable_blending
ã«ããã¨ã©ããªããã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\gunpla-2" --write_images output/openpose_iroiro-1/gunpla-5 --disable_blending Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 2.685782 seconds. (base) PS C:\work\openpose_test\openpose>
éããªã£ãã
ããä¸ã¤ãjsonåºåã ãã«ãããã©ããªããï¼
--display 0
ãå
¥ãã¨ãã表示ç¨ã®ç»åãä½ã£ã¦ãã¾ãã¨çµå±æå³ããªãã®ã§ã
ãã¨ããã®å ´åã¯--render_pose 0
ãä»ããã¨æ¸ãã¦ãã£ãã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\gunpla-2" --write_json output/openpose_iroiro-1/gunpla-6 --display 0 --render_pose 0 Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 2.366184 seconds. (base) PS C:\work\openpose_test\openpose>
--disable_blending
ãä»ããã®ã¨åããããã
å ç»åã®è§£å度ãé«éãã¦ãç»åçæ(ã³ãã¼+éª¨æ ¼éç³)ããã®ã«æéãããã£ã¦ããã ããï¼
ããã ã¨OpenPoseæ¬æ¥ã®å¦çãéãã£ãããã§ã¯ãªãã®ãã
å ¥å解å度ã¸ã®ä¾åæ§
æ¬æ¥ã®å¦çé¨åã解å度ã«ä¾åãããã©ããããæ°ã«ãªãã
解å度ã«ä¾åããªããã°ã大ãã解å度ã®ç»åãå
¥åã«ããå¿
è¦æ§ã¯ãªããªãã
å
ã
--net_resolution
ã§è¨å®ããã解å度(æå®ãªãã§ããã©ã«ãã®åç´368)ãå¦çæã®è§£å度ã¨æã£ã¦ããã®ã§ã解å度ã§å¦çæéãå¤ããã®ãå¤ã ãªã¨æã£ã¦ãã
解å度縦横ååã®ãã®ã使ã£ã¦ç¢ºèªã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir "C:\Users\akihiro\Downloads\openpose_iroiro\gunpla-3" --write_json output/openpose_iroiro-1/gunpla-7 --display 0 --render_pose 0 Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 2.264172 seconds. (base) PS C:\work\openpose_test\openpose>
ãã£ã±ãã»ã¨ãã©å¤ãããªãã
å ¥åç»åã®è§£å度ãäºåã«è½ã¨ãã¦ããã°ãå¦ççµæãå¤ãããã¨ã¯ãªãããçµæã®ãªã¢ã«ã¿ã¤ã æç»ã軽ããªã£ã¦ã ã¡ãªãããããªããã¨ã«ãªãã
ä»ã¾ã§ã®ç»åãã¼ã¿ã§å確èª
MOT16
ã¾ãã¯MOT16ã§ã
å
¨é¨jpgãã¡ã¤ã«ãªã®ã§ãå
ã»ã©ã®ããããã¡ã¤ã«ãæµç¨ãã¦ãªãµã¤ãºã§ããã
ã¨æã£ãããé£çªã®ç»åãã¡ã¤ã«ãªããffmpegã§1ã³ãã³ãã§ã§ãããããããã¡ãã®ã»ããéãã£ãã
ã³ãã³ãã
ffmpeg -i ../img1/%06d.jpg -vf "scale=-1:368" %06d.jpg
å®è¡çµæ
(base) PS C:\work\MOT16\train\MOT16-09\img4> ffmpeg -i ../img1/%06d.jpg -vf "scale=-1:368" %06d.jpg ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat 60. 3.100 / 60. 3.100 libavdevice 60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc 57. 1.100 / 57. 1.100 Input #0, image2, from '../img1/%06d.jpg': Duration: 00:00:21.00, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native)) Press [q] to stop, [?] for help [swscaler @ 0000021374172000] deprecated pixel format used, make sure you did set range correctly Last message repeated 2 times [swscaler @ 0000021374ba63c0] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to '%06d.jpg': Metadata: encoder : Lavf60.3.100 Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown, progressive), 654x368 [SAR 2944:2943 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc60.3.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A frame= 525 fps=186 q=24.8 Lsize=N/A time=00:00:20.96 bitrate=N/A speed=7.43x video:6623kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown (base) PS C:\work\MOT16\train\MOT16-09\img4>
OpenPoseãå®è¡ãã¦ã¿ãã¨ã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe -image_dir C:\work\MOT16\train\MOT16-09\img4 -write_video output/img4-1.avi --write_video_fps 30 Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. OpenPose demo successfully finished. Total time: 51.713003 seconds. (base) PS C:\work\openpose_test\openpose>
å¦çæéã¯51ç§ã ããåã«ãªãµã¤ãºåã«ãã£ãã¨ãã¯ã56ç§ã ã£ãã
ããã¾ãå¤ãã£ã¦ãªããããï¼
åã«æéããããéãã¦ã§ããªãã£ã--hand
ãªãã·ã§ã³ä»ãã試ãããã解å度ãä¸ãã¦ãã ãã ã£ãã
ãã£ã±ãå¼·å¶çµäºãããããªãã£ãã
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --image_dir C:\work\MOT16\train\MOT16-09\img4 --write_video output/img4-2.avi --write_video_fps 30 --hand Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. (base) PS C:\work\openpose_test\openpose>
ãã¢ãåç»
æå¾
ã¯ã§ããªãããä¸å¿ãã£ã¦ããã
å
ã®è§£å度ã¯2304x1296ã§ããããåç´368ã«ãªãµã¤ãºããã(çµæã654x368ã®è§£å度ã«ãªã)
(base) PS C:\work\openpose_test\openpose> .\bin\OpenPoseDemo.exe --video "C:\Users\a\Downloads\2023-08-31 07.48.56_resized.mp4" --write_video output/piano-4.avi --write_video_fps 30 --hand Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. (base) PS C:\work\openpose_test\openpose>
ãã£ã±ããããæéããã£ãã®ã§ãå¼·å¶çµäºã
çµè«ãååè²ã
試ããåç»ã§ã¯ãå
ç»åã®è§£å度ãä¸ãã¦ããå¦çã®éãã¯å¤ãããªãã
9/12追å
OpenPoseDemoã®è¨å®ãå ¥å解å度ã¨å¦çæéã®é¢ä¿ãç¶²ç¾ ãã¦ããªãã£ãã®ã§ã追å 確èªå®æ½ã
- ãã¢ãåç»ã対象ã«ããã
- ãã¹ã¦
--hand
ãä»ãã¦ãæã®éª¨æ ¼èªèãå®æ½ã - åç»å ¨é¨å¦çããããã£ã¦ãå¦çæéã確èªã
è¨å®é ç®ããªã¹ãã¢ããããã¨ã
- å
¥å解å度
- 2304x1296
- 654x368
- å¦çä¸è¡¨ç¤ºå
容
- å ¨é¨(ãªãã·ã§ã³ãªã)
- éª¨æ ¼æ
å ±(
--disable_blending
) - ãªã(
--display 0 --render_pose 0
)
- åç»ãã¡ã¤ã«åºå
- ãã(
--write_video ~~.avi --write_video_fps ~~
) - ãªã(
--write_json ~~
ã§jsonãã¡ã¤ã«ãåºå)
- ãã(
å ¥å解å度 | å¦çä¸è¡¨ç¤º | åç»åºå | å¦çæé |
---|---|---|---|
2304x1296 | å ¨é¨ | ãã | 1684ç§ (3.68ç§/frame) |
654x368 | å ¨é¨ | ãã | 2863ç§ (3.75ç§/frame) |
2304x1296 | éª¨æ ¼æ å ± | ãã | 1721ç§ (3.76ç§/frame) |
654x368 | éª¨æ ¼æ å ± | ãã | 2783ç§ (3.65ç§/frame) |
2304x1296 | ãªã | ãªã | 1672ç§ (3.65ç§/frame) |
654x368 | ãªã | ãªã | 2995ç§ (3.93ç§/frame) |
解å度ä½ãã»ããé
ããªã£ã¦ãã¾ã£ãããªãï¼ã¨æã£ã¦èª¿ã¹ããããªãããã¬ã¼ã æ°ãéã£ãã
ä¸ã§è¨ç®ãããã¬ã¼ã å½ããã®å¦çæéã¯ããããåæ ãã¦ããã
ãã¬ã¼ã å½ããå¦çæéã§è¦ãã¨ãå
¨æ¡ä»¶ã§ã»ã¼åãã«ãªã£ã¦ããã
- å ãã¡ã¤ã« : 458
- 解å度å¤æ´å¾ : 763
>>> import cv2 >>> cap = cv2.VideoCapture('2023-08-31 07.48.56.mov') [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (2386) cv::handleMessage OpenCV | GStreamer warning: your GStreamer installation is missing a required plugin [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (2402) cv::handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module uridecodebin5 reported: Your GStreamer installation is missing a plug-in. [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (1356) cv::GStreamerCapture::open OpenCV | GStreamer warning: unable to start pipeline [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (862) cv::GStreamerCapture::isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created >>> cap.get(cv2.CAP_PROP_FRAME_COUNT) 458.0 >>> cap = cv2.VideoCapture('2023-08-31 07.48.56_resized.mp4') [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (2386) cv::handleMessage OpenCV | GStreamer warning: your GStreamer installation is missing a required plugin [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (2402) cv::handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module uridecodebin6 reported: Your GStreamer installation is missing a plug-in. [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (1356) cv::GStreamerCapture::open OpenCV | GStreamer warning: unable to start pipeline [ WARN:[email protected]] global C:\ci_311\opencv-suite_1676524213139\work\modules\videoio\src\cap_gstreamer.cpp (862) cv::GStreamerCapture::isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created >>> cap.get(cv2.CAP_PROP_FRAME_COUNT) 763.0 >>>
ããã«ãã¦ã30ç§ã®åç»ã§30åã¨ã1æéè¿ãããããã¨ãããã®ã¯ã¤ããã
以ä¸
ã ãã ãè¨äºã«ãªã£ãããä»åããã¾ã§ã
ç¶ãä½ãããã¯æ¤è¨ä¸ã