Skip to content

Commit 5c6c4ac

Browse files
committed
v1.0.5.1 Updated OpenCVForUnity version to 2.6.5.
1 parent 1ac803d commit 5c6c4ac

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Assets/NrealLightWithOpenCVForUnityExample/Scripts/Utils/NRCamTexture2MatHelper.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public override Mat GetMat()
385385
Imgproc.cvtColor(baseMat, frameMat, Source2MatHelperUtils.ColorConversionCodes(baseColorFormat, outputColorFormat));
386386
}
387387

388-
FlipMat(frameMat, flipVertical, flipHorizontal);
388+
FlipMat(frameMat, flipVertical, flipHorizontal, false, 0);
389389
if (rotatedFrameMat != null)
390390
{
391391
Core.rotate(frameMat, rotatedFrameMat, Core.ROTATE_90_CLOCKWISE);
@@ -398,10 +398,14 @@ public override Mat GetMat()
398398
}
399399

400400
/// <summary>
401-
/// Flip the mat.
401+
/// Flip Mat
402402
/// </summary>
403-
/// <param name="mat">Mat.</param>
404-
protected override void FlipMat(Mat mat, bool flipVertical, bool flipHorizontal)
403+
/// <param name="mat"></param>
404+
/// <param name="flipVertical"></param>
405+
/// <param name="flipHorizontal"></param>
406+
/// <param name="isFrontFacing"></param>
407+
/// <param name="videoRotationAngle"></param>
408+
protected override void FlipMat(Mat mat, bool flipVertical, bool flipHorizontal, bool isFrontFacing, int videoRotationAngle)
405409
{
406410
int flipCode = int.MinValue;
407411

0 commit comments

Comments
 (0)