I need to save picture without losing any data. Using PNG is not an option as it takes more than 5 seconds to save and this is too slow for my project.
campera.capture('image01.data','yuv') as suggested by official documents to store data without compression.
Then I used the same document to read files and convert YUV format to RGB. Document link: Pi camera offical document