Leaf Size is a Web application for the measurement size of the leaves and pathogen in your images. The application is specifically designed for high throughput: allow to quantify as many images as possible in the least amount of time.
Try it now at https://vittorioaccomazzi.github.io/LeafSize/
The steps that the user has take to quantify leaf size and pathogen size are the following:
Preview
to view how the image displayed in the page analyzed:
Hue
and Saturation
:
Select Pathogen region
and then paint on the images over the pathogen region. You don't have to be accurate, just select a large part of it, to indicate which colour in the image belong to the pathogenSelect Leaf region
and then click on the region which was erroneously included. Accept
and finalize the images which are properly processed.The key is that you can iterate steps 2 and 3 multiple times. This will allow you to process all the images with different settings if necessary. Please note:
Accept
all the images. For instance if some images do not have a leaf or are blurry, don't accept them and just download the results, from which they are excluded.You can install the application locally on your laptop using the download button in the URL line, this will allow you to run the application also offline, when you are not connected to the internet.
This video (3min) shows the entire workflow.
Your images will not be copied nor uploaded to a server, all the processing occurs locally on your computer inside your browser.
The application assumes that you acquire a large number of images with the leaf, each image shall have 1 or 4 petri dishes and the leaf must be places on the dishes. The background (table) shall be white, and the lighting uniform. See the image below as example.
For the optimal result please acquire the images as follow:
The application will report the size of each leaf and pathogen in pixels. You can calibrate the image simply placing a rule in the image, and so convert the values in squared centimeters. You will be able to review the values on the browser and download a csv file for further elaboration with excel.
The application is written with react and leverages several new and experimental features available in Chrome :
If you like to contribuite to the application, clone the repository and create a pull request.
brew install pkg-config cairo pango libpng jpeg giflib librsvg
otherwise the installation of node-canvas
will fail.DUMP
to true
and then run the test on the shell using the normal npm command (npm run test
)In order to test the PWA implementation you need to use the production build, so do not use start
npm command but serve-prod
. Notice that:
Developer Tools
→ Application
→ press Clear Side Data
and the reload the page.The application API which are not part of the HTML standard (yet) and are supported on Chrome only. So it will not run in any other browser.