Container-based data processing method, device and equipment, and storage medium

By using remote services and operational status monitoring probes based on the ICE protocol within containers, the algorithm configuration and invocation process is simplified, solving the problems of complex algorithm configuration and difficult status detection in existing technologies, and improving the efficiency and reliability of data processing.

CN111488223BActive Publication Date: 2026-02-24PINGAN INT SMART CITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010211036.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-24
Publication Date
2026-02-24
Estimated Expiration
2040-03-24

AI Technical Summary

Technical Problem

In existing technologies, configuring and calling algorithms is complex, and it is impossible to determine whether the algorithm is working properly, resulting in low data processing efficiency.

Method used

The system obtains client request data through a pre-built application programming interface and establishes remote services based on the Internet Communication Engine (ICE) protocol. It stores and calls image or video algorithms in a pre-built container and uses a working status monitoring probe to monitor the algorithm status, simplifying the configuration and calling process.

Benefits of technology

It enables the algorithm to be invoked without complicated steps and parameter configuration, and can detect the algorithm's working status in real time, thus improving the efficiency and reliability of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111488223B_ABST
    Figure CN111488223B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of clouds, and discloses a container-based data processing method, device and equipment and a storage medium, which are used for configuring an algorithm and calling a target algorithm according to remote services and a name, do not need to call the algorithm through complex steps, and can detect the working state of the algorithm. The container-based data processing method comprises the following steps: obtaining client request data through a preset application programming interface; when the client request data is picture data, obtaining a target picture algorithm from a plurality of preset picture algorithms based on a picture remote service, and obtaining a picture analysis result according to the target picture algorithm; when the client request data is video data, obtaining a target video algorithm from a plurality of preset video algorithms based on a video remote service, and obtaining a video analysis result according to the target video algorithm; and transmitting the picture analysis result or the video analysis result to a target callback address, wherein the target callback address is a preset callback address corresponding to the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud technology, and in particular to a container-based data processing method, apparatus, device, and storage medium. Background Technology

[0002] With the rapid development of cloud computing technology, data information is changing rapidly. Enterprises' operations and development increasingly require the support of efficient and accurate data processing. The key to efficient and accurate data processing lies in algorithms, which are becoming increasingly important in the data processing process.

[0003] In existing technologies, configuring and calling algorithms requires running complex parameters, making the process complicated, and the client cannot know whether the algorithm can provide services normally. Summary of the Invention

[0004] The main objective of this invention is to solve the problems of complex configuration and invocation algorithms, and the inability to determine whether the algorithm is working properly.

[0005] The first aspect of this invention provides a container-based data processing method, comprising: acquiring client-requested data, wherein the client-requested data is image data or video data, through a pre-built application programming interface; when the client-requested data is image data, acquiring a target image algorithm from multiple pre-built image algorithms based on an image remote service, and obtaining an image analysis result based on the target image algorithm, wherein the image remote service is a remote service established based on the Internet Communication Engine (ICE) protocol, and the multiple pre-built image algorithms are stored in a pre-built container; when the client-requested data is video data, acquiring a target video algorithm from multiple pre-built video algorithms based on a video remote service, and obtaining a video analysis result based on the target video algorithm, wherein the video remote service is a remote service established based on the ICE protocol, and the multiple pre-built video algorithms are stored in a pre-built container; and transmitting the image analysis result or the video analysis result to a target callback address, wherein the target callback address is a pre-built callback address corresponding to the client.

[0006] Optionally, in a first implementation of the first aspect of the present invention, obtaining client request data through a pre-defined application programming interface (API), wherein the client request data is image data or video data, includes: obtaining client request information through the pre-defined API, and extracting request information key names and request information key values ​​from the client request information; processing the request information key names and request information key values ​​into a request information string conforming to Jason's format; and encapsulating the request information string into image data conforming to the image remote service format, or encapsulating the request information string into video data conforming to the video remote service format, based on the ICE protocol.

[0007] Optionally, in a second implementation of the first aspect of the present invention, the step of obtaining a target image algorithm from multiple preset image algorithms based on an image remote service and obtaining an image analysis result based on the target image algorithm when the client requests image data includes: extracting the input source name of the image data from the image data; matching the input source name of the image data with multiple image input source standard names based on the image remote service to determine the target image algorithm from multiple preset image algorithms, wherein the target image algorithm includes an image standard dotted frame region, and the multiple image standard input source names are identifiers of multiple preset image algorithms; and inputting the image data into the image standard dotted frame region for data analysis based on the image remote service to obtain the image analysis result.

[0008] Optionally, in a third implementation of the first aspect of the present invention, when the client requests data as video data, based on a video remote service, a target video algorithm is obtained from multiple preset video algorithms, and a video analysis result is obtained according to the target video algorithm. The video remote service is a remote service established based on the ICE protocol, comprising: when the client requests data as video data, extracting the video stream name of the video data from the video data; matching the video stream name of the video data with multiple video standard stream names, determining the target video algorithm from multiple preset video algorithms, the target video algorithm including a video standard frame extraction time and a dotted wireframe area after video standard frame extraction, the multiple video standard stream names being identifiers of multiple preset video algorithms; extracting frames from the video data according to the video standard frame extraction time to obtain frame-extracted video data; and inputting the frame-extracted video data into the dotted wireframe area after video standard frame extraction for analysis based on the video remote service to obtain a video analysis result.

