зеркало из https://github.com/microsoft/AirSim.git
Merge pull request #4043 from seriousran/patch-1
Change `getPfmArray` to `get_pfm_array`
This commit is contained in:
Коммит
8865fb07b2
|
@ -108,7 +108,7 @@ print('Retrieved images: %d', len(responses))
|
|||
for response in responses:
|
||||
if response.pixels_as_float:
|
||||
print("Type %d, size %d" % (response.image_type, len(response.image_data_float)))
|
||||
airsim.write_pfm(os.path.normpath('/temp/py1.pfm'), airsim.getPfmArray(response))
|
||||
airsim.write_pfm(os.path.normpath('/temp/py1.pfm'), airsim.get_pfm_array(response))
|
||||
else:
|
||||
print("Type %d, size %d" % (response.image_type, len(response.image_data_uint8)))
|
||||
airsim.write_file(os.path.normpath('/temp/py1.png'), response.image_data_uint8)
|
||||
|
|
Загрузка…
Ссылка в новой задаче