6. The method of claim 1 , further comprising: identifying a third graphics element in the image, wherein the third graphics element corresponds to a command associated with a document setting selected from a group consisting of a margin of the electronic document, a page size of the electronic document, and a background color of the electronic document; and modifying the electronic document based on the document setting.
1. A method for image processing, comprising: obtaining an image comprising: a first graphics element comprising a first hand-drawn character; and a second graphics element comprising a second hand-drawn character; determining that the first graphics element is a command specifying a name of a font and that the second graphics element is a non-command; and generating an electronic document comprising a text character corresponding to the second hand-drawn character and in the font, wherein the electronic document does not include the first graphics element.