ID tags#

For a more detailed description see:`

import phenopype as pp
import os 

## my root directory - modify as needed

## my laptop has a small screen, so I use a smaller phenopype window
pp._config.window_max_dim = 800

Make phenopype project#

Create a phenopype project (remember, Project is used to both create new projects, and load existing ones). Different phenopype projects can be useful, e.g., to process different batches of images from field seasons, perspectives, etc,. It makes sense to create them side by side in a subfolder, which I call “phenopype”. Thus, my research projects often have the following directory structure (just my way of working - this is really totally up to you):

    data                       # processed data (e.g., tables)
    data_raw                   # raw data (images, videos, etc.)
    phenopype                  # phenopype projects
    phenopype_templates        # phenopype .yaml config templates
    scripts                    # python, R, etc.
    [...]                      # manuscripts, figures, literature, etc.
proj = pp.Project(r"phenopype\id-tags")
proj.add_config(template_path="phenopype_templates\id-tags_template1.yaml", tag="v1")
for path in proj.dir_paths: 
    p = pp.Pype(path, "v1", 
                # autoshow=False,             # set to False to not have to confirm the end of an iteration with CTRL+Enter
                # skip="comment",             # set to True to skip to next non-processed image 
## collect results
proj.collect_results(files=["canvas", "comment"], tag="v1", aggregate_csv=True, overwrite=True)