How to save compressed images
See original GitHub issueI’m attempting to record both RGB and Depth images at the same time using two cameras. However, when I run the modified baseline_race.py script, saving the images uncompressed seems to be too much for my computer to handle.
When I try to save the compressed images, I get the error:
ValueError: cannot reshape array of size 122900 into shape (240, 320, 3)
I’m wondering how to get the dimensions of the compressed image so I can properly save it.
Additionally, help with efficiently saving both RGB and Depth images from two cameras would be greatly appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Reduce the file size of a picture in Microsoft Office
To compress all pictures in your document, on the ribbon, select File > Compress Pictures (or File > Reduce File Size). Under the...
Read more >How do I reduce the file size of an image?
Another way to save file size with JPG is to slightly blur the image before you compress it. An image with fewer sharp...
Read more >How to Compress JPEG Images - Business.com
Click on the picture. Under Picture Tools, select the Picture Format In the Adjust group, choose Compress Pictures. Select image resolution in Word....
Read more >How to Reduce the File Size of a Photo | The Motif Blog
1. Once you've located the image you wish to compress, open the photo in 'Photos.' Select the '…' option on the top right-hand...
Read more >How to Compress Images: 4 Ways to Reduce Images Size ...
How to Compress Images: 4 Ways to Reduce Images Size Without Quality Loss · 1. Open the image that you want to shrink...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Depht images? I thought we were only allowed to get rgb images from the front camera?
I think he might be generating a dataset, afai can tell.