You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/docs/guide/5-detector-modes.md
+10-1
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ gl_exp = ExperimentalApi()
13
13
detector = gl_exp.create_counting_detector(
14
14
name="car-counter",
15
15
query="How many cars are in the parking lot?",
16
+
class_name="car",
16
17
max_count=20,
17
18
confidence_threshold=0.2,
18
19
)
@@ -23,6 +24,8 @@ Counting detectors should be provided with a query that asks "how many" objects
23
24
24
25
A maximum count (of 50 or fewer) must be specified when creating a counting detector. This is the maximum number of objects that the detector will count in an image. Groundlight's ML models are optimized for counting up to 20 objects, but you can increase the maximum count to 50 if needed. If you have an application that requires counting more than 50 objects, please [contact us](mailto:[email protected]).
25
26
27
+
The `confidence_threshold` parameter sets the minimum confidence level required for the ML model's predictions. If the model's confidence falls below this threshold, the query will be sent for human review. Count detectors can have a `confidence_threshold` set to any value between `1/(max_count + 2)` and 1.
28
+
26
29
:::note
27
30
Counting Detectors are available on [Business and Enterprise plans](https://www.groundlight.ai/pricing).
28
31
:::
@@ -103,7 +106,9 @@ from groundlight import ExperimentalApi
103
106
gl_exp = ExperimentalApi()
104
107
105
108
# highlight-start
106
-
# Add a count label with corresponding ROIs to the image query from the previous example
109
+
# Add a count label with corresponding ROIs to the image query from the previous example.
110
+
# ROIs are specified as (left, top) and (right, bottom) coordinates, with values
111
+
# between 0 and 1 representing the percentage of the image width and height.
0 commit comments