byte[] imageData;//HoloLens2 Cam Streaming
Mat newimage = new Mat(1, imageData.Length, CvType.CV_8UC1);
MatUtils.copyToMat(imageData, newimage);
Mat decodedMat = Imgcodecs.imdecode(newimage, Imgcodecs.IMREAD_ANYDEPTH);
Debug.Log(decodedMat.rows());
Debug.Log(decodedMat.cols());
02-16
268
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)