Function opencv::imgcodecs::imcount

source ·
pub fn imcount(filename: &str, flags: i32) -> Result<size_t>
Expand description

Returns the number of images inside the give file

The function imcount will return the number of pages in a multi-page image, or 1 for single-page images

Parameters

  • filename: Name of file to be loaded.
  • flags: Flag that can take values of cv::ImreadModes, default with cv::IMREAD_ANYCOLOR.

C++ default parameters

  • flags: IMREAD_ANYCOLOR