简体   繁体   English

OpenCV支持.HEIC图片格式吗?

[英]Does OpenCV support .HEIC image format?

I'm working on a face detection project and want to know if opencv provides support for heic format in imread() and imwrite() methods?我正在做一个人脸检测项目,想知道opencv是否在imread()和imwrite()方法中提供了对heic格式的支持? Can an image be read using cv2's imread() and written using cv2.imwrite() functions?可以使用 cv2 的 imread() 函数读取图像并使用 cv2.imwrite() 函数写入图像吗? (Language being used: Python3.6) (使用语言:Python3.6)

According to the API docs of the latest available OpenCV (5.0-pre) , HEIC is still not supported.根据最新可用的 OpenCV (5.0-pre)的 API 文档,仍然不支持 HEIC。

cv2's imread() currently, the following file formats are supported: cv2 的 imread() 目前支持以下文件格式:

  • Windows bitmaps - *. Windows 位图 - *. bmp , *. bmp , *. dib (always supported) dib (始终支持)
  • JPEG files - *. JPEG 文件 - *. jpeg , *. JPEG ,*。 jpg , *. .jpg , *. jpe (see the Note section) jpe (见注释部分)
  • JPEG 2000 files - *. JPEG 2000 文件 - *. jp2 (see the Note section) jp2 (见注释部分)
  • Portable Network Graphics - *.便携式网络图形 - *。 png (see the Note section) png (请参阅注释部分)
  • WebP - *. WebP - *。 webp (see the Note section) webp (见注释部分)
  • Portable image format - *.便携式图像格式 - *. pbm , *. pbm , *. pgm , *. pgm , *. ppm *. ppm *。 pxm , *.像素,*。 pnm (always supported) pnm (始终支持)
  • Sun rasters - *.太阳光栅 - *。 sr , *.先生,*。 ras (always supported) ras (始终支持)
  • TIFF files - *. TIFF 文件 - *. tiff , *.蒂夫,*。 tif (see the Note section) tif (见注释部分)
  • OpenEXR Image files - *. OpenEXR 图像文件 - *. exr (see the Note section) exr (见注释部分)
  • Radiance HDR - *.光辉HDR - *。 hdr , *. HDR ,*。 pic (always supported)图片(始终支持)
  • Raster and Vector geospatial data supported by GDAL (see the Note section) GDAL支持的栅格和矢量地理空间数据(见注释部分)

doc link文档链接

Still doesn't support refer here还是不支持参考这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM