Editing Capturing Handwriting

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
 
== Capturing a signature with jSignature ==
 
== Capturing a signature with jSignature ==
  
For very small amounts of text — for example a single signature — a convenient software tool is [https://willowsystems.github.io/jSignature/#/demo/ jSignature]. jSignature can create and save an SVG file which can be opened in Inkscape. jSignature can be used from your computer, smartphone, or tablet.  You'll often get the best results using a stylus that you hold like a pen, rather than your finger.
+
For very small amounts of text — for example a single signature — a convenient software tool is [https://willowsystems.github.io/jSignature/#/demo/ jSignature]. jSignature can create and save an SVG file which can be opened in Inkscape. jSignature can be used from your computer, smartphone, or tablet.
  
 
To use it from your computer, sign your signature, and then select "SVG" from the "Extract signature data as" pop-up menu.  It should then display your signature as an image below that pop-up menu. Right-click on the image, and select from the menu there "Save image as..." (the exact wording of this option will vary depending on your browser), and save the result with a name like "signature.svg". You can then open up this SVG file from within Inkscape and print to the AxiDraw. For other platforms (smartphone and tablet), you'll need to send the signature to your desktop computer, by a means such as e-mail, before proceeding.
 
To use it from your computer, sign your signature, and then select "SVG" from the "Extract signature data as" pop-up menu.  It should then display your signature as an image below that pop-up menu. Right-click on the image, and select from the menu there "Save image as..." (the exact wording of this option will vary depending on your browser), and save the result with a name like "signature.svg". You can then open up this SVG file from within Inkscape and print to the AxiDraw. For other platforms (smartphone and tablet), you'll need to send the signature to your desktop computer, by a means such as e-mail, before proceeding.
 
If you need to start with a printed signature, this method can still be used. Print out the signature, place it on your phone (or other touch surface) and trace along it, just as you would if you were signing for the first time.
 
 
If you would like a version of jSignature with a larger writing area, we have a version available [https://evil-mad.github.io/jSignature/ here].
 
  
 
== Using a graphics tablet for direct capture==
 
== Using a graphics tablet for direct capture==
Line 20: Line 16:
 
=== Capturing with a simple graphics tablet ===
 
=== Capturing with a simple graphics tablet ===
  
One solution for capturing writing is to use a dedicated graphics tablet such as the [https://www.amazon.com/dp/B07PPQH867 Wacom Intuos Draw]. These are relatively inexpensive (< $100) input devices with a stylus. You can use the stylus just like a pen, within almost any application that supports drawing and creating vector graphics. (Be sure to use a ''vector graphics'' application such as Inkscape or Adobe Illustrator, and not a bitmap graphics application such as Photoshop.)
+
One solution for capturing writing is to use a dedicated graphics tablet such as a [https://www.amazon.com/Wacom-Bamboo-CTL471-Tablet-Black/dp/B00EVOXM3S/ Wacom Bamboo] or [https://www.amazon.com/Wacom-CTL490DB-Digital-Drawing-Graphics/dp/B010LHRFWW/ Wacom Intuos Draw]. These are relatively inexpensive (< $100) input devices with a stylus. You can use the stylus just like a pen, within almost any application that supports drawing and creating vector graphics. (Be sure to use a ''vector graphics'' application such as Inkscape or Adobe Illustrator, and not a bitmap graphics application such as Photoshop.)
  
 
While you can certainly write freehand on a tablet like this while watching your screen alone, another approach is to trace existing writing or artwork on a piece of paper. You can attach a piece of paper to the top of your graphics tablet and use the stylus on top of that, to trace handwriting or other artwork.  
 
While you can certainly write freehand on a tablet like this while watching your screen alone, another approach is to trace existing writing or artwork on a piece of paper. You can attach a piece of paper to the top of your graphics tablet and use the stylus on top of that, to trace handwriting or other artwork.  
  
 
If you are tracing something small (for example a signature), it is sometimes helpful to start with an extra large version of your signature (perhaps, the full size of your tablet's input area), and shrink the result down when you are done. This helps to minimize any artifacts from your tracing.
 
If you are tracing something small (for example a signature), it is sometimes helpful to start with an extra large version of your signature (perhaps, the full size of your tablet's input area), and shrink the result down when you are done. This helps to minimize any artifacts from your tracing.
 
  
 
=== Capturing with a hybrid graphics tablet/monitor ===
 
=== Capturing with a hybrid graphics tablet/monitor ===
  
There are also high end graphics tablets that are more aptly described as computer monitors which accept stylus input.  A good example is the [https://www.amazon.com/dp/B07L77GTTY Wacom Cintiq], available in various sizes. These tend to be considerably more expensive than a stand-alone tablet, and you may wish to consider a general-purpose tablet computer (e.g., iPad) as an alternative. (Hints on using a tablet computer are in the section below.)
+
There are also high end graphics tablets that are more aptly described as computer monitors which accept stylus input.  A good example is the [https://www.amazon.com/Wacom-Cintiq-21-Inch-Display-DTK2200/dp/B008HB5K5O/ Wacom Cintiq], available in various sizes. These tend to be considerably more expensive than a stand-alone tablet, and you may wish to consider a general-purpose tablet computer (e.g., iPad) as an alternative. (Hints on using a tablet computer are in the section below.)
  
 
A graphics tablet with a display is excellent for freehand writing since it provides instant feedback. However it requires a different approach if you wish to trace existing writing or artwork. Use a scan or photograph of the handwriting or artwork that you wish to follow, and display it in the background of the area where you are tracing.
 
A graphics tablet with a display is excellent for freehand writing since it provides instant feedback. However it requires a different approach if you wish to trace existing writing or artwork. Use a scan or photograph of the handwriting or artwork that you wish to follow, and display it in the background of the area where you are tracing.
Line 38: Line 33:
 
Several commercial software utilities now exist that allow you to use your existing touchscreen tablet computer (such as an iPad or sometimes even smartphones) as an external graphics tablet and monitor for your Mac or Windows computer. This, combined with the addition of a stylus (an included or third-party touchscreen stylus, or the Apple Pencil on the iPad Pro) can make a very effective graphics tablet -- and at relatively low cost if you already own such a tablet.  
 
Several commercial software utilities now exist that allow you to use your existing touchscreen tablet computer (such as an iPad or sometimes even smartphones) as an external graphics tablet and monitor for your Mac or Windows computer. This, combined with the addition of a stylus (an included or third-party touchscreen stylus, or the Apple Pencil on the iPad Pro) can make a very effective graphics tablet -- and at relatively low cost if you already own such a tablet.  
  
[https://www.duetdisplay.com Duet] and [http://astropad.com AstroPad] are two solutions for using an iPad as a graphics tablet. Duet is available for both Mac and Windows and supports both iPad and iPhone. AstroPad is for Mac and iPad only. Both offer different levels of service at different costs. You can read a comparative review of them [https://www.imore.com/astropad-vs-duet-display-which-second-screen-drawing-tablet-ipad-pro-reigns-supreme here]. (We have tried Duet with an iPad Pro and found that it works quite well.) If you have a recent-generation Mac running MacOS Catalina or newer with a compatible iPad and Apple Pencil, you may also be able to use Apple's [https://support.apple.com/en-us/HT210380 sidecar] feature, built into the operating system, without purchasing separate software.
+
[https://www.duetdisplay.com Duet] and [http://astropad.com AstroPad] are two solutions for using an iPad as a graphics tablet. Duet is available for both Mac and Windows and supports both iPad and iPhone. AstroPad is for Mac and iPad only. Both offer different levels of service at different costs. You can read a comparative review of them [https://www.imore.com/astropad-vs-duet-display-which-second-screen-drawing-tablet-ipad-pro-reigns-supreme here]. (We have tried Duet with an iPad Pro and found that it works quite well.)
  
 
While not quite at the same level of polish, the free [http://www.sunnysidesoft.com/virtualtablet/supported-devices/ VirtualTablet] software allows a similar functionality with certain Android or Microsoft Surface tablets.
 
While not quite at the same level of polish, the free [http://www.sunnysidesoft.com/virtualtablet/supported-devices/ VirtualTablet] software allows a similar functionality with certain Android or Microsoft Surface tablets.
Line 71: Line 66:
  
  
==== Bitmap Tracing ====
+
==== Tracing bitmaps ====
  
 
When you scan or take a picture of vector artwork, or convert vector artwork into a bitmap format (for example by saving as a JPG file), you are ''removing the directional information from the artwork''. You are removing the data that says where each stroke starts and stops, and replacing it with a grid of color values.  
 
When you scan or take a picture of vector artwork, or convert vector artwork into a bitmap format (for example by saving as a JPG file), you are ''removing the directional information from the artwork''. You are removing the data that says where each stroke starts and stops, and replacing it with a grid of color values.  
  
To convert back from that grid of colored pixels into a list of strokes and directions is a complex problem that does not always have a clear solution. A simplistic approach is to draw vector contours around brightness levels -- this the type of automatic "outline tracing" that Inkscape's Trace Bitmap tool uses. You can find this tool in the menu as Path > Trace Bitmap.  This type of tracing tool is well suited to simple outline shapes that do not have complex internal structure.  
+
To convert back from that grid of colored pixels into a list of strokes and directions is a complex problem that does not always have a clear solution. A simplistic approach is to draw vector contours around brightness levels -- this the type of "outline tracing" that Inkscape's Trace Bitmap tool uses.  
  
 
This type of tracing usually results in plotting "double" lines around each stroke, since it is showing the outlines, and that can result in plotted letters that look hollow. In some cases a broad-nibbed fountain pen (or Sharpie) has a width that is sufficient to hide the fact. You can help a little bit by using an inset operation (In Illustrator, Effect > Path > Offset path), to make the width smaller. You might also consider using a smaller nibbed pen, but filling the text in the usual way so that it is not hollow.
 
This type of tracing usually results in plotting "double" lines around each stroke, since it is showing the outlines, and that can result in plotted letters that look hollow. In some cases a broad-nibbed fountain pen (or Sharpie) has a width that is sufficient to hide the fact. You can help a little bit by using an inset operation (In Illustrator, Effect > Path > Offset path), to make the width smaller. You might also consider using a smaller nibbed pen, but filling the text in the usual way so that it is not hollow.
  
  
==== Centerline Tracing ====
+
==== Center tracing ====
  
A slightly more advanced type of bitmap tracing tries to draw centerlines through these contours, in order to estimate where the initial lines were located. This is called "center" or "centerline" tracing. And, while it sounds like a good idea in practice, the results of automated centerline tracing software are rarely good enough to pass for human handwriting, since the tracing tool has no intuition about how the lines should connect together, or appear when they overlap.
+
A slightly more advanced type of bitmap tracing tries to draw centerlines through these contours, in order to estimate where the initial lines were located. This is called "center" or "centerline" tracing. And, while it sounds like a good idea in practice, the results are rarely good enough to pass for human handwriting, since the tracing tool has no intuition about how the lines should connect together, or appear when they overlap.
  
 
Here is an online program that can take your scanned text and convert it by center tracing to an SVG file that can opened in Inkscape: http://online.rapidresizer.com/tracer.php   
 
Here is an online program that can take your scanned text and convert it by center tracing to an SVG file that can opened in Inkscape: http://online.rapidresizer.com/tracer.php   
Line 91: Line 86:
  
 
''Aside:'' Going several steps further, automatically interpreting from a scanned image to determine not where the lines are, but instead the human's intent and drawing method is a decades-old, challenging problem in computer vision and AI, called "stroke extraction." In the context of handwriting, this problem is called "handwriting trajectory recovery." It is a specialized application, and not one that we advertise as a capability. Very little commercially (or freely) available software currently exists that can perform that task to an appreciable degree of satisfaction.
 
''Aside:'' Going several steps further, automatically interpreting from a scanned image to determine not where the lines are, but instead the human's intent and drawing method is a decades-old, challenging problem in computer vision and AI, called "stroke extraction." In the context of handwriting, this problem is called "handwriting trajectory recovery." It is a specialized application, and not one that we advertise as a capability. Very little commercially (or freely) available software currently exists that can perform that task to an appreciable degree of satisfaction.
 
 
==== Manual Tracing ====
 
 
Aside from using automatic tracing software, you can also ''manually'' trace a scan, in order to produce AxiDraw compatible vector curves. This process is labor intensive, but can also produce extremely high quality output. It is a good method when you need to reproduce ''short'' samples (short notes or a signature) of someone's existing handwriting.
 
 
As an example, suppose that you need to trace an existing (historical) signature, so that it can be printed as a single vector path. You might start with a photograph or scan of the signature. After importing the graphic into Inkscape, use the “pencil” tool to trace along the strokes, and use the additional path editing tools within Inkscape to adjust the strokes until they look proper.  (You can use similar tools and methods within other vector graphics such as Adobe Illustrator or Corel Draw, just as well.)  If you are using Inkscape to do this kind of manual tracing, see "Inkscape settings for handwriting capture" above for some settings that might be helpful.
 
 
With a little practice, this can become quite quick and effective.
 
  
  
Line 107: Line 93:
  
 
Here are a few possible starting points:
 
Here are a few possible starting points:
* If your goal is to to exactly copy a small number of handwritten notes, a great number of times, and you need to start with a photograph or scan, then consider manually tracing the file, as described above.
+
* If your goal is to to exactly copy a small number of handwritten notes a great number of times, then take your scan into Illustrator or Inkscape, and manually trace along the strokes with the pen tool, ideally using a graphics tablet. With a little practice, this can be quite quick. (Additional notes on the topic of direct handwriting capture can be found further up this page.)
 
* If your goal is to generate a great many notes that look reasonably "hand written" but do not need to match someone's exact style, then use regular computer fonts or Hershey-style single-stroke fonts.
 
* If your goal is to generate a great many notes that look reasonably "hand written" but do not need to match someone's exact style, then use regular computer fonts or Hershey-style single-stroke fonts.
 
* If your goal is to digitize signatures, or other very small amounts of text, and do not have to start with scans, then use the jSignature tool discussed earlier or trace the text/signature with a graphics tablet.
 
* If your goal is to digitize signatures, or other very small amounts of text, and do not have to start with scans, then use the jSignature tool discussed earlier or trace the text/signature with a graphics tablet.
 
* If your goal is to reproduce complex artwork that starts as a bitmap image, then you may have no choice but to try and use some kind of bitmap tracing tool.
 
* If your goal is to reproduce complex artwork that starts as a bitmap image, then you may have no choice but to try and use some kind of bitmap tracing tool.

Please note that all contributions to Evil Mad Scientist Wiki are considered to be released under the GNU Free Documentation License 1.3 (see Evil Mad Scientist Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Template used on this page: