Airsim: Issue when recording segmentation images

Created on 17 Oct 2018  路  6Comments  路  Source: microsoft/AirSim

Hi AirSim team,
Thank you for providing this awesome simulator.
There is a problem that I encountered which is when I tried to use the record function, I could save the RGB image with ImageType = 0 in setting.json with the resolution of 1920x1080, but when I tried to save the image in segmentation mode (ImageType = 5), the simulator did not save the images and the out put were 256 x 144 RGB images.
Could you help me with it?
Thank you.

question

Most helpful comment

In your settings file you just specified ImageType 4 in CameraDefaults, but you need to specify every image type you want to record. Something like this:

"CameraDefaults": {
"CaptureSettings": [
{
"ImageType": 0,
"Width": 1920,
"Height": 1080,
"FOV_Degrees": 90,
"AutoExposureSpeed": 100,
"AutoExposureBias": 0,
"AutoExposureMaxBrightness": 0.64,
"AutoExposureMinBrightness": 0.03,
"MotionBlurAmount": 0,
"TargetGamma": 1,
"ProjectionMode": "",
"OrthoWidth": 5.12
},
{
"ImageType": 5,
"Width": 1920,
"Height": 1080
},
...
]
}

All 6 comments

Could you please post your settings.json?

settings.json.tar.gz
Here is my settings file.

Hi @sytelus, is there any updates regarding this issue? This has been troubling me for a while now.

In your settings file you just specified ImageType 4 in CameraDefaults, but you need to specify every image type you want to record. Something like this:

"CameraDefaults": {
"CaptureSettings": [
{
"ImageType": 0,
"Width": 1920,
"Height": 1080,
"FOV_Degrees": 90,
"AutoExposureSpeed": 100,
"AutoExposureBias": 0,
"AutoExposureMaxBrightness": 0.64,
"AutoExposureMinBrightness": 0.03,
"MotionBlurAmount": 0,
"TargetGamma": 1,
"ProjectionMode": "",
"OrthoWidth": 5.12
},
{
"ImageType": 5,
"Width": 1920,
"Height": 1080
},
...
]
}

@Nozomeister Is this resolved?

The solution works for me, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r2d2Proton picture r2d2Proton  路  3Comments

zbenic picture zbenic  路  4Comments

zywOwO picture zywOwO  路  3Comments

M-Kasem picture M-Kasem  路  3Comments

vinbo picture vinbo  路  4Comments