Mat Basic Processing1
These codes are included in the OpenCVForUnity Example Unity scenes. (MatBasicProcessingExample) Initialization Example Code: // // initialization example // // 3×3 matrix (set array value) Mat mat1 = new Mat (3, 3, CvType.CV_64FC1); mat1.put (0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9); Debug.Log (“”mat1=”” + mat1.dump()); // 2×2 rotation matrix double angle = 30, a = Math.Cos(angle*Math.PI/180), b = Math.Sin(angle*Math.PI/180); Mat mat2 = new Mat (2, 2, CvType.CV_64FC1); mat2.put (0, 0, a, -b, b, a); Debug.Log (“”mat2=”” + mat2.dump()); // 5×5 all 1’s matrix Mat mat3 = Mat.ones(5, 5, CvType.CV_64FC1); Debug.Log (“”mat3=”” + mat3.dump()); // 5×5 all zero’s matrix Mat mat4 = Mat.zeros(5, 5, CvType.CV_64FC1); Debug.Log (“”mat4=”” + mat4.dump()); // 5×5 identity matrix Mat mat5 = Mat.eye(5, 5, CvType.CV_64FC1); Debug.Log (“”mat5=”” + mat5.dump()); // 3×3 initialize with a constant Mat mat6 = new Mat (3, 3, CvType.CV_64FC1, new Scalar(5)); Debug.Log (“”mat6=”” + mat6.dump()); // 3×2 initialize with a uniform distribution random number Mat mat7 = new Mat (3, 2, CvType.CV_8UC1); Core.randu (mat7, 0, 256); Debug.Log (“”mat7=”” + mat7.dump()); // 3×2 initialize with a normal distribution random number Mat mat8 = new Mat (3, 2, CvType.CV_8UC1); Core.randn (mat8, 128, 10); Debug.Log (“”mat8=”” + mat8.dump()); // 2x2x3x4 matrix (4 dimensional array) int[] sizes = new int[]{ 2, 2, 3, 4 }; Mat mat9 = new Mat (sizes, CvType.CV_8UC1, Scalar.all […]
OpenCV for Unity ver2.2.7 Release!
Version 2.2.7 [Common]Updated to OpenCV3.4.1. [Common]Added OpenPoseExample, KalmanFilterExample, ArUcoCameraCalibrationExample. [Common]Fixed VideoWriterExample, VideoCaptureExample, ImwriteScreenCaptureExample, CamShiftExample, TrackingExample, HandPoseEstimationExample, ArUcoCreateMarkerExample, ArUcoExample, ArUcoWebCamTextureExample. [Common] Updated to WebCamTextureToMatHelper.cs v1.0.6.
OpenCV for Unity ver2.2.6 Release!
Version 2.2.6 [Android]Added arm64-v8a Architecture. [Common]Added ImwriteScreenCaptureExample.
OpenCV for Unity ver2.2.5 Release!
Version 2.2.5[Common] Updated to WebCamTextureToMatHelper.cs v1.0.4.[Common] Fixed MobileNetSSDExample and MobileNetSSDWebCamTextureExample.
OpenCV for Unity ver2.2.4 Release!
Version 2.2.4[Common]Updated to OpenCV3.3.1.[Common]Added ResnetSSDFaceDetectionExample, YoloObjectDetectionExample, YoloObjectDetectionWebCamTextureExample.
OpenCV for Unity ver2.2.3 Release!
Version 2.2.3[Common]Updated to WebCamTextureToMatHelper.cs v1.0.3.[iOS]opencv2.framework is changed from static framework to embededd framework. (Target minimum iOS Version must be set to 8.0 or higher.)
OpenCV for Unity ver2.2.2 Release!
Version 2.2.2[Common]Added TextRecognitionExample.
OpenCV for Unity ver2.2.1 Release!
Version 2.2.1[Common]Updated to OpenCV3.3.0.[Common]Added dnn module.(win,mac,ios,android platform)[Common]Added img_hash, reg, text module.(all platform)[Common]Added MobileNetSSDExample, MobileNetSSDWebCamTextureExample, TensorFlowWebCamTextureExample, ThinPlateSplineShapeTransformerExample, TextDetectionExample, VideoWriterExample.[Common]WindowsStoreApp8.1 & WindowsPhone8.1 support have been deprecated.
FaceMask Example 1.0.3 is now available.
FaceMask Example 1.0.3 is now available.https://t.co/Bep5EOPGgD
FaceSwapper Example 1.0.4 is now available.
FaceSwapper Example 1.0.4 is now available.https://t.co/NgLhw0KJ5i