[go: up one dir, main page]

CN114647472B - Image processing method, device, device, storage medium and program product - Google Patents

Image processing method, device, device, storage medium and program product Download PDF

Info

Publication number
CN114647472B
CN114647472B CN202210302401.7A CN202210302401A CN114647472B CN 114647472 B CN114647472 B CN 114647472B CN 202210302401 A CN202210302401 A CN 202210302401A CN 114647472 B CN114647472 B CN 114647472B
Authority
CN
China
Prior art keywords
input
node
algorithm
picture
input node
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
Application number
CN202210302401.7A
Other languages
Chinese (zh)
Other versions
CN114647472A (en
Inventor
刘纯
李振鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210302401.7A priority Critical patent/CN114647472B/en
Publication of CN114647472A publication Critical patent/CN114647472A/en
Application granted granted Critical
Publication of CN114647472B publication Critical patent/CN114647472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Embodiments of the present disclosure relate to a method, apparatus, device, storage medium, and program product for processing a picture, where the method includes: analyzing a configuration file, and constructing an algorithm operation time sequence diagram, wherein the algorithm operation time sequence diagram comprises a plurality of input nodes and algorithm operation nodes associated with the input nodes; aiming at least one input node in a plurality of input nodes, acquiring an input picture corresponding to the input node according to configuration information of the input node included in a configuration file; and sending the input picture to an algorithm running node associated with the input node so that the algorithm running node associated with the input node processes the input picture. The embodiment of the disclosure solves the problem of single input source in the image algorithm by expanding and configuring the algorithm protocol, designs the multi-input source configuration protocol of the algorithm system, and improves the function, the operation speed and the efficiency of the related algorithm.

Description

图片处理方法、装置、设备、存储介质和程序产品Image processing method, device, device, storage medium and program product

技术领域technical field

本公开涉及数据处理技术领域,尤其涉及一种图片处理方法、装置、设备、存储介质和程序产品。The present disclosure relates to the technical field of data processing, and in particular to an image processing method, device, equipment, storage medium and program product.

背景技术Background technique

现有的算法是基于一张输入图片运行生成算法结果,算法系统也是围绕这一个前提来设计的,只支持单一输入源。目前单一输入的算法系统架构无法支持和扩展新的算法能力。Existing algorithms are based on an input image to generate algorithm results. The algorithm system is also designed around this premise, and only supports a single input source. The current single-input algorithm system architecture cannot support and expand new algorithm capabilities.

发明内容Contents of the invention

为了解决上述技术问题,本公开实施例提供了一种图片处理方法、装置、设备、存储介质和程序产品,通过对算法协议进行扩充和配置,解决了图片算法中单一输入源问题,并且设计了算法系统的多输入源配置协议,提高了相关算法的运算速度和效率。In order to solve the above technical problems, the embodiments of the present disclosure provide a picture processing method, device, equipment, storage medium and program product. By expanding and configuring the algorithm protocol, the problem of a single input source in the picture algorithm is solved, and a The multi-input source configuration protocol of the algorithm system improves the operation speed and efficiency of related algorithms.

第一方面,本公开实施例提供一种图片处理方法,所述方法包括:In a first aspect, an embodiment of the present disclosure provides an image processing method, the method including:

解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;Analyzing the configuration file, constructing an algorithm running sequence diagram, wherein the algorithm running sequence diagram includes a plurality of input nodes and algorithm running nodes associated with the input nodes;

针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;For at least one input node among the plurality of input nodes, obtain an input image corresponding to the input node according to configuration information of the input node included in the configuration file;

将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。sending the input picture to the algorithm running node associated with the input node, so that the algorithm running node associated with the input node processes the input picture.

第二方面,本公开实施例提供一种图片处理装置,所述装置包括:In a second aspect, an embodiment of the present disclosure provides an image processing device, the device comprising:

时序图构建模块,用于解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;A timing diagram building module, configured to parse configuration files and construct an algorithm running timing diagram, wherein the algorithm running timing diagram includes a plurality of input nodes and algorithm running nodes associated with the input nodes;

输入图片获取模块,用于针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;An input picture acquisition module, configured to acquire an input picture corresponding to the input node according to the configuration information of the input node included in the configuration file for at least one input node among the plurality of input nodes;

输入图片发送模块,用于将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。The input picture sending module is configured to send the input picture to the algorithm running node associated with the input node, so that the algorithm running node associated with the input node processes the input picture.

第三方面,本公开实施例提供一种电子设备,所述电子设备包括:In a third aspect, an embodiment of the present disclosure provides an electronic device, and the electronic device includes:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序;storage means for storing one or more programs;

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述第一方面中任一项所述的图片处理方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the image processing method according to any one of the first aspect above.

第四方面,本公开实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述第一方面中任一项所述的图片处理方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the image processing method described in any one of the above-mentioned first aspects is implemented.

第五方面,本公开实施例提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,该计算机程序或指令被处理器执行时实现如上述第一方面中任一项所述的图片处理方法。In a fifth aspect, an embodiment of the present disclosure provides a computer program product, the computer program product includes a computer program or an instruction, and when the computer program or instruction is executed by a processor, the image processing described in any one of the above first aspects is realized method.

本公开实施例提供了一种图片处理方法、装置、设备、存储介质和程序产品,所述方法包括:解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。本公开实施例通过对算法协议进行扩充和配置,解决了图片算法中单一输入源问题,并且设计了算法系统的多输入源配置协议,提高了相关算法的运算速度和效率。Embodiments of the present disclosure provide an image processing method, device, device, storage medium, and program product. The method includes: parsing a configuration file, and constructing an algorithm running time sequence diagram, wherein the algorithm running time sequence diagram includes a plurality of input nodes and an algorithm running node associated with the input node; for at least one input node in a plurality of input nodes, according to the configuration information of the input node included in the configuration file, the input picture corresponding to the input node is obtained; the input picture is sent to The algorithm running node associated with the input node, so that the algorithm running node associated with the input node processes the input picture. The embodiment of the present disclosure solves the problem of a single input source in the image algorithm by expanding and configuring the algorithm protocol, and designs a multi-input source configuration protocol for the algorithm system, which improves the operation speed and efficiency of related algorithms.

附图说明Description of drawings

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.

图1为本公开实施例中的一种图片处理方法的流程图;FIG. 1 is a flowchart of an image processing method in an embodiment of the present disclosure;

图2为本公开实施例中的一种单输入算法运行时序图;FIG. 2 is a timing diagram of a single-input algorithm running in an embodiment of the present disclosure;

图3为本公开实施例中的一种双输入算法运行时序图;FIG. 3 is a timing diagram of a double-input algorithm running in an embodiment of the present disclosure;

图4为本公开实施例中的另一种双输入算法运行时序图;FIG. 4 is a timing diagram of another double-input algorithm in an embodiment of the present disclosure;

图5为本公开实施例中的一种多输入算法运行时序图;Fig. 5 is a sequence diagram of running a multi-input algorithm in an embodiment of the present disclosure;

图6为本公开实施例中的一种配置管理装置的结构示意图;FIG. 6 is a schematic structural diagram of a configuration management device in an embodiment of the present disclosure;

图7为本公开实施例中的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and/or executed in parallel. Additionally, method embodiments may include additional steps and/or omit performing illustrated steps. The scope of the present disclosure is not limited in this respect.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "comprise" and its variations are open-ended, ie "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one further embodiment"; the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms will be given in the description below.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more" multiple".

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are used for illustrative purposes only, and are not used to limit the scope of these messages or information.

下面将结合附图,对本申请实施例提出的图片处理方法进行详细介绍。The image processing method proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

图1为本公开实施例中的一种图片处理方法的流程图,本实施例可适用于对图片进行算法处理的情况,该方法可以由图片处理装置执行,该配置管理装置可以采用软件和/或硬件的方式实现,该配置管理装置可配置于电子设备中。Fig. 1 is a flow chart of a picture processing method in an embodiment of the present disclosure. This embodiment is applicable to the situation where an algorithm is used to process a picture. The method can be executed by a picture processing device, and the configuration management device can use software and/or or hardware, the configuration management device can be configured in electronic equipment.

例如:所述电子设备可以是移动终端、固定终端或便携式终端,例如移动手机、站点、单元、设备、多媒体计算机、多媒体平板、互联网节点、通信器、台式计算机、膝上型计算机、笔记本计算机、上网本计算机、平板计算机、个人通信系统(PCS)设备、个人导航设备、个人数字助理(PDA)、音频/视频播放器、数码相机/摄像机、定位设备、电视接收器、无线电广播接收器、电子书设备、游戏设备或者其任意组合,包括这些设备的配件和外设或者其任意组合。For example: the electronic equipment may be a mobile terminal, a fixed terminal or a portable terminal, such as a mobile handset, a station, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, Netbook Computers, Tablet Computers, Personal Communication System (PCS) Devices, Personal Navigation Devices, Personal Digital Assistants (PDAs), Audio/Video Players, Digital Still/Video Cameras, Pointing Devices, Television Receivers, Radio Broadcast Receivers, Electronic Books devices, gaming devices, or any combination thereof, including accessories and peripherals for such devices, or any combination thereof.

再如:所述电子设备可以是服务器,其中,所述服务器可以是实体服务器,也可以是云服务器,服务器可以是一个服务器,或者服务器集群。For another example: the electronic device may be a server, wherein the server may be a physical server or a cloud server, and the server may be a server or a server cluster.

如图1所述,本公开实施例提供的图片处理方法主要包括如下步骤:As shown in Figure 1, the image processing method provided by the embodiment of the present disclosure mainly includes the following steps:

S101、解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点。S101. Parse the configuration file, and build an algorithm running sequence diagram, wherein the algorithm running sequence diagram includes a plurality of input nodes and algorithm running nodes associated with the input nodes.

现有的短视频图像处理算法都是基于一张输入图片运行计算生成的算法结果,短视频算法系统往往也是围绕着单一输入源来设计的。如图2所示为原有的算法运行时序图,此类算法配置只支持单一输入图片。其中相机帧21为输入图片,输入图片通过算法系统输入节点blit_022按照预先配置好的算法进行相应的算法处理,例如人脸算法节点face_023、背景分割算法节点matting_024背景分割算法节点以及表情GAN(GenerativeAdversarial Network)算法节点idream_025。Existing short video image processing algorithms are based on the algorithm results generated by running calculations on an input image, and short video algorithm systems are often designed around a single input source. As shown in Figure 2, the original algorithm running sequence diagram, this type of algorithm configuration only supports a single input image. The camera frame 21 is the input picture, and the input picture is processed through the algorithm system input node blit_022 according to the pre-configured algorithm, such as face algorithm node face_023, background segmentation algorithm node matting_024 background segmentation algorithm node and expression GAN (Generative Adversarial Network ) algorithm node idream_025.

但随着算法计算量的不断增加以及算法能力的迭代更新,一些短视频算法需要支持多张图片作为输入,例如互动抠图算法、ColorMapping算法,再或者某以特效道具需要算法基于相机视频帧运行,用户自定义图片运行另一部分算法,此类算法均要求输入源是多个,因此原有的算法配置已经不能满足需求。本公开实施例提出了一种基于算法运行时序图结构的多输入算法系统,可以增强原有的算法系统,实现多通道输入和算法并行处理。However, with the continuous increase of algorithm calculations and the iterative update of algorithm capabilities, some short video algorithms need to support multiple images as input, such as interactive map-matching algorithm, ColorMapping algorithm, or some special effects props require algorithms to run based on camera video frames , the user-defined image runs another part of the algorithm, which requires multiple input sources, so the original algorithm configuration can no longer meet the requirements. The embodiment of the present disclosure proposes a multi-input algorithm system based on an algorithm running sequence diagram structure, which can enhance the original algorithm system and realize multi-channel input and algorithm parallel processing.

其中,所述配置文件可以理解为算法的配置信息,通过代码语言将图形处理器(Graphics Processing Unit,GPU)数据与图像处理算法之间联系起来,配置文件是通过代码等计算机语言处理二者之间交流即将GPU数据按照预设传送至相关算法进行处理,算法运行时序图是通过有向图的表现形式将GPU数据与相关算法之间的运行关系。Wherein, the configuration file can be understood as the configuration information of the algorithm, and links the graphics processing unit (Graphics Processing Unit, GPU) data with the image processing algorithm through the code language, and the configuration file is used to process the relationship between the two through the computer language such as code. The inter-communication is to transmit the GPU data to the relevant algorithm for processing according to the preset. The algorithm running sequence diagram is the operation relationship between the GPU data and the relevant algorithm through the representation of the directed graph.

其中,所述输入节点可以理解为算法运行时序图中用于接收输入图片的节点。其中,所述输入图片可以包括相机流中的相机帧,还可以包括静态的图片纹理。本实施例提供的算法运行时序图中包括至少2个输入节点。可选的,算法运行时序图中包括2个输入节点,其中一个输入节点用于接收相机流中的相机帧,另一个输入节点用于静态的图片纹理,其中静态的图片纹理可以是用户上传的相册中的图片纹理,或者相机流中抓取需要单独处理的图片纹理。需要说明的是,输入节点接收到的输入图片,可以基于配置或者脚本系统切换,例如接收相机流中的相机帧的输入节点可以接收静态的图片纹理,接收静态的图片纹理的输入节点也可以接收相机流中的相机帧。Wherein, the input node can be understood as a node in the algorithm running sequence diagram for receiving input pictures. Wherein, the input picture may include camera frames in the camera stream, and may also include static picture textures. The algorithm running sequence diagram provided in this embodiment includes at least two input nodes. Optionally, two input nodes are included in the algorithm running sequence diagram, one of which is used to receive camera frames in the camera stream, and the other input node is used for static image textures, where static image textures can be uploaded by users The image texture in the photo album, or the image texture captured in the camera stream that needs to be processed separately. It should be noted that the input image received by the input node can be switched based on the configuration or the script system. For example, the input node receiving the camera frame in the camera stream can receive the static image texture, and the input node receiving the static image texture can also receive the Camera frames in the camera stream.

需要说明的是,本实施例中仅对输入节点的个数进行说明,而非限定。It should be noted that, in this embodiment, only the number of input nodes is described, not limited.

其中,算法运行节点是指与输入节点有直接或间接联系、且执行预设的算法逻辑的节点。例如:人脸算法节点用于执行人脸识别检测算法,表情GAN算法用于执行人脸面部表情的识别算法。Wherein, the algorithm running node refers to a node that has direct or indirect connection with the input node and executes preset algorithmic logic. For example: the face algorithm node is used to implement the face recognition detection algorithm, and the expression GAN algorithm is used to implement the facial expression recognition algorithm.

在一个可能的实施方式中,所述配置文件中还包括各个节点的定义以及各个节点之间的依赖关系,解析配置文件,构建算法运行时序图,包括:基于配置文件中各个节点的定义以及各个节点之间的依赖关系,构建算法运行时序图。In a possible implementation, the configuration file also includes the definition of each node and the dependencies between each node, parsing the configuration file, and constructing an algorithm running sequence diagram, including: based on the definition of each node in the configuration file and each Dependency relationship between nodes, build algorithm running sequence diagram.

具体的,配置文件中需要定义所有的节点信息,例如“nodes”定义算法节点,可以定义节点的配置参数,其中“intParam”算法定义的int类型参数,即整数型类型参数,“floatParam”算法定义的float类型参数,即浮点型类型参数,“stringParam”算法定义的string类型参数,即引用类型参数。配置文件中包括各个节点之间的依赖关系,例如“links”来定义节点的连接依赖关系,依赖关系也可以理解为两个节点之间运行的顺序关系,例如A节点执行完才能执行B,即B依赖于A。需要说明的是,上述节点的定义类型情况仅为示例性说明,而非限定。Specifically, all node information needs to be defined in the configuration file. For example, "nodes" defines the algorithm node, and the configuration parameters of the node can be defined. The "intParam" algorithm defines the int type parameter, that is, the integer type parameter, and the "floatParam" algorithm defines The float type parameter is a floating point type parameter, and the string type parameter defined by the "stringParam" algorithm is a reference type parameter. The configuration file includes dependencies between nodes, such as "links" to define the connection dependencies of nodes. Dependencies can also be understood as the sequence relationship between two nodes. For example, B can only be executed after node A is executed, that is B depends on A. It should be noted that the definition types of the above nodes are only exemplary descriptions rather than limitations.

在本实施例中,通过配置文件来构建算法运行时序图,由于配置文件修改方便,使得可以根据不同的应用场景方便地对算法运行时序图进行修改。In this embodiment, the configuration file is used to construct the algorithm running sequence diagram. Since the configuration file is easy to modify, the algorithm running sequence diagram can be conveniently modified according to different application scenarios.

S102、针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片。S102. For at least one input node among the plurality of input nodes, acquire an input picture corresponding to the input node according to configuration information of the input node included in the configuration file.

具体的,配置文件定义了输入节点以及相关算法的依赖关系,输入节点根据其对应的配置信息获取输入图片。例如输入节点1对应的是相机帧的相关算法,比如背景分割算法,输入节点2对应的是用户自定义图片的算法,比如人脸算法。当输入的是相机帧数据时,输入节点1来获取相机帧,当输入的是图片纹理数据时,输入节点2来获取图片纹理。Specifically, the configuration file defines dependencies between input nodes and related algorithms, and the input nodes obtain input images according to their corresponding configuration information. For example, input node 1 corresponds to algorithms related to camera frames, such as background segmentation algorithms, and input node 2 corresponds to algorithms for user-defined images, such as face algorithms. When the input is camera frame data, input node 1 to obtain the camera frame, and when the input is image texture data, input node 2 to obtain the image texture.

在一个可能的实施方式中,所述输入节点的配置信息包括:输入节点对应的输入通道;根据配置文件中包括的输入节点的配置信息获取对应的输入图片,包括:通过所述输入节点对应的输入通道获取输入节点对应的输入图片。In a possible implementation, the configuration information of the input node includes: the input channel corresponding to the input node; obtaining the corresponding input picture according to the configuration information of the input node included in the configuration file includes: using the input channel corresponding to the input node The input channel obtains the input image corresponding to the input node.

具体的,本公开实施例为了支持多输入节点需要扩展已有的算法系统和输入节点的配置信息,输入节点的配置信息可通过固定相应的接口通道来实现。例如blit_1节点对应的键值为data_1,需要消费data_1输入图片数据,可以通过输入通道1实现,对应代码为“input_channel=1”,输入图片通过通道1的方式传输至节点blit_1,从而进行节点blit_1的相关算法。Specifically, in order to support multiple input nodes, the embodiments of the present disclosure need to expand the existing algorithm system and the configuration information of the input nodes, and the configuration information of the input nodes can be realized by fixing corresponding interface channels. For example, the key value corresponding to the blit_1 node is data_1, and it is necessary to consume data_1 input image data, which can be realized through the input channel 1, and the corresponding code is "input_channel=1", and the input image is transmitted to the node blit_1 through the channel 1, so as to carry out the node blit_1 related algorithms.

在本实施例中,通过输入通道来确定输入节点对应的输入图片,使得输入图片可以准确输入至其对应的输入节点。In this embodiment, the input picture corresponding to the input node is determined through the input channel, so that the input picture can be accurately input to its corresponding input node.

在一个可能的实施方式中,所述输入节点的配置信息包括:输入节点对应的参数类型;根据配置文件中包括的输入节点的配置信息获取对应的输入图片,包括:基于所述输入节点对应的参数类型获取输入节点对应的输入图片。In a possible implementation, the configuration information of the input node includes: the parameter type corresponding to the input node; obtaining the corresponding input picture according to the configuration information of the input node included in the configuration file includes: The parameter type gets the input image corresponding to the input node.

具体的,输入节点通过数据的参数类型获取相应的输入图片数据。例如blit_1节点对应的键值为src_data_1,需要消费src_data_1输入图片数据,可以通过数据的参数类型src实现,对应代码为“input_src=src_data_1”,输入图片通过参数类型的方式传输至节点blit_1,从而进行节点blit_1的相关算法。Specifically, the input node obtains the corresponding input image data through the parameter type of the data. For example, the key value corresponding to the blit_1 node is src_data_1, and it is necessary to consume src_data_1 input image data, which can be realized through the parameter type src of the data, and the corresponding code is "input_src=src_data_1", and the input image is transmitted to the node blit_1 through the parameter type, so that the node The related algorithm of blit_1.

在本实施例中,通过参数类型来确定输入节点对应的输入图片,使得输入图片可以准确输入至其对应的输入节点。In this embodiment, the input picture corresponding to the input node is determined through the parameter type, so that the input picture can be accurately input to its corresponding input node.

需要说明的是,本公开实施例对输入节点获取输入图片数据的方式仅限于说明,不做具体限定。It should be noted that, in the embodiment of the present disclosure, the manner in which the input node obtains the input picture data is only for illustration, and no specific limitation is made.

S103、将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。S103. Send the input picture to an algorithm running node associated with the input node, so that the algorithm running node associated with the input node processes the input picture.

其中,算法主要有中央处理器CPU(Central Processing Unit,CPU)来执行,例如主要针对视频帧的人脸关键点位置的算法、基于“深度学习”神经网络算法等,本公开实施例对具体算法不做具体限定。Among them, the algorithm is mainly executed by the central processing unit CPU (Central Processing Unit, CPU), such as the algorithm mainly for the key point position of the face of the video frame, the neural network algorithm based on "deep learning", etc., the embodiment of the present disclosure is specific to the algorithm Not specifically limited.

在一个可能的实施方式中,与输入节点关联的算法运行节点对所述输入图片进行处理,包括:当每个算法运行节点仅与一个输入节点关联时,与输入节点关联的算法运行节点仅对与之关联的输入节点对应的输入图片进行处理。In a possible implementation, the algorithm running node associated with the input node processes the input image, including: when each algorithm running node is only associated with one input node, the algorithm running node associated with the input node only The input image corresponding to the input node associated with it is processed.

具体的,算法仅与一个输入节点关联,如图3所示,背景分割算法matting_0节点36仅与输入blit_0节点1相关联,与输入blit_1节点2不存在关系,即使是两个输入节点都需要进行人脸算法,但分别有两个人脸算法face_0节点35和face_1节点38运行。Specifically, the algorithm is only associated with one input node, as shown in Figure 3, the background segmentation algorithm matting_0 node 36 is only associated with the input blit_0 node 1, and has no relationship with the input blit_1 node 2, even if two input nodes need to be face algorithm, but there are two face algorithm face_0 nodes 35 and face_1 nodes 38 running respectively.

具体的,如图3所示,输入blit_0节点33用于接收相机流中的相机帧31,输入blit_1节点34为用户自定义上传图片纹理32,通过blit_0节点输入的相机帧需要分别输入人脸算法face_0节点35和背景分割算法matting_0节点36,通过blit_1节点输入的图片纹理需要分别输入人脸算法face_1节点38和表情GAN算法idream_0节点37,以及人脸算法face_1节点38对图片纹理处理结束后输入至表情GAN算法idream_0节点37。算法系统执行完后的算法结果交给渲染系统做后期处理。Specifically, as shown in Figure 3, the input blit_0 node 33 is used to receive the camera frame 31 in the camera stream, the input blit_1 node 34 is the user-defined uploaded image texture 32, and the camera frames input through the blit_0 node need to be input into the face algorithm respectively The face_0 node 35 and the background segmentation algorithm matting_0 node 36, the image texture input through the blit_1 node needs to be input to the face algorithm face_1 node 38 and the expression GAN algorithm idream_0 node 37, and the face algorithm face_1 node 38 after the image texture processing is completed and input to Expression GAN algorithm idream_0 node 37. After the algorithm system is executed, the algorithm result is handed over to the rendering system for post-processing.

例如,在短视频平台中母亲节表情GAN道具玩法,视频帧数据需要跑背景分割算法,用户自定义上传的图片需要跑人脸和表情GAN算法,可以通过图像配置文件的方式,配置输入第一路输入节点blit_0连接背景分割算法,第二路输入节点blit_1连接到人脸和表情GAN算法。For example, in the mother’s day expression GAN props gameplay on the short video platform, the video frame data needs to run the background segmentation algorithm, and the user-defined uploaded pictures need to run the face and expression GAN algorithm. You can configure the input first through the image configuration file. The first input node blit_0 is connected to the background segmentation algorithm, and the second input node blit_1 is connected to the face and expression GAN algorithm.

另外一例子中,短视频平台中的互动抠图算法需要输入视频帧和一张mask图,则可以通过图像配置文件的方式,配置第一路输入节点blit_0和第二路输入节点blit_1都跟这个互动抠图算法节点连接起来,只是blit_0处理视频帧,blit_1处理mask图。In another example, the interactive matting algorithm in the short video platform needs to input video frames and a mask image, so the first input node blit_0 and the second input node blit_1 can be configured with this image configuration file. The interactive matting algorithm nodes are connected, only blit_0 processes the video frame, and blit_1 processes the mask image.

本实施例中,算法运行节点仅处理一个输入节点接收的输入图片,降低配置文件的编写难度。In this embodiment, the algorithm running node only processes the input image received by one input node, which reduces the difficulty of writing configuration files.

在一个可能的实施方式中,与输入节点关联的算法运行节点对所述输入图片进行处理,包括:当同一个算法运行节点与至少两个输入节点关联时,该算法运行节点对至少两个输入节点关联输入图片进行处理。In a possible implementation, the algorithm running node associated with the input node processes the input image, including: when the same algorithm running node is associated with at least two input nodes, the algorithm running node processes at least two input nodes Nodes are associated with input images for processing.

具体的,同一算法与多个输入节点关联,如图4所示,色彩映射算法colormapping_0节点47与输入blit_0节点43和输入blit_1节点44都相关联,在这种应用场景中,色彩映射算法colormapping_0节点47需要两张输入图片,分别是相机帧图片和参考图片纹理,从而计算出最终的色彩效果。Specifically, the same algorithm is associated with multiple input nodes. As shown in FIG. 4 , the colormapping algorithm colormapping_0 node 47 is associated with both the input blit_0 node 43 and the input blit_1 node 44. In this application scenario, the colormapping algorithm colormapping_0 node 47 needs two input pictures, which are the camera frame picture and the reference picture texture, so as to calculate the final color effect.

具体的,如图4所示,输入blit_0节点43用于接收相机流中的相机帧41,输入blit_1节点44为用户自定义上传图片纹理42,通过blit_0节点输入的相机帧需要分别输入人脸算法face_0节点45和背景分割算法matting_0节点46,通过blit_1节点44输入的图片纹理需要色彩映射算法colormapping_0节点47,同时,通过blit_0节点输入的相机帧也需要输入色彩映射算法colormapping_0节点47,即色彩映射算法colormapping_0节点47需要两张输入图片,分别是相机帧图片和参考图片纹理,从而计算出最终的色彩效果。算法系统执行完后的算法结果交给渲染系统做后期处理。Specifically, as shown in Figure 4, the input blit_0 node 43 is used to receive the camera frame 41 in the camera stream, the input blit_1 node 44 is the user-defined uploaded image texture 42, and the camera frames input through the blit_0 node need to be input into the face algorithm respectively The face_0 node 45 and the background segmentation algorithm matting_0 node 46, the image texture input through the blit_1 node 44 needs the color mapping algorithm colormapping_0 node 47, and at the same time, the camera frame input through the blit_0 node also needs to input the color mapping algorithm colormapping_0 node 47, that is, the color mapping algorithm The colormapping_0 node 47 needs two input pictures, namely the camera frame picture and the reference picture texture, so as to calculate the final color effect. After the algorithm system is executed, the algorithm result is handed over to the rendering system for post-processing.

本公开实施例中对输入节点1和输入节点2并不作具体限定,例如blit_0可以处理用户上传图片数据,blit_1也可以处理视频帧数据。In the embodiment of the present disclosure, the input node 1 and the input node 2 are not specifically limited. For example, blit_0 can process image data uploaded by users, and blit_1 can also process video frame data.

本实施例中,算法运行节点与之关联的输入节点接收到的输入图片,增加算法运行节点的功能,简化算法运行时序图。In this embodiment, the input picture received by the input node associated with the algorithm running node increases the function of the algorithm running node and simplifies the algorithm running sequence diagram.

本公开实施例提供的算法系统系统设计上不限于只支持blit_0和blit_1两个输入,可以任意拓展,支持3个甚至更多,都可以通过配置文件或者脚本系统来实现。如图5所示,512输入图片1等等任意N个输入图片,输入blit_0节点521接收相机帧511,输入blit_1节点522接收输入图片1,……,输入blit_N节点52N接收输入图片N。然后分别输入其各自关联的算法运行节点,进行算法处理。例如:输入blit_0节点521接收的相机帧511分别输入algA_0节点531和algB_0节点532,输入blit_1节点522接收的输入图片1输入至algC_0节点533,输入blit_N节点52N接收的输入图片N输入至algN_0节点53N。The design of the algorithm system provided by the embodiment of the present disclosure is not limited to only supporting two inputs of blit_0 and blit_1, but can be expanded arbitrarily, supporting 3 or more, all of which can be realized through a configuration file or a script system. As shown in Figure 5, 512 inputs any N input pictures such as picture 1, inputs blit_0 node 521 to receive camera frame 511, inputs blit_1 node 522 to receive input picture 1, ..., inputs blit_N node 52N to receive input picture N. Then input their respective associated algorithm running nodes for algorithm processing. For example: input the camera frame 511 received by the blit_0 node 521 into the algA_0 node 531 and algB_0 node 532 respectively, input the input image 1 received by the blit_1 node 522 into the algC_0 node 533, input the input image N received by the blit_N node 52N into the algN_0 node 53N .

在一个可能的实施方式中,所述图片处理方法还包括:通过应用程序接口或者脚本方式将待处理图片发送至图片数据库;根据所述输入节点的配置信息获取对应的输入图片,包括:根据所述输入节点的配置信息从所述图片数据库中获取对应的输入图片。In a possible implementation manner, the picture processing method further includes: sending the picture to be processed to the picture database through an application program interface or a script; acquiring the corresponding input picture according to the configuration information of the input node, including: according to the According to the configuration information of the input node, the corresponding input picture is acquired from the picture database.

具体的,应用程序接口API(Application Programming Interface,API)是预先定义的接口,如函数、http接口等,或者是指软件系统不同组成部分衔接的约定。脚本文件(Script)是指含有bind和alias等命令的集合,此类集合存为一个独立的文件然后在需要时执行以方便使用。本公开实施例中的相机帧、用户上传的图片或其他定义的图片通过API或Script发送至图片数据库,后续处理流程不再赘述。Specifically, an application programming interface API (Application Programming Interface, API) is a predefined interface, such as a function, an http interface, etc., or refers to a contract for connecting different components of a software system. A script file (Script) refers to a collection of commands such as bind and alias, which is stored as an independent file and then executed when needed for convenience. In the embodiments of the present disclosure, camera frames, pictures uploaded by users or other defined pictures are sent to the picture database through API or Script, and the subsequent processing flow will not be repeated.

在本实施例中,把输入图片存储到输入图片数据库,算法系统的多输入节点可以根据节点自身的参数配置去图片数据库获取对应的输入图片。In this embodiment, the input picture is stored in the input picture database, and the multi-input node of the algorithm system can go to the picture database to obtain the corresponding input picture according to the parameter configuration of the node itself.

图6为本公开实施例中的一种图片处理装置的结构示意图,本实施例可适用于对图片进行算法处理的情况,该图片处理装置可以采用软件和/或硬件的方式实现,该图片处理装置可配置于电子设备中。FIG. 6 is a schematic structural diagram of a picture processing device in an embodiment of the present disclosure. This embodiment is applicable to the case of performing algorithmic processing on a picture. The picture processing device can be implemented by software and/or hardware. The picture processing The device can be configured in electronic equipment.

如图6所述,本公开实施例提供的图片处理装置主要包括时序图构建模块61、输入图片获取模块62和输入图片发送模块63。As shown in FIG. 6 , the picture processing device provided by the embodiment of the present disclosure mainly includes a sequence diagram construction module 61 , an input picture acquisition module 62 and an input picture sending module 63 .

其中,时序图构建模块61,用于解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;Wherein, the sequence diagram construction module 61 is used to analyze the configuration file and construct the algorithm operation sequence diagram, wherein the algorithm operation sequence diagram includes a plurality of input nodes and algorithm operation nodes associated with the input nodes;

输入图片获取模块62,用于针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;The input picture obtaining module 62 is used for at least one input node in a plurality of input nodes, according to the configuration information of the input node included in the configuration file, to obtain the input picture corresponding to the input node;

输入图片发送模块63,用于将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。The input picture sending module 63 is configured to send the input picture to the algorithm running node associated with the input node, so that the algorithm running node associated with the input node processes the input picture.

本公开实施例提供了一种图片处理装置,用于执行如下流程:解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。An embodiment of the present disclosure provides an image processing device for performing the following process: parsing a configuration file and constructing an algorithm running sequence diagram, wherein the algorithm running sequence diagram includes a plurality of input nodes and algorithms associated with the input nodes Run the node; for at least one input node among the plurality of input nodes, obtain an input image corresponding to the input node according to the configuration information of the input node included in the configuration file; send the input image to an algorithm associated with the input node to run node, so that the algorithm running node associated with the input node processes the input picture.

在一个可能的实施方式中,所述输入节点的配置信息包括:输入节点对应的输入接口;输入图片获取模块62,具体用于通过所述输入节点对应的输入接口获取输入节点对应的输入图片。In a possible implementation manner, the configuration information of the input node includes: an input interface corresponding to the input node; an input picture acquisition module 62, specifically configured to acquire the input picture corresponding to the input node through the input interface corresponding to the input node.

在一个可能的实施方式中,所述输入节点的配置信息包括:输入节点对应的参数类型;输入图片获取模块62,具体用于基于所述输入节点对应的参数类型获取输入节点对应的输入图片。In a possible implementation manner, the configuration information of the input node includes: a parameter type corresponding to the input node; an input picture acquisition module 62, specifically configured to acquire an input picture corresponding to the input node based on the parameter type corresponding to the input node.

在一个可能的实施方式中,时序图构建模块61,具体用于基于配置文件中各个节点的定义以及各个节点之间的依赖关系,构建算法运行时序图。In a possible implementation manner, the timing diagram construction module 61 is specifically configured to construct an algorithm running timing diagram based on the definition of each node in the configuration file and the dependencies between each node.

在一个可能的实施方式中,与输入节点关联的算法运行节点对所述输入图片进行处理,包括:当每个算法运行节点仅与一个输入节点关联时,与输入节点关联的算法运行节点仅对与之关联的输入节点对应的输入图片进行处理。In a possible implementation, the algorithm running node associated with the input node processes the input image, including: when each algorithm running node is only associated with one input node, the algorithm running node associated with the input node only The input image corresponding to the input node associated with it is processed.

在一个可能的实施方式中,与输入节点关联的算法运行节点对所述输入图片进行处理,包括:当同一个算法运行节点与至少两个输入节点关联时,该算法运行节点对至少两个输入节点关联输入图片进行处理。In a possible implementation, the algorithm running node associated with the input node processes the input image, including: when the same algorithm running node is associated with at least two input nodes, the algorithm running node processes at least two input nodes Nodes are associated with input images for processing.

在一个可能的实施方式中,所述装置还包括:待处理图片发送模块,用于通过应用程序接口或者脚本方式将待处理图片发送至图片数据库;输入图片获取模块62,还用于根据所述输入节点的配置信息从所述图片数据库中获取对应的输入图片。In a possible implementation, the device further includes: a picture-to-be-processed sending module, configured to send the picture to be processed to the picture database through an application program interface or a script; an input picture acquisition module 62, also used to The configuration information of the input node acquires the corresponding input picture from the picture database.

本公开实施例提供的图片处理装置,可执行本公开实施例所提供的图片处理方法所执行的步骤,具体执行步骤和有益效果此处不在赘述。The image processing device provided by the embodiment of the present disclosure can execute the steps performed by the image processing method provided by the embodiment of the present disclosure, and the specific execution steps and beneficial effects will not be repeated here.

图7为本公开实施例中的一种电子设备的结构示意图。下面具体参考图7,其示出了适于用来实现本公开实施例中的电子设备700的结构示意图。本公开实施例中的电子设备700可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、可穿戴终端设备等等的移动终端以及诸如数字TV、台式计算机、智能家居设备等等的固定终端。图7示出的终端设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring specifically to FIG. 7 , it shows a schematic structural diagram of an electronic device 700 suitable for implementing an embodiment of the present disclosure. The electronic device 700 in the embodiment of the present disclosure may include, but not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), vehicle-mounted terminals ( Mobile terminals such as car navigation terminals), wearable terminal devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc. The terminal device shown in FIG. 7 is only an example, and should not limit the functions and scope of use of this embodiment of the present disclosure.

