AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

How can I modify the name of images collected from recording?

Open JyNing04 opened this issue 8 years ago • 3 comments

After recording, I got image names like "img_0_0_341337095290.png". I am wondering how can I modify their name, for example change to "img_0.png", "img_1.png", etc. Then, the "ImageName" tag inside "airsim_rec" could also be modified. Thank you!

JyNing04 avatar Apr 11 '18 13:04 JyNing04

Currently you will need to modify this code: https://github.com/Microsoft/AirSim/blob/master/Unreal/Plugins/AirSim/Source/Recording/RecordingFile.cpp#L22

Please feel free to contribute any enhancements to do this from config.

sytelus avatar Apr 12 '18 01:04 sytelus

Hi @sytelus, thanks for your advice! I tried to modify the code you marked, changed it to"image_file_name << "img_" << i <<(response.pixels_as_float ? ".pfm" : ".png");", (I want the output like "img_0", "img_1", etc.) and then record. The names of images still stayed unchanged. I have to admit that I have little knowledge about c++ language. How can I deal with it? Thank you!

I am using Windows 10 as operating system.

JyNing04 avatar Apr 12 '18 21:04 JyNing04

Hi @sytelus, thanks for your advice! I tried to modify the code you marked, changed it to"image_file_name << "img_" << i <<(response.pixels_as_float ? ".pfm" : ".png");", (I want the output like "img_0", "img_1", etc.) and then record. The names of images still stayed unchanged. I have to admit that I have little knowledge about c++ language. How can I deal with it? Thank you!

I am using Windows 10 as operating system.

Hello, have you find the solution? thank you

kutilanak avatar Apr 10 '22 12:04 kutilanak