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/tutorials/services/try-viam-color-detection.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,6 @@ Add the vision service object to the services array in your rover’s raw JSON c
99
99
{{% /tab %}}
100
100
{{< /tabs >}}
101
101
102
-
The configuration adds a model of type `color_detector` with the color as a parameter.
103
102
The `color_detector` is a heuristic-based detector that draws boxes around objects according to their hue.
104
103
105
104
Click **Save config** and head to the **Components** tab.
@@ -113,7 +112,7 @@ Object colors can vary dramatically based on the light source.
113
112
We recommend you verify the desired color detection value under actual lighting conditions.
114
113
To determine the color value from the actual cam component image, you can use a pixel color tool, like [Color Picker for Chrome](https://chrome.google.com/webstore/detail/color-picker-for-chrome/clldacgmdnnanihiibdgemajcfkmfhia).
115
114
116
-
If the color is not reliably detected, drag the `Hue Tolerance` slider to the right or navigate to the `Raw JSON` tab to increase the `hue_tolerance_pct`.
115
+
If the color is not reliably detected, drag the **Hue Tolerance** slider to the right or navigate to the **Raw JSON** tab to increase the `hue_tolerance_pct`.
117
116
118
117
Note that the detector does not detect black, perfect greys (greys where the red, green, and blue color component values are equal), or white.
119
118
{{< /alert >}}
@@ -123,15 +122,15 @@ Note that the detector does not detect black, perfect greys (greys where the red
123
122
Viam [camera](/components/camera/) components can be [physical](/components/camera/webcam/) like the one already configured on the rover, or virtual.
124
123
A virtual camera transforms the output from a physical camera.
125
124
126
-
To view output from the color detector overlaid on images from a physical camera, you need to configure a [transform camera](/components/camera/transform/).
125
+
To view output from the color detector overlaid on images from a physical camera, configure a [transform camera](/components/camera/transform/).
127
126
128
-
Navigate to the **Components** tab in the Viam app and scroll to the **Create Component**section.
127
+
Navigate to the **Components** tab in the Viam app and click the **Components**subtab.
129
128
To create a [transform camera](/components/camera/transform/):
130
129
131
-
1. Click **Create Component**.
130
+
1. Click **Create Component** in the lower-left corner of the page.
132
131
2. Select `camera` as the type.
133
132
3. Select `transform` as the model.
134
-
4. Enter a name for **Name**, for example `detectionCam`, and click **Create**.
133
+
4. Enter a name, for example `detectionCam`, and click **Create**.
135
134
136
135
{{<imgprocsrc="/tutorials/try-viam-color-detection/create-transform-camera.png"resize="350x"declaredimensions=truealt="The Viam app showing the Create Component panel populated with a camera component. The name is detectionCam, the type is camera, and the model is transform.">}}
0 commit comments