如图7所示,电子设备700可以包括处理装置(例如中央处理器、图形处理器等)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储装置708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理以实现如本公开所述的实施例的图片渲染方法。在RAM 703中,还存储有终端设备700操作所需的各种程序和数据。处理装置701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7 , an electronic device 700 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) The program in the memory (RAM) 703 executes various appropriate actions and processes to realize the picture rendering method according to the embodiment of the present disclosure. In the RAM 703, various programs and data necessary for the operation of the terminal device 700 are also stored. The processing device 701 , ROM 702 , and RAM 703 are connected to each other through a bus 704 . An input/output (I/O) interface 705 is also connected to the bus 704 .

通常,以下装置可以连接至I/O接口705:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置706;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置707;包括例如磁带、硬盘等的存储装置708;以及通信装置709。通信装置709可以允许终端设备700与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有各种装置的终端设备700,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 707 such as a computer; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication means 709 may allow the terminal device 700 to perform wireless or wired communication with other devices to exchange data. While FIG. 7 shows a terminal device 700 having various means, it should be understood that implementing or possessing all of the illustrated means is not a requirement. More or fewer means may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码,从而实现如上所述的页面跳转方法。在这样的实施例中,该计算机程序可以通过通信装置709从网络上被下载和安装,或者从存储装置708被安装,或者从ROM 702被安装。在该计算机程序被处理装置701执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program includes program code for executing the method shown in the flow chart, thereby realizing the above The page jump method described above. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 709 , or from storage means 708 , or from ROM 702 . When the computer program is executed by the processing device 701, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future-developed network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium (eg, communication network) interconnections. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该终端设备执行时,使得该终端设备:解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the terminal device, the terminal device: parses the configuration file, constructs an algorithm running sequence diagram, wherein the algorithm running sequence diagram Including a plurality of input nodes and an algorithm running node associated with the input nodes; for at least one input node in the plurality of input nodes, according to the configuration information of the input node included in the configuration file, the input image corresponding to the input node is obtained; The input picture is sent to the algorithm running node associated with the input node, so that the algorithm running node associated with the input node processes the input picture.

