-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Improve image capture speed #1818
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
Comments
@tiax615 Really appreciate your sharing. I've tried your first way(didn't try 2nd yet), it did save a lot of time. But can I ask what's your image's resolution? Mine is 1280x800, and even using viewMode: "NoDisplay", but it still costs about 250ms each frame. I'd also like to put my frame rate up to 20fps, is there any other way to reduce time on saving images? Thanks so much again |
Hi, My image resolution is 1280x720. And I'm looking for a faster way to do it, like video live. OBS? |
…ingly image response matches subwindow exactly for RGB now!
…ingly image response matches subwindow exactly for RGB now!
…ingly image response matches subwindow exactly for RGB now!
Uh oh!
There was an error while loading. Please reload this page.
Hi community,I think I may have found a way to improve the speed of image capture.
Modify the code in PIPCamera.cpp, updateCaptureComponentSetting(),
change
render_target->InitAutoFormat(setting.width, setting.height);
to
render_target->InitCustomFormat(setting.width, setting.height, PF_B8G8R8A8, true);
AirSim use SceneCaptureComponent2D SceneCapture mode is LDR, using RGBA8 is enough, may not need to use RGBA16f, which is supporting HDR mode. The Format of RenderTarget initialized by InitAutoFormat() is RGBA16f, which takes up resources. You can customize the Format by using InitCustomFormat(). So screenshots might become more efficient.
Thank you for reading!
The text was updated successfully, but these errors were encountered: