Click here to Skip to main content
15,885,366 members
Articles / Artificial Intelligence / Neural Networks

Multiple convolution neural networks approach for online handwriting recognition

Rate me:
Please Sign up or sign in to vote.
4.95/5 (37 votes)
9 Apr 2013CPOL8 min read 75.9K   25.1K   74  
The research focuses on the presentation of word recognition technique for an online handwriting recognition system which uses multiple component neural networks (MCNN) as the exchangeable parts of the classifier.
using System;
using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;

namespace NetSpell.SpellChecker.Controls
{
	/// <summary>
	/// Summary description for SpellRichTextBox.
	/// </summary>
	public class SpellRichTextBox : RichTextBox
	{
		private bool _EnableSpellCheck = true;
		private Pen _errorPen = new Pen(Color.Red, 1);
		private Spelling _spellChecker;

        public SpellRichTextBox()
        {
            Application.Idle +=new EventHandler(OnIdle);
        }
	
		
        protected override void WndProc(ref Message m)
        {
            base.WndProc (ref m);
        }
    
        protected override void OnTextChanged(EventArgs e)
        {
            base.OnTextChanged (e);
        }
    
        protected override void OnSelectionChanged(EventArgs e)
        {
            base.OnSelectionChanged (e);
        }

        protected override void OnMouseDown(MouseEventArgs e)
        {
            base.OnMouseDown (e);
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint (e);
        }

		protected override void Dispose(bool disposing)
		{
			if( disposing )
			{
				// free pen resources
				if(_errorPen != null)
					_errorPen.Dispose();
			}
			base.Dispose( disposing );
		}

		protected void OnScroll(EventArgs e)
		{

		}

        protected void OnIdle(object sender, EventArgs e)
        {

        }

		/// <summary>
		///     The WordDictionary object to use when spell checking
		/// </summary>
		[Browsable(true)]
		[CategoryAttribute("SpellCheck")]
		[Description("The Spelling object to use when spell checking")]
		public Spelling SpellChecker
		{
			get {return _spellChecker;}
			set {_spellChecker = value;}
		}


		/// <summary>
		///     The color of the wavy underline that marks misspelled words
		/// </summary>
		[Browsable(true)]
		[CategoryAttribute("SpellCheck")]
		[Description("The color of the wavy underline that marks misspelled words")]
		public Color ErrorColor
		{
			get {return _errorPen.Color;}
			set {_errorPen.Color = value;}
		}


		/// <summary>
		///     Enable As You Type spell checking
		/// </summary>
		[Browsable(true)]
		[DefaultValue(true)]
		[CategoryAttribute("SpellCheck")]
		[Description("Enable As You Type spell checking")]
		public bool EnableSpellCheck
		{
			get {return _EnableSpellCheck;}
			set {_EnableSpellCheck = value;}
		}

	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Vietnam Maritime University
Vietnam Vietnam
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions