From the find_blobs definition image — machine vision — MicroPython 1.13 documentation we have
image.find_blobs(thresholds[, invert=False[, roi[, x_stride=2[, y_stride=1[, area_threshold=10[, pixels_threshold=10[, merge=False[, margin=0[, threshold_cb=None[, merge_cb=None[, x_hist_bins_max=0[, y_hist_bins_max=0]]]]]]]]]]]])
. . .
If a blob’s bounding box area is less than area_threshold it is filtered out.
If a blob’s pixel count is less than pixel_threshold it is filtered out.
When should area_threshold be used vs pixel_threshold vs both? Which is faster and/or optimal?
Your sample programs use both - but our team cannot figure out why:
for blob in img.find_blobs([threshold], pixels_threshold=100, area_threshold=100, merge=True, margin=10):