public void TestInitEngine()
 {
     using (FaceEngineWrapper wrapper = new FaceEngineWrapper())
     {
         long result = wrapper.Initialize();
         Assert.AreEqual(0, result);
     }
 }
        public void TestDetectFaces()
        {
            using (FaceEngineWrapper wrapper = new FaceEngineWrapper())
            {
                long result = wrapper.Initialize();
                Assert.AreEqual(0, result);

                Mat  mat1    = new Mat("Images/1-2.jpg");
                long result1 = wrapper.DetectFaces(mat1.Width, mat1.Height, mat1.Data, out var multiFaceInfos1);
                Assert.AreEqual(1, multiFaceInfos1.Count);

                Mat  mat2    = new Mat("Images/trudeau-faceapp.jpg");
                long result2 = wrapper.DetectFaces(mat2.Width, mat2.Height, mat2.Data, out var multiFaceInfos2);
                Assert.AreEqual(2, multiFaceInfos2.Count);
            }
        }