Skip to main content
Searches for the checkbox nearest to the anchor in any direction, and returns a boolean indicating if it’s selected or unselected. Use this method as an alterative to the Checkbox method. The advantage of the Nearest Checkbox method is that it’s more flexible, requires less configuration, and recognizes a wider range of checkbox formats. The disadvantage is that it’s slower than the Checkbox method, because the Nearest Checkbox method uses OCR. Sensible uses one of two data sources, pixels or metadata, to extract selection status:
  • If the document is a PDF that contains checkbox metadata, then Sensible preferentially uses the metadata to extract selection status.
  • If there’s no metadata, Sensible falls back to Azure Form Recognizer’s checkbox detection. This detection uses OCR and machine learning and captures a wide range of checkbox formats.
Parameters
Examples

Parameters

Note: For the full list of parameters available for this method, see Global parameters for methods. The following table shows parameters most relevant to or specific to this method.

Examples

The following example shows extracting the checkboxes that are nearest to their respective anchors. For a checkbox that is nearer to another line’s checkbox than to its own checkbox, the example shows using an Offset parameter to close the gap:
JSON
Example document
The following image shows the example document used with this example config:
Click to enlarge Output
JSON