Nb: I found changing
Mat frame = new Mat();
To
Mat frame = new Mat(height, width, depth, channels);
Working with a video file so took those parameters from the video.
Made things work better.
Context:Engu.CV MAUI on Android phone.
Was getting significant buffer issues.
==========
Mat frame = new Mat(); had worked OK on OpenCVSharp.