OpenCV to use in memory buffers or file pointers

前端 未结 6 737
悲&欢浪女
悲&欢浪女 2020-12-02 21:25

The two functions in openCV cvLoadImage and cvSaveImage accept file path\'s as arguments.

For example, when saving a image it\'s cvSaveImage(\"/tmp/output.j

6条回答
  •  猫巷女王i
    2020-12-02 21:38

    This is an indirect answer...

    In the past, I've directly used libpng and libjpeg directly to do this. They have a low-level enough API that you can use memory buffers instead of file buffers for reading and writing.

提交回复
热议问题