-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difference in image when using sim.getImages to retrieve a compressed and uncompressed image. #2892
Comments
Hmm, I recently tested this and was working correctly. |
That is strange, because if I don't include that line then the image looks very similar, but clearly upside down. Any ideas on additional tests? Is there a way to run using opengl on windows, rather than vulkan? |
@m1baldwin The problem seems to be in
The utility function should be changed to use cv2 Edit: included in #2683 |
@rajat2004 Thank you, this worked for me. Just wondering, what is the expected rate I should be able to continuously request images from the camera in the simulation? I am interested in recording frames and recombining them into a video to simulate a video feed for post-processing. But, I am getting very low frame rate as described here #2891 I suppose, rather than requesting the compressed image I could request the uncompressed image using the above methods to get a higher frame rate? |
Not sure about the expected frame rate, would depend on the machine, resolution etc. But yeah, fetching uncompressed image would definitely speed it up a bit |
@rajat2004 sure, I will follow up in the other issue. |
I have a simple script which I am using to test the difference in the compressed and uncompressed images retrieved using the image api getImages. I based the code on the example code shown in the airsim documentation.
This is my script:
When I run it, I get the following two images. They are from the same camera, and should be of the same thing. However, the image generated from the compressed image is okay, while the image from the uncompressed image request seems completely wrong.
I am running Unreal+ Airsim on Windows 10 with an Nvidia GeForce RTX 2080ti graphics card.
The text was updated successfully, but these errors were encountered: