Ask Your Question
4

What is the reason for not getting any output when converting UIImage to CVPixelBuffer and using it in MediaPipe Face Mesh?

asked 2023-01-04 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-09-30 21:00:00 +0000

devzero gravatar image

There could be several reasons for not getting any output when converting UIImage to CVPixelBuffer and using it in MediaPipe Face Mesh:

  1. Input image size: MediaPipe Face Mesh requires an input image of specific size, and if the input image size is not compatible with the model, the output will be empty. Make sure that the input image size matches the requirement of the model.

  2. Pixel format: MediaPipe Face Mesh requires a specific pixel format for the input image, and if the input image's pixel format is not compatible, the output will not have any data. Make sure that the pixel format of the input image matches the requirement of the model.

  3. Model configuration: Some models require specific configuration settings that need to be set correctly for the model to produce the desired output. Check the documentation of MediaPipe Face Mesh for any configuration settings that need to be set.

  4. Errors during conversion: There could be errors during the conversion of UIImage to CVPixelBuffer that could result in an empty buffer. Check the error output of the conversion function to ensure that there are no errors during the conversion.

  5. Model compatibility: Make sure that the model used is compatible with the version of MediaPipe being used. Some models may not be compatible with specific versions of MediaPipe, and this could result in an empty output.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-01-04 11:00:00 +0000

Seen: 1 times

Last updated: Sep 30 '21