GetCharWidth | R Documentation |
These functions provide a simple way to calculate the typical height and width of the characters recognized on the current page.
GetCharWidth(bbox, fun = median, onlyAlphaNumeric = TRUE, ...)
GetCharHeight(bbox, fun = median, onlyAlphaNumeric = TRUE, ...)
bbox |
the matrix/data.frame of bounding boxes of the elements on the page. |
fun |
a function to compute the "typical" value, e.g., the median or mean. It is called with a numeric vector. |
onlyAlphaNumeric |
a logical value to control whether we only consider "regular" characters and not diacritics and other characters that the OCR may have inferred. |
... |
additional arguments passed to the call to |
a scalar numeric value
Duncan Temple Lang
GetBoxes
, tesseract
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.