CN114979411B - Distributed image processing method, device, equipment and system - Google Patents
Distributed image processing method, device, equipment and system Download PDFInfo
- Publication number
- CN114979411B CN114979411B CN202110490914.0A CN202110490914A CN114979411B CN 114979411 B CN114979411 B CN 114979411B CN 202110490914 A CN202110490914 A CN 202110490914A CN 114979411 B CN114979411 B CN 114979411B
- Authority
- CN
- China
- Prior art keywords
- image processing
- task
- distributed
- target
- image
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 33
- 238000012545 processing Methods 0.000 claims abstract description 484
- 238000009826 distribution Methods 0.000 claims abstract description 138
- 238000000034 method Methods 0.000 claims abstract description 68
- 230000005540 biological transmission Effects 0.000 claims description 51
- 238000003860 storage Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 20
- 230000008569 process Effects 0.000 claims description 15
- 230000003111 delayed effect Effects 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000001934 delay Effects 0.000 claims description 2
- 239000002699 waste material Substances 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000005315 distribution function Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009172 bursting Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种分布式图像处理方法、装置、设备及系统。The present application relates to the technical field of image processing, and in particular to a distributed image processing method, device, device and system.
背景技术Background technique
随着大数据时代的到来,各种数据的处理服务也应运而生,图像数据的处理服务是典型之一。当前的图像比对、图像识别等图像处理服务通常是基于API(ApplicationProgramming Interface,应用程序编程接口)接口的方式提供服务,即客户端调用API接口,即可直接从服务端获取到对应的图像处理服务。然而,一些图像处理服务对于服务器的算力具有较高要求,因此通过API接口提算力较高的图像处理服务时,需要一个GPU(Graphics Processing Unit,图形处理器)承载一个图像处理请求。而部署大量的GPU服务器,又会导致闲时服务器资源的极大浪费。因此,如果仅通过API接口的方式提供图像处理服务,难以满足当前大并发量的图像处理需求。With the advent of the era of big data, various data processing services have emerged as the times require, and image data processing services are one of the typical ones. The current image processing services such as image comparison and image recognition are usually provided based on the API (Application Programming Interface, Application Programming Interface) interface, that is, the client can directly obtain the corresponding image processing from the server by calling the API interface. Serve. However, some image processing services have higher requirements on the computing power of the server. Therefore, when an image processing service with higher computing power is provided through the API interface, a GPU (Graphics Processing Unit, Graphics Processing Unit) is required to carry an image processing request. Deploying a large number of GPU servers will lead to a great waste of server resources in idle time. Therefore, if the image processing service is only provided through the API interface, it is difficult to meet the current large concurrent image processing requirements.
发明内容Contents of the invention
本发明实施例的目的是提供一种分布式图像处理方法、装置、设备及系统,以解决现有的图像处理服务的提供方式难以满足大并发的图像处理需求的问题。The purpose of the embodiments of the present invention is to provide a distributed image processing method, device, device and system to solve the problem that the existing image processing service provision methods are difficult to meet the large concurrent image processing requirements.
为了解决上述技术问题,本申请实施例是这样实现的:In order to solve the above technical problems, the embodiment of the present application is implemented as follows:
第一方面,本申请实施例提供了一种分布式图像处理方法,包括:In the first aspect, the embodiment of the present application provides a distributed image processing method, including:
接收客户端发送的图像处理请求,所述图像处理请求包括待处理图像的图像处理信息;receiving an image processing request sent by the client, where the image processing request includes image processing information of the image to be processed;
根据所述图像处理信息确定所述图像处理请求对应的任务类型;determining a task type corresponding to the image processing request according to the image processing information;
若所述任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;If the task type is a real-time task, then determine the target task distribution device from a plurality of distributed task distribution devices according to a preset first scheduling rule;
将所述图像处理请求发送给所述目标任务分发设备,以使所述目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过所述目标图像处理设备对所述待处理图像进行图像处理,向所述客户端发送图像处理结果信息。sending the image processing request to the target task distribution device, so that the target task distribution device determines a target image processing device from a plurality of distributed image processing devices according to a first preset method, and uses the target The image processing device performs image processing on the image to be processed, and sends image processing result information to the client.
第二方面,本申请实施例提供了一种分布式图像处理装置,包括:In the second aspect, the embodiment of the present application provides a distributed image processing device, including:
接收模块,用于接收客户端发送的图像处理请求;所述图像处理请求包括待处理图像的图像处理信息;A receiving module, configured to receive an image processing request sent by a client; the image processing request includes image processing information of an image to be processed;
确定模块,用于根据所述图像处理信息确定所述图像处理请求对应的任务类型;A determining module, configured to determine a task type corresponding to the image processing request according to the image processing information;
第一调度模块,用于若所述任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;A first scheduling module, configured to determine a target task distribution device from a plurality of distributed task distribution devices according to a preset first scheduling rule if the task type is a real-time task;
发送模块,用于将所述图像处理请求发送给所述目标任务分发设备,以使所述目标任务分发设备根据预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过所述目标图像处理设备对所述待处理图像进行图像处理,向所述客户端发送图像处理结果信息。A sending module, configured to send the image processing request to the target task distribution device, so that the target task distribution device determines a target image processing device from a plurality of distributed image processing devices according to a preset method, and passes The target image processing device performs image processing on the image to be processed, and sends image processing result information to the client.
第三方面,本申请实施例提供了一种分布式图像处理系统,包括客户端、分布式的多个任务调度设备、分布式的多个任务分发设备和分布式的多个图像处理设备;In a third aspect, an embodiment of the present application provides a distributed image processing system, including a client, multiple distributed task scheduling devices, multiple distributed task distribution devices, and multiple distributed image processing devices;
所述客户端,用于响应于用户的图像处理操作,确定待处理图像的图像处理信息;根据第二预设方式从所述分布式的多个任务调度设备中确定目标任务调度设备,并根据所述图像处理信息向所述目标任务调度设备发送图像处理请求;The client is configured to determine the image processing information of the image to be processed in response to the user's image processing operation; determine the target task scheduling device from the distributed plurality of task scheduling devices according to the second preset method, and determine the target task scheduling device according to the second preset method The image processing information sends an image processing request to the target task scheduling device;
所述任务调度设备,用于在接收到所述客户端发送的所述图像处理请求时,根据所述图像处理信息确定所述图像处理请求对应的任务类型;若所述任务类型是实时任务,则根据预设的第一调度规则从所述分布式的多个任务分发设备中确定目标任务分发设备;将所述图像处理请求发送给所述目标任务分发设备;The task scheduling device is configured to, when receiving the image processing request sent by the client, determine a task type corresponding to the image processing request according to the image processing information; if the task type is a real-time task, Then determine a target task distribution device from among the distributed plurality of task distribution devices according to a preset first scheduling rule; send the image processing request to the target task distribution device;
所述任务分发设备,用于在接收到所述任务调度设备发送的所述图像处理请求时,根据第一预设方式从所述分布式的多个图像处理设备中确定目标图像处理设备,并将所述图像处理请求发送给所述目标图像处理设备;The task distribution device is configured to, when receiving the image processing request sent by the task scheduling device, determine a target image processing device from the plurality of distributed image processing devices according to a first preset manner, and sending the image processing request to the target image processing device;
所述图像处理设备,用于在接收到所述任务分发设备发送的所述图像处理请求时,根据所述图像处理请求对所述待处理图像进行图像处理,并向所述客户端发送图像处理结果信息。The image processing device is configured to, when receiving the image processing request sent by the task distribution device, perform image processing on the image to be processed according to the image processing request, and send an image processing request to the client. result information.
第四方面,本申请实施例提供了一种分布式图像处理设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的分布式图像处理方法的步骤。In a fourth aspect, an embodiment of the present application provides a distributed image processing device, including a processor, a memory, and a computer program stored on the memory and operable on the processor, the computer program being executed by the The processor realizes the steps of the distributed image processing method as described in the first aspect when executed.
第五方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时,实现如第一方面所述的分布式图像处理方法的步骤。In the fifth aspect, the embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the distribution as described in the first aspect is realized. The steps of the formula image processing method.
本申请实施例中的分布式图像处理方法、装置、设备及系统,在接收到客户端发送的图像处理请求时,若根据图像处理请求包括的待处理图像的图像处理信息确定对应的任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;以及,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。由此,通过对分布式的各设备进行合理调度以实现图像处理,不仅能够满足大并发量的图像处理需求,而且能够降低设备资源的浪费,维护系统的稳定性。此外,根据图像处理请求对应的任务类型进行相应处理,实现了请求的分级处理,能够在图像处理请求大并发量的情况下提升用户体验,从而维持甚至提升业务量。In the distributed image processing method, device, device, and system in the embodiments of the present application, when receiving the image processing request sent by the client, if the corresponding task type is determined according to the image processing information of the image to be processed included in the image processing request is For real-time tasks, the target task distribution device is determined from multiple distributed task distribution devices according to the preset first scheduling rule; and, the image processing request is sent to the target task distribution device, so that the target task distribution device according to the first The preset method determines a target image processing device from among multiple distributed image processing devices, performs image processing on the image to be processed through the target image processing device, and sends image processing result information to the client. Therefore, by reasonably scheduling distributed devices to realize image processing, it can not only meet the large amount of concurrent image processing requirements, but also reduce the waste of device resources and maintain the stability of the system. In addition, corresponding processing is performed according to the task type corresponding to the image processing request, which realizes the hierarchical processing of the request, and can improve user experience in the case of a large amount of concurrent image processing requests, thereby maintaining or even increasing the business volume.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in the present invention. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本申请实施例提供的分布式图像处理方法的第一种流程示意图;FIG. 1 is a first schematic flow diagram of a distributed image processing method provided in an embodiment of the present application;
图2为本申请实施例提供的分布式图像处理方法的第二种流程示意图;Fig. 2 is a second schematic flow diagram of the distributed image processing method provided by the embodiment of the present application;
图3为本申请实施例提供的分布式图像处理方法的第三种流程示意图;FIG. 3 is a schematic flow chart of a third distributed image processing method provided in an embodiment of the present application;
图4为本申请实施例提供的分布式图像处理装置的模块组成示意图;FIG. 4 is a schematic diagram of the module composition of the distributed image processing device provided by the embodiment of the present application;
图5为本申请实施例提供的分布式图像处理系统的组成示意图Figure 5 is a schematic diagram of the composition of the distributed image processing system provided by the embodiment of the present application
图6为本申请实施例提供的分布式图像处理设备的结构示意图。FIG. 6 is a schematic structural diagram of a distributed image processing device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
附图1为本发明实施例提供的分布式图像处理方法的第一种流程示意图,图1中的方法能够由布设在不同区域的分布式的任务调度设备执行;其中,任务调度设备可以是手机、平板电脑、台式计算机、便携式笔记本等终端设备,还可以是服务端。如图1所示,该方法至少包括以下步骤:Accompanying drawing 1 is a schematic flow chart of the first distributed image processing method provided by the embodiment of the present invention. The method in FIG. 1 can be executed by distributed task scheduling devices arranged in different areas; wherein, the task scheduling device can be a mobile phone , Tablet PC, desktop computer, portable notebook and other terminal equipment, it can also be a server. As shown in Figure 1, the method at least includes the following steps:
步骤S102,接收客户端发送的图像处理请求;其中,图像处理请求包括待处理图像的图像处理信息;Step S102, receiving an image processing request sent by the client; wherein, the image processing request includes image processing information of the image to be processed;
具体的,用户的终端设备中可以安装有图像处理相关的客户端,该客户端可以是独立的应用程序(Application,简称APP),还可以是嵌入到其他应用程序中的小程序,还可以是网页应用等。当用户需要进行图像处理时,可以操作该客户端;相应的,客户端响应于用户的图像处理操作,确定待处理图像的图像处理信息;根据第二预设方式从分布式的多个任务调度设备中确定目标任务调度设备,并根据图像处理信息向目标任务调度设备发送图像处理请求。当分布式的任务调度设备被客户端确定为目标任务调度设备时,接收该客户端发送的图像处理请求并进行后续处理。Specifically, an image processing-related client may be installed in the user's terminal device, and the client may be an independent application program (Application, APP for short), or a small program embedded in other application programs, or an web applications, etc. When the user needs to perform image processing, the client can be operated; correspondingly, the client determines the image processing information of the image to be processed in response to the user's image processing operation; A target task scheduling device is determined in the device, and an image processing request is sent to the target task scheduling device according to the image processing information. When the distributed task scheduling device is determined by the client as the target task scheduling device, it receives the image processing request sent by the client and performs subsequent processing.
其中,图像处理信息包括图像处理类型信息、待处理图像的图像属性信息、客户端的IP地址等。图像处理类型信息表征需要对待处理图像执行的操作,如下载、上传、特征提取、图像识别等;图像属性信息可以包括待处理图像的图像标识信息、图像大小等。第二预设方式可以在实际应用中根据需要自行设定,如可以是路由自动分发方式,还可以是客户端获取各任务调度设备的IP地址,根据获取的IP地址确定与各任务调度设备之间的距离,比对确定的各距离得到最小距离,并将最小距离所对应的任务调度设备确定为目标任务调度设备等。Wherein, the image processing information includes image processing type information, image attribute information of the image to be processed, IP address of the client, and the like. Image processing type information represents operations that need to be performed on the image to be processed, such as download, upload, feature extraction, image recognition, etc.; image attribute information may include image identification information, image size, etc. of the image to be processed. The second preset method can be set according to the needs in practical applications. For example, it can be an automatic route distribution method. It can also be that the client obtains the IP address of each task scheduling device, and determines the relationship with each task scheduling device according to the obtained IP address. The minimum distance is obtained by comparing the determined distances, and the task scheduling device corresponding to the minimum distance is determined as the target task scheduling device.
步骤S104,根据图像处理信息确定图像处理请求对应的任务类型;Step S104, determining the task type corresponding to the image processing request according to the image processing information;
为了在满足大并发量的图像处理需求的情况下,能够提升用户体验,本申请实施例中,对各图像处理请求进行任务分类,并根据任务类型进行相应的处理。其中,任务类型可以包括实时任务和延时任务,实时任务表征图像处理请求需要立即进行处理,延时任务表征图像处理请求可以延迟一段时间进行处理。In order to improve user experience while satisfying a large amount of concurrent image processing requirements, in the embodiment of the present application, task classification is performed on each image processing request, and corresponding processing is performed according to the task type. The task types may include real-time tasks and delayed tasks. Real-time tasks indicate that image processing requests need to be processed immediately, and delayed tasks indicate that image processing requests can be processed after a period of time.
步骤S106,若任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;Step S106, if the task type is a real-time task, then determine the target task distribution device from a plurality of distributed task distribution devices according to the preset first scheduling rule;
本申请实施例提供的分布式图像处理方法所对应的分布式图像处理系统,不仅包括具有任务调度功能的分布式的多个任务调度设备,还包括分布式的多个任务分发设备以及分布式的多个图像处理设备。其中,任务分发设备具有任务分发功能,能够对任务类型是实时任务的图像处理请求进行分发处理,以将图像处理请求分发给确定的目标图像处理设备。图像处理设备用于提供图像处理服务,能够根据获取到的图像处理请求对待处理图像进行相应处理,如下载处理、特征比对处理等。需要指出的是,每个设备可以集成至少一种功能,如某个设备不仅具有任务调度功能,还具有任务分发功能,即该设备既是任务调度设备,也是任务分发设备,由此能够减少图像处理过程中图像资源的转移所导致的带宽资源的浪费,且能够保证实时处理速度。在实际应用中,可以采用虚拟机、docker镜像等容器化技术手段实现上述多种功能的集成。The distributed image processing system corresponding to the distributed image processing method provided in the embodiment of the present application includes not only distributed multiple task scheduling devices with task scheduling functions, but also distributed multiple task distribution devices and distributed Multiple image processing devices. Wherein, the task distribution device has a task distribution function, capable of distributing image processing requests whose task type is a real-time task, so as to distribute the image processing requests to a determined target image processing device. The image processing device is used to provide image processing services, and can perform corresponding processing on the image to be processed according to the obtained image processing request, such as download processing, feature comparison processing, etc. It should be pointed out that each device can integrate at least one function. For example, a certain device not only has a task scheduling function, but also has a task distribution function, that is, the device is not only a task scheduling device, but also a task distribution device, which can reduce image processing. The waste of bandwidth resources caused by the transfer of image resources in the process can ensure real-time processing speed. In practical applications, containerization technologies such as virtual machines and docker images can be used to realize the integration of the above-mentioned multiple functions.
步骤S108,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。Step S108, sending the image processing request to the target task distribution device, so that the target task distribution device determines the target image processing device from a plurality of distributed image processing devices according to the first preset method, and uses the target image processing device to be processed The image is processed, and the image processing result information is sent to the client.
具体的,当目标任务分发设备接收到图像处理请求时,根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并将图像处理请求发送给目标图像处理设备。目标图像处理设备根据接收到的图像处理请求对待处理图像进行图像处理,并根据图像处理请求中的客户端的IP地址或客户端标识等信息向对应的客户端发送图像处理结果信息。其中,第一预设方式可以在实际应用中根据需要自行设定,如可以是路由的自动分发方式,还可以是目标任务分发设备获取其相连的各图像处理设备的IP地址,根据获取的IP地址确定与相连的各图像处理设备之间的距离,比对确定的各距离得到最小距离,并将最小距离所对应的图像处理设备确定为目标图像处理设备等。Specifically, when the target task distribution device receives the image processing request, it determines the target image processing device from multiple distributed image processing devices according to the first preset method, and sends the image processing request to the target image processing device. The target image processing device performs image processing on the image to be processed according to the received image processing request, and sends image processing result information to the corresponding client according to information such as the client's IP address or client ID in the image processing request. Among them, the first preset method can be set according to the needs in practical applications. For example, it can be an automatic distribution method of routing, or it can also be that the target task distribution device obtains the IP address of each image processing device connected to it. Determine the distance between the address and each connected image processing device, compare the determined distances to obtain the minimum distance, and determine the image processing device corresponding to the minimum distance as the target image processing device, etc.
需要指出的是,图像处理请求可以包括待处理图像,也可以不包括待处理图像。例如,当图像处理请求用于请求对待处理图像进行上传、图像识别等操作时,图像处理请求可以包括用户提供的待处理图像;当图像处理请求用于请求下载、查看等操作时,图像处理请求可以不包括待处理图像,该待处理图像保存于指定的存储区域中,如云端等。相应的,当图像处理请求未包括待处理图像时,目标图像处理设备根据图像处理请求包括的待处理图像的图像标识信息从指定的存储区域中获取对应的待处理图像,并根据图像处理请求中的操作类型信息对获取的待处理图像进行相应处理。It should be noted that the image processing request may or may not include the image to be processed. For example, when the image processing request is used to request operations such as uploading and image recognition of the image to be processed, the image processing request may include the image to be processed provided by the user; when the image processing request is used to request operations such as downloading and viewing, the image processing request The image to be processed may not be included, and the image to be processed is stored in a specified storage area, such as the cloud. Correspondingly, when the image processing request does not include the image to be processed, the target image processing device obtains the corresponding image to be processed from the specified storage area according to the image identification information of the image to be processed included in the image processing request, and The operation type information of the obtained image to be processed is processed accordingly.
本申请一个或多个实施例中,在接收到客户端发送的图像处理请求时,若根据图像处理请求包括的待处理图像的图像处理信息确定对应的任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;以及,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。由此,通过对分布式的各设备进行合理调度以实现图像处理,不仅能够满足大并发量的图像处理需求,而且能够降低设备资源的浪费,维护系统的稳定性。此外,根据图像处理请求对应的任务类型进行相应处理,实现了请求的分级处理,能够在图像处理请求大并发量的情况下提升用户体验,从而维持甚至提升业务量。In one or more embodiments of the present application, when receiving the image processing request sent by the client, if it is determined according to the image processing information of the image to be processed included in the image processing request that the corresponding task type is a real-time task, then according to the preset The first scheduling rule determines the target task distribution device from among the distributed multiple task distribution devices; Determine the target image processing device among the image processing devices, and perform image processing on the image to be processed by the target image processing device, and send the image processing result information to the client. Therefore, by reasonably scheduling distributed devices to realize image processing, it can not only meet the large amount of concurrent image processing requirements, but also reduce the waste of device resources and maintain the stability of the system. In addition, corresponding processing is performed according to the task type corresponding to the image processing request, which realizes the hierarchical processing of the request, and can improve user experience in the case of a large amount of concurrent image processing requests, thereby maintaining or even increasing the business volume.
由于分布式的多个任务分发设备布设于不同的区域,如不同的城市、同一城市的不同地方等,为了提升任务类型是实时任务的图像处理请求的处理效率,本申请一个或多个实施例中,基于任务分发设备的传输带宽以及任务调度设备与任务分发设备之间的传输时延,确定目标任务分发设备。具体的,如图2所示,步骤S106可以包括以下步骤S106-2至步骤S106-6:Since multiple distributed task distribution devices are deployed in different areas, such as different cities, different places in the same city, etc., in order to improve the processing efficiency of image processing requests whose task type is real-time tasks, one or more embodiments of the present application In the method, the target task distribution device is determined based on the transmission bandwidth of the task distribution device and the transmission delay between the task scheduling device and the task distribution device. Specifically, as shown in FIG. 2, step S106 may include the following steps S106-2 to S106-6:
步骤S106-2,若任务类型是实时任务,则获取分布式的多个任务分发设备中,每个任务分发设备所对应的传输带宽和传输时延;Step S106-2, if the task type is a real-time task, obtain the transmission bandwidth and transmission delay corresponding to each task distribution device among the multiple distributed task distribution devices;
具体的,任务调度设备向相连的各任务分发设备分别发送信息获取请求,并记录信息获取请求的发送时间。任务分发设备接收到信息获取请求后,根据自身当前的传输带宽向任务调度设备发送响应数据。任务调度设备接收任务分发设备发送的响应数据并记录接收时间,根据记录的发送时间和接收时间,确定任务调度设备与相应的任务分发设备之间的传输时延,并从接收到的响应数据中获取相应任务分发设备的传输带宽。Specifically, the task scheduling device sends information acquisition requests to each connected task distribution device, and records the sending time of the information acquisition requests. After receiving the information acquisition request, the task distribution device sends response data to the task scheduling device according to its current transmission bandwidth. The task scheduling device receives the response data sent by the task distribution device and records the receiving time, determines the transmission delay between the task scheduling device and the corresponding task distribution device according to the recorded sending time and receiving time, and calculates the time delay from the received response data Obtain the transmission bandwidth of the corresponding task distribution device.
步骤S106-4,根据获取的传输带宽和传输时延,确定每个任务分发设备对应的第二权重;Step S106-4, according to the obtained transmission bandwidth and transmission delay, determine the second weight corresponding to each task distribution device;
可选地,本申请一个或多个实施例中,基于预设的对应关系确定第二权重。具体的,步骤S106-4可以包括:基于预设的传输带宽与第三子权重的对应关系,确定获取的每个传输带宽所对应的第三子权重;基于预设的传输时延与第四子权重的对应关系,确定获取的每个传输时延所对应的第四子权重;根据确定的第三子权重和第四子权重,确定每个任务分发设备对应的第二权重。Optionally, in one or more embodiments of the present application, the second weight is determined based on a preset correspondence relationship. Specifically, step S106-4 may include: based on the preset correspondence between the transmission bandwidth and the third sub-weight, determining the third sub-weight corresponding to each acquired transmission bandwidth; based on the preset transmission delay and the fourth sub-weight The corresponding relationship of the sub-weights is to determine the obtained fourth sub-weight corresponding to each transmission delay; and to determine the second weight corresponding to each task distribution device according to the determined third sub-weight and fourth sub-weight.
其中,传输带宽与第三子权重的对应关系、传输时延与第四子权重的对应关系均可在实际应用中根据需要自行设定。作为示例,将第三子权重记为Wb,将第四子权重记为Wt;当传输带宽小于100M时,对应的第三子权重Wb=0.8;当传输带宽在100M至500M之间(含100M和500M)时,对应的第三子权重Wb=1;当传输带宽大于500M时,对应的第三子权重Wb=1.2。当传输时延小于10ms时,对应的第四子权重Wt=1;当传输时延在10ms至100ms之间(含10ms和100ms)时,对应的第四子权重Wt=0.9;当传输时延大于100ms时,对应的第四子权重Wt=0.7。将第二权重记为W2,则可以是W2=Wb+Wt,即对第三子权重与第二子权重进行加和处理,并将加和处理的结果确定为第二权重;还可以是W2=a*Wb+c*Ws,其中,a和c是系数,其具体数值可在实际应用中自行设定等。Wherein, the corresponding relationship between the transmission bandwidth and the third sub-weight, and the corresponding relationship between the transmission delay and the fourth sub-weight can be set according to actual needs in practical applications. As an example, the third sub-weight is recorded as Wb, and the fourth sub-weight is recorded as Wt; when the transmission bandwidth is less than 100M, the corresponding third sub-weight Wb=0.8; when the transmission bandwidth is between 100M and 500M (including 100M and 500M), the corresponding third sub-weight Wb=1; when the transmission bandwidth is greater than 500M, the corresponding third sub-weight Wb=1.2. When the transmission delay is less than 10ms, the corresponding fourth sub-weight Wt=1; when the transmission delay is between 10ms and 100ms (including 10ms and 100ms), the corresponding fourth sub-weight Wt=0.9; when the transmission delay When greater than 100ms, the corresponding fourth sub-weight Wt=0.7. Record the second weight as W2, then it can be W2=Wb+Wt, that is, add the third sub-weight and the second sub-weight, and determine the result of the addition as the second weight; it can also be W2 =a*Wb+c*Ws, wherein, a and c are coefficients, and their specific values can be set by themselves in practical applications.
本申请一个或多个实施例中,还可以根据预设的计算方式确定第二权重。具体的,步骤S106-4可以包括:根据预设的计算方式,基于每个任务分发设备所对应的传输带宽和传输时延计算每个任务分发设备对应的第二权重。其中,计算方式可以在实际应用中根据需要自行设定,例如将第二权重记为W2,W2=d*传输带宽+f*传输时延,其中,0<d<1,0<f<1等。In one or more embodiments of the present application, the second weight may also be determined according to a preset calculation manner. Specifically, step S106-4 may include: calculating the second weight corresponding to each task distribution device based on the transmission bandwidth and transmission delay corresponding to each task distribution device according to a preset calculation method. Among them, the calculation method can be set according to the needs in practical applications. For example, the second weight is recorded as W2, W2=d*transmission bandwidth+f*transmission delay, where 0<d<1, 0<f<1 wait.
步骤S106-6,根据第二权重,从多个任务分发设备中确定用于对图像处理请求进行分发处理的目标任务分发设备。Step S106-6, according to the second weight, determine a target task distribution device for distributing the image processing request from multiple task distribution devices.
具体的,比对得到的各第二权重,得到最大的第二权重;将最大的第二权重所对应的任务分发设备确定为用于对图像处理请求进行分发处理的目标任务分发设备。Specifically, the obtained second weights are compared to obtain the largest second weight; and the task distribution device corresponding to the largest second weight is determined as the target task distribution device for distributing the image processing request.
由此,基于每个任务分发设备对应的传输带宽和传输时延,从分布式的多个任务分发设备中确定目标任务分发设备,能够有效的降低图像处理请求在设备之间的传输时间,且能够确保目标任务分发设备有足够的物理资源对图像处理请求进行分发处理,不仅实现了任务分发设备的有效调度,避免了设备资源的浪费,而且能够提升图像处理请求的处理效率,满足实时性的图像处理需求。Therefore, based on the transmission bandwidth and transmission delay corresponding to each task distribution device, determining the target task distribution device from multiple distributed task distribution devices can effectively reduce the transmission time of image processing requests between devices, and It can ensure that the target task distribution device has enough physical resources to distribute and process the image processing request, which not only realizes the effective scheduling of the task distribution device, avoids the waste of device resources, but also improves the processing efficiency of the image processing request to meet the real-time requirements image processing needs.
考虑到对于不同的图像处理类型和不同大小的图像,图像处理的实时性需求往往不同。以图像处理类型为例进行说明,例如当用户想要将其手机中的图像上传至网盘进行保存时,即图像处理类型为上传,此时用户可能并不关注何时上传完成,即实时性需求比较低;又如用户在办理业务时进行图像比对以实现身份认证,即图像处理类型为图像比对,此时用户则希望尽快得到图像比对结果,从而尽快完成业务的办理,即实时性需要较高。基于此,如图3所示,步骤S104可以包括以下步骤S104-2至步骤S104-4,相应的,步骤S106可以包括以下步骤S106-8,方法还可以包括以下步骤S110至步骤S112:Considering that for different image processing types and images of different sizes, the real-time requirements of image processing are often different. Take the image processing type as an example. For example, when the user wants to upload the image in his mobile phone to the network disk for storage, that is, the image processing type is upload. At this time, the user may not pay attention to when the upload is completed, that is, real-time The demand is relatively low; another example is that the user performs image comparison to achieve identity authentication when handling business, that is, the image processing type is image comparison. At this time, the user hopes to get the image comparison result as soon as possible, so as to complete the business as soon as possible, that is, real-time Sexual needs are high. Based on this, as shown in FIG. 3, step S104 may include the following steps S104-2 to S104-4, and correspondingly, step S106 may include the following steps S106-8, and the method may also include the following steps S110 to S112:
步骤S104-2,根据图像处理信息包括的图像处理类型信息和图像属性信息,确定图像处理请求对应的第一权重;Step S104-2, according to the image processing type information and image attribute information included in the image processing information, determine the first weight corresponding to the image processing request;
具体的,基于预设的图像处理类型信息与第一子权重的对应关系,确定图像处理信息包括的图像处理类型信息所对应的第一子权重;根据预设的第二子权重的确定方式,确定图像处理信息包括的图像属性信息所对应的第二子权重;根据确定的第一子权重和第二子权重,确定图像处理请求对应的第一权重。Specifically, based on the preset correspondence between the image processing type information and the first sub-weight, determine the first sub-weight corresponding to the image processing type information included in the image processing information; according to the preset second sub-weight determination method, Determining a second sub-weight corresponding to the image attribute information included in the image processing information; determining a first weight corresponding to the image processing request according to the determined first sub-weight and the second sub-weight.
其中,图像处理类型对应的第一子权重、图像属性信息对应的第二子权重以及第一权重的确定方式均可在实际应用中根据需要自行设定。作为示例,图像搜索、图像比对等图像处理类型对应的第一子权重为1,可以记为Wr=1,上传、下载、查看等图像处理类型对应的第一子权重为0.5,可以记为Wr=0.5。第二子权重的确定方式可以为Ws=1.2-0.1x,其中,x为待处理图像的大小,单位为Mb等。将第一权重记为W1,则可以是W1=Wr+Ws,即对第一子权重与第二子权重进行加和处理,并将加和处理的结果确定为第一权重;还可以是W1=m*Wr+n*Ws,其中,m和n是系数,其具体数值可自行设定等。Wherein, the first sub-weight corresponding to the image processing type, the second sub-weight corresponding to the image attribute information, and the determination method of the first weight can all be set according to needs in practical applications. As an example, the first sub-weight corresponding to image processing types such as image search and image comparison is 1, which can be recorded as Wr=1, and the first sub-weight corresponding to image processing types such as uploading, downloading, and viewing is 0.5, which can be recorded as Wr = 0.5. The method for determining the second sub-weight may be Ws=1.2-0.1x, where x is the size of the image to be processed, and the unit is Mb. Record the first weight as W1, then it can be W1=Wr+Ws, that is, sum the first sub-weight and the second sub-weight, and determine the result of the sum as the first weight; it can also be W1 =m*Wr+n*Ws, where m and n are coefficients, and their specific values can be set by themselves.
步骤S104-4,确定第一权重是否小于第一预设权重,若是,则确定图像处理请求对应的任务类型是延时任务,执行步骤S110;若否,则确定图像处理请求对应的任务类型是实时任务,执行步骤S106-2。Step S104-4, determine whether the first weight is less than the first preset weight, if so, determine that the task type corresponding to the image processing request is a delayed task, and perform step S110; if not, determine that the task type corresponding to the image processing request is For real-time tasks, execute step S106-2.
其中,第一预设权重可以在实际应用中根据需要自行设定,例如为1.6。Wherein, the first preset weight can be set according to needs in practical applications, for example, it is 1.6.
步骤S106-8,根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;Step S106-8, determining a target task distribution device from a plurality of distributed task distribution devices according to a preset first scheduling rule;
其中,根据第一调度规则确定目标任务分发设备的过程可参见前述相关描述,重复之处这里不再赘述。For the process of determining the target task distribution device according to the first scheduling rule, reference may be made to the above-mentioned related descriptions, and repeated descriptions will not be repeated here.
步骤S110,根据预设的第二调度规则从分布式的多个消息队列中确定目标消息队列;Step S110, determining a target message queue from a plurality of distributed message queues according to a preset second scheduling rule;
其中,第二调度规则可以在实际应用中根据需要自行设定,例如可以是路由自动分发方式;还可以是根据预设的各消息队列的地址信息,确定与各消息队列之间的距离,比对确定的各距离得到最小距离,将最小距离对应的消息队列确定为目标消息队列等。Wherein, the second dispatching rule can be set according to needs in practical applications, for example, it can be an automatic route distribution method; it can also determine the distance to each message queue according to the preset address information of each message queue. The minimum distance is obtained for each determined distance, and the message queue corresponding to the minimum distance is determined as the target message queue, etc.
步骤S112,将图像处理请求保存至目标消息队列,以使目标消息队列对应的图像处理设备根据目标消息列队中的图像处理请求,对待处理图像进行图像处理,并向客户端发送图像处理结果信息。Step S112, saving the image processing request to the target message queue, so that the image processing device corresponding to the target message queue performs image processing on the image to be processed according to the image processing request in the target message queue, and sends image processing result information to the client.
本申请实施例中,每个消息队列可以对应多个图像处理设备,各图像处理设备可以每隔预设的第一时间间隔访问对应的消息队列,或者到达预设的时间点时访问对应的消息队列,并对访问的消息队列中的图像处理请求进行处理。其中,各图像处理设备的预设的第一时间间隔或预设的时间点可以相同也可以不同。In this embodiment of the application, each message queue can correspond to multiple image processing devices, and each image processing device can access the corresponding message queue every preset first time interval, or access the corresponding message when the preset time point is reached queue, and process the image processing requests in the accessed message queue. Wherein, the preset first time interval or the preset time point of each image processing device may be the same or different.
进一步的,为了避免同一个图像处理请求被重复处理,本申请一个或多个实施例中,当图像处理设备从对应的消息队列中获取到待处理的图像处理请求时,通过消息队列管理模块将相应的图像处理请求的状态标识设置为表征已锁定的第一标识,并从该图像处理设备获取到处理完成信息时,将状态标识设置为表征已处理完成的第二标识,或者将相应的图像处理请求从消息队列中移除。Further, in order to avoid repeated processing of the same image processing request, in one or more embodiments of the present application, when the image processing device obtains the image processing request to be processed from the corresponding message queue, the message queue management module sends The state flag of the corresponding image processing request is set to the first flag representing locked, and when the processing completion information is obtained from the image processing device, the state flag is set to the second flag representing the completion of processing, or the corresponding image The processing request is removed from the message queue.
进一步的,为了提升用户体验,本申请一个或多个实施例中,还可以对任务类型是延时任务的图像处理请求设置处理的优先级,并按照优先级从高到底的顺序依次被处理。具体的,图像处理信息中还可以包括用户的用户信息,步骤S112可以包括:根据图像处理请求包括的用户信息确定图像处理请求的优先级信息,将确定的优先级信息于图像处理请求对应保存至目标消息队列中,以使目标消息队列对应的图像处理设备基于目标消息列队中的优先级信息,依次根据对应的图像处理请求,对相应的待处理图像进行图像处理,并向客户端发送图像处理结果信息。Further, in order to improve user experience, in one or more embodiments of the present application, processing priorities may also be set for image processing requests whose task type is a delayed task, and processed in order of priority from high to low. Specifically, the image processing information may also include the user information of the user. Step S112 may include: determining the priority information of the image processing request according to the user information included in the image processing request, and saving the determined priority information to the image processing request corresponding to the In the target message queue, based on the priority information in the target message queue, the image processing device corresponding to the target message queue performs image processing on the corresponding image to be processed according to the corresponding image processing request, and sends the image processing device to the client. result information.
其中,用户信息的具体内容可以在实际应用中根据需要自行设定,如用户信息可以是表征用户是普通用户、普通会员用户、超级会员用户等的信息,普通会员用户发送的图像处理请求的优先级高于普通用户发送的图像处理请求的优先级,普通会员用户发送的图像处理请求的优先级低于超级会员用户发送的图像处理请求的优先级。用户信息还可以是根据用户的图像处理情况进行评估所确定的等级信息等。Among them, the specific content of the user information can be set according to the needs in practical applications. For example, the user information can be information indicating that the user is an ordinary user, an ordinary member user, a super member user, etc., and image processing requests sent by ordinary member users are given priority. The priority is higher than that of image processing requests sent by ordinary users, and the priority of image processing requests sent by ordinary member users is lower than that of super member users. The user information may also be grade information and the like determined by evaluating the user's image processing situation.
进一步的,考虑到在实际应用中,对于任务类型是延时任务的图像处理请求,用户可能会重复发送图像处理请求,例如,用户于本周一在北京提交了图像操作类型为上传的图像处理请求,用户在本周三时出差到了深圳且发现待处理图像还没有上传完成,因此用户在深圳再次提交了该图像处理请求。由于当用户多次重复提交同一图像处理请求时,在一定程度上表征用户希望该图像处理请求尽快被处理。基于此,本申请一个或多个实施例中,方法还可以包括:Further, considering that in practical applications, for image processing requests whose task type is delayed tasks, users may repeatedly send image processing requests. For example, the user submitted an image processing request whose image operation type is upload in Beijing this Monday Request, the user went to Shenzhen on a business trip on Wednesday and found that the image to be processed had not been uploaded, so the user submitted the image processing request again in Shenzhen. When the user submits the same image processing request repeatedly, to a certain extent, it means that the user wants the image processing request to be processed as soon as possible. Based on this, in one or more embodiments of the present application, the method may also include:
若通过消息队列管理模块确定图像处理请求满足预设的优先级调整条件,则对相应的图像处理请求的优先级信息进行调整,以使该图像处理设备根据调整后的优先级信息对相应的待处理图像进行图像处理。If it is determined by the message queue management module that the image processing request satisfies the preset priority adjustment condition, then the priority information of the corresponding image processing request will be adjusted, so that the image processing device will adjust the corresponding priority information according to the adjusted priority information. Process images for image processing.
具体的,如前述示例,用户可能在不同的地点通过客户端重复发送图像处理请求,而任务调度模块每次接收到该重复的图像处理请求时,基于预设的第二调度规则所确定的目标消息队列可能不同,因此,该重复的各图像处理请求可能被保存至不同的目标消息队列中。基于此,通过消息队列管理模块每隔预设的第二时间间隔对各消息队列中的图像处理请求进行比对,若确定存在重复的图像处理请求,则统计该重复的图像处理请求的数量;若确定统计的数量不小于预设数量,则确定该重复的图像处理请求满足优先级调整条件,并按照保存时间的先后顺序,对最先保存的图像处理请求所对应的优先级信息进行调整,以使优先级升高,从而该图像处理请求被优先处理;以及删除该重复的图像处理请求中的其他图像处理请求。由此,通过应用消息队列,并对任务类型是延时任务的图像处理请求进行分级处理,不仅能够缓解请求量爆发情况下的系统压力,提高图像处理设备的算力资源的使用率,而且能够提升用户体验,减少业务的流失。Specifically, as in the aforementioned example, the user may repeatedly send image processing requests through the client at different locations, and each time the task scheduling module receives the repeated image processing requests, it will The message queues may be different, therefore, the repeated image processing requests may be stored in different target message queues. Based on this, the image processing requests in each message queue are compared at every preset second time interval by the message queue management module, and if it is determined that there are repeated image processing requests, the number of the repeated image processing requests is counted; If it is determined that the counted number is not less than the preset number, it is determined that the repeated image processing request satisfies the priority adjustment condition, and the priority information corresponding to the first saved image processing request is adjusted according to the order of storage time, increasing the priority so that the image processing request is processed first; and deleting other image processing requests in the repeated image processing request. Therefore, by applying the message queue and classifying the image processing requests whose task type is a delayed task, it can not only relieve the system pressure in the case of bursting requests, but also improve the utilization rate of computing power resources of the image processing equipment, and can Improve user experience and reduce business loss.
本申请实施例提供的分布式图像处理方法,在接收到客户端发送的图像处理请求时,若根据图像处理请求包括的待处理图像的图像处理信息确定对应的任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;以及,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。由此,通过对分布式的各设备进行合理调度以实现图像处理,不仅能够满足大并发量的图像处理需求,而且能够降低设备资源的浪费,维护系统的稳定性。此外,根据图像处理请求对应的任务类型进行相应处理,实现了请求的分级处理,能够在图像处理请求大并发量的情况下提升用户体验,从而维持甚至提升业务量。In the distributed image processing method provided by the embodiment of the present application, when receiving the image processing request sent by the client, if it is determined according to the image processing information of the image to be processed included in the image processing request that the corresponding task type is a real-time task, then according to the preset The set first scheduling rule determines the target task distribution device from among the distributed task distribution devices; and, sends the image processing request to the target task distribution device, so that the target task distribution device starts from the distributed Determine the target image processing device among the plurality of image processing devices, perform image processing on the image to be processed by the target image processing device, and send image processing result information to the client. Therefore, by reasonably scheduling distributed devices to realize image processing, it can not only meet the large amount of concurrent image processing requirements, but also reduce the waste of device resources and maintain the stability of the system. In addition, corresponding processing is performed according to the task type corresponding to the image processing request, which realizes the hierarchical processing of the request, and can improve user experience in the case of a large amount of concurrent image processing requests, thereby maintaining or even increasing the business volume.
对应上述实施例提供的分布式图像处理方法,基于相同的技术构思,本发明实施例还提供了一种分布式图像处理装置,该装置可应用于任务调度设备。图4为本申请实施例提供的分布式图像处理装置的模块组成示意图,如图4所示,该数据查询装置包括:Corresponding to the distributed image processing method provided in the foregoing embodiments, based on the same technical concept, an embodiment of the present invention further provides a distributed image processing device, which can be applied to a task scheduling device. Fig. 4 is a schematic diagram of the module composition of the distributed image processing device provided by the embodiment of the present application. As shown in Fig. 4, the data query device includes:
接收模块201,用于接收客户端发送的图像处理请求;所述图像处理请求包括待处理图像的图像处理信息;The receiving
确定模块202,用于根据所述图像处理信息确定所述图像处理请求对应的任务类型;A determining
第一调度模块203,用于若所述任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;The
发送模块204,用于将所述图像处理请求发送给所述目标任务分发设备,以使所述目标任务分发设备根据预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过所述目标图像处理设备对所述待处理图像进行图像处理,向所述客户端发送图像处理结果信息。A sending
可选地,所述图像处理信息包括图像处理类型信息和所述待处理图像的图像属性信息;相应地,所述确定模块202,具体用于:Optionally, the image processing information includes image processing type information and image attribute information of the image to be processed; correspondingly, the determining
根据所述图像处理类型信息和所述图像属性信息,确定所述图像处理请求对应的第一权重;determining a first weight corresponding to the image processing request according to the image processing type information and the image attribute information;
确定所述第一权重是否小于第一预设权重;determining whether the first weight is less than a first preset weight;
若是,则确定所述图像处理请求对应的任务类型是延时处理任务;If so, then determine that the task type corresponding to the image processing request is a delayed processing task;
若否,则确定所述图像处理请求对应的任务类型是实时任务。If not, it is determined that the task type corresponding to the image processing request is a real-time task.
可选地,所述确定模块202,进一步具体用于:Optionally, the determining
基于预设的图像处理类型信息与第一子权重的对应关系,确定所述图像处理信息包括的图像处理类型信息所对应的第一子权重;Based on the preset correspondence between the image processing type information and the first sub-weight, determine the first sub-weight corresponding to the image processing type information included in the image processing information;
根据预设的第二子权重的确定方式,确定所述图像处理信息包括的图像属性信息所对应的第二子权重;Determine the second sub-weight corresponding to the image attribute information included in the image processing information according to the preset second sub-weight determination method;
根据确定的所述第一子权重和所述第二子权重,确定所述图像处理请求对应的第一权重。Determine the first weight corresponding to the image processing request according to the determined first sub-weight and the second sub-weight.
可选地,所述第一调度模块203,具体用于:Optionally, the
获取分布式的多个任务分发设备中,每个所述任务分发设备所对应的传输带宽和传输时延;Obtain the transmission bandwidth and transmission delay corresponding to each task distribution device among the multiple distributed task distribution devices;
根据所述传输带宽和所述传输时延,确定每个所述任务分发设备对应的第二权重;determining a second weight corresponding to each task distribution device according to the transmission bandwidth and the transmission delay;
根据所述第二权重,从所述多个任务分发设备中确定用于对所述图像处理请求进行分发处理的目标任务分发设备。A target task distribution device for performing distribution processing on the image processing request is determined from the plurality of task distribution devices according to the second weight.
可选地,所述第一调度模块203,进一步具体用于:Optionally, the
基于预设的传输带宽与第三子权重的对应关系,确定获取的每个所述传输带宽所对应的第三子权重;基于预设的传输时延与第四子权重的对应关系,确定获取的每个所述传输时延所对应的第四子权重;根据所述第三子权重和所述第四子权重,确定每个所述任务分发设备对应的第二权重;Based on the preset correspondence between the transmission bandwidth and the third sub-weight, determine the acquired third sub-weight corresponding to each of the transmission bandwidths; based on the preset correspondence between the transmission delay and the fourth sub-weight, determine the acquired The fourth sub-weight corresponding to each of the transmission delays; according to the third sub-weight and the fourth sub-weight, determine the second weight corresponding to each of the task distribution devices;
或者,or,
根据预设的计算方式,基于每个所述任务分发设备所对应的传输带宽和传输时延计算每个所述任务分发设备对应的第二权重。According to a preset calculation manner, the second weight corresponding to each task distribution device is calculated based on the transmission bandwidth and transmission delay corresponding to each task distribution device.
可选地,所述装置还包括:第二调度模块;Optionally, the device further includes: a second scheduling module;
所述第二调度模块,若所述确定模块202确定所述任务类型是延时处理任务,则根据预设的第二调度规则从分布式的多个消息队列中确定目标消息队列;以及,The second scheduling module, if the determining
将所述图像处理请求保存至所述目标消息队列,以使所述目标消息队列对应的所述图像处理设备根据所述目标消息列队中的所述图像处理请求,对所述待处理图像进行图像处理,并向所述客户端发送图像处理结果信息。storing the image processing request in the target message queue, so that the image processing device corresponding to the target message queue performs image processing on the image to be processed according to the image processing request in the target message queue process, and send image processing result information to the client.
本申请实施例提供的分布式图像处理装置,在接收到客户端发送的图像处理请求时,若根据图像处理请求包括的待处理图像的图像处理信息确定对应的任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;以及,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。由此,通过对分布式的各设备进行合理调度以实现图像处理,不仅能够满足大并发量的图像处理需求,而且能够降低设备资源的浪费,维护系统的稳定性。此外,根据图像处理请求对应的任务类型进行相应处理,实现了请求的分级处理,能够在图像处理请求大并发量的情况下提升用户体验,从而维持甚至提升业务量。In the distributed image processing device provided in the embodiment of the present application, when receiving the image processing request sent by the client, if it is determined according to the image processing information of the image to be processed included in the image processing request that the corresponding task type is a real-time task, then according to the preset The set first scheduling rule determines the target task distribution device from among the distributed task distribution devices; and, sends the image processing request to the target task distribution device, so that the target task distribution device starts from the distributed Determine the target image processing device among the plurality of image processing devices, perform image processing on the image to be processed by the target image processing device, and send image processing result information to the client. Therefore, by reasonably scheduling distributed devices to realize image processing, it can not only meet the large amount of concurrent image processing requirements, but also reduce the waste of device resources and maintain the stability of the system. In addition, corresponding processing is performed according to the task type corresponding to the image processing request, which realizes the hierarchical processing of the request, and can improve user experience in the case of a large amount of concurrent image processing requests, thereby maintaining or even increasing the business volume.
本申请实施例提供的分布式图像处理装置能够实现上述分布式图像处理方法对应的实施例中的各个过程,为避免重复,这里不再赘述。The distributed image processing apparatus provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned distributed image processing method, and details are not repeated here to avoid repetition.
需要说明的是,本申请实施例提供的分布式图像处理装置与本申请实施例提供的分布式图像处理方法基于同一发明构思,因此该实施例的具体实施可以参见前述分布式图像处理方法的实施,重复之处不再赘述。It should be noted that the distributed image processing device provided in the embodiment of the present application and the distributed image processing method provided in the embodiment of the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned distributed image processing method , the repetitions will not be repeated.
对应上述实施例提供的分布式图像处理方法,基于相同的技术构思,本发明实施例还提供了一种分布式图像处理系统。图5为本申请实施例提供的分布式图像处理系统的组成示意图,如图5所示,该分布式图像处理系统包括:客户端301、分布式的多个任务调度设备302、分布式的多个任务分发设备303和分布式的多个图像处理设备304;Corresponding to the distributed image processing method provided in the foregoing embodiments, based on the same technical concept, an embodiment of the present invention also provides a distributed image processing system. Figure 5 is a schematic diagram of the composition of the distributed image processing system provided by the embodiment of the present application. As shown in Figure 5, the distributed image processing system includes: a
所述客户端301,用于响应于用户的图像处理操作,确定待处理图像的图像处理信息;根据第二预设方式从所述分布式的多个任务调度设备302中确定目标任务调度设备302,并根据所述图像处理信息向所述目标任务调度设备302发送图像处理请求;The
所述任务调度设备302,用于在接收到所述客户端301发送的所述图像处理请求时,根据所述图像处理信息确定所述图像处理请求对应的任务类型;若所述任务类型是实时任务,则根据预设的第一调度规则从所述分布式的多个任务分发设备303中确定目标任务分发设备303;将所述图像处理请求发送给所述目标任务分发设备303;The
所述任务分发设备303,用于在接收到所述任务调度设备302发送的所述图像处理请求时,根据第一预设方式从所述分布式的多个图像处理设备304中确定目标图像处理设备304,并将所述图像处理请求发送给所述目标图像处理设备304;The
所述图像处理设备304,用于在接收到所述任务分发设备303发送的所述图像处理请求时,根据所述图像处理请求对所述待处理图像进行图像处理,并向所述客户端301发送图像处理结果信息。The
本申请实施例提供的分布式图像处理系统,任务调度设备在接收到客户端发送的图像处理请求时,若根据图像处理请求包括的待处理图像的图像处理信息确定对应的任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;以及,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。由此,通过对分布式的各设备进行合理调度以实现图像处理,不仅能够满足大并发量的图像处理需求,而且能够降低设备资源的浪费,维护系统的稳定性。此外,根据图像处理请求对应的任务类型进行相应处理,实现了请求的分级处理,能够在图像处理请求大并发量的情况下提升用户体验,从而维持甚至提升业务量。In the distributed image processing system provided in the embodiment of the present application, when the task scheduling device receives the image processing request sent by the client, if it determines that the corresponding task type is a real-time task according to the image processing information of the image to be processed included in the image processing request, Then determine the target task distribution device from the distributed multiple task distribution devices according to the preset first scheduling rule; and send the image processing request to the target task distribution device, so that the target task distribution device A target image processing device is determined from a plurality of distributed image processing devices, image processing is performed on the image to be processed by the target image processing device, and image processing result information is sent to the client. Therefore, by reasonably scheduling distributed devices to realize image processing, it can not only meet the large amount of concurrent image processing requirements, but also reduce the waste of device resources and maintain the stability of the system. In addition, corresponding processing is performed according to the task type corresponding to the image processing request, which realizes the hierarchical processing of the request, and can improve user experience in the case of a large amount of concurrent image processing requests, thereby maintaining or even increasing the business volume.
本申请实施例提供的分布式图像处理系统能够实现上述分布式图像处理方法对应的实施例中的各个过程,为避免重复,这里不再赘述。The distributed image processing system provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned distributed image processing method, and details are not repeated here to avoid repetition.
需要说明的是,本申请实施例提供的分布式图像处理系统与本申请实施例提供的分布式图像处理方法基于同一发明构思,因此该实施例的具体实施可以参见前述分布式图像处理方法的实施,重复之处不再赘述。It should be noted that the distributed image processing system provided by the embodiment of the present application and the distributed image processing method provided by the embodiment of the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned distributed image processing method , the repetitions will not be repeated.
对应上述实施例提供的分布式图像处理方法,基于相同的技术构思,本发明实施例还提供了一种分布式图像处理设备,该设备用于执行上述的分布式图像处理方法。图6为实现本发明各个实施例的一种分布式图像处理设备的结构示意图,如图6所示,分布式图像处理设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器401和存储器402,存储器402中可以存储有一个或一个以上存储应用程序或数据。其中,存储器402可以是短暂存储或持久存储。存储在存储器402的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括对分布式图像处理设备中的一系列计算机可执行指令。更进一步地,处理器401可以设置为与存储器402通信,在分布式图像处理设备上执行存储器402中的一系列计算机可执行指令。分布式图像处理设备还可以包括一个或一个以上电源403,一个或一个以上有线或无线网络接口404,一个或一个以上输入输出接口405,一个或一个以上键盘406。Corresponding to the distributed image processing method provided in the above embodiment, based on the same technical concept, the embodiment of the present invention further provides a distributed image processing device, which is used to execute the above distributed image processing method. Fig. 6 is a schematic structural diagram of a distributed image processing device implementing various embodiments of the present invention. As shown in Fig. 6, distributed image processing devices may have relatively large differences due to different configurations or performances, and may include one or one The above-mentioned
在一个具体的本实施例中,分布式图像处理设备包括有处理器、通信接口、存储器和通信总线;其中,处理器、通信接口以及存储器通过总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序,实现以下方法步骤:In a specific embodiment, the distributed image processing device includes a processor, a communication interface, a memory, and a communication bus; wherein, the processor, the communication interface, and the memory complete communication with each other through the bus; the memory is used to store computer Program; the processor is used to execute the program stored on the memory, and realize the following method steps:
接收客户端发送的图像处理请求,所述图像处理请求包括待处理图像的图像处理信息;receiving an image processing request sent by the client, where the image processing request includes image processing information of the image to be processed;
根据所述图像处理信息确定所述图像处理请求对应的任务类型;determining a task type corresponding to the image processing request according to the image processing information;
若所述任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;If the task type is a real-time task, then determine the target task distribution device from a plurality of distributed task distribution devices according to a preset first scheduling rule;
将所述图像处理请求发送给所述目标任务分发设备,以使所述目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过所述目标图像处理设备对所述待处理图像进行图像处理,向所述客户端发送图像处理结果信息。sending the image processing request to the target task distribution device, so that the target task distribution device determines a target image processing device from a plurality of distributed image processing devices according to a first preset method, and uses the target The image processing device performs image processing on the image to be processed, and sends image processing result information to the client.
本申请实施例中的分布式图像处理设备,在接收到客户端发送的图像处理请求时,若根据图像处理请求包括的待处理图像的图像处理信息确定对应的任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;以及,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。由此,通过对分布式的各设备进行合理调度以实现图像处理,不仅能够满足大并发量的图像处理需求,而且能够降低设备资源的浪费,维护系统的稳定性。此外,根据图像处理请求对应的任务类型进行相应处理,实现了请求的分级处理,能够在图像处理请求大并发量的情况下提升用户体验,从而维持甚至提升业务量。In the distributed image processing device in the embodiment of the present application, when receiving the image processing request sent by the client, if it is determined according to the image processing information of the image to be processed included in the image processing request that the corresponding task type is a real-time task, then according to the preset The set first scheduling rule determines the target task distribution device from among the distributed task distribution devices; and, sends the image processing request to the target task distribution device, so that the target task distribution device starts from the distributed Determine the target image processing device among the plurality of image processing devices, perform image processing on the image to be processed by the target image processing device, and send image processing result information to the client. Therefore, by reasonably scheduling distributed devices to realize image processing, it can not only meet the large amount of concurrent image processing requirements, but also reduce the waste of device resources and maintain the stability of the system. In addition, corresponding processing is performed according to the task type corresponding to the image processing request, which realizes the hierarchical processing of the request, and can improve user experience in the case of a large amount of concurrent image processing requests, thereby maintaining or even increasing the business volume.
本申请实施例提供的分布式图像处理设备能够实现上述分布式图像处理方法对应的实施例中的各个过程,为避免重复,这里不再赘述。The distributed image processing device provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned distributed image processing method, and details are not repeated here to avoid repetition.
需要说明的是,本发明实施例提供的分布式图像处理设备与本发明实施例提供的分布式图像处理方法基于同一发明构思,因此该实施例的具体实施可以参见前述分布式图像处理方法的实施,重复之处不再赘述。It should be noted that the distributed image processing device provided by the embodiment of the present invention and the distributed image processing method provided by the embodiment of the present invention are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned distributed image processing method , the repetitions will not be repeated.
本申请实施例还提供一种计算机可读存储介质,存储介质内存储有计算机程序,计算机程序被处理器执行时实现以下方法步骤:The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following method steps are implemented:
接收客户端发送的图像处理请求,所述图像处理请求包括待处理图像的图像处理信息;receiving an image processing request sent by the client, where the image processing request includes image processing information of the image to be processed;
根据所述图像处理信息确定所述图像处理请求对应的任务类型;determining a task type corresponding to the image processing request according to the image processing information;
若所述任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;If the task type is a real-time task, then determine the target task distribution device from a plurality of distributed task distribution devices according to a preset first scheduling rule;
将所述图像处理请求发送给所述目标任务分发设备,以使所述目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过所述目标图像处理设备对所述待处理图像进行图像处理,向所述客户端发送图像处理结果信息。sending the image processing request to the target task distribution device, so that the target task distribution device determines a target image processing device from a plurality of distributed image processing devices according to a first preset method, and uses the target The image processing device performs image processing on the image to be processed, and sends image processing result information to the client.
本发明实施例中的计算机可读存储介质在被处理器执行时,接收客户端发送的图像处理请求,若根据图像处理请求包括的待处理图像的图像处理信息确定对应的任务类型是实时任务,则根据预设的第一调度规则从分布式的多个任务分发设备中确定目标任务分发设备;以及,将图像处理请求发送给目标任务分发设备,以使目标任务分发设备根据第一预设方式从分布式的多个图像处理设备中确定目标图像处理设备,并通过目标图像处理设备对待处理图像进行图像处理,向客户端发送图像处理结果信息。由此,通过对分布式的各设备进行合理调度以实现图像处理,不仅能够满足大并发量的图像处理需求,而且能够降低设备资源的浪费,维护系统的稳定性。此外,根据图像处理请求对应的任务类型进行相应处理,实现了请求的分级处理,能够在图像处理请求大并发量的情况下提升用户体验,从而维持甚至提升业务量。When the computer-readable storage medium in the embodiment of the present invention is executed by the processor, it receives the image processing request sent by the client, and if it is determined according to the image processing information of the image to be processed included in the image processing request that the corresponding task type is a real-time task, Then determine the target task distribution device from the distributed multiple task distribution devices according to the preset first scheduling rule; and send the image processing request to the target task distribution device, so that the target task distribution device A target image processing device is determined from a plurality of distributed image processing devices, image processing is performed on the image to be processed by the target image processing device, and image processing result information is sent to the client. Therefore, by reasonably scheduling distributed devices to realize image processing, it can not only meet the large amount of concurrent image processing requirements, but also reduce the waste of device resources and maintain the stability of the system. In addition, corresponding processing is performed according to the task type corresponding to the image processing request, which realizes the hierarchical processing of the request, and can improve user experience in the case of a large amount of concurrent image processing requests, thereby maintaining or even increasing the business volume.
本申请实施例提供的计算机可读存储介质能够实现上述分布式图像处理方法对应的实施例中的各个过程,为避免重复,这里不再赘述。The computer-readable storage medium provided in the embodiment of the present application can realize each process in the embodiment corresponding to the above-mentioned distributed image processing method, and to avoid repetition, details are not repeated here.
需要说明的是,本发明实施例提供的计算机可读存储介质与本发明实施例提供的分布式图像处理方法基于同一发明构思,因此该实施例的具体实施可以参见前述分布式图像处理方法的实施,重复之处不再赘述。It should be noted that the computer-readable storage medium provided by the embodiment of the present invention and the distributed image processing method provided by the embodiment of the present invention are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned distributed image processing method , the repetitions will not be repeated.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110490914.0A CN114979411B (en) | 2021-05-06 | 2021-05-06 | Distributed image processing method, device, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110490914.0A CN114979411B (en) | 2021-05-06 | 2021-05-06 | Distributed image processing method, device, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114979411A CN114979411A (en) | 2022-08-30 |
CN114979411B true CN114979411B (en) | 2023-07-04 |
Family
ID=82972877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110490914.0A Active CN114979411B (en) | 2021-05-06 | 2021-05-06 | Distributed image processing method, device, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114979411B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5754786A (en) * | 1996-09-13 | 1998-05-19 | At&T Corp | System and method for integrated overload control and message distribution |
CN102841816A (en) * | 2012-07-16 | 2012-12-26 | 北京市遥感信息研究所 | Method for parallel processing of remote sensing imagery data |
CN108228327A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | A kind for the treatment of method and apparatus of task |
CN108337275A (en) * | 2017-01-19 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | Task distribution method, device and equipment for Distributor |
CN110149456A (en) * | 2019-05-20 | 2019-08-20 | 珠海奔图电子有限公司 | Image processing method, service equipment, storage medium and computer equipment |
CN111506434A (en) * | 2020-06-30 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Task processing method and device and computer readable storage medium |
CN111813554A (en) * | 2020-07-17 | 2020-10-23 | 济南浪潮数据技术有限公司 | Task scheduling processing method and device, electronic equipment and storage medium |
CN112162856A (en) * | 2020-09-23 | 2021-01-01 | 武汉联影医疗科技有限公司 | GPU virtual resource allocation method and device, computer equipment and storage medium |
-
2021
- 2021-05-06 CN CN202110490914.0A patent/CN114979411B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5754786A (en) * | 1996-09-13 | 1998-05-19 | At&T Corp | System and method for integrated overload control and message distribution |
CN102841816A (en) * | 2012-07-16 | 2012-12-26 | 北京市遥感信息研究所 | Method for parallel processing of remote sensing imagery data |
CN108337275A (en) * | 2017-01-19 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | Task distribution method, device and equipment for Distributor |
CN108228327A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | A kind for the treatment of method and apparatus of task |
CN110149456A (en) * | 2019-05-20 | 2019-08-20 | 珠海奔图电子有限公司 | Image processing method, service equipment, storage medium and computer equipment |
CN111506434A (en) * | 2020-06-30 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Task processing method and device and computer readable storage medium |
CN111813554A (en) * | 2020-07-17 | 2020-10-23 | 济南浪潮数据技术有限公司 | Task scheduling processing method and device, electronic equipment and storage medium |
CN112162856A (en) * | 2020-09-23 | 2021-01-01 | 武汉联影医疗科技有限公司 | GPU virtual resource allocation method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114979411A (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107295110B (en) | Computing task processing method, edge node, service server and system | |
US20130254261A1 (en) | System and Method of Managing Servers for Streaming Desktop Applications | |
US9727579B2 (en) | Systems and methods for storing digital content | |
CN110716809B (en) | Method and device for scheduling cloud resources | |
WO2021185135A1 (en) | Message signaled interrupt implementation method, apparatus and device | |
US20170153909A1 (en) | Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine | |
CN114116184B (en) | Data processing method and device in virtual scene, equipment and medium | |
CN112433920A (en) | Buried point data reporting method, device, equipment and medium | |
CN109002364A (en) | Optimization method, electronic device and the readable storage medium storing program for executing of interprocess communication | |
CN106657182B (en) | Cloud file processing method and device | |
CN114327846B (en) | Cluster expansion method, device, electronic device and computer-readable storage medium | |
CN114036031B (en) | Scheduling system and method for resource service application in enterprise digital middleboxes | |
CN111031350B (en) | Transcoding resource scheduling method, electronic device and computer readable storage medium | |
CN112561301A (en) | Work order distribution method, device, equipment and computer readable medium | |
CN109951540B (en) | Data acquisition method and device based on content timeliness and electronic equipment | |
CN118368259B (en) | Network resource allocation method, device, electronic equipment and storage medium | |
CN107395708A (en) | A kind of method and apparatus for handling download request | |
CN114979411B (en) | Distributed image processing method, device, equipment and system | |
CN114500546A (en) | Communication message sending method, device and equipment based on load balancing cluster | |
CN109862069B (en) | Message processing method and device | |
CN115914236B (en) | Storage space allocation adjustment method and device, electronic equipment and storage medium | |
WO2018127013A1 (en) | Method and device for concurrent transmission of stream data | |
CN109981726A (en) | A kind of distribution method of memory node, server and system | |
CN114237893A (en) | Caching method, device, system, server and storage medium | |
US10469617B1 (en) | System and method for efficient network usage |
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 |