[0009] Optionally, in a fourth implementation of the first aspect of the present invention, before obtaining client request data through a pre-set application programming interface, wherein the client request data is image data or video data, the method further includes: obtaining multiple image algorithm images and multiple video algorithm images from an algorithm platform, and configuring multiple pre-set image algorithms and multiple pre-set video algorithms in a pre-set container based on the multiple image algorithm images and multiple video algorithm images, wherein the multiple pre-set image algorithms are used to analyze the image data, and the multiple pre-set video algorithms are used to analyze the video data.

[0010] Optionally, in the fifth implementation of the first aspect of the present invention, the step of obtaining multiple image algorithm images and multiple video algorithm images from the algorithm platform, and configuring multiple preset image algorithms and multiple preset video algorithms in the preset container based on the multiple image algorithm images and multiple video algorithm images, wherein the multiple preset image algorithms are used to analyze the image data, and the multiple preset video algorithms are used to analyze the video data, includes: when multiple preset image algorithms are configured in the preset container, for one of the multiple image algorithm images, extracting the image algorithm image from the training platform, and encapsulating the image remote service into the image algorithm image to obtain an initial image algorithm; setting the image standard input source name and the image standard point wireframe area into the initial image algorithm to obtain a transitional image algorithm; setting a first working state monitoring probe into the transitional image algorithm to obtain a preset image algorithm, wherein the first working state monitoring probe is used to monitor whether the preset image algorithm is in a working state; and obtaining multiple preset image algorithms for other image algorithm images in the multiple image algorithm images.

[0011] Optionally, in the sixth implementation of the first aspect of the present invention, the step of obtaining multiple image algorithm images and multiple video algorithm images from the algorithm platform, and configuring multiple preset image algorithms and multiple preset video algorithms in the preset container based on the multiple image algorithm images and multiple video algorithm images, wherein the multiple preset image algorithms are used to analyze the image data, and the multiple preset video algorithms are used to analyze the video data, includes: when multiple preset video algorithms are configured in the preset container, for one of the multiple video algorithm images, extracting the video algorithm image from the training platform, and encapsulating the video call service into the video algorithm image to obtain an initial video algorithm; setting the video standard stream name, the video standard frame extraction time, and the dotted wireframe area after the video standard frame extraction into the initial video algorithm to obtain a transitional video algorithm; setting a second working state monitoring probe into the transitional video algorithm to obtain a preset video algorithm, wherein the second working state monitoring probe is used to monitor whether the preset video algorithm is in a working state; and obtaining multiple preset video algorithms for other video algorithm images in the multiple video algorithm images.

[0012] A second aspect of the present invention provides a container-based data processing apparatus, comprising: a data acquisition module, configured to acquire client-requested data via a pre-defined application programming interface, wherein the client-requested data is image data or video data; an image algorithm analysis module, configured to, when the client-requested data is image data, acquire a target image algorithm from multiple pre-defined image algorithms based on an image remote service, and obtain an image analysis result based on the target image algorithm, wherein the image remote service is a remote service established based on the Internet Communication Engine (ICE) protocol, and the multiple pre-defined image algorithms are stored in a pre-defined container; a video algorithm analysis module, configured to, when the client-requested data is video data, acquire a target video algorithm from multiple pre-defined video algorithms based on a video remote service, and obtain a video analysis result based on the target video algorithm, wherein the video remote service is a remote service established based on the ICE protocol, and the multiple pre-defined video algorithms are stored in a pre-defined container; and a transmission module, configured to transmit the image analysis result or the video analysis result to a target callback address, wherein the target callback address is a pre-defined callback address corresponding to the client.

[0013] Optionally, in a first implementation of the second aspect of the present invention, the data acquisition module is specifically used to: acquire client request information through a pre-set application programming interface, and extract request information key names and request information key values ​​from the client request information; process the request information key names and request information key values ​​into a request information string conforming to Jason's format; and based on the ICE protocol, encapsulate the request information string into image data conforming to the image remote service format, or encapsulate the request information string into video data conforming to the video remote service format.

[0014] Optionally, in a second implementation of the second aspect of the present invention, the image algorithm analysis module is specifically used for: when the client requests image data, extracting the input source name of the image data from the image data; based on the image remote service, matching the input source name of the image data with multiple standard image input source names, determining a target image algorithm among multiple preset image algorithms, wherein the target image algorithm includes a standard dotted frame region of the image, and the multiple standard image input source names are identifiers of multiple preset image algorithms; and based on the image remote service, inputting the image data into the standard dotted frame region of the image for data analysis to obtain image analysis results.

[0015] Optionally, in a third implementation of the second aspect of the present invention, the video algorithm analysis module is specifically used for: when the client requests video data, extracting the video stream name of the video data from the video data; matching the video stream name of the video data with multiple standard video stream names, determining a target video algorithm among multiple preset video algorithms, wherein the target video algorithm includes a standard video frame extraction time and a dotted wireframe region after standard video frame extraction, and the multiple standard video stream names are identifiers of multiple preset video algorithms; extracting frames from the video data according to the standard video frame extraction time to obtain frame-extracted video data; and, based on the video remote service, inputting the frame-extracted video data into the dotted wireframe region after standard video frame extraction for analysis to obtain video analysis results.

[0016] Optionally, in a fourth implementation of the second aspect of the present invention, the container-based data processing device further includes: a configuration module, configured to obtain multiple image algorithm images and multiple video algorithm images from an algorithm platform, and configure multiple preset image algorithms and multiple preset video algorithms in the preset container according to the multiple image algorithm images and multiple video algorithm images, wherein the multiple preset image algorithms are used to analyze the image data, and the multiple preset video algorithms are used to analyze the video data.

[0017] Optionally, in the fifth implementation of the second aspect of the present invention, the configuration module is specifically used for: when configuring multiple preset image algorithms in the preset container, for one of the multiple image algorithm images, extracting the image algorithm image from the training platform, and encapsulating the image remote service into the image algorithm image to obtain an initial image algorithm; setting the image standard input source name and the image standard dot frame region into the initial image algorithm to obtain a transitional image algorithm; setting a first working state monitoring probe into the transitional image algorithm to obtain a preset image algorithm, wherein the first working state monitoring probe is used to monitor whether the preset image algorithm is in a working state; and obtaining multiple preset image algorithms for other image algorithm images in the multiple image algorithm images.

[0018] Optionally, in the sixth implementation of the second aspect of the present invention, the configuration module is further configured to: when multiple preset video algorithms are configured in the preset container, for one of the multiple video algorithm images, extract the video algorithm image from the training platform, and encapsulate the video call service into the video algorithm image to obtain an initial video algorithm; set the video standard stream name, the video standard frame extraction time, and the dotted wireframe area after the video standard frame extraction into the initial video algorithm to obtain a transitional video algorithm; set a second working state monitoring probe into the transitional video algorithm to obtain a preset video algorithm, wherein the second working state monitoring probe is used to monitor whether the preset video algorithm is in a working state; and obtain multiple preset video algorithms for other video algorithm images in the multiple video algorithm images.

[0019] A third aspect of the present invention provides a container-based data processing device, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a circuit; the at least one processor invokes the instructions in the memory to cause the container-based data processing device to perform the container-based data processing method described above.

[0020] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the container-based data processing method described above.

[0021] In the technical solution provided by this invention, client request data is obtained through a pre-built application programming interface (API). The client request data can be image data or video data. When the client request data is image data, a target image algorithm is selected from multiple pre-built image algorithms based on an image remote service. An image analysis result is obtained based on the target image algorithm. The image remote service is a remote service established based on the Internet Communication Engine (ICE) protocol, and the multiple pre-built image algorithms are stored in a pre-built container. When the client request data is video data, a target video algorithm is selected from multiple pre-built video algorithms based on a video remote service. A video analysis result is obtained based on the target video algorithm. The video remote service is a remote service established based on the ICE protocol, and the multiple pre-built video algorithms are stored in a pre-built container. The image analysis result or the video analysis result is transmitted to a target callback address, which is a pre-built callback address corresponding to the client. In this embodiment of the invention, the algorithm is configured and the target algorithm is invoked based on the remote service and name, eliminating the need for complex steps and parameter configuration of the algorithm and the invocation of the algorithm. Furthermore, the working status of the algorithm can be detected. Attached Figure Description

[0022] Figure 1 This is a schematic diagram of an embodiment of the container-based data processing method of the present invention;

[0023] Figure 2 This is a schematic diagram of another embodiment of the container-based data processing method of the present invention;

[0024] Figure 3 This is a schematic diagram of one embodiment of the container-based data processing device according to the present invention;

[0025] Figure 4 This is a schematic diagram of another embodiment of the container-based data processing device of the present invention;

[0026] Figure 5 This is a schematic diagram of one embodiment of a container-based data processing device according to the present invention. Detailed Implementation

[0027] This invention provides a container-based data processing method, apparatus, device, and storage medium for invoking a target image algorithm to analyze user request data based on a remote image service and an input source name, or invoking a target video algorithm to analyze user request data based on a remote video service and a video stream name. A working status monitoring probe monitors whether a preset algorithm is in working condition. The server does not need to go through complex steps to invoke the algorithm, and the working status of the algorithm can be detected in real time.

[0028] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the container-based data processing method in this invention includes:

[0030] 101. Obtain client-requested data through a pre-built application programming interface. The client-requested data may be image data or video data.

[0031] The server obtains client request data, including image data and video data, through a pre-built application programming interface.

[0032] When images or videos need to be analyzed or processed, the server first obtains request information from the client, which includes image and video information. The server then processes this client request information into client request data using a pre-defined application programming interface (API). Since the client request information includes both image and video information, the client request data will be either image data or video data.

[0033] It is understood that the executing entity of this invention can be a container-based data processing device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.

[0034] 102. When the client requests image data, the target image algorithm is obtained from multiple preset image algorithms based on the remote image service, and the image analysis result is obtained according to the target image algorithm. The remote image service is a remote service established based on the Internet communication engine ICE protocol, and multiple preset image algorithms are stored in a preset container.

[0035] When a client requests image data, the image remote service, based on the Internet Communications Engine (ICE) protocol, matches the image data against multiple pre-set image algorithms to obtain the target image algorithm. The server then uses the target image algorithm to obtain the image analysis result.

