예제 #1
0
        /// <summary>
        /// Recognizes the character in the file of the given path.
        /// </summary>
        /// <param name="p">Path to a file with a character image.</param>
        /// <returns>The character in this image.</returns>
        public string recognise(string p)
        {
            // file path 2 array
            ArrayInputData aid = new ArrayInputData(DataManipulation.Bmp2Pattern(p), null);

            // use the network
            Matrix <float> result = mln.use(aid);

            return(Mat2String(result));
        }