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/data-ai/_index.md
+10
Original file line number
Diff line number
Diff line change
@@ -8,3 +8,13 @@ no_list: true
8
8
open_on_desktop: true
9
9
overview: true
10
10
---
11
+
12
+
<!-- TODO: make this into a proper page, just wanted to save some info -->
13
+
14
+
Machine learning (ML) provides your machines with the ability to adjust their behavior based on models that recognize patterns or make predictions.
15
+
16
+
Common use cases include:
17
+
18
+
- Object detection, which enables machines to detect people, animals, plants, or other objects with bounding boxes, and to perform actions when they are detected.
19
+
- Object classification, which enables machines to separate people, animals, plants, or other objects into predefined categories based on their characteristics, and to perform different actions based on the classes of objects.
20
+
- Speech recognition, natural language processing, and speech synthesis, which enable machines to verbally communicate with us.
Copy file name to clipboardexpand all lines: docs/data-ai/ai/act.md
+144-2
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,148 @@ title: "Act based on inferences"
4
4
weight: 70
5
5
layout: "docs"
6
6
type: "docs"
7
-
no_list: true
8
-
description: "TODO"
7
+
description: "Use the vision service API to act based on inferences."
9
8
---
9
+
10
+
You can use the [vision service API](/dev/reference/apis/services/vision/) to get information about your machine's inferences and program behavior based on that.
11
+
12
+
## Program a line following robot
13
+
14
+
For example, you can [program a line following robot](/tutorials/services/color-detection-scuttle/) that uses a vision service to follow a colored object.
15
+
16
+
You can use the following code to detect and follow the location of a colored object:
If you configured the color detector to detect red in the Viam app, your rover should detect and navigate towards any red objects that come into view of its camera.
102
+
Use something like a red sports ball or book cover as a target to follow to test your rover:
103
+
104
+
<divclass="aligncenter">
105
+
{{<videowebm_src="https://storage.googleapis.com/docs-blog/tutorials/videos/scuttledemos_colordetection.webm"mp4_src="https://storage.googleapis.com/docs-blog/tutorials/videos/scuttledemos_colordetection.mp4"poster="/tutorials/scuttlebot/scuttledemos_colordetection.jpg"alt="Detecting color with a Scuttle Robot">}}
106
+
</div>
107
+
108
+
## Act in industrial applications
109
+
110
+
You can also act based on inferences in an industrial context.
111
+
For example, you can program a robot arm to halt operations when workers enter dangerous zones, preventing potential accidents.
0 commit comments