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
So far, all of the detectors we've created have been binary classification detectors. But what if you want to count the number of objects in an image? You can create a counting detector to do just that. Counting detectors also return bounding boxes around the objects they count.
65
-
66
-
:::note
67
-
68
-
Counting Detectors are available on [Pro, Business, and Enterprise plans](https://www.groundlight.ai/pricing).
69
-
70
-
:::
71
-
72
-
```python notest
73
-
from groundlight import ExperimentalApi
74
-
75
-
gl_experimental = ExperimentalApi()
76
-
77
-
# highlight-start
78
-
detector = gl_experimental.create_counting_detector(name="your_detector_name", query="How many cars are in the parking lot?", max_count=20)
79
-
# highlight-end
80
-
```
81
-
82
-
### [BETA] Create a Multi-Class Detector
83
-
If you want to classify images into multiple categories, you can create a multi-class detector.
Copy file name to clipboardexpand all lines: docs/docs/guide/5-detector-modalities.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Groundlight supports a variety of answer modalities. Thus far, all of the exampl
6
6
7
7
Counting detectors are used to count the number of objects in an image. Groundlight's counting detectors also return bounding boxes around the objects they count.
8
8
9
-
```python notest
9
+
```python
10
10
from groundlight import ExperimentalApi
11
11
gl_exp = ExperimentalApi()
12
12
@@ -36,8 +36,10 @@ Now that you have created a counting detector, you can submit an image query to
0 commit comments