[0036] For example, when a client requests image data A, the server, in conjunction with a remote image service, matches image data A against multiple pre-defined image algorithms to obtain a target algorithm A. The server then uses the target algorithm A to analyze image data A, yielding image analysis result A.

[0037] It's important to note that multiple pre-built image algorithms are stored in a pre-built container, which can be either a memory area or the algorithm platform itself. The remote image service can be understood as a remote procedure call (RPC) service based on the ICE protocol within the image algorithm image. This remote image service is a protocol that doesn't require knowledge of the underlying network technology; it directly requests services from a remote computer program over the network. RPC uses a client-to-server model, where the requesting program is the client, and the service provider is the server. First, the client process sends a call message with process parameters to the service process and then waits for a response. On the server side, the process remains in a sleep state until a call message arrives. When a call message arrives, the server obtains the process parameters, the calculation result, and sends a response message, then waits for the next call message. Finally, the client process receives the response message, obtains the process result, and then execution continues.

[0038] 103. When the client requests video data, the target video algorithm is obtained from multiple preset video algorithms based on the video remote service, and the video analysis result is obtained according to the target video algorithm. The video remote service is a remote service established based on the ICE protocol, and multiple preset video algorithms are stored in a preset container.

[0039] When a client requests video data, the server uses a video remote service based on the ICE protocol to match the video data among multiple preset video algorithms to obtain the target video algorithm. The server then uses the target video algorithm to obtain the video analysis results.

[0040] For example, when a client requests video data A, the server, in conjunction with a remote video service, matches video data A against multiple pre-defined video algorithms to obtain a target algorithm A. The server then uses the target algorithm A to analyze the video data A, yielding the video analysis result A.

[0041] It should be noted that multiple pre-built video algorithms are stored in a pre-built container, which can be a memory area or an algorithm platform. The video remote service can be understood as an RPC service based on the ICE protocol within the video algorithm image.

[0042] 104. Transmit the image analysis results or video analysis results to the target callback address, which is the client's corresponding preset callback address.

[0043] After receiving the image analysis results, the server transmits the results to the target callback address according to the image standard output conditions and callback frequency. During the transmission, the server monitors the transmission duration according to the image standard output to ensure the results are transmitted correctly. Alternatively, after receiving the video analysis results, the server transmits the results to the target callback address according to the video standard output conditions and callback frequency. During the transmission, the server monitors the transmission duration according to the video standard output to ensure the results are transmitted correctly.

[0044] It should be noted that the standard output conditions for images, the callback frequency of image standards, and the monitoring duration of image standard output can be extracted using the target image algorithm; similarly, the standard output conditions for videos, the callback frequency of videos, and the monitoring duration of videos can be extracted using the target video algorithm. Furthermore, the standard analysis frequency for images, the standard analysis frequency for videos, the standard output configuration for images, and the standard output configuration for videos can also be extracted using the target image algorithm and the target video algorithm; however, these details will not be elaborated upon in this embodiment.

[0045] In this embodiment of the invention, the algorithm and the target algorithm are configured based on the remote service and name, without the need for complex steps and parameter configuration and invocation of the algorithm, and the working status of the algorithm can be detected.

[0046] Please see Figure 2 Another embodiment of the container-based data processing method in this invention includes:

[0047] 201. Obtain multiple image algorithm images and multiple video algorithm images from the algorithm platform, and configure multiple preset image algorithms and multiple preset video algorithms in a preset container based on the multiple image algorithm images and multiple preset video algorithms. The multiple preset image algorithms are used to analyze image data, and the multiple preset video algorithms are used to analyze video data.

[0048] The server first obtains multiple image algorithm images and multiple video algorithm images from the algorithm platform, and then configures the multiple image algorithm images and multiple video algorithm images in a pre-configured container to obtain multiple pre-configured image algorithms for analyzing image data and multiple pre-configured video algorithms for analyzing video data.

[0049] Specifically, when configuring multiple pre-set image algorithms in a pre-set container, firstly, one image algorithm image is extracted from the training platform, and then the remote image service is encapsulated into the image algorithm image to obtain the initial image algorithm. Secondly, the server encapsulates the standard input source name of the image and the standard point-frame region of the image into the initial image algorithm to obtain the transitional image algorithm. Finally, the server sets the first working state monitoring probe, used to monitor whether the pre-set image algorithm is in working state, into the transitional image algorithm, thereby obtaining a pre-set image algorithm. The server configures other image algorithm images in the training platform in the same way to obtain multiple pre-set image algorithms.

[0050] Specifically, when configuring multiple preset video algorithms in a preset container, firstly, one video algorithm image is extracted from the training platform, and then the video remote service is encapsulated into the video algorithm image to obtain the initial video algorithm. Secondly, the server encapsulates the video standard stream name, the video standard frame extraction time, and the dotted wireframe area after the video standard frame extraction into the initial video algorithm to obtain the transitional video algorithm. Finally, the server sets a second working state monitoring probe, used to monitor whether the preset video algorithm is in working state, into the transitional video algorithm, thereby obtaining a preset video algorithm. The server configures other video algorithm images in the training platform in the same way to obtain multiple preset video algorithms.