可选的,当上述一个或者多个程序被该终端设备执行时,该终端设备还可以执行上述实施例所述的其他步骤。Optionally, when the above one or more programs are executed by the terminal device, the terminal device may also perform other steps described in the foregoing embodiments.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

根据本公开的一个或多个实施例,本公开提供了一种图片处理方法,包括:解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing method, including: parsing a configuration file, and constructing an algorithm running sequence graph, wherein the algorithm running sequence graph includes a plurality of input nodes and the The algorithm operation node associated with the input node; for at least one input node among the plurality of input nodes, according to the configuration information of the input node included in the configuration file, the input picture corresponding to the input node is obtained; the input picture is sent to the The algorithm running node associated with the node enables the algorithm running node associated with the input node to process the input picture.

根据本公开的一个或多个实施例,本公开提供了一种图片处理方法,所述输入节点的配置信息包括:输入节点对应的输入接口;根据配置文件中包括的输入节点的配置信息获取对应的输入图片,包括:通过所述输入节点对应的输入接口获取输入节点对应的输入图片。According to one or more embodiments of the present disclosure, the present disclosure provides a picture processing method, the configuration information of the input node includes: the input interface corresponding to the input node; according to the configuration information of the input node included in the configuration file, the corresponding The input picture includes: obtaining the input picture corresponding to the input node through the input interface corresponding to the input node.

