question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to save compressed images

See original GitHub issue

I’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:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
yannbouteillercommented, Nov 1, 2019

Depht images? I thought we were only allowed to get rgb images from the front camera?

0reactions
madratmancommented, Nov 1, 2019

I think he might be generating a dataset, afai can tell.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found