[0051] It should be noted that the multiple image algorithm mirrors and multiple video algorithm mirrors from the algorithm platform can be either local algorithm mirrors or online algorithm mirrors. The first working status monitoring probe includes a first health monitoring information survival probe and a first health monitoring information readiness probe, and the second working status monitoring probe includes a second health monitoring information survival probe and a second health monitoring information readiness probe.

[0052] The client periodically checks the pre-set image algorithm using a first health monitoring information liveness probe. If the pre-set image algorithm is healthy, the first health monitoring information ready probe notifies the server to continue providing normal service to the client. If the pre-set image algorithm is unhealthy, the first health monitoring information ready probe notifies the server to decide whether to restart the client according to the restart policy. Similarly, the client periodically checks the pre-set video algorithm using a second health monitoring information liveness probe. If the pre-set video algorithm is healthy, the second health monitoring information ready probe notifies the server to provide normal service. If the pre-set video algorithm is unhealthy, the second health monitoring information ready probe notifies the server to decide whether to restart the client according to the restart policy.

[0053] 202. Obtain client-requested data through a pre-built application programming interface. The client-requested data may be image data or video data.

[0054] The server obtains client request data, including image data and video data, through a pre-built application programming interface.

[0055] When images or videos need to be analyzed or processed, the server first obtains request information from the client, which includes image and video information. The server then processes this client request information into client request data using a pre-defined application programming interface (API). Since the client request information includes both image and video information, the client request data will be either image data or video data.

[0056] It is understood that the executing entity of this invention can be a container-based data processing device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.

[0057] Specifically, after the server obtains the client's request information through a pre-built application programming interface, it first extracts request information key-value pairs from the client's request information. The request information key-value pairs include a request information key name and a request information key value. Then, the server converts the request information key name and request information key value into a JavaScript object notation (JSON) format request information string. Finally, the server reads the request information string attributes from the request information string and determines whether the user's request information is image information or video information based on the request information string attributes. If the user's request information is image information, the server encapsulates the request information string into image data conforming to the remote image service format based on the ICE protocol. If the user's request information is video information, the server encapsulates the request information string into video data conforming to the remote video service format based on the ICE protocol.

[0058] 203. When the client requests image data, the target image algorithm is obtained from multiple preset image algorithms based on the remote image service, and the image analysis result is obtained according to the target image algorithm. The remote image service is a remote service established based on the ICE protocol, and multiple preset image algorithms are stored in a preset container.

[0059] When a client requests image data, the server uses a remote image service based on the ICE protocol to match the image data among multiple pre-set image algorithms to obtain the target image algorithm. The server then uses the target image algorithm to obtain the image analysis result.

[0060] For example, when a client requests image data A, the server, in conjunction with a remote image service, matches image data A against multiple pre-defined image algorithms to obtain a target algorithm A. The server then uses the target algorithm A to analyze image data A, yielding image analysis result A.

[0061] It should be noted that remote image service can be understood as an RPC service based on the ICE protocol within an image algorithm mirror. Remote image service is a service that does not require knowledge of the underlying network technology and directly requests services from a remote computer program over the network.

[0062] Specifically, when a client requests image data, the server extracts the input source name of the image data from the image data; then the server matches the input source name of the image data with multiple standard image input source names to determine the target image algorithm, which includes the standard point frame area of ​​the image; finally, based on the remote image service, the server inputs the image data into the standard point frame area of ​​the image for data analysis to obtain the image analysis results.

[0063] For example, the server extracts the input source name of the image data from image data A as the input source name 1 of the image data. The server searches for the image standard input source name that matches the input source name 1 of the image data among multiple image standard input source names to obtain the target image standard data source name 1. Based on the target image standard data source name 1, the server obtains the target image algorithm 1. The server inputs the image data into the image standard point wireframe area in the target image algorithm 1 for data analysis and obtains the image analysis results.

[0064] It should be noted that the target image algorithm is configured with information such as the image standard input source name, image standard call frequency, image algorithm standard call method, image standard point wireframe area, image standard callback frequency, image standard output conditions, and image standard output monitoring duration.

[0065] 204. When the client requests video data, the target video algorithm is obtained from multiple preset video algorithms based on the video remote service, and the video analysis result is obtained according to the target video algorithm. The video remote service is a remote service established based on the ICE protocol, and multiple preset video algorithms are stored in a preset container.

[0066] When a client requests video data, the server uses a video remote service based on the ICE protocol to match the video data among multiple preset video algorithms to obtain the target video algorithm. The server then uses the target video algorithm to obtain the video analysis results.

[0067] For example, when a client requests video data A, the server, in conjunction with a remote video service, matches video data A against multiple pre-defined video algorithms to obtain a target algorithm A. The server then uses the target algorithm A to analyze the video data A, yielding the video analysis result A.

[0068] It should be noted that the video remote service can be understood as an RPC service based on the ICE protocol within the video algorithm image.

[0069] Specifically, when a client requests video data, the server extracts the video stream name from the video data. Then, the server matches the video stream name with multiple standard video stream names to determine the target video algorithm, including the standard video frame extraction time and the dotted wireframe area after standard frame extraction. Finally, based on the video remote service, the server extracts frames from the video data at the standard video frame extraction time to obtain the extracted video data. The extracted video data is then input into the dotted wireframe area after standard frame extraction for data analysis to obtain the video analysis results.

