Beispiel #1
0
        /// <summary>
        /// Detects the in image.
        /// </summary>
        /// <returns>The in image.</returns>
        /// <param name="image">Image.</param>
        /// <param name="imageOrientation">Image orientation.</param>
        public Face[] DetectInImage(Texture2D image, CGImageOrientation imageOrientation = CGImageOrientation.Default)
        {
            var cgimage = CGImage.FromTexture2D(image, preprocessImageScale);
            var ciimage = new CIImage(cgimage);

            return(DetectInImage(ciimage, imageOrientation));
        }
Beispiel #2
0
        /// <summary>
        /// Detects the in image.
        /// </summary>
        /// <returns>The in image.</returns>
        /// <param name="image">Image.</param>
        /// <param name="imageOrientation">Image orientation.</param>
        public Face[] DetectInImage(Texture2D image, CGImageOrientation imageOrientation = CGImageOrientation.Default)
        {
            var cgimage = CGImage.FromTexture2D(image);
            var ciimage = new CIImage(cgimage);

//			cgimage.Release();
            return(DetectInImage(ciimage, imageOrientation));
        }