CN113627994B - Material processing method and device for information release, electronic equipment and storage medium - Google Patents
Material processing method and device for information release, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113627994B CN113627994B CN202110998194.9A CN202110998194A CN113627994B CN 113627994 B CN113627994 B CN 113627994B CN 202110998194 A CN202110998194 A CN 202110998194A CN 113627994 B CN113627994 B CN 113627994B
- Authority
- CN
- China
- Prior art keywords
- materials
- released
- category
- transition
- published
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0251—Targeted advertisements
- G06Q30/0265—Vehicular advertisement
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/75—Clustering; Classification
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/783—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/7867—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/213—Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
- G06F18/2135—Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods based on approximation criteria, e.g. principal component analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0251—Targeted advertisements
- G06Q30/0269—Targeted advertisements based on user profile or attribute
- G06Q30/0271—Personalized advertisement
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Library & Information Science (AREA)
- Multimedia (AREA)
- General Business, Economics & Management (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Marketing (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical Field
本公开涉及信息发布技术领域,尤其涉及一种信息发布的素材处理方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of information publishing, and in particular to a material processing method, device, electronic device and storage medium for information publishing.
背景技术Background Art
随着交通行业不断发展,围绕交通行业的媒体信息化服务占比呈大幅上升趋势。全国大批新建机场、铁路、地铁等项目,全部规划最新的电子媒体发布与设备管控系统。由于现有传统媒体广告形式单一、视觉冲击力弱、更换频率低,导致投放效果差,因此可以使用上述电子媒体发布与设备管控系统发布素材丰富且更换频率高的广告。相关技术中,针对更换频率过快的广告形式,需要管理员逐项添加素材,同时添加每个素材的转场特效,从而导致效率较低,而且得到的合成素材质量较差,用户体验不佳。With the continuous development of the transportation industry, the proportion of media information services surrounding the transportation industry has shown a substantial upward trend. A large number of new airports, railways, subways and other projects across the country are all planned with the latest electronic media publishing and equipment management and control systems. Since the existing traditional media advertising has a single form, weak visual impact, and low frequency of change, resulting in poor delivery effects, the above-mentioned electronic media publishing and equipment management and control system can be used to publish advertisements with rich materials and high frequency of change. In related technologies, for advertising forms that change too frequently, administrators are required to add materials one by one, and add transition effects to each material, which results in low efficiency, poor quality of the resulting synthesized materials, and poor user experience.
发明内容Summary of the invention
本公开提供一种信息发布的素材处理方法、装置、电子设备及存储介质。The present invention provides a material processing method, device, electronic device and storage medium for information release.
根据本公开的一些实施例,提供一种信息发布的素材处理方法,包括:According to some embodiments of the present disclosure, a material processing method for information release is provided, including:
获取素材集中的多个待发布素材,其中,所述待发布素材包括图像或视频;Acquire a plurality of materials to be published in a material set, wherein the materials to be published include images or videos;
根据每个所述待发布素材的名称将所述多个待发布素材分为至少一个类别;Classifying the plurality of materials to be published into at least one category according to the name of each of the materials to be published;
在相同类别的相邻待发布素材间添加第一类转场特效,并在不同类别的相邻待发布素材间添加第二类转场特效,其中,所述第一类转场特效的激烈程度小于所述第二类转场特效的激烈程度;Adding a first type of transition special effect between adjacent to-be-released materials of the same category, and adding a second type of transition special effect between adjacent to-be-released materials of different categories, wherein the intensity of the first type of transition special effect is less than the intensity of the second type of transition special effect;
根据各个类别的待发布素材以及相邻待发布素材间的转场特效,生成合成素材。The composite material is generated according to the materials to be released in each category and the transition effects between adjacent materials to be released.
在一个实施例中,所述获取素材集中的多个待发布素材,包括:In one embodiment, the step of acquiring a plurality of materials to be published in a material set includes:
获取素材集压缩文件,并对所述素材集压缩文件进行解压,得到多个待发布素材。A compressed file of a material set is obtained, and the compressed file of the material set is decompressed to obtain a plurality of materials to be released.
在一个实施例中,所述根据每个所述待发布素材的名称将所述多个待发布素材分为至少一个类别,包括:In one embodiment, the step of classifying the plurality of materials to be published into at least one category according to the name of each material to be published includes:
分别确定每个所述待发布素材的名称与其他所述待发布素材的名称的重合率;Respectively determining the overlap rate between the name of each of the to-be-published materials and the names of other to-be-published materials;
将名称的重合率超过预设阈值的至少两个待发布素材确定为一个类别;Determine at least two to-be-published materials whose names have a coincidence rate exceeding a preset threshold as one category;
将与其他的待发布素材的名称的重合率,均小于或等于所述预设阈值的所述待发布素材确定为一个类别。The materials to be published whose names have a coincidence rate with other materials to be published that is less than or equal to the preset threshold are determined as one category.
在一个实施例中,还包括:In one embodiment, it further includes:
提取每个类别的所述待发布素材的标识信息;Extracting identification information of the to-be-published material of each category;
将所述标识信息匹配的至少两个类别进行合并。At least two categories that match the identification information are merged.
在一个实施例中,所述提取每个类别的所述待发布素材的标识信息,包括:In one embodiment, extracting identification information of the to-be-published material of each category includes:
响应于所述类别包括一个所述待发布素材,提取所述待发布素材的标识信息,作为所述类别的所述待发布素材的标识信息;In response to the category including a to-be-published material, extracting identification information of the to-be-published material as identification information of the to-be-published material of the category;
响应于所述类别包括多个所述待发布素材,提取所述类别内的至少两个所述待发布素材的标识信息,若所提取的至少两个标识信息一致,则作为所述类别的所述待发布素材的标识信息。In response to the category including a plurality of the to-be-published materials, identification information of at least two of the to-be-published materials in the category is extracted, and if the extracted at least two identification information are consistent, the information is used as identification information of the to-be-published materials in the category.
在一个实施例中,按照下述方式提取所述待发布素材的标识信息:In one embodiment, the identification information of the material to be published is extracted in the following manner:
响应于所述待发布素材为图像,提取所述图像内的标识信息作为所述待发布素材的标识信息;In response to the to-be-published material being an image, extracting identification information in the image as identification information of the to-be-published material;
响应于所述待发布素材为视频,获取所述视频中预设数量的视频帧,并提取每个所述视频帧内的标识信息,若每个所述视频帧的标识信息一致,则将所述标识信息确定为所数据待发布素材的的标识信息。In response to the material to be released being a video, a preset number of video frames in the video are obtained, and identification information in each of the video frames is extracted; if the identification information of each of the video frames is consistent, the identification information is determined as the identification information of the material to be released.
在一个实施例中,所述在相同类别的相邻待发布素材间添加第一类转场特效,包括:In one embodiment, adding the first type of transition effects between adjacent to-be-published materials of the same category includes:
确定所述类别内的每个所述待发布素材的二进制信息码,其中,所述二进制信息码用于表征所述待发布素材的像素点差别;Determine a binary information code of each of the materials to be released within the category, wherein the binary information code is used to represent the pixel difference of the materials to be released;
按照二进制信息码从小到大的顺序排列所述类别内的各个所述待发布素材;Arrange the materials to be released in the category in ascending order of binary information codes;
在相邻的所述待发布素材间添加第一类转场特效。A first type of transition special effect is added between adjacent materials to be released.
在一个实施例中,第一类转场特效包括第一子类转场特效和第二子类转场特效,所述第一子类转场特效的激烈程度小于所述第二子类转场特效的激烈程度;In one embodiment, the first type of transition special effects includes a first sub-type of transition special effects and a second sub-type of transition special effects, and the intensity of the first sub-type of transition special effects is less than the intensity of the second sub-type of transition special effects;
所述在相邻的所述待发布素材间添加第一类转场特效,包括:The adding of the first type of transition effects between adjacent materials to be released includes:
响应于相邻的两个所述待发布像素的二进制信息码之差,小于或等于预设的信息码阈值,在所述两个所述待发布像素间添加第一子类转场特效;In response to the difference between the binary information codes of two adjacent pixels to be released being less than or equal to a preset information code threshold, adding a first sub-category transition effect between the two pixels to be released;
响应于相邻的两个所述待发布像素的二进制信息码之差,大于所述信息码阈值,在所述两个所述待发布像素间添加第二子类转场特效。In response to the difference between the binary information codes of two adjacent pixels to be released being greater than the information code threshold, a second sub-category transition effect is added between the two pixels to be released.
在一个实施例中,所述在不同类别的相邻待发布素材间添加第二类转场特效,包括:In one embodiment, adding the second type of transition effects between adjacent to-be-published materials of different categories includes:
按照预设顺序排列各个类别的所述待发布素材,并在相邻类别间添加所述第二类转场特效。The materials to be released in each category are arranged in a preset order, and the second type of transition effects are added between adjacent categories.
在一个实施例中,还包括:In one embodiment, it further includes:
根据顺序调整指令,调整所述生成素材内的待发布素材的顺序;和/或,adjusting the order of the materials to be published in the generated materials according to the order adjustment instruction; and/or,
根据转场特效调节指令,调节所述生成素材内的转场特效。According to the transition special effect adjustment instruction, the transition special effect in the generated material is adjusted.
根据本公开的一些实施例,提供一种信息发布的素材处理装置,包括:According to some embodiments of the present disclosure, there is provided a material processing device for information release, comprising:
获取模块,用于获取素材集中的多个待发布素材,其中,所述待发布素材包括图像或视频;An acquisition module, used for acquiring a plurality of materials to be published in a material set, wherein the materials to be published include images or videos;
分类模块,用于根据每个所述待发布素材的名称将所述多个待发布素材分为至少一个类别;A classification module, used for classifying the plurality of materials to be released into at least one category according to the name of each material to be released;
特效模块,用于在相同类别的相邻待发布素材间添加第一类转场特效,并在不同类别的相邻待发布素材间添加第二类转场特效,其中,所述第一类转场特效的激烈程度小于所述第二类转场特效的激烈程度;A special effect module, used for adding a first type of transition special effect between adjacent to-be-released materials of the same category, and adding a second type of transition special effect between adjacent to-be-released materials of different categories, wherein the intensity of the first type of transition special effect is less than the intensity of the second type of transition special effect;
生成模块,用于根据各个类别的待发布素材以及相邻待发布素材间的转场特效,生成合成素材。The generation module is used to generate composite materials based on the materials to be released in various categories and the transition effects between adjacent materials to be released.
在一个实施例中,所述获取模块具体用于:In one embodiment, the acquisition module is specifically used for:
获取素材集压缩文件,并对所述素材集压缩文件进行解压,得到多个待发布素材。A compressed file of a material set is obtained, and the compressed file of the material set is decompressed to obtain a plurality of materials to be released.
在一个实施例中,所述分类模块具体用于:In one embodiment, the classification module is specifically used for:
分别确定每个所述待发布素材的名称与其他所述待发布素材的名称的重合率;Respectively determining the overlap rate between the name of each of the to-be-published materials and the names of other to-be-published materials;
将名称的重合率超过预设阈值的至少两个待发布素材确定为一个类别;Determine at least two to-be-published materials whose names have a coincidence rate exceeding a preset threshold as one category;
将与其他的待发布素材的名称的重合率,均小于或等于所述预设阈值的所述待发布素材确定为一个类别。The materials to be published whose names have a coincidence rate with other materials to be published that is less than or equal to the preset threshold are determined as one category.
在一个实施例中,所述分类模块还用于:In one embodiment, the classification module is further configured to:
提取每个类别的所述待发布素材的标识信息;Extracting identification information of the to-be-published material of each category;
将所述标识信息匹配的至少两个类别进行合并。At least two categories that match the identification information are merged.
在一个实施例中,所述分类模块用于提取每个类别的所述待发布素材的标识信息时,具体用于:In one embodiment, when the classification module is used to extract identification information of the to-be-published material of each category, it is specifically used to:
响应于所述类别包括一个所述待发布素材,提取所述待发布素材的标识信息,作为所述类别的所述待发布素材的标识信息;In response to the category including a to-be-published material, extracting identification information of the to-be-published material as identification information of the to-be-published material of the category;
响应于所述类别包括多个所述待发布素材,提取所述类别内的至少两个所述待发布素材的标识信息,若所提取的至少两个标识信息一致,则作为所述类别的所述待发布素材的标识信息。In response to the category including a plurality of the to-be-published materials, identification information of at least two of the to-be-published materials in the category is extracted, and if the extracted at least two identification information are consistent, the information is used as identification information of the to-be-published materials in the category.
在一个实施例中,所述分类模块用于按照下述方式提取所述待发布素材的标识信息:In one embodiment, the classification module is used to extract the identification information of the to-be-published material in the following manner:
响应于所述待发布素材为图像,提取所述图像内的标识信息作为所述待发布素材的标识信息;In response to the to-be-published material being an image, extracting identification information in the image as identification information of the to-be-published material;
响应于所述待发布素材为视频,获取所述视频中预设数量的视频帧,并提取每个所述视频帧内的标识信息,若每个所述视频帧的标识信息一致,则将所述标识信息确定为所数据待发布素材的的标识信息。In response to the material to be released being a video, a preset number of video frames in the video are obtained, and identification information in each of the video frames is extracted; if the identification information of each of the video frames is consistent, the identification information is determined as the identification information of the material to be released.
在一个实施例中,所述特效模块用于在相同类别的相邻待发布素材间添加第一类转场特效时,具体用于:In one embodiment, when the special effect module is used to add the first type of transition special effect between adjacent to-be-published materials of the same category, it is specifically used to:
确定所述类别内的每个所述待发布素材的二进制信息码,其中,所述二进制信息码用于表征所述待发布素材的像素点差别;Determine a binary information code of each of the materials to be released within the category, wherein the binary information code is used to represent the pixel difference of the materials to be released;
按照二进制信息码从小到大的顺序排列所述类别内的各个所述待发布素材;Arrange the materials to be released in the category in ascending order of binary information codes;
在相邻的所述待发布素材间添加第一类转场特效。A first type of transition special effect is added between adjacent materials to be released.
在一个实施例中,第一类转场特效包括第一子类转场特效和第二子类转场特效,所述第一子类转场特效的激烈程度小于所述第二子类转场特效的激烈程度;In one embodiment, the first type of transition special effects includes a first sub-type of transition special effects and a second sub-type of transition special effects, and the intensity of the first sub-type of transition special effects is less than the intensity of the second sub-type of transition special effects;
所述分类模块用于在相邻的所述待发布素材间添加第一类转场特效时,具体用于:The classification module is used to add the first type of transition effects between adjacent materials to be released, specifically for:
响应于相邻的两个所述待发布像素的二进制信息码之差,小于或等于预设的信息码阈值,在所述两个所述待发布像素间添加第一子类转场特效;In response to the difference between the binary information codes of two adjacent pixels to be released being less than or equal to a preset information code threshold, adding a first sub-category transition effect between the two pixels to be released;
响应于相邻的两个所述待发布像素的二进制信息码之差,大于所述信息码阈值,在所述两个所述待发布像素间添加第二子类转场特效。In response to the difference between the binary information codes of two adjacent pixels to be released being greater than the information code threshold, a second sub-category transition effect is added between the two pixels to be released.
在一个实施例中,所述分类模块用于在不同类别的相邻待发布素材间添加第二类转场特效时,具体用于:In one embodiment, when the classification module is used to add the second type of transition effects between adjacent to-be-released materials of different categories, it is specifically used to:
按照预设顺序排列各个类别的所述待发布素材,并在相邻类别间添加所述第二类转场特效。The materials to be released in each category are arranged in a preset order, and the second type of transition effects are added between adjacent categories.
在一个实施例中,还包括指令模块,用于:In one embodiment, an instruction module is further included, which is used to:
根据顺序调整指令,调整所述生成素材内的待发布素材的顺序;和/或,adjusting the order of the materials to be published in the generated materials according to the order adjustment instruction; and/or,
根据转场特效调节指令,调节所述生成素材内的转场特效。According to the transition special effect adjustment instruction, the transition special effect in the generated material is adjusted.
根据本公开的一些实施例,提供一种电子设备,所述设备包括存储器、处理器,所述存储器用于存储可在处理器上运行的计算机指令,所述处理器用于在执行所述计算机指令时实现第一方面所述的方法。According to some embodiments of the present disclosure, an electronic device is provided, the device comprising a memory and a processor, the memory being used to store computer instructions executable on the processor, the processor being used to implement the method described in the first aspect when executing the computer instructions.
根据本公开的一些实施例,提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现第一方面所述的方法。According to some embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect is implemented.
根据上述实施例可知,通过获取素材集中的多个待发布素材,并根据每个所述待发布素材的,名称将所述多个待发布素材分为至少一个类别,再在相同类别的相邻待发布素材间添加第一类转场特效,并在不同类别的相邻待发布素材间添加第二类转场特效,最后根据各个类别的待发布素材以及相邻待发布素材间的转场特效,生成合成素材。由于多个待发布素材经过分类,并对同类别和不同类别的待发布素材间分别添加了不同类别的转场特效,因此自动生成的合成像素内相同类别的待发布素材集中发布,且素材间转场特效较稳定和缓,不同类别切换时转场特效激烈明显,提高了合成素材的质量,改善了用户体验,而且降低了人工成本,提高了效率。According to the above embodiments, multiple materials to be released in a material set are obtained, and the multiple materials to be released are divided into at least one category according to the name of each material to be released, and then the first type of transition special effects are added between adjacent materials to be released of the same category, and the second type of transition special effects are added between adjacent materials to be released of different categories, and finally, a synthetic material is generated according to the materials to be released of each category and the transition special effects between adjacent materials to be released. Since multiple materials to be released are classified, and different types of transition special effects are added to the materials to be released of the same category and different categories, the materials to be released of the same category in the automatically generated synthetic pixels are released in a centralized manner, and the transition special effects between materials are relatively stable and gentle, and the transition special effects are intense and obvious when switching between different categories, thereby improving the quality of the synthetic material, improving the user experience, and reducing labor costs and improving efficiency.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
图1是本公开一些实施例示出的信息发布的素材处理方法的流程图;FIG1 is a flow chart of a material processing method for information release shown in some embodiments of the present disclosure;
图2是本公开一些实施例示出的信息发布的素材处理装置的结构示意图;FIG2 is a schematic diagram of the structure of a material processing device for information release shown in some embodiments of the present disclosure;
图3是本公开一些实施例示出的电子设备的结构示意图。FIG. 3 is a schematic diagram of the structure of an electronic device according to some embodiments of the present disclosure.
具体实施方式DETAILED DESCRIPTION
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and/or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
本公开的一些实施例提供了一种信息发布的素材处理方法,请参照图1,其示出了该认证方法的流程,包括步骤S101至步骤S104。Some embodiments of the present disclosure provide a material processing method for information release. Please refer to FIG. 1 , which shows the process of the authentication method, including steps S101 to S104 .
其中,该方法可以应用于电子媒体发布与设备管控系统,例如机场、铁路、地铁等交通场景内的电子媒体发布与设备管控系统。该系统能够管理场景内的显示屏等信息发布媒介的显示内容,即信息发布的素材,例如广告等。该系统可以在前端的应用程序运行该方法,也可以根据前端的指令在后端服务器运行该方法,运行该方法时能够利用所存储的素材生成合成素材,合成素材包括这些素材的顺序、转场特效以及播放时的停留时长等。Among them, the method can be applied to electronic media publishing and equipment management systems, such as electronic media publishing and equipment management systems in transportation scenes such as airports, railways, and subways. The system can manage the display content of information publishing media such as display screens in the scene, that is, the materials for information publishing, such as advertisements. The system can run the method in the front-end application, or run the method in the back-end server according to the instructions of the front-end. When running the method, the stored materials can be used to generate synthetic materials, and the synthetic materials include the order of these materials, transition effects, and the length of stay during playback.
在步骤S101中,获取素材集中的多个待发布素材,其中,所述待发布素材包括图像或视频。In step S101, a plurality of materials to be published in a material set are obtained, wherein the materials to be published include images or videos.
其中,素材集可以由前端的应用程序导入,若该方法在后端的服务器运行,则前端的应用程序需要将素材集发送至后端服务器。素材集内包括多个待发布素材,这些待发布素材可以为图像或视频。每个待发布素材都承载着一定的待发布信息,例如待发布素材为广告时,则承载着产品信息和品牌信息等。待发布素材可以是其承载的待发布信息所属的主体提供的,例如广告是厂商、政府或公益组织等提供的。待发布素材可以具有一定的命名规则,例如命名中可以包括厂商名称、产品信息等。Among them, the material set can be imported by the front-end application. If the method is run on the back-end server, the front-end application needs to send the material set to the back-end server. The material set includes multiple materials to be released, and these materials to be released can be images or videos. Each material to be released carries certain information to be released. For example, when the material to be released is an advertisement, it carries product information and brand information. The material to be released can be provided by the subject to which the information to be released it carries belongs, for example, the advertisement is provided by a manufacturer, government or non-profit organization. The material to be released can have certain naming rules, for example, the naming can include the manufacturer name, product information, etc.
可选的,素材集是以压缩文件的形式导入的,则本步骤中可以获取素材集压缩文件,并对所述素材集压缩文件进行解压,得到多个待发布素材。Optionally, the material set is imported in the form of a compressed file. In this step, the compressed file of the material set may be obtained and decompressed to obtain a plurality of materials to be released.
在步骤S102中,根据每个所述待发布素材的名称将所述多个待发布素材分为至少一个类别。In step S102, the plurality of materials to be published are divided into at least one category according to the name of each material to be published.
由于待发布素材的名称中包括该素材至少一个方面的信息,因此可以通过名称对素材集内的多个待发布素材进行分类,即在某个方面相一致的待发布素材被分为一类。待发布素材为广告时,待发布素材的名称中可以包括厂商名称,则本步骤中可以将同一厂商的待发布素材分为一类,例如A厂商的鞋子广告、A厂商的衣服广告和A厂商的书包广告分为一类,B厂商的电脑广告、B厂商的手机广告和B厂商的耳机分为一类,C厂商的足球自成一类。Since the name of the material to be released includes at least one aspect of the material, multiple materials to be released in the material set can be classified by name, that is, the materials to be released that are consistent in a certain aspect are classified into one category. When the material to be released is an advertisement, the name of the material to be released can include the manufacturer's name, and in this step, the materials to be released of the same manufacturer can be classified into one category, for example, the shoe advertisement of manufacturer A, the clothing advertisement of manufacturer A and the schoolbag advertisement of manufacturer A are classified into one category, the computer advertisement of manufacturer B, the mobile phone advertisement of manufacturer B and the earphone of manufacturer B are classified into one category, and the football of manufacturer C is classified into another category.
可选的,首先,分别确定每个所述待发布素材的名称与其他所述待发布素材的名称的重合率,其中,可以对名称的文字进行模糊比对以得到重合率;接下来,将名称的重合率超过预设阈值的至少两个待发布素材确定为一个类别;最后,将与其他的待发布素材的名称的重合率,均小于或等于所述预设阈值的所述待发布素材确定为一个类别,预设阈值可以为50%。Optionally, first, determine the overlap rate between the name of each material to be released and the names of other materials to be released, wherein the text of the name can be fuzzy compared to obtain the overlap rate; next, determine at least two materials to be released whose names have an overlap rate exceeding a preset threshold as one category; finally, determine the materials to be released whose names have an overlap rate less than or equal to the preset threshold as one category, and the preset threshold may be 50%.
在步骤S103中,在相同类别的相邻待发布素材间添加第一类转场特效,并在不同类别的相邻待发布素材间添加第二类转场特效,其中,所述第一类转场特效的激烈程度小于所述第二类转场特效的激烈程度。In step S103, a first type of transition effect is added between adjacent to-be-published materials of the same category, and a second type of transition effect is added between adjacent to-be-published materials of different categories, wherein the intensity of the first type of transition effect is less than that of the second type of transition effect.
其中,在一个类别内,不用的待发布素材按照一定的顺序进行排列,因此可以在相邻的待发布素材间添加第一类转场特效,具体的排列顺序可以按照这些待发布素材在素材集内的原始顺序确定,也可以按照其他方式确定。例如,A厂商广告这一类别中的鞋子广告、衣服广告和书包广告在素材集内未相邻,但顺序是鞋子广告、衣服广告和书包广告这样的顺序,则在A厂商广告这一类别内继续延用鞋子广告、衣服广告和书包广告这样的顺序。In one category, unused materials to be released are arranged in a certain order, so the first type of transition effects can be added between adjacent materials to be released. The specific arrangement order can be determined according to the original order of these materials to be released in the material set, or in other ways. For example, in the category of Manufacturer A’s Advertisement, the shoe advertisement, clothing advertisement, and school bag advertisement are not adjacent in the material set, but the order is shoe advertisement, clothing advertisement, and school bag advertisement. In this case, the shoe advertisement, clothing advertisement, and school bag advertisement order will continue to be used in the category of Manufacturer A’s Advertisement.
而各个类别的待发布素材间也具有一定的顺序,因此可以按照预设顺序排列各个类别的所述待发布素材,并在相邻类别间添加所述第二类转场特效。各个类别间的预设顺序可以根据一定的顺序确定规则生成,例如顺序确定规则可以规定按照类别内待发布素材的多少进行排列,或可以规定根据类别内素材的种类进行排序,或可以规定根据类别内首个待发布素材在素材集内的原始顺序进行排序,等等。The materials to be released in each category also have a certain order, so the materials to be released in each category can be arranged in a preset order, and the second type of transition effects can be added between adjacent categories. The preset order between the categories can be generated according to a certain order determination rule, for example, the order determination rule can stipulate that the materials to be released are arranged according to the number of materials in the category, or can stipulate that the materials are sorted according to the types of materials in the category, or can stipulate that the materials are sorted according to the original order of the first material to be released in the category in the material set, and so on.
转场特效为两个相邻的待发布素材在发布时,由第一个待发布素材切换至第二个待发布素材的特效,其作用是能够使不同的待发布素材间产生联系,增加发布信息的整体性和趣味性,避免各个待发布素材相互独立,较为枯燥。The transition effect is a special effect that switches from the first material to be released to the second material to be released when two adjacent materials to be released are released. Its function is to create connections between different materials to be released, increase the integrity and interest of the released information, and avoid the independence and boredom of each material to be released.
在一个示例中,第一类转场特效较为平稳和缓,如百叶窗特效、圆形特效、网格特效、曲线特效、线条特效等,从而可以在类别内的待发布素材切换时较为和缓,使用户能够感受到该类别为一个整体;而第二类转场特效较为激烈明显,如纸张特效、油漆涂抹特效、随机图形特效等,从而能够在类别间切换时较为明显,使用户能够感受到类别的切换。In an example, the first type of transition effects are relatively smooth and gentle, such as blinds effects, circle effects, grid effects, curve effects, line effects, etc., so that the switching of materials to be released within the category can be relatively gentle, allowing users to feel that the category is a whole; while the second type of transition effects are relatively intense and obvious, such as paper effects, paint smearing effects, random graphic effects, etc., so that the switching between categories can be relatively obvious, allowing users to feel the switching of categories.
举例来说,当A厂商广告、B厂商广告和C厂商广告三个类别依次排列,而A厂商广告内鞋子广告、衣服广告和书包广告依次排列,B厂商广告内的电脑广告、手机广告和耳机依次排列,可以在鞋子广告和衣服广告间添加百叶窗特效,在衣服广告和书包广告间添加曲线特效,在书包广告和电脑广告间添加纸张特效,在电脑广告和手机广告间添加百叶窗特效,在手机广告和耳机广告间添加曲线特效,在耳机广告和足球广告间添加油漆涂抹特效。For example, when the three categories of manufacturer A's advertisement, manufacturer B's advertisement and manufacturer C's advertisement are arranged in sequence, and shoe advertisement, clothing advertisement and school bag advertisement are arranged in sequence within manufacturer A's advertisement, and computer advertisement, mobile phone advertisement and earphone advertisement are arranged in sequence within manufacturer B's advertisement, you can add a blinds special effect between the shoe advertisement and the clothing advertisement, a curve special effect between the clothing advertisement and the school bag advertisement, a paper special effect between the school bag advertisement and the computer advertisement, a blinds special effect between the computer advertisement and the mobile phone advertisement, a curve special effect between the mobile phone advertisement and the earphone advertisement, and a paint smearing special effect between the earphone advertisement and the football advertisement.
在步骤S104中,根据各个类别的待发布素材以及相邻待发布素材间的转场特效,生成合成素材。In step S104, a composite material is generated according to the to-be-published materials of each category and the transition effects between adjacent to-be-published materials.
将排列好的各个待发布素材以及素材间的转场特效整体保存,形成合成素材。该合成素材可以用于控制对应的显示屏等信息发布媒体的信息发布,例如当合成素材内包括多个广告时,可以将其投放至某个显示屏进行播放。The arranged materials to be released and the transition effects between the materials are saved as a whole to form a composite material. The composite material can be used to control the information release of the corresponding information release media such as display screens. For example, when the composite material includes multiple advertisements, it can be placed on a certain display screen for playback.
根据上述实施例可知,通过获取素材集中的多个待发布素材,并根据每个所述待发布素材的,名称将所述多个待发布素材分为至少一个类别,再在相同类别的相邻待发布素材间添加第一类转场特效,并在不同类别的相邻待发布素材间添加第二类转场特效,最后根据各个类别的待发布素材以及相邻待发布素材间的转场特效,生成合成素材。由于多个待发布素材经过分类,并对同类别和不同类别的待发布素材间分别添加了不同类别的转场特效,因此自动生成的合成像素内相同类别的待发布素材集中发布,且素材间转场特效较稳定和缓,不同类别切换时转场特效激烈明显,提高了合成素材的质量,改善了用户体验,而且降低了人工成本,提高了效率。满足了机场、铁路、地铁等交通项目中发布素材丰富且更换频率高的广告的技术需求。According to the above embodiments, by obtaining multiple materials to be released in the material set, and according to the name of each of the materials to be released, the multiple materials to be released are divided into at least one category, and then the first type of transition special effects are added between adjacent materials to be released of the same category, and the second type of transition special effects are added between adjacent materials to be released of different categories, and finally, according to the materials to be released of each category and the transition special effects between adjacent materials to be released, synthetic materials are generated. Since multiple materials to be released are classified, and different types of transition special effects are added between materials to be released of the same category and different categories, the materials to be released of the same category in the automatically generated synthetic pixels are released in a centralized manner, and the transition special effects between materials are relatively stable and gentle, and the transition special effects are intense and obvious when different categories are switched, which improves the quality of the synthetic materials, improves the user experience, reduces labor costs, and improves efficiency. It meets the technical requirements of advertisements with rich materials and high replacement frequency in transportation projects such as airports, railways, and subways.
在本公开的一些实施例中,在根据名称对待发布素材进行分类后,还可以按照下述方式进一步完善待发布素材的分类:首先,提取每个类别的所述待发布素材的标识信息,接下来,将所述标识信息匹配的至少两个类别进行合并。In some embodiments of the present disclosure, after the materials to be published are classified according to the names, the classification of the materials to be published can be further improved in the following manner: first, the identification information of the materials to be published in each category is extracted, and then at least two categories matching the identification information are merged.
在待发布素材为广告时,标识信息可以为商标信息,商标信息与名称中的厂商信息是对应的。When the material to be published is an advertisement, the identification information may be trademark information, and the trademark information corresponds to the manufacturer information in the name.
由于根据名称所分的各个类别中,有的类别内包括多个待发布素材,有的类别内仅有一个待发布素材,而这些自成一类的待发布素材经常是由于名称不准确造成未分至正确的类别中,因此可以通过商标信息等标识信息对分类结果进行完善。例如,某个待发布素材属于A厂商广告的类别,但是由于其名称有误或不准确造成未成功分至A厂商广告的类别,而是自成一类,但是通过A厂商广告内广告的商标信息(即A厂商的商标)和该自成一类的待发布素材的商标信息(即A厂商的商标),可以将该自成一类的待发布素材合并至A厂商广告的类别中。Since some categories divided by name include multiple materials to be released, and some categories only have one material to be released, and these materials to be released in their own category are often not classified into the correct category due to inaccurate names, the classification results can be improved through identification information such as trademark information. For example, a material to be released belongs to the category of manufacturer A's advertisements, but due to its incorrect or inaccurate name, it is not successfully classified into the category of manufacturer A's advertisements, but is in its own category. However, through the trademark information of the advertisement in manufacturer A's advertisement (i.e., manufacturer A's trademark) and the trademark information of the material to be released in its own category (i.e., manufacturer A's trademark), the material to be released in its own category can be merged into the category of manufacturer A's advertisements.
在确定各个类别的待发布素材的标识信息时,可以响应于所述类别包括一个所述待发布素材,提取所述待发布素材的标识信息,作为所述类别的所述待发布素材的标识信息,响应于所述类别包括多个所述待发布素材,提取所述类别内的至少两个所述待发布素材的标识信息,若所提取的至少两个标识信息一致,则作为所述类别的所述待发布素材的标识信息。When determining the identification information of the to-be-released materials of each category, in response to the category including one to-be-released material, the identification information of the to-be-released material can be extracted as the identification information of the to-be-released material of the category; in response to the category including multiple to-be-released materials, the identification information of at least two to-be-released materials within the category can be extracted; if the extracted at least two identification information are consistent, they are used as the identification information of the to-be-released material of the category.
可选的,按照下述方式提取所述待发布素材的标识信息:响应于所述待发布素材为图像,提取所述图像内的标识信息作为所述待发布素材的标识信息;响应于所述待发布素材为视频,获取所述视频中预设数量的视频帧,并提取每个所述视频帧内的标识信息,若每个所述视频帧的标识信息一致,则将所述标识信息确定为所数据待发布素材的标识信息。Optionally, the identification information of the material to be released is extracted in the following manner: in response to the material to be released being an image, extracting the identification information in the image as the identification information of the material to be released; in response to the material to be released being a video, obtaining a preset number of video frames in the video, and extracting the identification information in each of the video frames; if the identification information of each of the video frames is consistent, determining the identification information as the identification information of the material to be released.
其中,提取图像内的标识信息或视频帧内的标识信息时,可以利用尺度不变特征转换等算法识别图像或视频帧从而确定标识区域(例如商标区域),然后提取该标识区域的特征,并与预设的标识特征库内的特征进行比对,从而确定该标识信息为何种标识信息。Among them, when extracting identification information in an image or identification information in a video frame, algorithms such as scale-invariant feature transformation can be used to identify the image or video frame to determine the identification area (such as a trademark area), and then the features of the identification area are extracted and compared with the features in a preset identification feature library to determine what kind of identification information the identification information is.
其中,获取视频中预设数量的视频帧时,可以从视频中均匀获取5帧视频帧。When obtaining a preset number of video frames in a video, 5 video frames may be evenly obtained from the video.
本实施例中,通过标识信息进一步完善待发布素材的分类结果,从而使因名称有误或不准确而造成分类错误的待发布素材得以正确分类,进而使后续生成的合成素材质量较高。In this embodiment, the classification result of the material to be released is further improved by the identification information, so that the material to be released that is misclassified due to incorrect or inaccurate names can be correctly classified, thereby making the quality of the subsequently generated synthetic material higher.
在本公开的一些实施例中,可以按照下述方式在相同类别的相邻待发布素材间添加第一类转场特效:首先,确定所述类别内的每个所述待发布素材的二进制信息码,其中,所述二进制信息码用于表征所述待发布素材的像素点差别;接下来,按照二进制信息码从小到大的顺序排列所述类别内的各个所述待发布素材;最后,在相邻的所述待发布素材间添加第一类转场特效。In some embodiments of the present disclosure, a first type of transition special effect can be added between adjacent to-be-released materials of the same category in the following manner: first, determine the binary information code of each to-be-released material within the category, wherein the binary information code is used to characterize the pixel difference of the to-be-released material; next, arrange the to-be-released materials within the category in ascending order of the binary information code; finally, add the first type of transition special effect between adjacent to-be-released materials.
其中,确定每个待发布素材的二进制信息码时,可以采用采取主成份分析法(PCA)进行降维计算,分析后输出16位二进制信息码。而且在待发布素材为视频时,可以提取预设数量(例如5帧)视频帧,每一帧进行分析输出16位二进制信息码,最后取平均数作为该待发布素材的二进制信息码。图像信息像素点差别越大,信息量越多,则二进制信息码越大。Among them, when determining the binary information code of each material to be released, the principal component analysis (PCA) method can be used for dimensionality reduction calculation, and a 16-bit binary information code can be output after analysis. Moreover, when the material to be released is a video, a preset number (for example, 5 frames) of video frames can be extracted, and each frame is analyzed to output a 16-bit binary information code, and finally the average is taken as the binary information code of the material to be released. The greater the difference in the image information pixels and the more information there is, the larger the binary information code will be.
另外,第一类转场特效包括第一子类转场特效和第二子类转场特效,所述第一子类转场特效的激烈程度小于所述第二子类转场特效的激烈程度,例如第一子类转场特效包括百叶窗特效、圆形特效等,第二子类转场特效包括网格特效、曲线特效、线条特效。In addition, the first category of transition special effects includes first subcategory transition special effects and second subcategory transition special effects. The intensity of the first subcategory transition special effects is less than that of the second subcategory transition special effects. For example, the first subcategory transition special effects include blinds special effects, circular special effects, etc., and the second subcategory transition special effects include grid special effects, curve special effects, and line special effects.
基于上述两个子类的转场特效,可以在为类别内的相邻待发布素材间添加特效时采用下述方式加以区分:响应于相邻的两个所述待发布像素的二进制信息码之差,小于或等于预设的信息码阈值,在所述两个所述待发布像素间添加第一子类转场特效;响应于相邻的两个所述待发布像素的二进制信息码之差,大于所述信息码阈值,在所述两个所述待发布像素间添加第二子类转场特效。其中,信息码阈值可以预设为15为1,当相邻素材间的信息码相差小于二进制15位1时,则认为素材相似,此时转场特效为相对平滑稳定的第一子类,当相差大于二进制15位1时,则认为素材不相似,此时转场特效为相对明快的第二子类。Based on the above two subcategories of transition effects, the following method can be used to distinguish between adjacent materials to be released within the category when adding special effects: in response to the difference between the binary information codes of two adjacent pixels to be released being less than or equal to the preset information code threshold, the first subcategory of transition effects is added between the two pixels to be released; in response to the difference between the binary information codes of two adjacent pixels to be released being greater than the information code threshold, the second subcategory of transition effects is added between the two pixels to be released. Among them, the information code threshold can be preset to 15=1. When the difference between the information codes of adjacent materials is less than 15 bits of binary, the materials are considered similar, and the transition effect is the first subcategory that is relatively smooth and stable. When the difference is greater than 15 bits of binary, the materials are considered dissimilar, and the transition effect is the second subcategory that is relatively bright.
在本公开的一些实施例中,还可以根据顺序调整指令,调整所述生成素材内的待发布素材的顺序;和/或,根据转场特效调节指令,调节所述生成素材内的转场特效。In some embodiments of the present disclosure, the order of the materials to be released in the generated material may be adjusted according to the order adjustment instruction; and/or the transition effects in the generated material may be adjusted according to the transition effect adjustment instruction.
其中,顺序调整指令和转场特效调节指令,可以根据用户的操作生成。也就是说,在自动生成合成素材后,可以根据用户的操作调节待发布素材的顺序以及转场特效的选择,从而进一步增加了合成素材的合理性,提高了合成素材的质量。Among them, the sequence adjustment instruction and the transition special effect adjustment instruction can be generated according to the user's operation. That is to say, after the synthetic material is automatically generated, the sequence of the materials to be released and the selection of the transition special effects can be adjusted according to the user's operation, thereby further increasing the rationality of the synthetic material and improving the quality of the synthetic material.
根据本公开的一些实施例,提供一种信息发布的素材处理装置,请参照附图2,其示出了该装置的结构,包括:According to some embodiments of the present disclosure, a material processing device for information release is provided. Please refer to FIG. 2 , which shows the structure of the device, including:
获取模块201,用于获取素材集中的多个待发布素材,其中,所述待发布素材包括图像或视频;The acquisition module 201 is used to acquire a plurality of materials to be published in a material set, wherein the materials to be published include images or videos;
分类模块202,用于根据每个所述待发布素材的名称将所述多个待发布素材分为至少一个类别;A classification module 202, configured to classify the plurality of materials to be published into at least one category according to the name of each material to be published;
特效模块203,用于在相同类别的相邻待发布素材间添加第一类转场特效,并在不同类别的相邻待发布素材间添加第二类转场特效,其中,所述第一类转场特效的激烈程度小于所述第二类转场特效的激烈程度;The special effect module 203 is used to add a first type of transition special effect between adjacent to-be-published materials of the same category, and to add a second type of transition special effect between adjacent to-be-published materials of different categories, wherein the intensity of the first type of transition special effect is less than the intensity of the second type of transition special effect;
生成模块204,用于根据各个类别的待发布素材以及相邻待发布素材间的转场特效,生成合成素材。The generation module 204 is used to generate a composite material according to the to-be-published materials of each category and the transition effects between adjacent to-be-published materials.
在本公开的一些实施例中,所述获取模块具体用于:In some embodiments of the present disclosure, the acquisition module is specifically used to:
获取素材集压缩文件,并对所述素材集压缩文件进行解压,得到多个待发布素材。A compressed file of a material set is obtained, and the compressed file of the material set is decompressed to obtain a plurality of materials to be released.
在本公开的一些实施例中,所述分类模块具体用于:In some embodiments of the present disclosure, the classification module is specifically used to:
分别确定每个所述待发布素材的名称与其他所述待发布素材的名称的重合率;Respectively determining the overlap rate between the name of each of the to-be-published materials and the names of other to-be-published materials;
将名称的重合率超过预设阈值的至少两个待发布素材确定为一个类别;Determine at least two to-be-published materials whose names have a coincidence rate exceeding a preset threshold as one category;
将与其他的待发布素材的名称的重合率,均小于或等于所述预设阈值的所述待发布素材确定为一个类别。The materials to be published whose names have a coincidence rate with other materials to be published that is less than or equal to the preset threshold are determined as one category.
在本公开的一些实施例中,所述分类模块还用于:In some embodiments of the present disclosure, the classification module is further used to:
提取每个类别的所述待发布素材的标识信息;Extracting identification information of the to-be-published material of each category;
将所述标识信息匹配的至少两个类别进行合并。At least two categories that match the identification information are merged.
在本公开的一些实施例中,所述分类模块用于提取每个类别的所述待发布素材的标识信息时,具体用于:In some embodiments of the present disclosure, when the classification module is used to extract identification information of the to-be-published material of each category, it is specifically used to:
响应于所述类别包括一个所述待发布素材,提取所述待发布素材的标识信息,作为所述类别的所述待发布素材的标识信息;In response to the category including a to-be-published material, extracting identification information of the to-be-published material as identification information of the to-be-published material of the category;
响应于所述类别包括多个所述待发布素材,提取所述类别内的至少两个所述待发布素材的标识信息,若所提取的至少两个标识信息一致,则作为所述类别的所述待发布素材的标识信息。In response to the category including a plurality of the to-be-published materials, identification information of at least two of the to-be-published materials in the category is extracted, and if the extracted at least two identification information are consistent, the information is used as identification information of the to-be-published materials in the category.
在本公开的一些实施例中,所述分类模块用于按照下述方式提取所述待发布素材的标识信息:In some embodiments of the present disclosure, the classification module is used to extract the identification information of the to-be-published material in the following manner:
响应于所述待发布素材为图像,提取所述图像内的标识信息作为所述待发布素材的标识信息;In response to the to-be-published material being an image, extracting identification information in the image as identification information of the to-be-published material;
响应于所述待发布素材为视频,获取所述视频中预设数量的视频帧,并提取每个所述视频帧内的标识信息,若每个所述视频帧的标识信息一致,则将所述标识信息确定为所数据待发布素材的的标识信息。In response to the material to be released being a video, a preset number of video frames in the video are obtained, and identification information in each of the video frames is extracted. If the identification information of each of the video frames is consistent, the identification information is determined as the identification information of the material to be released.
在本公开的一些实施例中,所述特效模块用于在相同类别的相邻待发布素材间添加第一类转场特效时,具体用于:In some embodiments of the present disclosure, when the special effect module is used to add the first type of transition special effect between adjacent to-be-published materials of the same category, it is specifically used to:
确定所述类别内的每个所述待发布素材的二进制信息码,其中,所述二进制信息码用于表征所述待发布素材的像素点差别;Determine a binary information code of each of the materials to be released within the category, wherein the binary information code is used to represent the pixel difference of the materials to be released;
按照二进制信息码从小到大的顺序排列所述类别内的各个所述待发布素材;Arrange the materials to be released in the category in ascending order of binary information codes;
在相邻的所述待发布素材间添加第一类转场特效。A first type of transition special effect is added between adjacent materials to be released.
在本公开的一些实施例中,第一类转场特效包括第一子类转场特效和第二子类转场特效,所述第一子类转场特效的激烈程度小于所述第二子类转场特效的激烈程度;In some embodiments of the present disclosure, the first type of transition special effects includes a first sub-type of transition special effects and a second sub-type of transition special effects, and the intensity of the first sub-type of transition special effects is less than the intensity of the second sub-type of transition special effects;
所述分类模块用于在相邻的所述待发布素材间添加第一类转场特效时,具体用于:The classification module is used to add the first type of transition effects between adjacent materials to be released, specifically for:
响应于相邻的两个所述待发布像素的二进制信息码之差,小于或等于预设的信息码阈值,在所述两个所述待发布像素间添加第一子类转场特效;In response to the difference between the binary information codes of two adjacent pixels to be released being less than or equal to a preset information code threshold, adding a first sub-category transition effect between the two pixels to be released;
响应于相邻的两个所述待发布像素的二进制信息码之差,大于所述信息码阈值,在所述两个所述待发布像素间添加第二子类转场特效。In response to the difference between the binary information codes of two adjacent pixels to be released being greater than the information code threshold, a second sub-category transition effect is added between the two pixels to be released.
在本公开的一些实施例中,所述分类模块用于在不同类别的相邻待发布素材间添加第二类转场特效时,具体用于:In some embodiments of the present disclosure, when the classification module is used to add the second type of transition effects between adjacent to-be-published materials of different categories, it is specifically used to:
按照预设顺序排列各个类别的所述待发布素材,并在相邻类别间添加所述第二类转场特效。The materials to be released in each category are arranged in a preset order, and the second type of transition effects are added between adjacent categories.
在本公开的一些实施例中,还包括指令模块,用于:In some embodiments of the present disclosure, an instruction module is further included, which is used to:
根据顺序调整指令,调整所述生成素材内的待发布素材的顺序;和/或,adjusting the order of the materials to be published in the generated materials according to the order adjustment instruction; and/or,
根据转场特效调节指令,调节所述生成素材内的转场特效。According to the transition special effect adjustment instruction, the transition special effect in the generated material is adjusted.
关于上述实施例中的装置,其中各个模块及网络执行操作的具体方式已经在第一方面有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the above embodiment, the specific manner in which each module and the network perform operations has been described in detail in the embodiment of the first aspect related to the method, and will not be elaborated here.
请参照附图3,本公开一些实施例提供一种电子设备,所述设备包括存储器、处理器,所述存储器用于存储可在处理器上运行的计算机指令,所述处理器用于在执行所述计算机指令时基于第一方面所述的方法进行素材处理。Please refer to Figure 3. Some embodiments of the present disclosure provide an electronic device, which includes a memory and a processor, wherein the memory is used to store computer instructions that can be executed on the processor, and the processor is used to process materials based on the method described in the first aspect when executing the computer instructions.
本公开一些实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现第一方面所述的方法。Some embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method described in the first aspect is implemented.
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。The various component embodiments of the present disclosure may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
在本公开中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“多个”指两个或两个以上,除非另有明确的限定。In the present disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110998194.9A CN113627994B (en) | 2021-08-27 | 2021-08-27 | Material processing method and device for information release, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110998194.9A CN113627994B (en) | 2021-08-27 | 2021-08-27 | Material processing method and device for information release, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113627994A CN113627994A (en) | 2021-11-09 |
CN113627994B true CN113627994B (en) | 2024-09-06 |
Family
ID=78388248
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110998194.9A Active CN113627994B (en) | 2021-08-27 | 2021-08-27 | Material processing method and device for information release, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113627994B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018214772A1 (en) * | 2017-05-22 | 2018-11-29 | 腾讯科技(深圳)有限公司 | Media data processing method and apparatus, and storage medium |
WO2019192416A1 (en) * | 2018-04-03 | 2019-10-10 | 阿里巴巴集团控股有限公司 | Video processing method and device therefor, and storage medium and electronic product |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7016540B1 (en) * | 1999-11-24 | 2006-03-21 | Nec Corporation | Method and system for segmentation, classification, and summarization of video images |
TW200729172A (en) * | 2006-01-20 | 2007-08-01 | Ulead Systems Inc | Volume generation methods and systems |
JP5091806B2 (en) * | 2008-09-01 | 2012-12-05 | 株式会社東芝 | Video processing apparatus and method |
CN103347155B (en) * | 2013-06-18 | 2016-08-10 | 北京汉博信息技术有限公司 | Realize transition special effective module and the method for two video flowing difference transition effect switchings |
CN104144301A (en) * | 2014-07-30 | 2014-11-12 | 厦门美图之家科技有限公司 | Method for transition special effects on basis of mixed modes |
CN104184960A (en) * | 2014-08-19 | 2014-12-03 | 厦门美图之家科技有限公司 | Method for carrying out special effect processing on video file |
CN105912981A (en) * | 2016-03-31 | 2016-08-31 | 乐视控股(北京)有限公司 | Video transition determination method and device |
CN106294612A (en) * | 2016-08-01 | 2017-01-04 | 厦门幻世网络科技有限公司 | A kind of information processing method and equipment |
CN108876866B (en) * | 2017-05-16 | 2022-09-16 | 腾讯科技(深圳)有限公司 | Media data processing method, device and storage medium |
CN109165345B (en) * | 2018-08-07 | 2020-02-18 | 掌阅科技股份有限公司 | Transition animation generation method, electronic device and computer storage medium |
CN109451360B (en) * | 2018-11-02 | 2021-03-05 | 北京亿幕信息技术有限公司 | Video transition special effect method and engine |
CN109889882B (en) * | 2019-01-24 | 2021-06-18 | 深圳亿幕信息科技有限公司 | Method and system for synthesizing video clips |
CN110012237B (en) * | 2019-04-08 | 2020-08-07 | 厦门大学 | Video generation method and system based on interactive guidance and cloud-enhanced rendering |
CN110162343B (en) * | 2019-04-10 | 2023-04-07 | 北京梧桐车联科技有限责任公司 | Application starting method and device, electronic equipment and storage medium |
CN110288684B (en) * | 2019-05-22 | 2023-02-28 | 广西一九岂非影视传媒有限公司 | Method and system for rapidly generating two-dimensional animation based on shadow play preview |
CN111614912B (en) * | 2020-05-26 | 2023-10-03 | 北京达佳互联信息技术有限公司 | Video generation method, device, equipment and storage medium |
CN111787395B (en) * | 2020-05-27 | 2023-04-18 | 北京达佳互联信息技术有限公司 | Video generation method and device, electronic equipment and storage medium |
CN111835986B (en) * | 2020-07-09 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Video editing processing method and device and electronic equipment |
CN112989249B (en) * | 2021-02-19 | 2024-08-13 | 北京皮尔布莱尼软件有限公司 | Page display method, computing device and storage medium |
-
2021
- 2021-08-27 CN CN202110998194.9A patent/CN113627994B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018214772A1 (en) * | 2017-05-22 | 2018-11-29 | 腾讯科技(深圳)有限公司 | Media data processing method and apparatus, and storage medium |
WO2019192416A1 (en) * | 2018-04-03 | 2019-10-10 | 阿里巴巴集团控股有限公司 | Video processing method and device therefor, and storage medium and electronic product |
Also Published As
Publication number | Publication date |
---|---|
CN113627994A (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11282116B2 (en) | Image quality assessment to merchandise an item | |
US20220172476A1 (en) | Video similarity detection method, apparatus, and device | |
WO2020259510A1 (en) | Method and apparatus for detecting information embedding region, electronic device, and storage medium | |
US20100217671A1 (en) | Method and apparatus for extracting advertisement keywords in association with situations of video scenes | |
CN111222571B (en) | Image special effect processing method and device, electronic equipment and storage medium | |
CN109408639A (en) | A kind of barrage classification method, device, equipment and storage medium | |
KR102763189B1 (en) | Media annotations with product source links | |
US9449231B2 (en) | Computerized systems and methods for generating models for identifying thumbnail images to promote videos | |
CN104041063B (en) | Method, platform and system for making video related information base and playing video | |
US10721519B2 (en) | Automatic generation of network pages from extracted media content | |
CN107633433A (en) | The checking method and device of advertisement | |
CN115022732B (en) | Video generation method, device, equipment and medium | |
CN111243061A (en) | A method, device and system for generating a commodity picture | |
US9818044B2 (en) | Content update suggestions | |
CN119228443B (en) | A method and system for generating short video advertisements | |
CN113297416B (en) | Video data storage method, device, electronic device and readable storage medium | |
JP6031210B1 (en) | Sales prediction device, sales prediction method, and program | |
CN116976299A (en) | Advertisement generation method, device, equipment and storage medium | |
US20190327537A1 (en) | Obtaining Viewer Demographics Through Advertisement Selections | |
CN112749660A (en) | Method and equipment for generating video content description information | |
CN105260459A (en) | Search method and apparatus | |
US20150181288A1 (en) | Video sales and marketing system | |
CN113627994B (en) | Material processing method and device for information release, electronic equipment and storage medium | |
US20210012478A1 (en) | System and method for assessing quality of media files | |
CN112990967A (en) | Advertisement creative analysis method and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |