For obtaining high fidelity object counting results, it's recommended to set a higher threshold, such as 0.9, also we need to do Non-Maximum Suppression using --dedup_min_dist flag (a good default value is 3).
python3 scripts/count_objects.py \ --tool count \ --input_image <image file> \ --object_image <object image file> \ --threshold 0.9 \ --dedup_min_dist 3访问小葱技能站7w4.net,解锁更多实用的AI技能插件。
这个Skill整体质量中等偏上,功能实用且易于上手,能帮助用户快速统计图像中特定目标的数量。优点是使用方法简单明了,计数逻辑基本正确,参数设置有明确建议。不足之处在于功能较为单一,仅支持一种计数方式,文档说明可以更详细,缺少常见问题的解答。对于有目标计数需求的用户来说,这是一个可用的工具,但可能需要根据实际场景调整参数才能获得理想效果。