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
Multi-class detectors return a `label` attribute in the result object, which contains the predicted class label. The `label` attribute will be one of the class names provided when creating the detector. The `confidence` attribute represents the confidence level in the predicted class, which is a value between `1/len(class_names)` and 1.
47
+
48
+
## Add a label to a Multi-Class Detector
49
+
50
+
To provide ground truth labels for multi-class detectors, you can specify the label of the correct class.
51
+
52
+
```python notest
53
+
from groundlight import ExperimentalApi
54
+
gl_exp = ExperimentalApi()
55
+
56
+
# highlight-start
57
+
# Add a multi-class label to the image query from the previous example
Copy file name to clipboardexpand all lines: docs/docs/answer-modes/3-counting-detectors.md
+4-70
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,4 @@
1
-
# Detector Answer Modes
2
-
Groundlight offers several detector modalities to suit different computer vision tasks. While previous examples have focused on binary classification, this guide will walk you through using counting and multi-class detectors. Let's explore how these different modes can be used via the Groundlight SDK.
3
-
4
-
## Counting Detectors
1
+
# Counting Detectors
5
2
6
3
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.
7
4
@@ -30,7 +27,7 @@ The `confidence_threshold` parameter sets the minimum confidence level required
30
27
Counting Detectors are available on [Business and Enterprise plans](https://www.groundlight.ai/pricing).
31
28
:::
32
29
33
-
###Submit an Image Query to a Counting Detector
30
+
## Submit an Image Query to a Counting Detector
34
31
35
32
Now that you have created a counting detector, you can submit an image query to it.
Multi-class detectors return a `label` attribute in the result object, which contains the predicted class label. The `label` attribute will be one of the class names provided when creating the detector. The `confidence` attribute represents the confidence level in the predicted class, which is a value between `1/len(class_names)` and 1.
166
-
167
-
### Add a label to a Multi-Class Detector
168
-
169
-
To provide ground truth labels for multi-class detectors, you can specify the label of the correct class.
170
-
171
-
```python notest
172
-
from groundlight import ExperimentalApi
173
-
gl_exp = ExperimentalApi()
174
-
175
-
# highlight-start
176
-
# Add a multi-class label to the image query from the previous example
Groundlight offers several detector modalities to suit different computer vision tasks. While previous examples have focused on binary classification, this guide will walk you through using counting and multi-class detectors. Let's explore how these different modes can be used via the Groundlight SDK.
See this [guide](./8-async-queries.md) for more information on ImageQueries submitted asynchronously.
76
+
See this [guide](./7-async-queries.md) for more information on ImageQueries submitted asynchronously.
77
77
78
78
### (Advanced) Get the first available answer, regardless of confidence
79
79
`ask_ml` evaluates an image with Groundlight and returns the first answer Groundlight can provide, agnostic of confidence. There is no wait period when using this method. It is called `ask_ml` because our machine learning models are earliest on our escalation ladder and thus always the fastest to respond.
Copy file name to clipboardexpand all lines: docs/docs/guide/guide.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,11 @@ On the following pages, we'll guide you through the process of building applicat
6
6
-**[Grabbing images](2-grabbing-images.md)**: Understand the intricacies of how to submit images from various input sources to Groundlight.
7
7
-**[Working with detectors](3-working-with-detectors.md)**: Learn how to create, configure, and use detectors in your Groundlight-powered applications.
8
8
-**[Submitting image queries](4-submitting-image-queries.md)**: Submit images to Groundlight for analysis and retrieve the results.
9
-
-**[Detector answer modes](5-detector-modes.md)**: Answer counting and multi-classification queries with Groundlight.
10
-
-**[Confidence levels](6-managing-confidence.md)**: Master how to control the trade-off of latency against accuracy by configuring the desired confidence level for your detectors.
11
-
-**[Handling errors](7-handling-errors.md)**: Understand how to handle and troubleshoot HTTP errors (`ApiException`) that may occur while using Groundlight.
12
-
-**[Asynchronous queries](8-async-queries.md)**: Groundlight makes it easy to submit asynchronous queries. Learn how to submit queries asynchronously and retrieve the results later.
13
-
-**[Using Groundlight on the edge](9-edge.md)**: Discover how to deploy Groundlight in edge computing environments for improved performance and reduced latency.
14
-
-**[Alerts](10-alerts.md)**: Learn how to set up alerts to notify you via text (SMS) or email when specific conditions are met in your visual applications.
9
+
-**[Confidence levels](5-managing-confidence.md)**: Master how to control the trade-off of latency against accuracy by configuring the desired confidence level for your detectors.
10
+
-**[Handling errors](6-handling-errors.md)**: Understand how to handle and troubleshoot HTTP errors (`ApiException`) that may occur while using Groundlight.
11
+
-**[Asynchronous queries](7-async-queries.md)**: Groundlight makes it easy to submit asynchronous queries. Learn how to submit queries asynchronously and retrieve the results later.
12
+
-**[Using Groundlight on the edge](8-edge.md)**: Discover how to deploy Groundlight in edge computing environments for improved performance and reduced latency.
13
+
-**[Alerts](9-alerts.md)**: Learn how to set up alerts to notify you via text (SMS) or email when specific conditions are met in your visual applications.
15
14
16
15
17
16
By exploring these resources and sample applications, you'll be well on your way to building powerful visual applications using Groundlight's computer vision and natural language capabilities.
0 commit comments