[0070] For example, the server extracts the video stream name of the video data from video data A as video stream name 1. The server searches for a video standard video stream name that matches video stream name 1 among multiple video standard video stream names to obtain target video standard data source name 1. Based on target video standard data source name 1, the server obtains target video algorithm 1. Then, the server performs frame extraction on the video data at the video standard frame extraction time to obtain the extracted video data. Finally, the video data is input into the dotted wireframe area after video standard frame extraction for data analysis to obtain the video analysis results.

[0071] It should be noted that the target video algorithm is configured with information such as the video standard stream name, video standard call frequency, video algorithm standard call method, video standard dotted wireframe area, video standard callback frequency, video standard output conditions, and video standard output monitoring duration.

[0072] 205. Transmit the image analysis results or video analysis results to the target callback address, which is the client's corresponding preset callback address.

[0073] After receiving the image analysis results, the server transmits the image analysis results to the target callback address according to the image standard output conditions and callback frequency. During the transmission of the image analysis results, the server monitors whether the image analysis results are transmitted normally according to the image standard output monitoring duration. Alternatively, after receiving the video analysis results, the server transmits the video analysis results to the target callback address according to the video standard output conditions and callback frequency. During the transmission of the video analysis results, the server monitors whether the video analysis results are transmitted normally according to the video standard output monitoring duration.

[0074] It should be noted that the standard output conditions for images, the callback frequency of image standards, and the monitoring duration of image standard output can be extracted using the target image algorithm; similarly, the standard output conditions for videos, the callback frequency of videos, and the monitoring duration of videos can be extracted using the target video algorithm. Furthermore, the standard analysis frequency for images, the standard analysis frequency for videos, the standard output configuration for images, and the standard output configuration for videos can also be extracted using the target image algorithm and the target video algorithm; however, these details will not be elaborated upon in this embodiment.

[0075] In this embodiment of the invention, the algorithm and the target algorithm are configured based on the remote service and name, without the need for complex steps and parameter configuration and invocation of the algorithm, and the working status of the algorithm can be detected.

[0076] The container-based data processing method in the embodiments of the present invention has been described above. The container-based data processing apparatus in the embodiments of the present invention will be described below. Please refer to [link / reference]. Figure 3One embodiment of the container-based data processing device of the present invention includes:

[0077] The data acquisition module 301 is used to acquire client-requested data through a pre-built application programming interface. The client-requested data may be image data or video data.

[0078] Image algorithm analysis module 302 is used to obtain the target image algorithm from multiple preset image algorithms based on the remote image service when the client requests image data, and to obtain the image analysis result based on the target image algorithm. The remote image service is a remote service established based on the ICE protocol, and multiple preset image algorithms are stored in a preset container.

[0079] The video algorithm analysis module 303 is used to obtain the target video algorithm from multiple preset video algorithms based on the video remote service when the client requests video data, and to obtain the video analysis result based on the target video algorithm. The video remote service is a remote service established based on the ICE protocol, and multiple preset video algorithms are stored in a preset container.

[0080] The transmission module 304 is used to transmit the image analysis results or video analysis results to the target callback address, which is the preset callback address corresponding to the client.

[0081] In this embodiment of the invention, the algorithm and the target algorithm are configured based on the remote service and name, without the need for complex steps and parameter configuration and invocation of the algorithm, and the working status of the algorithm can be detected.

[0082] Please see Figure 4 Another embodiment of the container-based data processing device in this invention includes:

[0083] The data acquisition module 301 is used to acquire client-requested data through a pre-built application programming interface. The client-requested data may be image data or video data.

[0084] Image algorithm analysis module 302 is used to obtain the target image algorithm from multiple preset image algorithms based on the remote image service when the client requests image data, and to obtain the image analysis result based on the target image algorithm. The remote image service is a remote service established based on the Internet communication engine ICE protocol, and multiple preset image algorithms are stored in a preset container.

[0085] The video algorithm analysis module 303 is used to obtain the target video algorithm from multiple preset video algorithms based on the video remote service when the client requests video data, and to obtain the video analysis result based on the target video algorithm. The video remote service is a remote service established based on the ICE protocol, and multiple preset video algorithms are stored in a preset container.

[0086] The transmission module 304 is used to transmit the image analysis results or video analysis results to the target callback address, which is the preset callback address corresponding to the client.

[0087] Optionally, the data acquisition module 301 can also be specifically used for:

[0088] The client request information is obtained through a pre-defined application programming interface, and the request information key name and request information key value are extracted from the client request information.

[0089] Process the request information key names and request information key values ​​into request information strings that conform to Jason's format;

[0090] Based on the ICE protocol, the request information string is encapsulated into image data conforming to the remote image service format, or the request information string is encapsulated into video data conforming to the remote video service format.

[0091] Optionally, the image algorithm analysis module 302 can also be specifically used for:

[0092] When the client requests image data, extract the input source name of the image data from the image data;

[0093] Based on remote image services, the input source name of the image data is matched with multiple standard image input source names, and the target image algorithm is determined from multiple preset image algorithms. The target image algorithm includes the standard point frame area of ​​the image, and the multiple standard image input source names are the identifiers of multiple preset image algorithms.

[0094] Based on remote image services, image data is input into the standard point frame area of ​​the image for data analysis, and the image analysis results are obtained.

[0095] Optionally, the video algorithm analysis module 303 can also be specifically used for:

[0096] When the client requests video data, extract the video stream name from the video data;

[0097] The video stream name of the video data is matched with multiple video standard stream names to determine the target video algorithm among multiple preset video algorithms. The target video algorithm includes the video standard frame extraction time and the dotted wireframe area after the video standard frame extraction. The multiple video standard stream names are the identifiers of multiple preset video algorithms.

[0098] Based on the standard video frame extraction time, the video data is extracted into frames to obtain the extracted video data.

[0099] Based on remote video services, the extracted video data is input into the point-and-wire frame area of ​​the video standard for analysis, and the video analysis results are obtained.

[0100] Optionally, the container-based data processing apparatus also includes:

[0101] The configuration module 305 is used to obtain multiple image algorithm images and multiple video algorithm images from the algorithm platform, and configure multiple preset image algorithms and multiple preset video algorithms in a preset container based on the multiple image algorithm images and multiple video algorithm images. The multiple preset image algorithms are used to analyze image data, and the multiple preset video algorithms are used to analyze video data.

[0102] Optionally, the configuration module 305 can also be specifically used for:

[0103] When multiple pre-configured image algorithms are configured in a pre-configured container, for one of the image algorithm images, the image algorithm image from the training platform is extracted, and the remote image service is encapsulated into the image algorithm image to obtain the initial image algorithm.

[0104] The image standard input source name and the image standard point wireframe area are set into the initial image algorithm to obtain the transition image algorithm;

[0105] The first working state monitoring probe is set into the transition image algorithm to obtain the preset image algorithm. The first working state monitoring probe is used to monitor whether the preset image algorithm is in working state.

[0106] For other image algorithm images in multiple image algorithm images, obtain multiple preset image algorithms.

[0107] Optionally, the configuration module 305 can also be specifically used for:

[0108] When multiple pre-configured video algorithms are configured in a pre-configured container, for one of the video algorithm images, the video algorithm image from the training platform is extracted, and the video call service is encapsulated into the video algorithm image to obtain the initial video algorithm.

[0109] The video standard stream name, the video standard frame extraction time, and the dotted wireframe area after the video standard frame extraction are set into the initial video algorithm to obtain the transition video algorithm.

[0110] The second working status monitoring probe is set into the above transition video algorithm to obtain the preset video algorithm. The second working status monitoring probe is used to monitor whether the preset video algorithm is in working state.

[0111] For other video algorithm images in multiple video algorithm images, obtain multiple preset video algorithms.

[0112] In this embodiment of the invention, the algorithm and the target algorithm are configured based on the remote service and name, without the need for complex steps and parameter configuration and invocation of the algorithm, and the working status of the algorithm can be detected.

[0113] above Figure 3 and Figure 4 The container-based data processing device in this embodiment of the invention will be described in detail from the perspective of modular functional entities. The container-based data processing device in this embodiment of the invention will be described in detail from the perspective of hardware processing.

[0114] Figure 5 This is a schematic diagram of a container-based data processing device 500 provided in an embodiment of the present invention. The container-based data processing device 500 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 can be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the container-based data processing device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the container-based data processing device 500.

[0115] The container-based data processing device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 5 The container-based data processing device structure shown does not constitute a limitation on the container-based data processing device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0116] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of a container-based data processing method.

[0117] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0118] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0119] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A container-based data processing method, characterized in that, The container-based data processing method includes: The client request data is obtained through a pre-built application programming interface, and the client request data is either image data or video data; When the client requests image data, a target image algorithm is obtained from multiple preset image algorithms based on the remote image service, and the image analysis result is obtained according to the target image algorithm. The remote image service is a remote service established based on the Internet Communication Engine (ICE) protocol, and the multiple preset image algorithms are stored in a preset container. When the client requests video data, a target video algorithm is obtained from multiple preset video algorithms based on the video remote service, and video analysis results are obtained according to the target video algorithm. The video remote service is a remote service established based on the ICE protocol, and the multiple preset video algorithms are stored in a preset container. The image analysis result or the video analysis result is transmitted to the target callback address, which is the preset callback address corresponding to the client. Before obtaining client request data via a pre-defined application programming interface (API), where the client request data is image data or video data, the method further includes: obtaining multiple image algorithm images and multiple video algorithm images from an algorithm platform, and configuring multiple pre-defined image algorithms and multiple pre-defined video algorithms in a pre-defined container based on the multiple image algorithm images and multiple video algorithm images. The multiple pre-defined image algorithms are used to analyze the image data, and the multiple pre-defined video algorithms are used to analyze the video data. Specifically, when configuring multiple pre-defined video algorithms in the pre-defined container, for one of the multiple video algorithm images, the video algorithm image from the training platform is extracted, and the video remote service is encapsulated into the video algorithm image to obtain an initial video algorithm; a pre-defined video standard stream name, video standard frame extraction time, and video standard frame extraction post-dot wireframe area are set into the initial video algorithm to obtain a transitional video algorithm; a second working state monitoring probe is set into the transitional video algorithm to obtain a pre-defined video algorithm, where the second working state monitoring probe is used to monitor whether the pre-defined video algorithm is in a working state; and multiple pre-defined video algorithms are obtained for the other video algorithm images in the multiple video algorithm images.

