I am trying to get the Statistics of image like width, height, bands, min, max, mean, stddev etc., I could find all of these but however i can't find the Bit Depth of an image. i could not find any function , is there a way for this ?
我有这样的文件路径,我想从中提取年份:
\\Main\Folder\Folder1\Folder2\123456\ABC\V.1\SubFolder\1950\file.ext
\\Main\Folder\Folder1\Folder2\123456\BCD\V.1\SubFolder1\1987\file1.ext
\\Main\Folder\Folder1\Folder2\123456\ABC\V.1\SubFolder\1987_dup\file1.ext
\\Main\Folder\Folder1\Folder2\123456\CDA\V.1\SubFolder1\1950\file.ext
\\Main\Folder\Folder1\Folder2\123456\ABC\V.1\SubFolder\1997\file1.ext
\\Main\Folder\Folder1\Folder2\123456\XYZ\V.1\SubFolder3\1997_dup\file1.ext
...
Run Code Online (Sandbox Code Playgroud)
观察我要提取的年份是路径中10"\"之后的前4个字符.感谢任何帮助,谢谢!