span8
span4
嗨——第一个提问的帖子……I have tried to use attribute exposer to extract metadata from a jpg image, however, it does not appear to extract all the metadata that I am aware exists for the file.示例显示了文件中存在的一些元数据,即相对高度和俯仰、横滚和偏航。有人能告诉我如何提取这些数据(以及其他未通过属性曝光器显示的数据)吗?
谢谢还可以将PythonCaller与exifread模块(必须手动安装):
导入fmeobjects类的FeatureProcessor(object): def input(self,feature): filename = feature.getAttribute('image_filename')如果filename: with open(filename, 'rb') as f: tags = exifread。对于tag .keys()中的标记,process_file(f, details=False):特性。setAttribute(标签,str(标签(标签)))self.pyoutput(功能)
上述代码将读取输入属性“image_filename”中指定的jpeg或tiff文件,并添加任何元数据标记作为特性属性,例如:
“Image Make”有价值“GoPro”“Image Model”有价值“HERO3+ Black Edition”“Image Orientation”有价值“Horizontal (normal)”
嗨,如果这些属性不能作为格式或用户属性使用,那么我建议尝试使用第三方工具(通过系统调用者)来尽可能使这些特定的属性在您的工作空间中可用。
"D:\apps\IrfanView\i_view32.exe @Value(path_windows) /info=@Value(path_directory_windows)\@Value(path_rootname).txt /fullinfo"
©2019安全亚搏在线软件公司法律