Skip to content

Commit 868fef8

Browse files
committed
section heading fix
1 parent 835d5a0 commit 868fef8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/image_apis.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ The return value is true if at least one mesh was found using regular expression
213213

214214
A complete ready-to-run example can be found in [segmentation.py](https://github.com/Microsoft/AirSim/blob/master/PythonClient/segmentation.py).
215215

216-
### How to Find Mesh Names?
216+
#### How to Find Mesh Names?
217217
To get desired ground truth segmentation you will need to know names of the meshes in your Unreal environment that you are interested in. To do this, you will need to open up Unreal Environment in Unreal Editor and then inspect the names of the meshes you are interested in the World Outliner. For example, below we see the meshe names for he ground in Blocks environment in right panel in the editor:
218218

219219
![record screenshot](images/unreal_editor_blocks.png)
@@ -222,14 +222,14 @@ If you don't know how to open Unreal Environment in Unreal Editor then try follo
222222

223223
Once you decide on the meshes you are interested, note down their names and use above API to set their object IDs.
224224

225-
### Changing Colors for Object IDs
225+
#### Changing Colors for Object IDs
226226
At present color for each object ID is fixed as in [this pallet](../Unreal/Plugins/AirSim/Content/HUDAssets/seg_color_pallet.png). We will be adding ability to change colors for object IDs to desired values shortly. In the mean time it might be easier just to open the segmentation image in some image editor and get the RGB values you are interested in.
227227

228-
### Startup Object IDs
228+
#### Startup Object IDs
229229
At the start, AirSim assigns object ID to each mesh. To do this, it takes first 3 letters of mesh name, converts them to int, sums them and modulo 255 generates the object ID. In other words, all object with first same 3 letters will get same object ID at the start. This heuristic is simple and effective for many Unreal environments but may not be what you want. In that case, please use above APIs to change object IDs to your desired values.
230230

231231

232-
### Getting Object ID for Mesh
232+
#### Getting Object ID for Mesh
233233
The `simGetSegmentationObjectID` API allows you get object ID for given mesh name.
234234

235235
## Collision API

0 commit comments

Comments
 (0)