2. The container-based data processing method according to claim 1, characterized in that, The step of obtaining client request data through a pre-built application programming interface, wherein the client request data is image data or video data, includes: The client request information is obtained through a pre-defined application programming interface, and the request information key name and request information key value are extracted from the client request information. The request information key name and the request information key value are processed into a request information string that conforms to Jason's format; Based on the ICE protocol, the request information string is encapsulated into image data conforming to the image remote service format, or the request information string is encapsulated into video data conforming to the video remote service format.

3. The container-based data processing method according to claim 1, characterized in that, When the client requests image data, the process of obtaining a target image algorithm from multiple preset image algorithms based on a remote image service, and obtaining image analysis results based on the target image algorithm, includes: When the client requests image data, the input source name of the image data is extracted from the image data; Based on the image remote service, the input source name of the image data is matched with multiple standard image input source names, and a target image algorithm is determined from multiple preset image algorithms. The target image algorithm includes the standard point frame region of the image, and the multiple standard image input source names are the identifiers of multiple preset image algorithms. Based on the remote image service, the image data is input into the standard dotted frame area of ​​the image for data analysis to obtain the image analysis results.

4. The container-based data processing method according to claim 1, characterized in that, When the client requests video data, based on a video remote service, a target video algorithm is obtained from multiple preset video algorithms, and video analysis results are obtained according to the target video algorithm. The video remote service is a remote service established based on the ICE protocol, including: When the client requests data that is video data, extract the video stream name from the video data; The video stream name of the video data is matched with multiple video standard stream names to determine the target video algorithm among multiple preset video algorithms. The target video algorithm includes the video standard frame extraction time and the dotted wireframe area after the video standard frame extraction. The multiple video standard stream names are the identifiers of multiple preset video algorithms. According to the video standard frame extraction time, the video data is extracted into frames to obtain the extracted video data. Based on the video remote service, the extracted video data is input into the video standard extracted frame dotted wireframe area for analysis to obtain video analysis results.

5. The container-based data processing method according to claim 1, characterized in that, The process involves obtaining multiple image algorithm images and multiple video algorithm images from an algorithm platform, and configuring multiple preset image algorithms and multiple preset video algorithms in a preset container based on these images. The multiple preset image algorithms are used to analyze the image data, and the multiple preset video algorithms are used to analyze the video data, including: When multiple preset image algorithms are configured in the preset container, for one of the multiple image algorithm images, the image algorithm image from the training platform is extracted, and the remote image service is encapsulated into the image algorithm image to obtain the initial image algorithm. The preset image standard input source name and image standard point frame area are set into the initial image algorithm to obtain the transition image algorithm; A first working state monitoring probe is set into the transition image algorithm to obtain a preset image algorithm. The first working state monitoring probe is used to monitor whether the preset image algorithm is in a working state. For other image algorithm images in multiple image algorithm images, obtain multiple preset image algorithms.

6. A container-based data processing device, characterized in that, The container-based data processing device includes: The data acquisition module is used to acquire client-requested data through a pre-set application programming interface, wherein the client-requested data is image data or video data; The image algorithm analysis module, when the client requests image data, is used to obtain a target image algorithm from multiple preset image algorithms based on a remote image service, and obtain image analysis results based on the target image algorithm. The remote image service is a remote service established based on the Internet Communication Engine (ICE) protocol, and the multiple preset image algorithms are stored in a preset container. The video algorithm analysis module, when the client requests video data, is used to obtain a target video algorithm from multiple preset video algorithms based on a video remote service, and obtain video analysis results based on the target video algorithm. The video remote service is a remote service established based on the ICE protocol, and the multiple preset video algorithms are stored in a preset container. The transmission module is used to transmit the image analysis result or the video analysis result to the target callback address, wherein the target callback address is a preset callback address corresponding to the client. The container-based data processing device further includes: a configuration module, which acquires multiple image algorithm images and multiple video algorithm images from an algorithm platform, and configures multiple preset image algorithms and multiple preset video algorithms in a preset container based on the multiple image algorithm images and multiple video algorithm images. The multiple preset image algorithms are used to analyze the image data, and the multiple preset video algorithms are used to analyze the video data. Specifically, when multiple preset video algorithms are configured in the preset container, for one of the multiple video algorithm images, a video algorithm image from the training platform is extracted, and the video remote service is encapsulated into the video algorithm image to obtain an initial video algorithm. Preset video standard stream names, video standard frame extraction times, and video standard frame extraction post-dot wireframe regions are set into the initial video algorithm to obtain a transitional video algorithm. A second working state monitoring probe is set into the transitional video algorithm to obtain a preset video algorithm. The second working state monitoring probe is used to monitor whether the preset video algorithm is in a working state. For other video algorithm images in the multiple video algorithm images, multiple preset video algorithms are acquired.

7. A container-based data processing device, characterized in that, The container-based data processing device includes: a memory and at least one processor, wherein the memory stores instructions and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the container-based data processing device to perform the container-based data processing method as described in any one of claims 1-5.

8. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by a processor, it implements the container-based data processing method as described in any one of claims 1-5.