Skip to content

Commit 2208295

Browse files
committed
update photos and directions
1 parent 28378ae commit 2208295

7 files changed

+13
-13
lines changed
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Loading
Loading

docs/tutorials/services/try-viam-color-detection.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Add the vision service object to the services array in your rover’s raw JSON c
9999
{{% /tab %}}
100100
{{< /tabs >}}
101101

102-
The configuration adds a `model` of `type` `color_detector` with the color as a parameter.
102+
The configuration adds a model of type `color_detector` with the color as a parameter.
103103
The `color_detector` is a heuristic-based detector that draws boxes around objects according to their hue.
104104

105105
Click **Save config** and head to the **Components** tab.
@@ -113,7 +113,7 @@ Object colors can vary dramatically based on the light source.
113113
We recommend you verify the desired color detection value under actual lighting conditions.
114114
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).
115115

116-
If the color is not reliably detected, increase the `hue_tolerance_pct`.
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`.
117117

118118
Note that the detector does not detect black, perfect greys (greys where the red, green, and blue color component values are equal), or white.
119119
{{< /alert >}}
@@ -128,12 +128,12 @@ To view output from the color detector overlaid on images from a physical camera
128128
Navigate to the **Components** tab in the Viam app and scroll to the **Create Component** section.
129129
To create a [transform camera](/components/camera/transform/):
130130

131-
1. Enter a name for **Name**, for example `detectionCam`.
132-
2. Select `camera` as the **Type**.
133-
3. Select `transform` as the **Model**.
134-
4. Click **Create Component**.
131+
1. Click **Create Component**.
132+
2. Select `camera` as the type.
133+
3. Select `transform` as the model.
134+
4. Enter a name for **Name**, for example `detectionCam`, and click **Create**.
135135

136-
![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.](/tutorials/try-viam-color-detection/create-component-pane.png)
136+
{{<imgproc src="/tutorials/try-viam-color-detection/create-transform-camera.png" resize="900x" declaredimensions=true alt="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.">}}
137137

138138
Viam generates an empty **Attributes** section for the detection camera's component panel.
139139
The panel's **Attribute Guide** section displays the available attributes for the selected component.
@@ -142,9 +142,9 @@ The panel's **Attribute Guide** section displays the available attributes for th
142142
Attribute Guides always prefix required attributes with an asterisk.
143143
{{% /alert %}}
144144

145-
![The Viam app showing the detectionCam component section. The Attributes section contains a skeleton configuration, including source, pipeline, type, and attributes. The Attributes Guide section lists the available camera component attributes. There are buttons labeled Data Capture Configuration, and Frame, and a drop-down labeled, Depends On. On the upper right there is a trash bin icon.](/tutorials/try-viam-color-detection/empty-detectioncam-component-panel.png)
145+
{{<imgproc src="/tutorials/try-viam-color-detection/transform-camera-config.png" resize="900x" declaredimensions=true alt="The Viam app showing the detectionCam component section. The Attributes section contains a skeleton configuration, including source, pipeline, type, and attributes. The Attributes Guide section lists the available camera component attributes. There are buttons labeled Data Capture Configuration, and Frame, and a drop-down labeled, Depends On. On the upper right there is a trash bin icon.">}}
146146

147-
Copy the following JSON configuration into the Attributes section:
147+
Copy the following JSON configuration into the **Attributes** section:
148148

149149
```json {class="line-numbers linkable-line-numbers"}
150150
{
@@ -166,16 +166,16 @@ Copy the following JSON configuration into the Attributes section:
166166
| `source` | `cam` | The name of the physical camera on the rover, which provides the visual feed to get detections from. |
167167
| `attributes` | | The attributes of this detectionCam. |
168168
| `attributes.detector_name` | `my_color_detector` | The name of this detectionCam. |
169-
| `attributes.confidence_threshold` | `0.3` (30%) | The percentage of confidence in the color being present the detection service needs to detect a color. |
169+
| `attributes.confidence_threshold` | `0.3` (30%) | The percentage of confidence needed by the detection service to identify a color. |
170170
| `type` | `detections` | The type of the component. |
171171

172-
![The Viam app showing the detectionCam component section. It contains the Attributes section with a skeleton configuration, including source, pipeline, type, and attributes. The panel has an Attributes section populated with transform camera component attributes. The are buttons labeled Data Capture Configuration, and Frame, and a drop-down labeled, Depends On. On the upper right there is a trash bin icon.](/tutorials/try-viam-color-detection/detectioncam-component-panel.png)
172+
{{<imgproc src="/tutorials/try-viam-color-detection/transform-camera-attributes.png" resize="900x" declaredimensions=true alt="The Viam app showing the detectionCam component section. The Attributes section contains a skeleton configuration, including source, pipeline, type, and attributes. The Attributes Guide section lists the available camera component attributes. There are buttons labeled Data Capture Configuration, and Frame, and a drop-down labeled, Depends On. On the upper right there is a trash bin icon.">}}
173173

174174
After adding the component and its attributes, click **Save config**.
175175

176-
## Test your transform camera in the CONTROL tab
176+
## Test your transform camera in the **Control** tab
177177

178-
In the **Control** tab, click on your base component and add the detection camera from the **Select Cameras** drop down.
178+
In the **Control** tab, click on your base component and enable the detection camera from the **Live Feeds** section.
179179

180180
Next, enable the keyboard and move your rover around until your camera detects the configured color.
181181
Each time the camera detects the color, you will see a red rectangle around the color labeled with the detection confidence level.

0 commit comments

Comments
 (0)