Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When Original image is enabled, the original image is then displayed. When is disabled, the image is displayed with a canny edge filter enabled (edges/outline of the image highlighted).

...

...

Image ModifiedImage Modified

Evaluation

When the end-user clicks on the ‘Evaluation’ button, a threshold can be set for line length, alongside comparison rules, then click ‘Enable'. Lastly, click on 'Save and Close’.

...

Measurement is done in pixels, but if you e.g. put a ruler into an image where the object would be, you can compute the pixel-to-mm ratio and then use it in the Code module to evaluate the length of the lines. The lines are saved in /wiki/spaces/KB3141/pages/533529551 Context in this format:

Code Block
"lines": [
    {
      "id": 1651502661344,
      "label": "Line1",
      "start": {
        "x": 165,
        "y": 479
      },
      "end": {
        "x": 158,
        "y": 4
      },
      "angle": 1.5560605513728232,
      "length": 475
    },
    {
      "id": 1651502665897,
      "label": "Line2",
      "start": {
        "x": 436,
        "y": 479
      },
      "end": {
        "x": 436,
        "y": 4
      },
      "angle": 1.5707963267948966,
      "length": 475
    }
  ]