Research - Remi05/outlines GitHub Wiki

Position & Size

Checking alignment

  • Get the bounding box of the elements expected to be aligned.
  • Compare the value of the side(s) (left, top, right, and/or bottom) expected to be aligned.

Measuring distance

  • Get the bounding box of the elements between which to measure the distance.
  • Compute the absolute value of the difference of the two sides between which to measure the distance.

Measuring position and size (bounding box)

Borders

Measuring border width

  • Get the outer bounding box of the target element.
  • Get the inner bounding box of the target element. -> How?
  • Compute the distance between each matching sides of the two bounding boxes.

Measuring border radius

Typography

Identifying font color

  • Identify pixels that are text. -> How?
  • Sample the color for each text pixel.
  • Take the mode color of the text pixels. -> How well does the mode work for small text with anti-aliasing?

Identifying font family

  • Classifier model trained for this task?

Identifying font size

Identifying font weight