convertToBlackAndWhite

Demo method that shows how to process in-place VideoFrame by converting it to black-and-white image.

Parameters

frame
  • VideoFrame in YUV 420 planar or semi-planar format.