根据本公开的一个或多个实施例,本公开提供了一种图片处理方法,所述输入节点的配置信息包括:输入节点对应的参数类型;根据配置文件中包括的输入节点的配置信息获取对应的输入图片,包括:基于所述输入节点对应的参数类型获取输入节点对应的输入图片。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing method, the configuration information of the input node includes: the parameter type corresponding to the input node; according to the configuration information of the input node included in the configuration file, the corresponding The input picture includes: acquiring the input picture corresponding to the input node based on the parameter type corresponding to the input node.

根据本公开的一个或多个实施例,本公开提供了一种图片处理方法,所述配置文件中还包括各个节点的定义以及各个节点之间的依赖关系,解析配置文件,构建算法运行时序图,包括:基于配置文件中各个节点的定义以及各个节点之间的依赖关系,构建算法运行时序图。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing method, the configuration file also includes the definition of each node and the dependencies between each node, parses the configuration file, and constructs an algorithm running sequence diagram , including: based on the definition of each node in the configuration file and the dependencies between each node, construct an algorithm running sequence diagram.

根据本公开的一个或多个实施例,本公开提供了一种图片处理方法,所述与输入节点关联的算法运行节点对所述输入图片进行处理,包括:当每个算法运行节点仅与一个输入节点关联时,与输入节点关联的算法运行节点仅对与之关联的输入节点对应的输入图片进行处理。According to one or more embodiments of the present disclosure, the present disclosure provides a picture processing method, the algorithm running node associated with the input node processes the input picture, including: when each algorithm running node only communicates with one When the input node is associated, the algorithm running node associated with the input node only processes the input image corresponding to the associated input node.

