machine-shop / mothra

Automated butterfly wing length measurement
Other
27 stars 15 forks source link

Feature request: more flexible scale bar recognition #90

Open bwprice opened 2 years ago

bwprice commented 2 years ago

The ability to recognize different types of scale bar (such as this example or this example) would make the pipeline more useful for other images.

Also the option to output measurements in "pixels" rather than / in addition to in mm - this would allow more flexibility where specimens are imaged at the same height, but without a scale bar or with a scalebar that doesn't work with the pipeline.

alexdesiqueira commented 2 years ago

@bwprice thanks Ben!

The ability to recognize different types of scale bar ... would make the pipeline more useful for other images.

We can start adding support to those kinds of scale bars in the next network trainings. For that to work, I think we would need to:

  1. feed these images with different scale bars to the network;
  2. have an algorithm that check the ruler and tilt it if necessary.

Also the option to output measurements in "pixels" rather than / in addition to in mm - this would allow more flexibility where specimens are imaged at the same height, but without a scale bar or with a scalebar that doesn't work with the pipeline.

Got it; I'll work on that soon. Thanks again; I'll let you know!