Tensorflow: How to encode and read bmp images?

前端 未结 2 445
半阙折子戏
半阙折子戏 2021-01-24 02:32

I am trying to read .bmp images, do some augmentation on these, save them to a .tfrecords file and then open the .tfrecords files and use the images for image classification. I

2条回答
  •  余生分开走
    2021-01-24 03:33

    There is no encode_bmp in the tensorflow main package, but if you import tensorflow_io (also a Google officially supported package) you can find the encode_bmp method there.

    For the documentation see: https://www.tensorflow.org/io/api_docs/python/tfio/image/encode_bmp

提交回复
热议问题