根据本公开的一个或多个实施例,本公开提供了一种图片处理方法,所述与输入节点关联的算法运行节点对所述输入图片进行处理,包括:当同一个算法运行节点与至少两个输入节点关联时,该算法运行节点对至少两个输入节点关联输入图片进行处理。According to one or more embodiments of the present disclosure, the present disclosure provides a picture processing method, wherein the algorithm running node associated with the input node processes the input picture, including: when the same algorithm running node and at least two When two input nodes are associated, the algorithm runs the node to process at least two input node-associated input images.

根据本公开的一个或多个实施例,本公开提供了一种图片处理方法还包括:通过应用程序接口或者脚本方式将待处理图片发送至图片数据库;根据所述输入节点的配置信息获取对应的输入图片,包括:根据所述输入节点的配置信息从所述图片数据库中获取对应的输入图片。According to one or more embodiments of the present disclosure, the present disclosure provides a picture processing method further comprising: sending the picture to be processed to the picture database through an application program interface or a script; obtaining the corresponding Inputting a picture includes: acquiring a corresponding input picture from the picture database according to the configuration information of the input node.

根据本公开的一个或多个实施例,本公开提供了一种图片处理装置,包括:解析配置文件,构建算法运行时序图,其中,所述算法运行时序图包括多个输入节点以及与所述输入节点关联的算法运行节点;针对多个输入节点中的至少一个输入节点,根据配置文件中包括的输入节点的配置信息获取输入节点对应的输入图片;将所述输入图片发送至与所述输入节点关联的算法运行节点,以使与输入节点关联的算法运行节点对所述输入图片进行处理。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing device, including: parsing a configuration file, and constructing an algorithm running sequence graph, wherein the algorithm running sequence graph includes a plurality of input nodes and the The algorithm operation node associated with the input node; for at least one input node among the plurality of input nodes, according to the configuration information of the input node included in the configuration file, the input picture corresponding to the input node is obtained; the input picture is sent to the The algorithm running node associated with the node enables the algorithm running node associated with the input node to process the input picture.

根据本公开的一个或多个实施例,本公开提供了一种图片处理装置,所述输入节点的配置信息包括:输入节点对应的输入接口;输入图片获取模块62,具体用于包括:通过所述输入节点对应的输入接口获取输入节点对应的输入图片。According to one or more embodiments of the present disclosure, the present disclosure provides a picture processing device, the configuration information of the input node includes: the input interface corresponding to the input node; the input picture acquisition module 62, specifically for including: through the The input interface corresponding to the above input node obtains the input image corresponding to the input node.

根据本公开的一个或多个实施例,本公开提供了一种图片处理装置,所述输入节点的配置信息包括:输入节点对应的参数类型;输入图片获取模块,具体用于基于所述输入节点对应的参数类型获取输入节点对应的输入图片。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing device, the configuration information of the input node includes: the parameter type corresponding to the input node; an input image acquisition module, specifically configured to The corresponding parameter type gets the input image corresponding to the input node.

根据本公开的一个或多个实施例,本公开提供了一种图片处理装置,所述配置文件中还包括各个节点的定义以及各个节点之间的依赖关系,解析配置文件,构建算法运行时序图,包括:基于配置文件中各个节点的定义以及各个节点之间的依赖关系,构建算法运行时序图。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing device, the configuration file also includes the definition of each node and the dependencies between each node, parses the configuration file, and constructs an algorithm running sequence diagram , including: based on the definition of each node in the configuration file and the dependencies between each node, construct an algorithm running sequence diagram.

根据本公开的一个或多个实施例,本公开提供了一种图片处理装置,其中,时序图构建模块,具体用于当每个算法运行节点仅与一个输入节点关联时,与输入节点关联的算法运行节点仅对与之关联的输入节点对应的输入图片进行处理。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing device, wherein the timing diagram construction module is specifically used for when each algorithm running node is only associated with one input node, the associated input node The algorithm running node only processes the input image corresponding to the input node associated with it.

根据本公开的一个或多个实施例,本公开提供了一种图片处理装置,所述与输入节点关联的算法运行节点对所述输入图片进行处理,包括:当同一个算法运行节点与至少两个输入节点关联时,该算法运行节点对至少两个输入节点关联输入图片进行处理。According to one or more embodiments of the present disclosure, the present disclosure provides a picture processing device, the algorithm running node associated with the input node processes the input picture, including: when the same algorithm running node and at least two When two input nodes are associated, the algorithm runs the node to process at least two input node-associated input images.

根据本公开的一个或多个实施例,本公开提供了一种图片处理装置,所述装置还包括:待处理图片发送模块,用于通过应用程序接口或者脚本方式将待处理图片发送至图片数据库;输入图片获取模块,还用于根据所述输入节点的配置信息从所述图片数据库中获取对应的输入图片。According to one or more embodiments of the present disclosure, the present disclosure provides an image processing device, and the device further includes: a picture-to-be-processed sending module, configured to send the picture to be processed to the picture database through an application program interface or a script The input picture obtaining module is further configured to obtain the corresponding input picture from the picture database according to the configuration information of the input node.

根据本公开的一个或多个实施例,本公开提供了一种电子设备,包括:According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:

一个或多个处理器;one or more processors;

存储器,用于存储一个或多个程序;memory for storing one or more programs;

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开提供的任一所述的配置管理方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement any one of the configuration management methods provided in the present disclosure.

根据本公开的一个或多个实施例,本公开提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开提供的任一所述的图片处理方法。According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the image processing described in any one provided by the present disclosure is realized. method.

本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机程序或指令,该计算机程序或指令被处理器执行时实现如上所述的图片处理方法。An embodiment of the present disclosure further provides a computer program product, where the computer program product includes a computer program or an instruction, and when the computer program or instruction is executed by a processor, the above-mentioned image processing method is realized.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principles. Those skilled in the art should understand that the disclosure scope involved in this disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, while operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or performed in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while the above discussion contains several specific implementation details, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims (8)

1. A picture processing method, the method comprising:
analyzing a configuration file, and constructing an algorithm operation time sequence diagram, wherein the algorithm operation time sequence diagram comprises a plurality of input nodes and algorithm operation nodes associated with the input nodes;
aiming at least one input node in a plurality of input nodes, acquiring an input picture corresponding to the input node according to configuration information of the input node included in the configuration file; the configuration information of the input node includes: input channels corresponding to the input nodes; acquiring an input picture corresponding to the input node according to configuration information of the input node included in the configuration file, including: acquiring an input picture corresponding to the input node through an input channel corresponding to the input node; alternatively, the configuration information of the input node includes: inputting the parameter types corresponding to the nodes; acquiring an input picture corresponding to the input node according to configuration information of the input node included in the configuration file, including: acquiring an input picture corresponding to the input node based on the parameter type corresponding to the input node;
And sending the input picture to the algorithm running node associated with the input node so that the algorithm running node associated with the input node processes the input picture.
2. The method of claim 1, wherein the configuration file further includes definitions of each node and dependencies between each node,
analyzing the configuration file, constructing an algorithm running time sequence diagram, and comprising the following steps:
and constructing an algorithm running time sequence diagram based on the definition of each node and the dependency relationship among each node in the configuration file.
3. The method of claim 1, wherein an algorithm running node associated with an input node processes the input picture, comprising:
when each algorithm running node is associated with only one input node, the algorithm running node associated with the input node only processes the input picture corresponding to the input node associated with the algorithm running node.
4. The method of claim 1, wherein an algorithm running node associated with an input node processes the input picture, comprising:
when the same algorithm running node is associated with at least two input nodes, the algorithm running node processes at least two input node associated input pictures.
5. The method according to claim 1, wherein the method further comprises:
transmitting the picture to be processed to a picture database through an application program interface or a script mode;
obtaining a corresponding input picture according to the configuration information of the input node, including:
and acquiring a corresponding input picture from the picture database according to the configuration information of the input node.
6. A picture processing apparatus, the apparatus comprising:
the system comprises a timing diagram construction module, a control module and a control module, wherein the timing diagram construction module is used for analyzing a configuration file and constructing an algorithm operation timing diagram, and the algorithm operation timing diagram comprises a plurality of input nodes and algorithm operation nodes associated with the input nodes;
the input picture acquisition module is used for acquiring an input picture corresponding to at least one input node in a plurality of input nodes according to configuration information of the input nodes included in the configuration file; wherein the configuration information of the input node includes: input channels corresponding to the input nodes; acquiring an input picture corresponding to the input node according to configuration information of the input node included in the configuration file, including: acquiring an input picture corresponding to the input node through an input channel corresponding to the input node; alternatively, the configuration information of the input node includes: inputting the parameter types corresponding to the nodes; acquiring an input picture corresponding to the input node according to configuration information of the input node included in the configuration file, including: acquiring an input picture corresponding to the input node based on the parameter type corresponding to the input node;
And the input picture sending module is used for sending the input picture to an algorithm operation node associated with the input node so as to enable the algorithm operation node associated with the input node to process the input picture.
7. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
CN202210302401.7A 2022-03-24 2022-03-24 Image processing method, device, device, storage medium and program product Active CN114647472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210302401.7A CN114647472B (en) 2022-03-24 2022-03-24 Image processing method, device, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210302401.7A CN114647472B (en) 2022-03-24 2022-03-24 Image processing method, device, device, storage medium and program product

Publications (2)

Publication Number Publication Date
CN114647472A CN114647472A (en) 2022-06-21
CN114647472B true CN114647472B (en) 2023-08-15

Family

ID=81995181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210302401.7A Active CN114647472B (en) 2022-03-24 2022-03-24 Image processing method, device, device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN114647472B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103080974A (en) * 2010-07-09 2013-05-01 国家信息及自动化研究院 Image synthesis device
CN108846261A (en) * 2018-04-26 2018-11-20 浙江工业大学 Gene expression time series data classification method based on visual nomography
CN109254946A (en) * 2018-08-31 2019-01-22 郑州云海信息技术有限公司 Image characteristic extracting method, device, equipment and readable storage medium storing program for executing
CN109685204A (en) * 2018-12-24 2019-04-26 北京旷视科技有限公司 Pattern search method and device, image processing method and device
CN111507257A (en) * 2020-04-16 2020-08-07 奇安信科技集团股份有限公司 Image processing method, device, system, medium and program
CN112188034A (en) * 2020-09-29 2021-01-05 北京小米移动软件有限公司 Image processing method, device, terminal equipment and medium
CN112508768A (en) * 2020-12-22 2021-03-16 北京百度网讯科技有限公司 Single-operator multi-model pipeline reasoning method, system, electronic equipment and medium
CN113568666A (en) * 2021-06-07 2021-10-29 阿里巴巴新加坡控股有限公司 Image processing method and device, storage medium and processor
CN113657184A (en) * 2021-07-26 2021-11-16 广东科学技术职业学院 Evaluation method and device for piano playing fingering
CN113841155A (en) * 2019-03-15 2021-12-24 森纳拉公司 Configuring a data pipe using image understanding
CN113887396A (en) * 2021-09-29 2022-01-04 上海商汤智能科技有限公司 Image processing method and device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008059081A (en) * 2006-08-29 2008-03-13 Sony Corp Image processing apparatus, image processing method and computer program
WO2018184194A1 (en) * 2017-04-07 2018-10-11 Intel Corporation Methods and systems using improved convolutional neural networks for image processing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103080974A (en) * 2010-07-09 2013-05-01 国家信息及自动化研究院 Image synthesis device
CN108846261A (en) * 2018-04-26 2018-11-20 浙江工业大学 Gene expression time series data classification method based on visual nomography
CN109254946A (en) * 2018-08-31 2019-01-22 郑州云海信息技术有限公司 Image characteristic extracting method, device, equipment and readable storage medium storing program for executing
CN109685204A (en) * 2018-12-24 2019-04-26 北京旷视科技有限公司 Pattern search method and device, image processing method and device
CN113841155A (en) * 2019-03-15 2021-12-24 森纳拉公司 Configuring a data pipe using image understanding
CN111507257A (en) * 2020-04-16 2020-08-07 奇安信科技集团股份有限公司 Image processing method, device, system, medium and program
CN112188034A (en) * 2020-09-29 2021-01-05 北京小米移动软件有限公司 Image processing method, device, terminal equipment and medium
CN112508768A (en) * 2020-12-22 2021-03-16 北京百度网讯科技有限公司 Single-operator multi-model pipeline reasoning method, system, electronic equipment and medium
CN113568666A (en) * 2021-06-07 2021-10-29 阿里巴巴新加坡控股有限公司 Image processing method and device, storage medium and processor
CN113657184A (en) * 2021-07-26 2021-11-16 广东科学技术职业学院 Evaluation method and device for piano playing fingering
CN113887396A (en) * 2021-09-29 2022-01-04 上海商汤智能科技有限公司 Image processing method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"图像情境下的数字序列逻辑学习";梁慧 等;《智能系统学报》;第14卷(第6期);第1189-1198页 *

Also Published As

Publication number Publication date
CN114647472A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
US20250104308A1 (en) Method and apparatus for generating stylized image, electronic device, and storage medium
CN114331820A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114035879B (en) Page theme color replacement method, device, electronic equipment and computer readable medium
CN114422698B (en) Video generation method, device, equipment and storage medium
WO2021197024A1 (en) Video effect configuration file generation method, and video rendering method and device
CN114004905B (en) Character style image generation method, device, equipment and storage medium
US20250053413A1 (en) Image effect package generation method and apparatus, device, and storage medium
CN114863214A (en) Image generation model training method, image generation device, image generation medium, and image generation device
US20240040069A1 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
CN110070592B (en) Generation method and device of special effect package and hardware device
CN110427584A (en) Page generation method, device, electronic equipment and computer readable storage medium
CN116628366A (en) Floor page processing method and device
JP2023538825A (en) Methods, devices, equipment and storage media for picture to video conversion
CN114647472B (en) Image processing method, device, device, storage medium and program product
WO2024061064A1 (en) Display effect processing method and apparatus, electronic device, and storage medium
CN111815508A (en) Image generation method, apparatus, device and computer readable medium
US20250055954A1 (en) Video effect packet generation method and apparatus, device, and storage medium
US12271985B2 (en) Method, apparatus, device and medium for image special effect processing
WO2023197868A1 (en) Image processing method and apparatus, system, and storage medium
CN114520928B (en) Display information generation method, information display method, device and electronic equipment
WO2023056841A1 (en) Data service method and apparatus, and related product
WO2023098611A1 (en) Special effect display method and apparatus, and device and storage medium
WO2023098609A1 (en) Method and apparatus for generating image special effect package, device, and storage medium
WO2021018176A1 (en) Text special effect processing method and apparatus
WO2023143197A1 (en) Method and apparatus for generating combined graphical control, and device 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
GR01 Patent grant
GR01 Patent grant