From the find_blobs definition https://docs.openmv.io/library/omv.imag ... find_blobs 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:
Code: Select all
for blob in img.find_blobs([threshold], pixels_threshold=100, area_threshold=100, merge=True, margin=10):