Update plantcv.kmeans_classifier.predict_kmeans
to accept array rather than a filepath
#1605
Labels
Milestone
Start a discussion about anything you would like
Throughout PlantCV we use
img
as a parameter input name when the function takes numpy array data, andfilepath
when the function takes a path. Currentlyplantcv.kmeans_classifier.predict_kmeans(img, model_path="./kmeansout.fit", patch_size=10)
is expecting a path for theimg
parameter.I propose we update the behavior of this function, keep the parameter name the name, and just require users to read the image in upstream. Happy medium might be to just extend the functionality to accept both types of input, @k034b363 thoughts?
The text was updated successfully, but these errors were encountered: