Print Measurement Results¶
An Outputs class has been added that automatically stores measurements collected by the following functions:
Users can also add measurements to the
Outputs class with the
print_results function will take the measurements stored when running any (or all) of these functions, format, and
print an output .json file for data analysis.
- filename- Name of results text file
- Print out a result file containing all measurements recorded by functions included in the workflow for each image processed.
- Example use:
from plantcv import plantcv as pcv # Read in image img, path, img_filename = pcv.readimage("home/user/images/test-image.png") ######### Workflow steps here pcv.print_results(filename='test_workflow_results.txt')