Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/351.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python psd工具可用于提取形状颜色吗?_Python_Psd - Fatal编程技术网

Python psd工具可用于提取形状颜色吗?

Python psd工具可用于提取形状颜色吗?,python,psd,Python,Psd,我一直在python上试验psd读取 在打开和解析psd层时,我得到了关于这些层的基本细节 for item in psd.layers[0].layers[1].layers: for layers in item.layers: print(layers) O/p- 有没有办法找到形状层的颜色 <smartobject: 'filter', size=196x196, x=1584, y=2352, linked=<'filter.png', typ

我一直在python上试验psd读取

在打开和解析psd层时,我得到了关于这些层的基本细节

for item in psd.layers[0].layers[1].layers:
    for layers in item.layers:
        print(layers)
O/p-


有没有办法找到形状层的颜色

<smartobject: 'filter', size=196x196, x=1584, y=2352, linked=<'filter.png', type=data, 9263 bytes>>
<type: 'Occam’s Razor', size=274x143, x=1977, y=2576>
<shape: 'Rounded Rectangle 2', size=786x492, x=1540, y=2314>
<smartobject: 'folder', size=255x255, x=159, y=2326, linked=<'folder.png', type=data, 9267 bytes>>
<type: 'Serial Position Effect', size=246x237, x=1143, y=2482>
<shape: 'Rounded Rectangle 2', size=1318x492, x=156, y=2314>
<type: 'The Zeigarnik Effect', size=637x77, x=1603, y=2093>
<smartobject: 'remove', size=202x202, x=1045, y=2024, linked=<'remove.png', type=data, 14019 bytes>>
<shape: 'Rounded Rectangle 2', size=1318x231, x=1008, y=2008>
<smartobject: 'return', size=228x228, x=169, y=1808, linked=<'return.png', type=data, 14445 bytes>>
<type: 'Miller’s Law', size=233x149, x=623, y=2006>
<shape: 'Rounded Rectangle 2', size=786x453, x=153, y=1786>
<pixel: 'Layer 1 copy 2', size=226x166, x=1093, y=1595>
<type: 'The Isolation Effect', size=260x237, x=1980, y=1607>
<shape: 'Rounded Rectangle 2', size=1318x397, x=1008, y=1535>
<smartobject: 'five-stars', size=247x247, x=158, y=1225, linked=<'five-stars.png', type=data, 14490 bytes>>
<type: 'Hick’s Law', size=192x150, x=672, y=1470>
<shape: 'Rounded Rectangle 2', size=786x491, x=153, y=1213>
<smartobject: 'target', size=249x249, x=2068, y=645, linked=<'target.png', type=data, 16388 bytes>>
<type: 'Fitt’s Law', size=142x145, x=1963, y=1228>
<shape: 'Rounded Rectangle 2', size=458x818, x=1868, y=642>
<type: 'Doherty Threshold', size=314x148, x=1397, y=1226>
<smartobject: 'edit-tools', size=235x235, x=1030, y=1032, linked=<'edit-tools.png', type=data, 12527 bytes>>
<shape: 'Rounded Rectangle 2', size=786x453, x=1008, y=1007>
<type: 'Pareto Principle', size=274x158, x=1440, y=711>
<smartobject: 'ellipsis', size=223x223, x=1039, y=675, linked=<'ellipsis.png', type=data, 14958 bytes>>
<shape: 'Rounded Rectangle 2', size=786x295, x=1008, y=641>
<smartobject: 'feather', size=227x227, x=176, y=667, linked=<'feather.png', type=data, 11384 bytes>>
<type: 'The Aesthetic Usability Effect', size=294x326, x=571, y=698>
<shape: 'Rounded Rectangle 2', size=786x492, x=153, y=641>