wongfei / ue4-mediapipe-plugin

UE4 MediaPipe plugin
Apache License 2.0
294 stars 99 forks source link

I tried to change the camera resolution, but the mediapipe window appear to be same. Are there any settings in the code where I can change the input resolution, frame rate? #3

Closed ScioEstasPotenco closed 3 years ago

ScioEstasPotenco commented 3 years ago

I tried to change the camera resolution, but the mediapipe window appear to be same. Are there any settings in the code where I can change the input resolution, frame rate?

Originally posted by @PinkMediaGroup in https://github.com/wongfei/ue4-mediapipe-plugin/issues/2#issuecomment-888657918

wongfei commented 3 years ago

Plugin uses cv::VideoCapture inside (see https://github.com/wongfei/mediapipe/blob/unreal/mediapipe/unreal/ump_pipeline.cc#L188)

When setting ResX/ResY/Fps ensure your camera actually supports that resolution

Also try different CaptureApi values (same as cv::VideoCaptureAPIs https://docs.opencv.org/3.4/dc/d3d/videoio_8hpp.html)

cv::CAP_DSHOW -> 700

cv::CAP_MSMF -> 1400

mp4