mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust detection
This commit is contained in:
1 parent
bf2ebb995b
commit
7ca290c080
1 file changed
+2
-1
@@ -472,7 +472,8 @@ module Templates
|
||||
|
||||
next if text_field.y + text_field.h < image_field.y
|
||||
|
||||
next unless boxes_overlap?(image_field, text_field) && calculate_iou(image_field, text_field) > 0.5
|
||||
next unless boxes_overlap?(image_field, text_field)
|
||||
next if calculate_iou(image_field, text_field) < 0.4
|
||||
|
||||
break image_field.confidence += by
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user