Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

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 opened this issue Jul 28, 2021 · 1 comment

Comments

@ScioEstasPotenco
Copy 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?

Originally posted by @PinkMediaGroup in #2 (comment)

@wongfei
Copy link
Owner

wongfei commented Jul 28, 2021

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

@wongfei wongfei closed this as completed Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants