Abstract

Most modern mobile devices are equipped with touchscreens as the main input hardware. Users can write text or draw shapes on the touchscreen to interact with apps. Therefore, accurate recognition of users’ freehand sketches becomes crucial for a device to receive correct instructions from users. This paper proposes a real-time scheme to recognize shapes drawn on the touchscreen. The proposed shape recognition scheme includes preprocessing, feature extraction and shape classification stages. Freehand strokes drawn by users are usually distorted and inaccurate. In preprocessing, this study uses the sampling technique to remove drawing imperfections such as small jagged noise or distorted strokes. In the feature extraction, we use a state machine to extract the length and curvature as the intrinsic features of a shape. In the final shape classification stage, a template-based approach is used to classify the input shape. A fitness score of the input shape to a template is calculated and the template with the highest score is chosen as the most matched shape. Experiment results show that the proposed real-time shape recognition has high accuracy and good performance.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.