CN114882147A - Picture metadata processing method, system, electronic device and medium - Google Patents
Picture metadata processing method, system, electronic device and medium Download PDFInfo
- Publication number
- CN114882147A CN114882147A CN202210279085.6A CN202210279085A CN114882147A CN 114882147 A CN114882147 A CN 114882147A CN 202210279085 A CN202210279085 A CN 202210279085A CN 114882147 A CN114882147 A CN 114882147A
- Authority
- CN
- China
- Prior art keywords
- processed
- metadata
- processing
- pictures
- picture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Library & Information Science (AREA)
- Software Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域technical field
本申请涉及图片处理的领域,尤其是涉及一种图片元数据处理方法、系统、电子设备和介质。The present application relates to the field of picture processing, and in particular, to a method, system, electronic device and medium for processing picture metadata.
背景技术Background technique
我国图片社图片描述信息与国外图片社格式不符,并不能直接提交至国外图片社,因此,我国图片在提交至国外图片社(例如GETTY)之前,需要编辑修改图片信息。The picture description information of Chinese photo agencies does not match the format of foreign photo agencies, and cannot be directly submitted to foreign photo agencies. Therefore, before submitting pictures to foreign photo agencies (such as GETTY), the picture information needs to be edited and modified.
目前已有的技术手段是通过PS软件手动修改,导致编辑处理时间长,进而处理效率过低。因此,如何对图片元数据自动处理,使图片信息与国外图片社适配,提高处理效率成为一个关键问题。The existing technical means are manual modification through PS software, which results in long editing processing time and low processing efficiency. Therefore, how to automatically process the image metadata, adapt the image information to foreign photo agencies, and improve the processing efficiency has become a key issue.
发明内容SUMMARY OF THE INVENTION
为了提高图片处理效率,本申请提供一种图片元数据处理方法、系统、电子设备和介质。In order to improve picture processing efficiency, the present application provides a picture metadata processing method, system, electronic device and medium.
第一方面,本申请提供的一种图片元数据处理方法,采用如下的技术方案:In the first aspect, a method for processing image metadata provided by the present application adopts the following technical solutions:
响应用户的开始处理操作,获取至少一个待处理图片的初始元数据,所述初始元数据包括标题、国家/地区、ISO国家/地区代码、类别、补充类别和描述信息中至少一项;In response to the user's start processing operation, obtain initial metadata of at least one picture to be processed, where the initial metadata includes at least one of title, country/region, ISO country/region code, category, supplementary category, and description information;
基于预设的初始元数据的处理规则,处理所述初始元数据,生成处理后元数据;Based on a preset processing rule of initial metadata, process the initial metadata to generate processed metadata;
响应用户的保存操作,保存处理后元数据对应的处理后图片。In response to the user's save operation, save the processed image corresponding to the processed metadata.
通过采用上述技术方案,电子设备响应用户的开始处理操作,获取待处理图片的初始元数据,并根据预设的处理规则,处理初始元数据生成处理后元数据,进而响应用户的保存操作,保存处理后元数据对应的处理后图片,快速实现图片格式的转换,提高工作效率。By adopting the above technical solution, the electronic device responds to the user's start processing operation, obtains the initial metadata of the picture to be processed, processes the initial metadata to generate the processed metadata according to the preset processing rules, and then responds to the user's saving operation, saves The processed image corresponding to the processed metadata can quickly convert the image format and improve work efficiency.
进一步地,所述初始元数据包括标题,所述基于预设的初始元数据的处理规则,处理所述初始元数据,确定处理后元数据,包括:Further, the initial metadata includes a title, and the processing of the initial metadata based on the preset initial metadata processing rule to determine the processed metadata includes:
基于标题分别确定题头和主体;Determine the title and body separately based on the title;
删除所述题头,确定处理后标题;delete the header and determine the post-processing header;
根据所述题头对应的预存补充类别确定处理后的补充类别。The processed supplementary category is determined according to the pre-stored supplementary category corresponding to the header.
通过采用上述技术方案,当电子设备处理初始元数据中的标题时,首先区分题头和主体,并删除题头,生成处理后标题,并且电子设备针对每个题头预存有对应的补充类别,因此可以根据题头确定处理后的补充类别。进而完成图片格式的自动处理,提高工作效率。By adopting the above technical solution, when the electronic device processes the title in the initial metadata, it first distinguishes the title from the main body, deletes the title, and generates a processed title, and the electronic device pre-stores the corresponding supplementary category for each title, Therefore, the processed supplementary category can be determined according to the header. And then complete the automatic processing of image format, improve work efficiency.
进一步地,初始元数据包括描述信息,所述基于预设的初始元数据的处理规则,处理所述初始元数据,确定处理后元数据,包括:Further, the initial metadata includes description information, and the processing of the initial metadata based on the preset initial metadata processing rule to determine the processed metadata includes:
基于描述信息分别确定电头、描述主体和署名;Based on the description information, determine the electric head, the description subject and the signature respectively;
删除所述电头,并将所述署名合并入署名模板,生成处理后署名;Delete the electronic head, and merge the signature into a signature template to generate a processed signature;
根据所述描述主体和新署名生成处理后元数据。Post-processing metadata is generated from the description body and the new attribution.
通过采用上述技术方案,当电子设备处理初始元数据中的描述信息时,分别确定电头、描述主体和署名,接着删除电头,并根据署名的修改规则,生成处理后署名,进而将描述主体和新署名组合生成处理后元数据,进而完成图片格式的自动处理,提高工作效率。By adopting the above technical solution, when the electronic device processes the description information in the initial metadata, it determines the header, the description body and the signature respectively, then deletes the header, and generates the processed signature according to the modification rules of the signature, and then the description body Combined with the new signature, the processed metadata is generated, and the automatic processing of the image format is completed to improve the work efficiency.
在另一种可能的实现方式中,当获取多个待处理图片的初始元数据时,所述方法还包括:In another possible implementation manner, when acquiring the initial metadata of multiple pictures to be processed, the method further includes:
确定当前待处理图片的处理进度;Determine the processing progress of the current image to be processed;
基于所述当前待处理图片的大小确定对应的预设处理时间;Determine the corresponding preset processing time based on the size of the current picture to be processed;
当所述当前待处理图片的处理进度在对应的所述预设处理时间内未变化,则处理位于所述上传顺序中下一个待处理图片,直至处理完成所有的待处理图片。When the processing progress of the currently to-be-processed picture does not change within the corresponding preset processing time, the next to-be-processed picture in the upload sequence is processed until all the to-be-processed pictures are processed.
通过采用上述技术方案,当电子设备处理多个图片时,当待处理图片的处理进度在预设处理时间内未变化时,则按照上传顺序处理下一个待处理图片,然后再处理处理进度缓慢的图片,直至处理完成所有的图片,提高图片处理速度。By adopting the above technical solution, when the electronic device processes multiple pictures, when the processing progress of the pictures to be processed does not change within the preset processing time, the next picture to be processed is processed according to the upload order, and then the processing progress is slow. Pictures, until all pictures are processed, improve the speed of picture processing.
在另一种可能的实现方式中,若所述题头不包括对应的预存补充类别,所述根据所述题头对应的补充类别确定处理后的补充类别,包括:In another possible implementation manner, if the header does not include a corresponding pre-stored supplementary category, determining the processed supplementary category according to the supplementary category corresponding to the header includes:
当未识别出题头时,判断当前待处理图片是否存在同组图片,所述每组图片的标题和处理时间相同;When the title is not identified, it is judged whether the current picture to be processed has the same group of pictures, and the title and processing time of each group of pictures are the same;
若是,则响应用户的同步类别操作,获取各个同组图片的补充类别,所述同步类别使当前待处理图片与上一个所述同组图片的补充类别一致;If so, in response to the synchronization category operation of the user, the supplementary category of each picture in the same group is obtained, and the synchronization category makes the current picture to be processed consistent with the supplementary category of the previous picture in the same group;
否则,反馈错误提示信息。Otherwise, feedback an error message.
通过采用上述技术方案,电子设备在处理补充类别时,若无法根据题头确定补充类别,在当前待处理图片存在同组图片的情况下,用户选择同步类别,电子设备响应用户的操作,使当前待处理图片的同组图片的补充类别与上一个同组图片的补充类别一致,减小因错重复工作的可能性。By adopting the above technical solution, when the electronic device processes the supplementary category, if the supplementary category cannot be determined according to the header, if the current picture to be processed exists in the same group of pictures, the user selects the synchronization category, and the electronic device responds to the user's operation to make the current The supplementary category of the same group of pictures to be processed is the same as the supplementary category of the previous same group of pictures, reducing the possibility of duplication of work due to mistakes.
进一步地,所述方法还包括:Further, the method also includes:
分别获取各项处理后元数据;Obtain the processed metadata separately;
基于每项处理后元数据与标准处理后元数据的格式对比;Based on the format comparison of each post-processing metadata with the standard post-processing metadata;
若对比不一致,则确定对比不一致的错误信息;If the comparison is inconsistent, determine the error message that the comparison is inconsistent;
反馈所述错误信息。Feedback the error message.
通过采用上述技术方案,电子设备通过将处理后元数据与标准处理后元数据的对比,确定是否存在对比不一致的错误信息,当存在错误信息时,反馈错误信息,使用户手动处理错误信息。By adopting the above technical solution, the electronic device compares the processed metadata with the standard processed metadata to determine whether there is error information that is inconsistent with the comparison, and when there is error information, it feeds back the error information so that the user can handle the error information manually.
进一步地,所述方法还包括:Further, the method also includes:
响应于用户的数据统计操作,获取统计时间段;Obtain the statistical time period in response to the user's data statistical operation;
筛选在所述统计时间段内处理的历史处理图片数据,确定多组图片;Screening historically processed picture data processed within the statistical time period to determine multiple groups of pictures;
按照处理时间升序或降序分别显示各组图片信息,每组所述图片信息包括每组图片的处理时间、组照标题、每组图片数量以及图片小样。Each group of picture information is displayed in ascending or descending order of processing time, and each group of picture information includes the processing time of each group of pictures, the group photo title, the number of each group of pictures, and a picture sample.
通过采用上述技术方案,电子设备根据用户输入的统计时间段,分别显示在统计时间段内处理的多组图片,便于用户浏览历史处理图片数据。By adopting the above technical solution, the electronic device respectively displays multiple groups of pictures processed in the statistical time period according to the statistical time period input by the user, which is convenient for the user to browse the historical processing picture data.
在另一种可能的实现方式中,当存在至少两组标题相同但处理时间不同的图片时,所述确定多组图片,还包括:In another possible implementation manner, when there are at least two groups of pictures with the same title but different processing times, the determining of multiple groups of pictures further includes:
反馈标题重复的信息;Feedback with duplicated titles;
响应于用户的确认操作,当用户确认所述至少两组图片属于同组图片时,将所述至少两组图片合并成一组图片;当用户确认所述至少两组图片不属于同组图片时,用不同序号区分所述至少两组图片。In response to the user's confirmation operation, when the user confirms that the at least two groups of pictures belong to the same group of pictures, the at least two groups of pictures are combined into a group of pictures; when the user confirms that the at least two groups of pictures do not belong to the same group of pictures, The at least two groups of pictures are distinguished by different sequence numbers.
通过采用上述技术方案,电子设备在确定多组图片时,若存在至少两组标题相同但处理时间不同的图片,首先反馈给用户标题重复的信息,使用户确认,当用户确认上述至少两组图片处于同组图片时,电子设备将至少两组图片合并成一组图片,自动整理历史处理图片;当用户确认上述至少两组图片不属于同组照片时,区分上述至少两组图片。By adopting the above technical solution, when the electronic device determines multiple groups of pictures, if there are at least two groups of pictures with the same title but different processing times, it first feeds back the information of the duplicate title to the user, so that the user can confirm, when the user confirms the above at least two groups of pictures When in the same group of pictures, the electronic device merges at least two groups of pictures into one group of pictures, and automatically organizes historically processed pictures; when the user confirms that the at least two groups of pictures do not belong to the same group of pictures, the at least two groups of pictures are distinguished.
第二方面,本申请提供一种图片元数据处理系统,包括:In a second aspect, the present application provides a picture metadata processing system, including:
响应模块,用于响应用户的开始处理操作,获取至少一个待处理图片的初始元数据,所述初始元数据包括标题、国家/地区、ISO国家/地区代码、类别、补充类别和描述信息中至少一项;The response module is used to respond to the user's start processing operation, and obtain the initial metadata of at least one picture to be processed, the initial metadata includes title, country/region, ISO country/region code, category, supplementary category, and at least one of the description information. an item;
处理模块,用于基于预设的初始元数据的处理规则,处理所述初始元数据,生成处理后元数据;a processing module, configured to process the initial metadata based on a preset processing rule of the initial metadata, and generate the processed metadata;
保存模块,用于响应用户的保存操作保存处理后元数据对应的处理后图片。The saving module is used to save the processed image corresponding to the processed metadata in response to the user's saving operation.
通过采用上述技术方案,响应模块响应用户的开始处理操作,获取待处理图片的初始元数据,处理模块根据预设的处理规则,处理初始元数据生成处理后元数据,保存模块响应用户的保存操作,保存处理后元数据对应的处理后图片,快速实现图片格式的转换,提高工作效率。By adopting the above technical solution, the response module responds to the user's start processing operation to obtain the initial metadata of the image to be processed, the processing module processes the initial metadata to generate the processed metadata according to the preset processing rules, and the saving module responds to the user's saving operation. , save the processed image corresponding to the processed metadata, quickly realize the image format conversion, and improve work efficiency.
进一步地,初始元数据包括标题,处理模块202,具体用于:Further, the initial metadata includes a title, and the
基于标题分别确定题头和主体;Determine the title and body separately based on the title;
删除所述题头,确定处理后标题;delete the header and determine the post-processing header;
根据所述题头对应的预存补充类别确定处理后的补充类别。The processed supplementary category is determined according to the pre-stored supplementary category corresponding to the header.
进一步地,初始元数据包括描述信息,处理模块,具体用于:Further, the initial metadata includes description information and a processing module, which is specifically used for:
基于描述信息分别确定电头、描述主体和署名;Based on the description information, determine the electric head, the description subject and the signature respectively;
删除所述电头,并将所述署名合并入署名模板,生成处理后署名;Delete the electronic head, and merge the signature into a signature template to generate a processed signature;
根据所述描述主体和新署名生成处理后元数据。Post-processing metadata is generated from the description body and the new attribution.
在另一种可能的实现方式中,响应模块获取多个待处理图片的初始元数据,图片元数据处理系统还包括:In another possible implementation manner, the response module obtains the initial metadata of multiple pictures to be processed, and the picture metadata processing system further includes:
第一处理模块,用于确定当前待处理图片的处理进度;The first processing module is used to determine the processing progress of the current picture to be processed;
预设处理时间确定模块,用于基于所述当前待处理图片的大小确定对应的预设处理时间;a preset processing time determination module, configured to determine a corresponding preset processing time based on the size of the current picture to be processed;
第二处理模块,用于当所述当前待处理图片的处理进度在对应的所述预设处理时间内未变化,则处理位于上传顺序中下一个待处理图片,直至处理完成所有的待处理图片。The second processing module is configured to process the next to-be-processed picture in the upload sequence when the processing progress of the current to-be-processed picture does not change within the corresponding preset processing time, until all the to-be-processed pictures are processed. .
在另一种可能的实现方式中,题头不包括对应的预存补充类别,处理模块202在根据所述题头对应的补充类别确定处理后的补充类别时,具体用于:In another possible implementation manner, the header does not include a corresponding pre-stored supplementary category, and when the
当未识别出题头时,判断当前待处理图片是否存在同组图片,所述每组图片的标题和处理时间相同;When the title is not identified, it is judged whether the current picture to be processed has the same group of pictures, and the title and processing time of each group of pictures are the same;
若是,则响应用户的同步类别操作,获取各个同组图片的补充类别,所述同步类别使当前待处理图片与上一个所述同组图片的补充类别一致;If so, in response to the synchronization category operation of the user, the supplementary category of each picture in the same group is obtained, and the synchronization category makes the current picture to be processed consistent with the supplementary category of the previous picture in the same group;
否则,反馈错误提示信息。Otherwise, feedback an error message.
进一步地,图片元数据处理系统,还包括:Further, the picture metadata processing system also includes:
处理后元数据获取模块,用于分别获取各项处理后元数据;The post-processing metadata acquisition module is used to acquire various post-processing metadata respectively;
对比模块,用于基于每项处理后元数据与标准处理后元数据的格式对比;The comparison module is used to compare the format of each processed metadata with the standard processed metadata;
错误信息确定模块,用于在对比不一致时,确定对比不一致的错误信息;The error information determination module is used to determine the inconsistent error information when the comparison is inconsistent;
错误信息反馈模块,用于反馈所述错误信息。The error information feedback module is used for feeding back the error information.
进一步地,图片元数据处理系统200,还包括:Further, the picture
统计时间段获取模块,用于响应于用户的数据统计操作,获取统计时间段;The statistical time period acquisition module is used to obtain the statistical time period in response to the user's data statistical operation;
筛选模块,用于筛选在所述统计时间段内处理的历史处理图片数据,确定多组图片;a screening module for screening historically processed picture data processed within the statistical time period to determine multiple groups of pictures;
显示模块,用于按照处理时间升序或降序分别显示各组图片信息,每组所述图片信息包括每组图片的处理时间、组照标题、每组图片数量以及图片小样。The display module is configured to display each group of picture information in ascending or descending order of processing time, where each group of picture information includes the processing time of each group of pictures, the group photo title, the number of each group of pictures, and a picture sample.
在另一种可能的实现方式中,存在至少两组标题相同但处理时间不同的图片,则筛选模块在确定多组图片时,具体用于:In another possible implementation manner, if there are at least two groups of pictures with the same title but different processing times, when the screening module determines multiple groups of pictures, it is specifically used to:
反馈标题重复的信息;Feedback with duplicated titles;
响应于用户的确认操作,当用户确认所述至少两组图片属于同组图片时,将所述至少两组图片合并成一组图片;当用户确认所述至少两组图片不属于同组图片时,用不同序号区分所述至少两组图片。In response to the user's confirmation operation, when the user confirms that the at least two groups of pictures belong to the same group of pictures, the at least two groups of pictures are combined into a group of pictures; when the user confirms that the at least two groups of pictures do not belong to the same group of pictures, The at least two groups of pictures are distinguished by different sequence numbers.
第三方面,本申请提供一种电子设备,包括:In a third aspect, the application provides an electronic device, comprising:
至少一个处理器;at least one processor;
存储器;memory;
至少一个应用程序,其中所述至少一个应用程序被存储在所述存储器中并被配置为由所述至少一个处理器执行,所述至少一个应用程序配置用于:执行第一方面中任一项所述的一种图片元数据处理方法。at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, the at least one application program is configured to perform any one of the first aspects The described method for processing image metadata.
通过采用上述技术方案,处理器执行存储器中保存的应用程序,响应用户的开始处理操作,获取待处理图片的初始元数据,并根据预设的处理规则,处理初始元数据生成处理后元数据,进而响应用户的保存操作,保存处理后元数据对应的处理后图片,快速实现图片格式的转换,提高工作效率。By adopting the above technical solution, the processor executes the application program stored in the memory, responds to the user's start processing operation, obtains the initial metadata of the to-be-processed picture, and processes the initial metadata to generate the processed metadata according to the preset processing rules, Then, in response to the user's saving operation, the processed picture corresponding to the processed metadata is saved, so as to quickly realize the conversion of the picture format and improve the work efficiency.
第四方面,本申请提供一种计算机可读存储介质,存储有能够被处理器加载并执行如第一方面中任一种图片元数据处理方法的计算机程序。In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program capable of being loaded by a processor and executing any one of the image metadata processing methods in the first aspect.
通过采用上述技术方案,处理器执行计算机可读存储介质中保存的计算机程序,响应用户的开始处理操作,获取待处理图片的初始元数据,并根据预设的处理规则,处理初始元数据生成处理后元数据,进而响应用户的保存操作,保存处理后元数据对应的处理后图片,快速实现图片格式的转换,提高工作效率。By adopting the above technical solution, the processor executes the computer program stored in the computer-readable storage medium, responds to the user's start processing operation, obtains the initial metadata of the picture to be processed, and processes the initial metadata generation process according to the preset processing rules Post metadata, and then respond to the user's save operation, save the processed image corresponding to the processed metadata, quickly realize the conversion of the image format, and improve work efficiency.
综上所述,本申请包括以下至少一种有益技术效果:To sum up, the present application includes at least one of the following beneficial technical effects:
1.响应用户的开始处理操作,获取待处理图片的初始元数据,并根据预设的处理规则,处理初始元数据生成处理后元数据,进而响应用户的保存操作,保存处理后元数据对应的处理后图片,快速实现图片格式的转换,提高工作效率;1. In response to the user's start processing operation, obtain the initial metadata of the image to be processed, and process the initial metadata to generate the processed metadata according to the preset processing rules, and then respond to the user's save operation and save the corresponding metadata of the processed metadata. After processing pictures, quickly realize the conversion of picture formats and improve work efficiency;
2.电子设备在处理补充类别时,若无法根据题头确定补充类别,在当前待处理图片存在同组图片的情况下,用户选择同步类别,电子设备响应用户的操作,使当前待处理图片的同组图片的补充类别与上一个同组图片的补充类别一致,减小因错重复工作的可能性。2. When the electronic device processes the supplementary category, if the supplementary category cannot be determined according to the header, if the current picture to be processed exists in the same group of pictures, the user selects the synchronization category, and the electronic device responds to the user's operation to make the current picture to be processed. The supplementary category of the same group of pictures is the same as the supplementary category of the previous same group of pictures, reducing the possibility of duplication of work due to mistakes.
附图说明Description of drawings
图1是本申请实施例中图片元数据处理方法的流程图。FIG. 1 is a flowchart of a method for processing image metadata in an embodiment of the present application.
图2是本申请实施例中图片元数据处理系统的结构示意图。FIG. 2 is a schematic structural diagram of a picture metadata processing system in an embodiment of the present application.
图3是本申请实施例中电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device in an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, There are three cases of B alone. In addition, the character "/" in this text, unless otherwise specified, generally indicates that the related objects before and after are an "or" relationship.
本申请实施例公开一种图片元数据处理方法,执行主体为电子设备,参照图1,该方法包括(步骤S101~步骤S103):An embodiment of the present application discloses a method for processing image metadata, and the execution body is an electronic device. Referring to FIG. 1 , the method includes (step S101 to step S103 ):
步骤S101:响应用户的开始处理操作,获取至少一个待处理图片的初始元数据,初始元数据包括标题、国家/地区、ISO国家/地区代码、类别、补充类别和描述信息中至少一项。Step S101: In response to the user's start processing operation, obtain initial metadata of at least one picture to be processed, where the initial metadata includes at least one of title, country/region, ISO country/region code, category, supplementary category, and description information.
具体地,用户先将待处理图片上传至系统中,在用户确定待处理图片并上传后,电子系统即接收到用户的开始处理操作。电子设备自动响应用户的开始处理操作,进而开始处理图片。Specifically, the user uploads the to-be-processed picture to the system first, and after the user determines and uploads the to-be-processed picture, the electronic system receives the user's start processing operation. The electronic device automatically responds to the user's start processing operation, and then starts processing the picture.
电子设备可同时接受多个待处理图片,若多个待处理图片保存至一个压缩包中,电子设备可解压压缩包并将多个待处理图片保存至处理队列中,进而根据处理队列的顺序依次处理上述待处理图片。The electronic device can accept multiple pictures to be processed at the same time. If the multiple pictures to be processed are saved in a compressed package, the electronic device can decompress the compressed package and save the multiple pictures to be processed in the processing queue, and then follow the order of the processing queue. Process the above to-be-processed image.
电子设备获取待处理图片的初始元数据,图片元数据是嵌入到图片文件中的一些标签。本申请实施例中,初始元数据为图片处理前的元数据,包括标题、国家/地区、ISO国家/地区代码、类别、补充类别和描述信息中至少一项,元数据初始主要由人工在后期通过软件写入图片。The electronic device obtains the initial metadata of the picture to be processed, and the picture metadata is some tags embedded in the picture file. In the embodiment of this application, the initial metadata is the metadata before image processing, including at least one of title, country/region, ISO country/region code, category, supplementary category, and description information. Write pictures through software.
其中,类别为待处理图片主题的类别,例如:类别SPO,代表体育类。补充类别为对类别的进一步细化。描述信息为对图片主题的简介。Among them, the category is the category of the subject of the picture to be processed, for example: the category SPO, which represents the sports category. Supplementary categories are further refinements of categories. The description information is an introduction to the subject of the picture.
步骤S102:基于预设的初始元数据的处理规则,处理初始元数据,生成处理后元数据。Step S102: Based on the preset initial metadata processing rules, the initial metadata is processed, and the processed metadata is generated.
具体地,初始元数据经过电子设备预设的处理规则处理后,生成的处理后元数据符合国外图片社格式要求。Specifically, after the initial metadata is processed by the processing rules preset by the electronic device, the generated processed metadata meets the format requirements of foreign photo agencies.
当初始元数据包括标题时,基于预设的初始元数据的处理规则,处理初始元数据,确定处理后元数据,包括(步骤S11~步骤S13)(图中未示出):When the initial metadata includes a title, the initial metadata is processed based on the preset initial metadata processing rules, and the processed metadata is determined, including (steps S11 to S13 ) (not shown in the figure):
步骤S11:基于标题分别确定题头和主体。Step S11: Determine the header and the main body based on the header, respectively.
其中,国内一般将关键词补充在主体前,作为题头。例如,标题为(SP)ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIA VS LIECHTENSTEIN,则题头为(SP),主体为ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIAVS LIECHTENSTEIN。Among them, domestic keywords are generally supplemented in front of the main body as the header. For example, if the title is (SP)ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIA VS LIECHTENSTEIN, the title is (SP) and the body is ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIAVS LIECHTENSTEIN.
因此,电子设备可以确定位于段首的括号以及括号内的内容为题头,以括号外的第一个文字作为主体的开头。 Therefore, the electronic device can determine that the parentheses at the beginning of the paragraph and the content within the parentheses are the headers, and the first text outside the parentheses is used as the beginning of the main body.
步骤S12:删除题头,确定处理后标题。 Step S12: Delete the header, and determine the processed header.
具体地,根据国外对图片格式的要求,题头为不符合规定的内容,因此将题头删除。因此处理后的标题为:ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIA VS LIECHTENSTEIN。 Specifically, according to foreign requirements for picture format, the header is not in compliance with the regulations, so the header is deleted. Hence the processed title: ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIA VS LIECHTENSTEIN.
步骤S13:根据题头对应的预存补充类别确定处理后的补充类别。 Step S13: Determine the processed supplementary category according to the pre-stored supplementary category corresponding to the header.
具体地,电子设备预存每个题头对应的补充类别,例如:题头(SP)对应的补充类别为Sport,因此当前待处理图片的处理后的补充类别为Sport。进一步地,电子设备可以将处理后的补充类别缩写成SPO。 Specifically, the electronic device pre-stores the supplementary category corresponding to each header, for example, the supplemental category corresponding to the header (SP) is Sport, so the processed supplementary category of the current picture to be processed is Sport. Further, the electronic device may abbreviate the processed supplemental category as SPO.
进一步地,若初始元数据包括描述信息,基于预设的初始元数据的处理规则,处理初始元数据,确定处理后元数据,包括(步骤S21~步骤S23)(图中未示出): Further, if the initial metadata includes description information, the initial metadata is processed based on the preset initial metadata processing rules, and the processed metadata is determined, including (steps S21 to S23) (not shown in the figure):
步骤S21:基于描述信息分别确定电头、描述主体和署名。Step S21: Based on the description information, determine the phone head, the description body and the signature respectively.
例如,待处理图片的描述信息为:(210906) -- BUCHAREST, Sept. 6, 2021(Xinhua) -- Romania's Adrian Rus (top R) vies with Liechtenstein's YanikFrick (top L) during their FIFA World Cup 2022 qualifying football match inBucharest, Romania, Sept. 5, 2021. (Photo by ZHANG San /Xinhua) For example, the description for a pending image is: (210906) -- BUCHAREST, Sept. 6, 2021(Xinhua) -- Romania's Adrian Rus (top R) vies with Liechtenstein's YanikFrick (top L) during their FIFA World Cup 2022 qualifying football match in Bucharest, Romania, Sept. 5, 2021. (Photo by ZHANG San / Xinhua)
由于待处理图片初始元数据的描述信息来自于新华社的通讯稿,因此电头为:(210906) -- BUCHAREST, Sept. 6, 2021 (Xinhua);描述主体主要介绍待处理图片的主要内容:“Romania's Adrian Rus (top R) vies with Liechtenstein's Yanik Frick(top L) during their FIFA World Cup 2022 qualifying football match inBucharest, Romania, Sept. 5, 2021.”;署名:(Photo by ZHANG San /Xinhua)。Since the description information of the initial metadata of the picture to be processed comes from the press release of Xinhua News Agency, the telephone header is: (210906) -- BUCHAREST, Sept. 6, 2021 (Xinhua); the main body of the description mainly introduces the main content of the picture to be processed: "Romania's Adrian Rus (top R) vies with Liechtenstein's Yanik Frick(top L) during their FIFA World Cup 2022 qualifying football match in Bucharest, Romania, Sept. 5, 2021."; Byline: (Photo by ZHANG San /Xinhua).
步骤S22:删除电头,并将署名合并入署名模板,生成处理后署名。 Step S22: Delete the electric head, and merge the signature into the signature template to generate the processed signature.
电子设备预设署名模板。例如,署名模板为(Photo by XX via Getty Images),则处理后的署名为(Photo by ZHANG San /Xinhua via Getty Images)。 Electronic device preset signature template. For example, if the signature template is (Photo by XX via Getty Images), the processed signature will be (Photo by ZHANG San /Xinhua via Getty Images).
步骤S23:根据描述主体和新署名生成处理后元数据。 Step S23: Generate processed metadata according to the description body and the new signature.
例如,处理后描述信息:Romania's Adrian Rus top R vies withLiechtenstein's Yanik Frick top L during their FIFA World Cup 2022 qualifyingfootball match in Bucharest, Romania, Sept. 5, 2021. (Photo by ZHANG San /Xinhua via Getty Images) For example, post-processing description: Romania's Adrian Rus top R vies with Liechtenstein's Yanik Frick top L during their FIFA World Cup 2022 qualifyingfootball match in Bucharest, Romania, Sept. 5, 2021. (Photo by ZHANG San /Xinhua via Getty Images)
进一步地,针对初始元数据包括的国家/地区,电子设备首先识别初始元数据,获取国家/地区,进而确定国家/地区的全称,确定处理后的国家/地区信息。处理后的国家/地区代码可以保持与初始元数据一致。Further, for the country/region included in the initial metadata, the electronic device first identifies the initial metadata, obtains the country/region, and then determines the full name of the country/region, and determines the processed country/region information. The processed country code can remain consistent with the original metadata.
进一步地,电子设备获取初始元数据中的类别后,在预存的数据库中查找初始类别对应的国外类别,并将初始类别替换成国外类别。例如,初始类别为Sport,则国外的类别为S。Further, after acquiring the category in the initial metadata, the electronic device searches for a foreign category corresponding to the initial category in a pre-stored database, and replaces the initial category with a foreign category. For example, if the initial category is Sport, the foreign category is S.
步骤S103:响应用户的保存操作,保存处理后元数据对应的处理后图片。Step S103: Responding to the user's save operation, save the processed picture corresponding to the processed metadata.
具体地,在电子设备处理图片的过程中,电子设备分别显示图片处理前数据和图片处理后数据,便于用户检查格式转换是否正确。Specifically, in the process of processing the picture by the electronic device, the electronic device displays the data before the picture processing and the data after the picture processing, which is convenient for the user to check whether the format conversion is correct.
进一步地,当用户点击保存虚拟按钮,电子设备响应保存操作,将处理后的元数据保存至图片中,并且处理后的图片可导出至目标位置。Further, when the user clicks the save virtual button, the electronic device responds to the save operation, saves the processed metadata into the picture, and the processed picture can be exported to the target location.
本申请实施例提供一种图片元数据处理方法,电子设备响应用户的开始处理操作,获取待处理图片的初始元数据,并根据预设的处理规则,处理初始元数据生成处理后元数据,进而响应用户的保存操作,保存处理后元数据对应的处理后图片,快速实现图片格式的转换,提高工作效率。An embodiment of the present application provides a method for processing image metadata. An electronic device responds to a user's start processing operation, obtains initial metadata of a to-be-processed image, and processes the initial metadata to generate processed metadata according to a preset processing rule, and then generates processed metadata. Respond to the user's save operation, save the processed image corresponding to the processed metadata, quickly realize the image format conversion, and improve work efficiency.
进一步地,当电子设备获取多个待处理图片的初始元数据时,上述方法还包括(步骤S31~步骤S33)(图中未示出):Further, when the electronic device acquires the initial metadata of a plurality of pictures to be processed, the above method further includes (steps S31 to S33 ) (not shown in the figure):
步骤S31:确定当前待处理图片的处理进度。Step S31: Determine the processing progress of the current picture to be processed.
具体地,电子设备可以用显示百分比数据和/或显示进度条的形式来表示待处理图片的处理进度。Specifically, the electronic device may represent the processing progress of the picture to be processed in the form of displaying percentage data and/or displaying a progress bar.
步骤S32:基于当前待处理图片的大小确定对应的预设处理时间。Step S32: Determine the corresponding preset processing time based on the size of the current picture to be processed.
具体地,当前待处理图片的大小即元数据大小,当元数据较大时,需要处理的时间也较长。因此图片的大小不同,则预设处理时间不同。电子设备通过元数据大小除以数据处理速度,获得初步处理时间,在初步处理时间的基础上增加部分时间,最后确定预设处理时间。Specifically, the size of the current picture to be processed is the metadata size. When the metadata is large, the processing time is also longer. Therefore, the preset processing time is different depending on the size of the picture. The electronic device obtains the preliminary processing time by dividing the metadata size by the data processing speed, adds part of the time on the basis of the preliminary processing time, and finally determines the preset processing time.
步骤S33:当当前待处理图片的处理进度在对应的预设处理时间内未变化,则处理位于上传顺序中下一个待处理图片,直至处理完所有的待处理图片。Step S33: When the processing progress of the current picture to be processed does not change within the corresponding preset processing time, the next picture to be processed in the upload sequence is processed until all the pictures to be processed are processed.
具体地,例如用户同时上传4张图片,并分别确定了各张图片对应的预设处理时间。当第一张图片的处理时间超过预设处理时间时,则开始处理第二张图片,直至处理完4张图片。Specifically, for example, the user uploads 4 pictures at the same time, and respectively determines the preset processing time corresponding to each picture. When the processing time of the first image exceeds the preset processing time, the processing of the second image is started until four images are processed.
若图片的处理时间严重超时,电子设备发送错误信息。The electronic device sends an error message if the processing time of the image is severely overdue.
在另一种可能的实现方式中,若题头不包括对应的预存补充类别,步骤S13在根据题头对应的补充类别确定处理后的补充类别,包括(步骤S131~步骤S133)(图中未示出):In another possible implementation manner, if the header does not include the corresponding pre-stored supplementary category, step S13 determines the processed supplementary category according to the supplementary category corresponding to the header, including (steps S131 to S133 ) (not shown in the figure). Shows):
步骤S131:当未识别出题头时,判断当前待处理图片是否存在同组图片,每组图片的标题和处理时间相同;若是,则执行步骤S132;否则,执行步骤S133。Step S131: When the title is not identified, judge whether the current picture to be processed has the same group of pictures, and the title and processing time of each group of pictures are the same; if so, go to step S132; otherwise, go to step S133.
具体地,一组图片可以包括多张同一主题的图片,位于同组中的各个图片标题相同。因此,若当前待处理图片不包括题头,则难以根据题头确定对应的补充类别,因此可以参考同组图片的补充类别。Specifically, a group of pictures may include multiple pictures of the same subject, and each picture in the same group has the same title. Therefore, if the current picture to be processed does not include the header, it is difficult to determine the corresponding supplementary category according to the header, so you can refer to the supplementary category of the same group of pictures.
步骤S132:响应用户的同步类别操作,获取各个同组图片的补充类别,同步类别使当前待处理图片与上一个同组图片的补充类别一致。Step S132: In response to the user's operation of synchronizing the category, the supplementary category of each picture in the same group is obtained, and the synchronization category makes the current picture to be processed consistent with the supplementary category of the previous picture in the same group.
具体地,电子设备显示“同步类别”操作的虚拟按键。若电子设备确定当前待处理图片的同组图片,当用户点击同步类别操作时,电子设备获取上一个处理完成的同组图片的补充类别,并使当前待处理图片的补充类别上述补充类别一致。Specifically, the electronic device displays the virtual keys for the "synchronization category" operation. If the electronic device determines the same group of pictures of the current picture to be processed, when the user clicks the synchronization category operation, the electronic device obtains the supplementary category of the last processed picture of the same group, and makes the supplementary category of the current picture to be processed consistent with the above supplementary categories.
步骤S133:反馈错误提示信息。Step S133: Feedback error prompt information.
进一步地,若电子设备未确定当前待处理图片存在同组图片,则可以弹出错误提示窗口,使用户判断是否“同步类别”操作。若用户经过判断后,也可以点击“同步类别”操作按键,确定当前待处理图片与上一个处理的图片的补充类别一致。Further, if the electronic device does not determine that the current to-be-processed picture exists in the same group of pictures, an error prompt window may pop up, so that the user can determine whether to "synchronize the category" operation. After judgment, the user can also click the "Sync Category" operation button to confirm that the supplementary category of the current picture to be processed is the same as that of the last processed picture.
进一步地,为了检验处理后的数据是否正确,上述方法还包括:Further, in order to check whether the processed data is correct, the above method also includes:
分别获取各项处理后元数据;基于每项处理后元数据与标准处理后元数据的格式对比;若对比不一致,则确定对比不一致的错误信息;反馈错误信息。Obtain each post-processing metadata separately; compare the format of each post-processing metadata with the standard post-processing metadata; if the comparison is inconsistent, determine the error information of the inconsistent comparison; and feed back the error information.
以处理当前待处理图片的标题为例,若初始元数据存在错误:(SP))ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIA VS LIECHTENSTEIN。则处理后得到的题头为:(SP)),标准处理后题头格式为(XXXX),进一步地,电子设备确定处理后得到的题头与标准处理后题头对比,确定错误信息为“)”,电子设备则反馈错误信息,提示初始元数据错误,因此处理后元数据也出错,用户人工确认处理后元数据并纠正错误信息。 Take processing the title of the currently pending image as an example, if there is an error in the initial metadata: (SP)) ROMANIA-BUCHAREST-FIFA WORLD CUP QATAR 2022-QUALIFIERS-ROMANIA VS LIECHTENSTEIN. Then the header obtained after processing is: (SP)), and the header format after standard processing is (XXXX). Further, the electronic device determines that the header obtained after processing is compared with the header after standard processing, and determines that the error message is " )”, the electronic device feeds back an error message, indicating that the initial metadata is wrong, so the metadata after processing is also wrong, and the user manually confirms the metadata after processing and corrects the wrong information.
进一步地,为了便于统计图片处理的历史数据,方法还包括(步骤S51~步骤S53)(图中未示出):Further, in order to facilitate statistics of historical data of image processing, the method further includes (step S51 to step S53 ) (not shown in the figure):
步骤S51:响应于用户的数据统计操作,获取统计时间段。Step S51: Acquire a statistical time period in response to the user's data statistical operation.
具体地,当用户需要查询某统计时间段内的数据时,在用于查询历史数据的页面选择时间开始日期和时间结束日期,因此电子设备获取得到统计时间段。Specifically, when the user needs to query data within a certain statistical time period, the user selects the time start date and time end date on the page for querying historical data, so the electronic device obtains the statistical time period.
当用户选择完统计时间段后,电子设备自动开始统计位于此统计时间段内的数据。After the user selects the statistical time period, the electronic device automatically starts to collect data within the statistical time period.
步骤S52:筛选在统计时间段内处理的历史处理图片数据,确定多组图片。Step S52: Screen the historically processed picture data processed within the statistical time period to determine multiple groups of pictures.
步骤S53:按照处理时间升序或降序分别显示各组图片信息,每组图片信息包括每组图片的处理时间、组照标题、每组图片数量以及图片小样。Step S53: Display each group of picture information in ascending or descending order of processing time, where each group of picture information includes the processing time of each group of pictures, the group photo title, the number of each group of pictures, and a picture sample.
具体地,电子设备生成一个表格,表格中可以按照处理时间的某一顺序显示各组图片信息。每行表格中分别显示每组图片的处理时间、组照标题、每组图片数量和图片小样,便于用户查询,其中图片小样为任一同组照片。Specifically, the electronic device generates a table, in which each group of picture information can be displayed in a certain order of processing time. Each row of the table displays the processing time of each group of pictures, the title of the group photo, the number of pictures in each group, and a sample image, which is convenient for users to query, and the sample image is any photo of the same group.
进一步地,若存在至少两组标题相同但处理时间不同的图片时,步骤S52在确定多组图片时,还包括:Further, if there are at least two groups of pictures with the same title but different processing times, when determining multiple groups of pictures, step S52 further includes:
反馈标题重复的信息;响应于用户的确认操作,当用户确认至少两组图片属于同组图片时,将至少两组图片合并成一组图片;当用户确认至少两组图片不属于同组图片时,用不同序号区分至少两组图片。Feedback the information that the title is repeated; in response to the user's confirmation operation, when the user confirms that at least two groups of pictures belong to the same group of pictures, the at least two groups of pictures are combined into one group of pictures; when the user confirms that at least two groups of pictures do not belong to the same group of pictures, Distinguish at least two groups of pictures with different serial numbers.
进一步地,为了提高用户的体验感,电子设备可对显示窗口个性化设置。显示窗口中包括系统配置模块,用户可通过系统配置模块设置FTP配置、工作区字体和颜色配置以及存储目录配置。其中,FTP配置可供用户设置服务器地址、用户名以及密码。Further, in order to improve the user's sense of experience, the electronic device may personalize the display window. The display window includes a system configuration module, through which the user can set FTP configuration, workspace font and color configuration, and storage directory configuration. Among them, the FTP configuration allows users to set the server address, user name and password.
为了更好执行上述方法,本申请实施例提供一种图片元数据处理系统,参照图2,图片元数据处理系统200,包括:In order to better implement the above method, an embodiment of the present application provides a picture metadata processing system. Referring to FIG. 2 , a picture
响应模块201,用于响应用户的开始处理操作,获取至少一个待处理图片的初始元数据,初始元数据包括标题、国家/地区、ISO国家/地区代码、类别、补充类别和描述信息中至少一项;The
处理模块202,用于基于预设的初始元数据的处理规则,处理初始元数据,生成处理后元数据;a
保存模块203,用于响应用户的保存操作保存处理后元数据对应的处理后图片。The saving
进一步地,初始元数据包括标题,处理模块202,具体用于:Further, the initial metadata includes a title, and the
基于标题分别确定题头和主体;Determine the title and body separately based on the title;
删除题头,确定处理后标题;Delete the header and determine the processed header;
根据题头对应的预存补充类别确定处理后的补充类别。The processed supplementary category is determined according to the pre-stored supplementary category corresponding to the header.
进一步地,初始元数据包括描述信息,处理模块202,具体用于:Further, the initial metadata includes description information, and the
基于描述信息分别确定电头、描述主体和署名;Based on the description information, determine the electric head, the description subject and the signature respectively;
删除电头,并将署名合并入署名模板,生成处理后署名;Delete the phone head and merge the signature into the signature template to generate the processed signature;
根据描述主体和新署名生成处理后元数据。Generate processed metadata based on the description body and the new attribution.
在另一种可能的实现方式中,响应模块201获取多个待处理图片的初始元数据,图片元数据处理系统200还包括:In another possible implementation manner, the
第一处理模块,用于确定当前待处理图片的处理进度;The first processing module is used to determine the processing progress of the current picture to be processed;
预设处理时间确定模块,用于基于当前待处理图片的大小确定对应的预设处理时间;a preset processing time determination module, configured to determine the corresponding preset processing time based on the size of the current picture to be processed;
第二处理模块,用于当当前待处理图片的处理进度在对应的预设处理时间内未变化,则处理位于上传顺序中下一个待处理图片,直至处理完成所有的待处理图片。The second processing module is configured to process the next to-be-processed picture in the upload sequence when the processing progress of the current to-be-processed picture does not change within the corresponding preset processing time, until all the to-be-processed pictures are processed.
在另一种可能的实现方式中,题头不包括对应的预存补充类别,处理模块202在根据题头对应的补充类别确定处理后的补充类别时,具体用于:In another possible implementation manner, the header does not include a corresponding pre-stored supplementary category, and when the
当未识别出题头时,判断当前待处理图片是否存在同组图片,每组图片的标题和处理时间相同;When the title is not identified, judge whether the current picture to be processed has the same group of pictures, and the title and processing time of each group of pictures are the same;
若是,则响应用户的同步类别操作,获取各个同组图片的补充类别,同步类别使当前待处理图片与上一个同组图片的补充类别一致;If so, in response to the user's synchronization category operation, obtain the supplementary category of each picture in the same group, and the synchronization category makes the current picture to be processed consistent with the supplementary category of the previous picture in the same group;
否则,反馈错误提示信息。Otherwise, feedback an error message.
进一步地,图片元数据处理系统200,还包括:Further, the picture
处理后元数据获取模块,用于分别获取各项处理后元数据;The post-processing metadata acquisition module is used to acquire various post-processing metadata respectively;
对比模块,用于基于每项处理后元数据与标准处理后元数据的格式对比;The comparison module is used to compare the format of each processed metadata with the standard processed metadata;
错误信息确定模块,用于在对比不一致时,确定对比不一致的错误信息;The error information determination module is used to determine the inconsistent error information when the comparison is inconsistent;
错误信息反馈模块,用于反馈错误信息。Error information feedback module, used to feedback error information.
进一步地,图片元数据处理系统200,还包括:Further, the picture
统计时间段获取模块,用于响应于用户的数据统计操作,获取统计时间段;The statistical time period acquisition module is used to obtain the statistical time period in response to the user's data statistical operation;
筛选模块,用于筛选在统计时间段内处理的历史处理图片数据,确定多组图片;The screening module is used to filter the historically processed picture data processed in the statistical time period, and determine multiple groups of pictures;
显示模块,用于按照处理时间升序或降序分别显示各组图片信息,每组图片信息包括每组图片的处理时间、组照标题、每组图片数量以及图片小样。The display module is used for displaying each group of picture information in ascending or descending order of processing time, where each group of picture information includes the processing time of each group of pictures, the group photo title, the number of each group of pictures and the picture sample.
在另一种可能的实现方式中,存在至少两组标题相同但处理时间不同的图片,则筛选模块在确定多组图片时,具体用于:In another possible implementation manner, if there are at least two groups of pictures with the same title but different processing times, when the screening module determines multiple groups of pictures, it is specifically used to:
反馈标题重复的信息;Feedback with duplicated titles;
响应于用户的确认操作,当用户确认至少两组图片属于同组图片时,将至少两组图片合并成一组图片;当用户确认至少两组图片不属于同组图片时,用不同序号区分至少两组图片。In response to the user's confirmation operation, when the user confirms that at least two groups of pictures belong to the same group of pictures, the at least two groups of pictures are merged into one group of pictures; Group pictures.
前述实施例中的方法中的各种变化方式和具体实例同样适用于本实施例的图片元数据处理系统,通过前述对图片元数据处理方法的详细描述,本领域技术人员可以清楚的知道本实施例中的图片元数据处理系统的实施方法,所以为了说明书的简洁,在此不再详述。Various variations and specific examples of the methods in the foregoing embodiments are also applicable to the image metadata processing system of this embodiment. Those skilled in the art can clearly understand this embodiment through the foregoing detailed description of the image metadata processing method. The implementation method of the picture metadata processing system in the example is not described in detail here for the sake of brevity of the description.
为了更好地实施以上方法,本申请实施例提供一种电子设备,参照图3,电子设备300包括:处理器301、存储器303和显示器305。其中,处理器301分别和存储器303以及显示器305相连,如通过通信总线302相连。可选地,电子设备300还可以包括收发器304,需要说明的是,实际应用中收发器304不限于一个。该电子设备300的结构并不构成对本申请实施例的限定。In order to better implement the above method, an embodiment of the present application provides an electronic device. Referring to FIG. 3 , the
处理器301可以是CPU(Central Processing Unit,中央处理器),通用处理器,DSP(Digital Signal Processor,数据信号处理器),ASIC(Application SpecificIntegrated Circuit,专用集成电路),FPGA(Field Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器301也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The
总线302可包括一通路,在上述组件之间传送信息。总线302可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(ExtendedIndustry Standard Architecture,扩展工业标准结构)总线等。总线302可以分为地址总线、数据总线、控制总线等。The
存储器303可以是ROM(Read Only Memory,只读存储器)或可存储静态信息和指令的其他类别的静态存储设备,RAM(Random Access Memory,随机存取存储器)或者可存储信息和指令的其他类别的动态存储设备,也可以是EEPROM(Electrically ErasableProgrammable Read Only Memory,电可擦可编程只读存储器)、CD-ROM(Compact DiscRead Only Memory,只读光盘)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The
存储器303用于存储执行本申请方案的应用程序代码,并由处理器301来控制执行。处理器301用于执行存储器303中存储的应用程序代码,以实现前述方法实施例所示的内容。The
图3示出的电子设备300仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。The
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的一种图片元数据处理方法,电子设备响应用户的开始处理操作,获取待处理图片的初始元数据,并根据预设的处理规则,处理初始元数据生成处理后元数据,进而响应用户的保存操作,保存处理后元数据对应的处理后图片,快速实现图片格式的转换,提高工作效率。Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the above-mentioned image metadata processing method is implemented. Process the initial metadata of the picture, and according to the preset processing rules, process the initial metadata to generate the processed metadata, and then respond to the user's save operation, save the processed picture corresponding to the processed metadata, and quickly realize the conversion of the picture format. Improve work efficiency.
本实施例中,计算机可读存储介质可以是保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质可以是但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意组合。具体的,计算机可读存储介质可以是便携式计算机盘、硬盘、U盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、讲台随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、光盘、磁碟、机械编码设备以及上述任意组合。In this embodiment, the computer-readable storage medium may be a tangible device that holds and stores instructions for use by the instruction execution device. The computer-readable storage medium may be, but is not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination of the foregoing. Specifically, the computer-readable storage medium may be a portable computer disk, a hard disk, a U disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), a random access memory Access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, optical disks, magnetic disks, mechanical coding devices, and any combination of the above.
本实施例中的计算机程序包含用于执行前述所有的方法的程序代码,程序代码可包括对应执行上述实施例提供的方法步骤对应的指令。计算机程序可从计算机可读存储介质下载到各个计算/处理设备,或者通过网络(例如因特网、局域网、广域网和/或无线网)下载到外部计算机或外部存储设备。计算机程序可完全地在用户计算机上执行、作为一个独立的软件包执行。The computer program in this embodiment includes program codes for executing all the foregoing methods, and the program codes may include instructions corresponding to executing the steps of the methods provided in the foregoing embodiments. The computer program can be downloaded to various computing/processing devices from a computer-readable storage medium, or to an external computer or external storage device over a network (eg, the Internet, a local area network, a wide area network, and/or a wireless network). The computer program may be executed entirely on the user's computer, as a stand-alone software package.
以上均为本申请的较佳实施例,并非依此限制本申请的保护范围,故:凡依本申请的结构、形状、原理所做的等效变化,均应涵盖于本申请的保护范围之内。The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore: all equivalent changes made according to the structure, shape and principle of the present application should be covered within the scope of the present application. Inside.
另外,需要理解的是,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或者操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。Additionally, it is to be understood that relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation and do not necessarily require or imply any existence between these entities or operations This actual relationship or sequence. The terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also other not expressly listed elements, or also include elements inherent to such a process, method, article or apparatus.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210279085.6A CN114882147A (en) | 2022-03-21 | 2022-03-21 | Picture metadata processing method, system, electronic device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210279085.6A CN114882147A (en) | 2022-03-21 | 2022-03-21 | Picture metadata processing method, system, electronic device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114882147A true CN114882147A (en) | 2022-08-09 |
Family
ID=82668282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210279085.6A Pending CN114882147A (en) | 2022-03-21 | 2022-03-21 | Picture metadata processing method, system, electronic device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114882147A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070294306A1 (en) * | 2004-12-13 | 2007-12-20 | Toutonghi Michael J | Automatic publishing of digital content |
CN109522746A (en) * | 2018-11-07 | 2019-03-26 | 平安医疗健康管理股份有限公司 | A kind of data processing method, electronic equipment and computer storage medium |
CN110389818A (en) * | 2019-06-19 | 2019-10-29 | 中国平安财产保险股份有限公司 | Timing task processing method, device, equipment and computer-readable storage medium |
CN113609315A (en) * | 2021-05-19 | 2021-11-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Method and device for judging similarity of media assets, electronic equipment and storage medium |
CN113886659A (en) * | 2021-10-08 | 2022-01-04 | 科大讯飞股份有限公司 | Data fusion method, related device and readable storage medium |
WO2022048211A1 (en) * | 2020-09-03 | 2022-03-10 | 平安科技(深圳)有限公司 | Document directory generation method and apparatus, electronic device and readable storage medium |
-
2022
- 2022-03-21 CN CN202210279085.6A patent/CN114882147A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070294306A1 (en) * | 2004-12-13 | 2007-12-20 | Toutonghi Michael J | Automatic publishing of digital content |
CN109522746A (en) * | 2018-11-07 | 2019-03-26 | 平安医疗健康管理股份有限公司 | A kind of data processing method, electronic equipment and computer storage medium |
CN110389818A (en) * | 2019-06-19 | 2019-10-29 | 中国平安财产保险股份有限公司 | Timing task processing method, device, equipment and computer-readable storage medium |
WO2022048211A1 (en) * | 2020-09-03 | 2022-03-10 | 平安科技(深圳)有限公司 | Document directory generation method and apparatus, electronic device and readable storage medium |
CN113609315A (en) * | 2021-05-19 | 2021-11-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Method and device for judging similarity of media assets, electronic equipment and storage medium |
CN113886659A (en) * | 2021-10-08 | 2022-01-04 | 科大讯飞股份有限公司 | Data fusion method, related device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495185B (en) | Video title generation method and device | |
CN114332887A (en) | An image processing method, apparatus, computer equipment and storage medium | |
CN109241003B (en) | File management method and device | |
CN113157753B (en) | Display method and device and electronic equipment | |
CN117152302A (en) | Method, device, equipment and storage medium for generating display image of target object | |
CN103514271A (en) | Method and device for providing thumbnail image corresponding to webpage content | |
WO2022206476A1 (en) | Watermark processing method and apparatus, electronic device, and storage medium | |
CN112559913B (en) | Data processing method, device, computing equipment and readable storage medium | |
CN110287464A (en) | Display method, device, computer equipment and computer storage medium for option data in form | |
JP2025010606A (en) | Image analysis system, program, and image analysis method | |
CN112948629B (en) | Content distribution method, device, electronic equipment and computer storage medium | |
CN105183763A (en) | Background realization method and apparatus for search result page | |
CN106648571A (en) | Application interface correction method and apparatus | |
CN114297143A (en) | A method for searching files, a method, device and mobile terminal for displaying files | |
CN114882147A (en) | Picture metadata processing method, system, electronic device and medium | |
CN110263312B (en) | Article generating method, apparatus, server and computer readable medium | |
CN113420224A (en) | Information processing method and device and computer storage medium | |
WO2024183711A1 (en) | Method and apparatus for presenting search result, and electronic device and storage medium | |
CN112069337A (en) | Image processing method, device, electronic device and storage medium | |
CN116708585A (en) | Data acquisition method, device, equipment and storage medium | |
CN114398432B (en) | Data display method, device, computer equipment and storage medium | |
CN114077371B (en) | Information display method, device, electronic equipment and storage medium | |
CN116842173A (en) | Semantic understanding-based patent summary information generation method and system | |
CN115952771A (en) | A picture editing method, device, electronic equipment and storage medium | |
CN112394856B (en) | Information statistics method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |