Algorithm package running method and device, equipment, medium and product
By receiving download instructions from the algorithm platform and creating algorithm processes in the main process, the algorithm compatibility of the computing power camera in different application scenarios is achieved, solving the problem that the computing power camera cannot be compatible with different algorithms, and ensuring the normal operation of the computing power camera in different scenarios and meeting user needs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD
- Filing Date
- 2025-01-09
- Publication Date
- 2026-07-10
AI Technical Summary
Computing power cameras require different types of algorithms in different application scenarios. Existing technologies cannot effectively support different algorithms, leading to a situation where all algorithms become unusable when a single algorithm component malfunctions. Furthermore, the technology that prevents the download of algorithm packages on demand effectively solves the problem of failing to meet users' precise needs due to individual factors.
By receiving download instructions from the algorithm platform, the algorithm package is downloaded based on the download address. The main process creates an algorithm process, enabling the engine tools of each algorithm package to communicate with the engine tools of the main process, thus isolating the algorithm packages and preventing them from affecting each other.
It enables computing power cameras to be compatible with different algorithms in different application scenarios, avoiding the situation where all algorithms become unusable due to the failure of a single algorithm component, and meeting the needs of on-demand download and precise user satisfaction.
Smart Images

Figure CN122363766A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of terminal technology, and in particular relates to an algorithm package running method, apparatus, device, medium and product. Background Technology
[0002] Computing power cameras refer to cameras with built-in computing power modules (such as artificial intelligence (AI) chips). Through built-in AI algorithms, computing power cameras can utilize deep learning and computer vision technologies to achieve real-time image processing and analysis, enabling intelligent monitoring and security management, and providing users with more intelligent and efficient services.
[0003] Therefore, considering that different application scenarios may require different types of algorithms—for example, in the field of smart security, facial recognition algorithms may be used to identify suspicious persons, while in the field of intelligent transportation, vehicle tracking algorithms may be used to monitor traffic flow—the computing power of cameras needs to download algorithms suitable for different application scenarios to more accurately meet user needs. Summary of the Invention
[0004] This application provides an algorithm package running method, apparatus, device, medium, and product, which enables computing power cameras to be compatible with algorithms in different application scenarios, thereby more accurately meeting user needs.
[0005] In a first aspect, embodiments of this application provide an algorithm package execution method applied to a target device, the method comprising:
[0006] The algorithm platform receives a download instruction, which is determined by the algorithm platform based on the order request sent by the user device. The order request includes the algorithm package identifier of at least one first algorithm package to be downloaded to the target device, and the download instruction includes the algorithm package download address of each first algorithm package in at least one first algorithm package.
[0007] Based on the download address of each first algorithm package in at least one first algorithm package, download at least one first algorithm package;
[0008] The target device creates algorithm processes corresponding to at least one first algorithm package through its main process, thereby enabling the target device to load and run at least one first algorithm package. The main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool. The second engine tool is used for communication between the algorithm process of the first algorithm package and the first engine tool.
[0009] Secondly, embodiments of this application provide an algorithm package execution apparatus, applied to a target device, the apparatus comprising:
[0010] The receiving module is used to receive download instructions sent by the algorithm platform. The download instructions are determined by the algorithm platform based on the order request sent by the user device. The order request includes the algorithm package identifier of at least one first algorithm package to be downloaded by the target device. The download instructions include the algorithm package download address of each first algorithm package in at least one first algorithm package.
[0011] The download module is used to download at least one first algorithm package based on the download address of each first algorithm package in at least one first algorithm package;
[0012] A creation module is used to create algorithm processes corresponding to at least one first algorithm package through the main process of the target device, so that the target device loads and runs at least one first algorithm package. The main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool. The second engine tool is used for communication connection between the algorithm process of the first algorithm package and the first engine tool.
[0013] Thirdly, an electronic device is provided, comprising: a memory for storing computer program instructions; and a processor for reading and executing the computer program instructions stored in the memory to perform an algorithm package execution method provided in any optional embodiment of the first aspect.
[0014] Fourthly, a computer storage medium is provided, on which computer program instructions are stored, wherein when the computer program instructions are executed by a processor, the algorithm package execution method provided by any optional implementation of the first aspect is implemented.
[0015] Fifthly, a computer program product is provided, comprising a computer program that, when executed by a processor, implements an algorithm package execution method provided by any optional implementation of the first aspect.
[0016] In this embodiment, the system can receive download instructions sent by the algorithm platform and download at least one first algorithm package based on the download address of each first algorithm package within that download instruction. Then, the main process of the target device can create algorithm processes corresponding to each of the at least one first algorithm package, enabling the target device to load and run the at least one first algorithm package. During this process, since the main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool, which is used for communication between the algorithm process of the first algorithm package and the first engine tool, each algorithm process can use its own second engine tool to communicate with the first engine tool in the main process. This ensures that different algorithm packages are isolated from each other and do not affect each other, allowing the target device to be compatible with algorithms for different application scenarios. This avoids the situation where all algorithms become unusable due to a single algorithm component malfunction. Furthermore, the download instructions are determined by the algorithm platform based on the order request sent by the user device, realizing on-demand download of algorithm packages and accurately meeting user needs. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is an architecture diagram of multiple algorithms within a computing power camera in the related technologies provided in the embodiments of this application;
[0019] Figure 2 This is one of the flowcharts illustrating an algorithm package execution method provided in this application embodiment;
[0020] Figure 3 This is a schematic diagram of the architecture of the first engine tool and the second engine tool provided in the embodiments of this application;
[0021] Figure 4 This is a second flowchart illustrating an algorithm package execution method provided in an embodiment of this application;
[0022] Figure 5 This is a schematic diagram illustrating a communication connection between a first engine tool and a second engine tool, as provided in an embodiment of this application.
[0023] Figure 6 This is the third flowchart illustrating an algorithm package execution method provided in this application embodiment;
[0024] Figure 7 This is a schematic diagram of the structure of an algorithm package running device provided in an embodiment of this application;
[0025] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0027] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0028] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0029] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0030] As described in the background section, considering that different application scenarios may require different types of algorithms, in order to more accurately meet user needs, computing power cameras need to download and use algorithms for different application scenarios.
[0031] Therefore, in order to meet user needs and enable computing power cameras to download and use algorithms for different application scenarios, existing technologies divide algorithms into algorithm component packages, algorithm model packages, and algorithm configurations. While keeping the algorithm component packages unchanged, the algorithm configurations and algorithm model packages are dynamically updated to achieve the purpose of algorithm updates. For ease of understanding, as follows... Figure 1As shown, the algorithm camera includes an algorithm component, which is connected to m algorithms. Each algorithm includes an algorithm configuration and a corresponding model. Therefore, in practical applications, this algorithm component needs to be able to consistently process models; that is, it needs to be able to process not only model 'a' but also model 'm'. This means the method requires that the algorithm components corresponding to different models have similar functionalities and can be integrated. Consequently, this method is not well-suited for scenarios with significant differences in model types. Furthermore, although this scheme minimizes algorithm package updates by updating the algorithm configuration and model, it cannot avoid mutual interference between algorithms. If the updated algorithm configuration or model malfunctions, all algorithms will malfunction.
[0032] To address the aforementioned issues, this application provides an algorithm package execution method, apparatus, device, medium, and product. It can receive download instructions sent by an algorithm platform and, based on the download address of each first algorithm package within that download instruction, download at least one first algorithm package. Furthermore, it can create corresponding algorithm processes for each of the at least one first algorithm package through the main process of the target device, enabling the target device to load and run the at least one first algorithm package. In this process, since the main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool, which is used for communication between the algorithm process of the first algorithm package and the first engine tool, each algorithm process can communicate with the first engine tool in the main process using its own second engine tool. This ensures that different algorithm packages are isolated from each other and do not interfere with each other, allowing the target device to be compatible with algorithms for different application scenarios. This avoids the situation where all algorithms become unusable due to a single algorithm component malfunction. Moreover, the download instructions are determined by the algorithm platform based on the order request sent by the user device, achieving on-demand download of algorithm packages and accurately meeting user needs.
[0033] The algorithm package execution method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0034] Figure 2 This is a schematic diagram of the structure of an algorithm package running method provided in an embodiment of this application.
[0035] like Figure 2 As shown, the execution subject of this method can be a target device, which can be a device with built-in AI algorithms, such as a camera, that needs to process images or audio; no specific limitation is made here. Based on this, the method can specifically include the following steps:
[0036] S210 receives download instructions sent by the algorithm platform.
[0037] The download instruction can be determined by the algorithm platform based on a subscription request sent by the user device. This subscription request may include the algorithm package identifier of at least one first algorithm package to be downloaded to the target device. This algorithm package identifier may be the algorithm package name or algorithm package number, etc. Correspondingly, the download instruction may include the algorithm package download address of each of the at least one first algorithm package. It should be noted that this algorithm package download address may be a Uniform Resource Locator (URL) for the algorithm package.
[0038] It should be noted that the aforementioned at least one first algorithm package can be of different types. Each first algorithm package may include a second engine tool, an algorithm library, and a corresponding algorithm model. The algorithm library of each first algorithm package may include at least one algorithm of the same type. For example, one of the at least one first algorithm package may contain image-based shape recognition algorithms, such as pedestrian recognition, animal recognition, and vehicle recognition. Another at least one first algorithm package may contain audio-based sound recognition algorithms, such as human voice recognition and animal sound recognition. No specific limitations are imposed here.
[0039] Specifically, the user equipment can send a subscription request to the algorithm platform. The subscription request may include the algorithm package identifier of at least one first algorithm package to be downloaded by the target device. The algorithm platform can send a download instruction to the target device based on the subscription request, so that the target device can receive the download instruction sent by the algorithm platform.
[0040] It should also be noted that, in addition to including the algorithm download address of each of the at least one first algorithm package, the above download instructions may also include information such as the name of each first algorithm package, the version of the algorithm package, the MD5 hash of the algorithm package, and the size of the algorithm package, without any specific limitations here.
[0041] S220, based on the download address of each first algorithm package in at least one first algorithm package, download at least one first algorithm package.
[0042] Specifically, after receiving a download instruction from the algorithm platform, the target device can download the first algorithm package based on the algorithm package download instruction for each first algorithm package, since the download instruction may include the algorithm package download address of each first algorithm package in at least one first algorithm package. In this way, the target device can download at least one first algorithm package.
[0043] S230, the target device creates an algorithm process corresponding to at least one first algorithm package through the main process of the target device, so that the target device loads and runs at least one first algorithm package.
[0044] Specifically, after the target device downloads at least one first algorithm package, it can create algorithm processes corresponding to the at least one first algorithm package through the main process of the target device, so that the target device can load and run at least one first algorithm package.
[0045] The main process of the target device may include a first engine tool, which can be considered as one or more threads of the main process, without specific limitations. The algorithm process of each first algorithm package may include a second engine tool, which integrates an algorithm interface protocol specification for communication between the algorithm process of the first algorithm package and the first engine tool. In this way, the algorithm business, application logic and algorithm detection functions can be separated, thereby adapting to the access of different computing power packages and scheduling and running them in a unified manner.
[0046] In one example, such as Figure 3 As shown, the main process of the computing power camera may include a first engine tool, and the algorithm camera may include three algorithm processes, namely algorithm process A, algorithm process B, and algorithm process C. Each algorithm process includes a second engine tool, namely tool A in algorithm process A, tool B in algorithm process B, and tool C in algorithm process C. Based on Figure 3 It is understood that each algorithm process can communicate with the first engine tool through its own second engine tool; that is, algorithm process A communicates with the first engine tool through tool A, and so on. This ensures that the various algorithm processes are isolated from each other and do not interfere with each other. This allows the algorithm camera to be compatible with different types of algorithm packages and avoids the situation where a single algorithm component malfunctions, causing all algorithms to become unusable.
[0047] Additionally, it should be noted that each algorithm process may include a corresponding algorithm library and a corresponding model, for example, such as Figure 3 As shown, algorithm process A may include algorithm library A and model A, algorithm process B may include algorithm library B and model B, and algorithm process C may include algorithm library C and model C.
[0048] In this embodiment, the system can receive download instructions sent by the algorithm platform and download at least one first algorithm package based on the download address of each first algorithm package within that download instruction. Then, the main process of the target device can create algorithm processes corresponding to each of the at least one first algorithm package, enabling the target device to load and run the at least one first algorithm package. During this process, since the main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool, which is used for communication between the algorithm process of the first algorithm package and the first engine tool, each algorithm process can use its own second engine tool to communicate with the first engine tool in the main process. This ensures that different algorithm packages are isolated from each other and do not affect each other, allowing the target device to be compatible with algorithms for different application scenarios. This avoids the situation where all algorithms become unusable due to a single algorithm component malfunction. Furthermore, the download instructions are determined by the algorithm platform based on the order request sent by the user device, realizing on-demand download of algorithm packages and accurately meeting user needs.
[0049] To provide a detailed description of the algorithm package execution method provided in the embodiments of this application, in one embodiment, the download instruction may further include an algorithm package identifier for each of the at least one first algorithm package. This algorithm package identifier may be the algorithm package name, and is not specifically limited here. Therefore, the step of downloading at least one first algorithm package based on the algorithm package download address of each of the at least one first algorithm package may specifically include:
[0050] Send a download request to the algorithm download platform, the download request including at least one algorithm identifier for each of the first algorithm packages in the first algorithm package;
[0051] Receive at least one first algorithm package sent by the algorithm download platform.
[0052] Specifically, since the download instruction may also include the algorithm package identifier of each first algorithm package in at least one first algorithm package, after receiving the download instruction sent by the algorithm platform, the target device may send a download request to the algorithm download platform. The download request may include the algorithm package identifier of each first algorithm package in at least one first algorithm package to request to obtain at least one first algorithm package. Based on this, the target device can receive at least one first algorithm package sent by the algorithm download platform.
[0053] In this embodiment, based on the algorithm package identifier of each first algorithm package included in the received download instruction, a download request carrying the algorithm package identifier of each first algorithm package can be sent to the algorithm download platform, thereby receiving at least one first algorithm package sent by the algorithm download platform. In this way, at least one first algorithm package can be downloaded accurately and effectively.
[0054] In order to comprehensively describe the algorithm package operation method provided in the embodiments of this application, in one embodiment, before the above S130, as follows: Figure 4 As shown, the algorithm package running method provided in this application embodiment may further include the following steps:
[0055] S410: Obtain the algorithm directory file for each first algorithm package by decompressing each first algorithm package in at least one first algorithm package to a preset storage space.
[0056] The aforementioned preset storage space can be a storage space pre-set based on actual experience or circumstances. Additionally, the algorithm directory file of each first algorithm package may include authentication information, which is used to authenticate the first algorithm package.
[0057] S420: For each first algorithm package, perform authentication processing on the first algorithm package based on the authentication information corresponding to the first algorithm package.
[0058] Based on this, the aforementioned S230 may specifically include:
[0059] S2301, for each of the at least one first algorithm packages, if the authentication of the first algorithm package is determined to be successful based on the authentication information corresponding to the first algorithm package, the main process of the target device creates an algorithm process corresponding to the first algorithm package based on the algorithm directory file of the first algorithm package, so that the target device loads and runs the algorithm directory file of the first algorithm package.
[0060] Specifically, after downloading at least one first algorithm package, the target device can decompress each first algorithm package in the at least one first algorithm package to a preset storage space to obtain the algorithm directory file of each first algorithm package. Since the algorithm directory file of each first algorithm package may include authentication information, for each first algorithm package, authentication processing can be performed on the first algorithm package based on the authentication information corresponding to the first algorithm package. Then, if it is determined that the first algorithm package has passed authentication based on the authentication information corresponding to the first algorithm package, the main process of the target device can create an algorithm process corresponding to the first algorithm package based on the algorithm directory file of the first algorithm package, so that the target device loads and runs the algorithm directory file of the first algorithm package.
[0061] In this embodiment, by decompressing each first algorithm package, an algorithm directory file for that first algorithm package can be obtained. The authentication information within the algorithm directory file is then used to authenticate the first algorithm package. If authentication is successful, a corresponding algorithm process is created to load and run the first algorithm package. This ensures the accuracy and integrity of the algorithm packages, facilitating accurate and effective loading and execution of the algorithm packages by the target device.
[0062] In the above embodiments, the first algorithm package needs to be authenticated based on the authentication information in the algorithm directory file of the first algorithm package. In order to accurately describe the authentication process involved in the algorithm package running method provided in this application, in one embodiment, the authentication information corresponding to the first algorithm package may include the first hash value of the first algorithm package. The first hash value may be obtained by the algorithm download platform after performing hash calculation on the first algorithm package using a preset hash algorithm. The preset hash algorithm may be preset based on actual experience or circumstances, and is not specifically limited here.
[0063] Based on this, the aforementioned S220 may specifically include:
[0064] The first algorithm packet is hashed using a preset hash algorithm to obtain the second hash value of the first algorithm packet;
[0065] The first algorithm packet is authenticated based on the first hash value and the second hash value.
[0066] Based on this, prior to S1301 above, the algorithm package running method provided in this application embodiment may specifically include:
[0067] If the first hash value and the second hash value are the same, the authentication of the first algorithm packet is deemed successful.
[0068] Specifically, since the aforementioned authentication information may include the first hash value of the first algorithm package, which can be obtained by the algorithm download platform after performing a hash calculation on the first algorithm package using a preset hash algorithm, the target device can use the same preset hash algorithm to perform the same hash operation on the first algorithm package to obtain the second hash value of the first algorithm package. Then, it can perform authentication processing on the first algorithm package based on the first hash value and the second hash value, and determine that the first algorithm package has passed authentication if the first hash value and the second hash value are the same.
[0069] In this embodiment, the first algorithm package can be accurately authenticated by determining whether the first hash value obtained by the algorithm download platform using a preset hash algorithm to hash the first algorithm package is the same as the second hash value obtained by the target device using the same preset hash algorithm to hash the first algorithm package. This ensures the accuracy and integrity of the algorithm package in the future.
[0070] In another embodiment, the authentication information corresponding to the first algorithm package may include encrypted information obtained by encrypting the first hash value of the first algorithm package using a preset private key. The first hash value of the first algorithm package is obtained by the algorithm download platform performing a hash operation on the first algorithm package using a preset hash algorithm. The preset hash algorithm can be an algorithm pre-set based on practical experience or circumstances, and is not specifically limited here.
[0071] Based on this, the aforementioned S220 may specifically include:
[0072] The encrypted information is decrypted using a preset public key to obtain the third hash value of the first algorithm packet;
[0073] The first algorithm packet is hashed based on a preset hash algorithm to obtain the second hash value of the first algorithm packet;
[0074] The first algorithm packet is authenticated based on the second and third hash values.
[0075] Based on this, prior to S1301 above, the algorithm package running method provided in this application embodiment may further include the following steps:
[0076] If the second and third hash values are the same, the authentication of the first algorithm packet is deemed successful. The preset public key can be pre-stored on the target device, and this preset public key is associated with the aforementioned preset private key; no specific limitations are specified here.
[0077] Specifically, since the authentication information corresponding to the first algorithm package can include encrypted information after encrypting the first hash value of the first algorithm package using a preset private key, and the first hash value of the first algorithm package is obtained by the algorithm download platform after performing a hash operation on the first algorithm package based on a preset hash function, the target device can first perform a hash operation on the first algorithm package using the preset hash function to obtain the second hash value of the first algorithm package, and then decrypt the above-mentioned encrypted information using a preset public key to obtain the third hash value of the first algorithm package. In this way, the first algorithm package can be authenticated based on the second hash value and the third hash value of the first algorithm package, and if the second hash value and the third hash value are the same, it is determined that the authentication of the first algorithm package is successful.
[0078] In this embodiment, the first hash value of the first algorithm packet is encrypted using a preset private key, which prevents the first hash value of the first algorithm packet from being tampered with during transmission. Based on this, by judging whether the second hash value obtained by the target device using the preset hash function to hash the first algorithm packet is the same as the third hash value obtained by decrypting the first algorithm packet, the algorithm packet can be authenticated more effectively and accurately, which is convenient for ensuring the accuracy and integrity of the algorithm packet in the future.
[0079] Furthermore, after obtaining the first algorithm package, it is necessary to create an algorithm process corresponding to the first algorithm package so that the target device can subsequently use the algorithms and models in the first algorithm package to implement the corresponding functions. Based on this, in order to accurately describe the algorithm package running method provided in the embodiments of this application, in one embodiment, the above-mentioned S1301 may specifically include:
[0080] The first engine tool traverses the algorithm directory files of the first algorithm package to obtain the algorithm executable file and the path of the algorithm dependency library, sets the permissions of the algorithm executable file, and sets the configuration library loading environment variables based on the algorithm dependency library.
[0081] The target subprocess is launched using the first engine tool. The target subprocess is used to load environment variables based on the permissions and configuration library of the algorithm executable file and run the algorithm executable file.
[0082] The algorithm process corresponding to the first algorithm package is created, loaded, and started through the target subprocess;
[0083] When the algorithm process of the first algorithm package is logged into the first engine tool, communication is established between the first engine tool and the second engine tool in the algorithm process of the first algorithm package, so that the target device loads and runs the algorithm directory file of the first algorithm package.
[0084] Specifically, the target device can traverse the algorithm directory files of the first algorithm package through the first engine tool to obtain the algorithm executable file and the path of the algorithm dependency library, set the permissions of the algorithm executable file, and set the configuration library loading environment variables based on the algorithm dependency library. Then, it can start the target subprocess through the first engine tool. This target subprocess can be used to run the algorithm executable file based on the permissions of the algorithm executable file and the configuration library loading environment variables. Then, the target subprocess can create and load the algorithm process corresponding to the first algorithm package. Then, when the algorithm process of the first algorithm package is logged into the first engine tool, communication can be established between the first engine tool and the second engine tool in the algorithm process of the first algorithm package, so that the target device loads and runs the algorithm directory files of the first algorithm package.
[0085] In this embodiment, during algorithm execution, the executable file and dependent library paths are obtained, permissions for the executable file are set, and environment variables for loading the dependent libraries are configured. This ensures that all dependent libraries and resources are correctly loaded and configured, guaranteeing the correct algorithm execution. Furthermore, communication between the first engine tool and the second engine tool within the algorithm process enables real-time monitoring and management of the algorithm execution, allowing the target device to successfully load and run the algorithm directory file of the first algorithm package, thus achieving automated execution of the algorithm package.
[0086] Based on this, in one embodiment, the step of establishing communication between the first engine tool and the second engine tool in the algorithm process of the first algorithm package when the algorithm process of the first algorithm package logs into the first engine tool may specifically include:
[0087] By creating a common connection endpoint in the first engine tool and the second engine tool respectively, the common connection endpoint is used for the algorithm process of the first algorithm package to log in to the main process;
[0088] When the algorithm process of the first algorithm package is logged into the main process, the first communication endpoint corresponding to the first algorithm package is configured in the first engine tool, and the second communication endpoint is configured in the second engine tool in the algorithm process of the first algorithm package.
[0089] Based on the first communication endpoint and the second communication endpoint, establish communication between the first engine tool and the second engine tool in the algorithm process of the first algorithm package.
[0090] The aforementioned general connection endpoints may include general connection endpoints deployed in the first engine tool and general connection endpoints deployed in the second engine tool. In this way, the algorithm process can log in to the main process through the general connection endpoints deployed in the first engine tool and general connection endpoints deployed in the second engine tool.
[0091] In addition, the first communication endpoint mentioned above may include at least one sub-endpoint, and correspondingly, the second communication endpoint mentioned above may include at least one sub-endpoint. It should be noted that the sub-endpoints included in the first communication endpoint and the sub-endpoints in the second communication endpoint are in one-to-one correspondence. The setting of the sub-endpoint can be implemented based on different functions. For example, the corresponding sub-endpoints can be set in the first engine tool and the second engine tool respectively based on the function of the configuration command, or the corresponding sub-endpoints can be set in the first engine tool and the second engine tool respectively based on the result reporting function. No specific limitation is made here.
[0092] Specifically, the target device can create a universal connection endpoint in the first engine tool and the second engine tool respectively. This universal connection endpoint is used to log the algorithm process of the first algorithm package into the main process. Then, when the algorithm process of the first algorithm package logs into the main process, the device can configure a first communication endpoint corresponding to the first algorithm package in the first engine tool and configure a second communication endpoint in the second engine tool of the algorithm process of the first algorithm package.
[0093] In one example, such as Figure 5 As shown, the first engine tool includes a general connection endpoint, the second engine tool A includes a general connection endpoint A, and the second engine tool B includes a general connection endpoint B. The general connection endpoints in the first engine tool are connected to general connection endpoint A and general connection endpoint B, respectively. This indicates that the algorithm process corresponding to the second engine tool A has successfully logged into the main process, and the algorithm process corresponding to the second engine tool B has successfully logged into the main process.
[0094] Based on this, if the algorithm process corresponding to the second engine tool A successfully logs into the main process, a first communication endpoint corresponding to the algorithm process of the second engine A can be configured in the first engine tool. For example, continuing as follows... Figure 5 As shown, the first communication endpoint corresponding to the algorithm process corresponding to the second engine A may include the message downlink endpoint (i.e. the above-mentioned sub-endpoint) corresponding to the "configuration command" and the message uplink endpoint corresponding to the "result reporting". At the same time, the corresponding message downlink endpoint and the corresponding message uplink endpoint will also be configured in the second engine tool A.
[0095] Similarly, if the algorithm process corresponding to the second engine tool B successfully logs into the main process, the first communication endpoint corresponding to the algorithm process of the second engine B can be configured in the first engine tool. For example, continuing as follows... Figure 5 As shown, the first communication endpoint corresponding to the algorithm process corresponding to the second engine B may include the message downlink endpoint (i.e. the above-mentioned sub-endpoint) corresponding to the "configuration command" and the message uplink endpoint corresponding to the "result reporting". At the same time, the corresponding message downlink endpoint and the corresponding message uplink endpoint will also be configured in the second engine tool A.
[0096] It should be noted that different algorithms may use different addresses for the communication endpoints issued by the main process. Furthermore, after the algorithm process obtains the sub-endpoint corresponding to its "configuration command" and the endpoint corresponding to "result reporting" from the common connection endpoint login response message, it can establish an inter-process communication connection with the main process.
[0097] The first engine tool can transmit configuration, commands, and result reporting messages for each algorithm through the algorithm package name, serving as a channel for message transmission. The second engine tool within each algorithm is responsible for parsing the algorithm configuration, commands, and assembling the results, thereby achieving adaptive management of the differences between algorithm packages. The algorithm message format is shown in Table 1 below:
[0098] Table 1
[0099] Channel number Algorithm package name Message Type Message body
[0100] In this embodiment, a common connection endpoint can be created in the first engine tool and the second engine tool respectively, so that the algorithm process corresponding to the second engine tool can successfully log in to the main process. When the algorithm process successfully logs in to the main process, a corresponding first communication endpoint is created in the first engine tool, and a second communication endpoint is created in the second engine tool of the algorithm process. In this way, a communication connection between the main process and the algorithm process can be realized based on the first communication endpoint and the second communication endpoint, which facilitates the normal execution of the corresponding algorithm in the future.
[0101] In addition, in order to describe in detail the algorithm package operation method provided in the embodiments of this application, in one embodiment, such as Figure 6 As shown, the algorithm package running method provided in this application embodiment may specifically include the following steps:
[0102] S610 receives upgrade instructions sent by the algorithm platform.
[0103] In some embodiments, the upgrade instruction may include the algorithm package download address of the second algorithm package and the algorithm package identifier of the second algorithm package, wherein the algorithm package download address of the second algorithm package is used by the target device to download and obtain the second algorithm package.
[0104] S620, based on the algorithm package identifier of the second algorithm package, determine the target algorithm process associated with the second algorithm package from the algorithm processes of at least one third algorithm package running on the target device.
[0105] Among them, the third algorithm package corresponding to the target algorithm process and the second algorithm package are different versions of the same algorithm package.
[0106] S630 updates the target algorithm process based on the second algorithm package.
[0107] S640, if an error occurs during the process of updating the target algorithm process based on the second algorithm package, a rollback instruction is sent to the algorithm platform to return to the step of receiving the upgrade instruction sent by the algorithm platform, until the preset conditions are met and the process ends.
[0108] The rollback command is used to instruct the algorithm platform to resend the upgrade command. Furthermore, the aforementioned preset conditions can be conditions pre-set based on actual experience or circumstances. For example, the preset condition could be based on the successful update of the target algorithm process using the second algorithm package, or it could be based on the rollback count reaching a preset threshold. This preset threshold can be pre-set based on actual experience or circumstances and is not specifically limited here.
[0109] Specifically, the target device can receive an upgrade command sent by the algorithm platform. This upgrade command may include the download address of the second algorithm package and the algorithm package identifier of the second algorithm package. Thus, based on the algorithm package identifier of the second algorithm package, the target algorithm process associated with the second algorithm package can be determined from the algorithm processes of at least one third algorithm package running on the target device. Since the third algorithm package corresponding to the target algorithm process and the second algorithm package may be different versions of the same algorithm package, the target algorithm process can be updated based on the second algorithm package. If an error occurs during the process of updating the target algorithm process based on the second algorithm package, a rollback command is sent to the algorithm platform. Since the rollback command is used to instruct the algorithm platform to resend the upgrade command, the step of receiving the upgrade command sent by the algorithm platform is returned to execution until the update of the target algorithm process based on the second algorithm package is successful or the number of rollbacks reaches a preset threshold.
[0110] In one example, if the algorithm package identifier of the second algorithm package is the algorithm package name, then an algorithm process with the same name as the algorithm package can be searched in the algorithm processes of at least one third algorithm package running on the target device; this is the target algorithm process. Thus, the target algorithm process can be updated based on the second algorithm package. If errors such as download failure, decompression failure, or authentication failure occur during this process, the target device needs to send a rollback command to the algorithm platform, reporting the errors in the update process. This allows the algorithm platform to resend the upgrade command, causing the target device to return to the step of receiving the upgrade command sent by the algorithm platform. If the target device still reports an update failure to the algorithm platform, the above process continues to repeat until the target algorithm process is successfully updated based on the second algorithm package or the number of rollbacks reaches a preset threshold.
[0111] It should be noted that when updating the target algorithm process based on the second algorithm package fails, the algorithm platform performs an algorithm rollback operation based on the status reported by the target device, sends out the original algorithm package and runs it to restore the original algorithm process, namely the aforementioned target algorithm process.
[0112] It should also be noted that the processes of downloading, decompressing, and authenticating the algorithm package involved in updating the target algorithm process based on the second algorithm package are the same as those of downloading, decompressing, and authenticating the first algorithm package, and will not be elaborated on here.
[0113] In this embodiment, by receiving upgrade instructions sent by the algorithm platform, different versions of algorithm packages can be downloaded to replace the original algorithm process running on the target device, thereby achieving algorithm package upgrade. Furthermore, since the various algorithm processes do not interfere with each other in this embodiment, the process of algorithm upgrade avoids the situation where other algorithm processes are affected and other algorithms become unusable. It also avoids the limitation of the number of built-in algorithm interfaces in the algorithm component in the prior art, and can infinitely expand and upgrade the algorithm.
[0114] Based on this, in one embodiment, the step of updating the target algorithm process based on the second algorithm package may specifically include the following steps:
[0115] Destroy the target algorithm process;
[0116] Download the second algorithm package from the download address provided.
[0117] The algorithm process corresponding to the second algorithm package is created by the main process of the target device, so that the target device loads and runs the second algorithm package.
[0118] Specifically, the target device can destroy the target algorithm process and download the second algorithm package based on the download address of the second algorithm package. Then, it can create the algorithm process corresponding to the second algorithm package through the main process of the target device, so that the target device can load and run the second algorithm package.
[0119] In one example, during the process of updating the target algorithm process based on the second algorithm package, if the target device has already identified the target algorithm process, it can first notify the target algorithm process to exit automatically and disconnect from it. After the corresponding algorithm process exits, the algorithm-related file directory is deleted. Then, the second algorithm package can be downloaded and extracted to the corresponding algorithm directory. The algorithm package is then authenticated. After successful authentication, the upgraded algorithm process is started, and the corresponding algorithm process is successfully upgraded.
[0120] It should be noted that the algorithm package update method provided in this application does not specifically limit the execution order of destroying the target algorithm process and the algorithm download address based on the second algorithm package, or downloading the second algorithm package.
[0121] In this embodiment, by first destroying the target algorithm process, downloading the corresponding second algorithm package from the algorithm package download address based on the second algorithm package, and creating the algorithm process corresponding to the second algorithm package, the target device can load and run the second algorithm package. In this way, excessive resources in the target device can be avoided, and unnecessary waste of running resources can be avoided.
[0122] Based on the same inventive concept, embodiments of this application provide an algorithm package execution device, which can be applied to a target device, specifically in conjunction with... Figure 7 The algorithm package running device provided in the embodiments of this application will be described in detail.
[0123] Figure 7 This is a schematic diagram of the structure of an algorithm package running device provided in an embodiment of this application.
[0124] like Figure 7 As shown, the algorithm package execution device 700 may include:
[0125] The receiving module 710 is used to receive a download instruction sent by the algorithm platform. The download instruction is determined by the algorithm platform based on the order request sent by the user device. The order request includes the algorithm package identifier of at least one first algorithm package to be downloaded by the target device. The download instruction includes the algorithm package download address of each first algorithm package in at least one first algorithm package.
[0126] Download module 720 is used to download at least one first algorithm package based on the algorithm package download address of each first algorithm package in at least one first algorithm package;
[0127] The creation module 730 is used to create algorithm processes corresponding to at least one first algorithm package through the main process of the target device, so that the target device loads and runs at least one first algorithm package. The main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool. The second engine tool is used for communication connection between the algorithm process of the first algorithm package and the first engine tool.
[0128] In one embodiment, the algorithm package running device provided in this application may further include:
[0129] The decompression module is used to decompress each first algorithm package in at least one first algorithm package to a preset storage space to obtain an algorithm directory file for each first algorithm package. The algorithm directory file for each first algorithm package includes authentication information.
[0130] The authentication module is used to perform authentication processing on each first algorithm package based on the authentication information corresponding to the first algorithm package.
[0131] Based on this, the above-mentioned module is specifically used for:
[0132] For each of the at least one first algorithm package, if the authentication of the first algorithm package is determined to be successful based on the authentication information corresponding to the first algorithm package, the main process of the target device creates an algorithm process corresponding to the first algorithm package based on the algorithm directory file of the first algorithm package, so that the target device loads and runs the algorithm directory file of the first algorithm package.
[0133] In one embodiment, the authentication information corresponding to the first algorithm package includes the first hash value of the first algorithm package, which is obtained by the algorithm download platform after performing hash calculation on the first algorithm package using a preset hash algorithm.
[0134] Based on this, the algorithm package running device provided in this application embodiment further includes:
[0135] The hash calculation module is used to perform hash calculation on the first algorithm packet using a preset hash algorithm to obtain the second hash value of the first algorithm packet;
[0136] The authentication module is specifically used to perform authentication processing on the first algorithm package based on the first hash value and the second hash value.
[0137] The determination module is used to determine whether the first algorithm packet has passed authentication if the first hash value and the second hash value are the same.
[0138] In one embodiment, the authentication information corresponding to the first algorithm package includes encrypted information after encrypting the first hash value of the first algorithm package using a preset private key. The first hash value of the first algorithm package is obtained by the algorithm download platform after performing a hash operation on the first algorithm package based on a preset hash function.
[0139] Based on this, the algorithm package running device provided in the embodiments of this application may further include:
[0140] The hash calculation module is used to perform hash calculation on the first algorithm package based on a preset hash function to obtain the second hash value of the first algorithm package;
[0141] The decryption module is used to decrypt encrypted information using a preset public key to obtain the third hash value of the first algorithm packet;
[0142] The authentication module is specifically used to authenticate the first algorithm package based on the second hash value and the third hash value.
[0143] The determination module is used to determine whether the first algorithm packet has passed authentication if the second hash value and the third hash value are the same.
[0144] In one embodiment, the algorithm package running device provided in this application may further include:
[0145] The receiving module is also used to receive upgrade instructions sent by the algorithm platform. The upgrade instructions include the algorithm package download address of the second algorithm package and the algorithm package identifier of the second algorithm package. The algorithm package download address of the second algorithm package is used by the target device to download and obtain the second algorithm package.
[0146] The determination module is used to determine the target algorithm process associated with the second algorithm package from the algorithm processes of at least one third algorithm package running on the target device based on the algorithm package identifier of the second algorithm package. The third algorithm package corresponding to the target algorithm process is a different version of the same algorithm package as the second algorithm package.
[0147] The update module is used to update the target algorithm process based on the second algorithm package;
[0148] The sending module is used to send a rollback instruction to the algorithm platform in the event of an error during the process of updating the target algorithm process based on the second algorithm package. The rollback instruction is used to instruct the algorithm platform to resend the upgrade instruction to return to the step of receiving the upgrade instruction sent by the algorithm platform, until the preset conditions are met.
[0149] In one embodiment, the algorithm package running device provided in this application may further include:
[0150] The destruction module is used to destroy the target algorithm process;
[0151] The download module is also used to download the second algorithm package based on the download address of the second algorithm package;
[0152] The creation module is also used to create the algorithm process corresponding to the second algorithm package through the main process of the target device, so that the target device loads and runs the second algorithm package.
[0153] In this embodiment, the device can receive download instructions sent by the algorithm platform and download at least one first algorithm package based on the download address of each first algorithm package within that download instruction. Then, the main process of the target device can create algorithm processes corresponding to each of the at least one first algorithm package, enabling the target device to load and run the at least one first algorithm package. During this process, since the main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool, which is used for communication between the algorithm process of the first algorithm package and the first engine tool, each algorithm process can use its own second engine tool to communicate with the first engine tool in the main process. This ensures that different algorithm packages are isolated from each other and do not interfere with each other, allowing the target device to be compatible with algorithms for different application scenarios. This avoids the situation where all algorithms become unusable due to a single algorithm component malfunction. Furthermore, the download instructions are determined by the algorithm platform based on the order request sent by the user device, realizing on-demand download of algorithm packages and accurately meeting user needs.
[0154] The various modules in the algorithm package running device provided in this application embodiment can achieve... Figure 2 , Figure 4 , Figure 6 The method steps of any of the embodiments shown herein, and the corresponding technical effects thereof, will not be described in detail here for the sake of brevity.
[0155] Figure 8 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.
[0156] An electronic device may include a processor 801 and a memory 802 storing computer program instructions.
[0157] Specifically, the processor 801 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0158] Memory 802 may include mass storage for data or instructions. For example, and not limitingly, memory 802 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where suitable, memory 802 may include removable or non-removable (or fixed) media. Where suitable, memory 802 may be internal or external to an electronic device. In a particular embodiment, memory 802 is a non-volatile solid-state memory.
[0159] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.
[0160] The processor 801 reads and executes computer program instructions stored in the memory 802 to implement any of the situation recognition model determination methods or object situation recognition methods in the above embodiments.
[0161] In one example, the electronic device may also include a communication interface 803 and a bus 810. For example, Figure 8 As shown, the processor 801, memory 802, and communication interface 803 are connected through bus 810 and complete communication with each other.
[0162] The communication interface 803 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0163] Bus 810 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 810 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0164] Furthermore, in conjunction with the algorithm package execution method in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement the algorithm package execution method provided in this application embodiment.
[0165] This application also provides a computer program product, which includes a computer program that is executed by a processor to implement the algorithm package running method provided in this application.
[0166] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0167] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0168] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A method for running an algorithm package, characterized in that, Applied to a target device, the method includes: The algorithm platform receives a download instruction, which is determined by the algorithm platform based on an order request sent by the user device. The order request includes an algorithm package identifier for at least one first algorithm package to be downloaded by the target device, and the download instruction includes the algorithm package download address for each of the at least one first algorithm package. Download the at least one first algorithm package based on the download address of each first algorithm package in the at least one first algorithm package; The target device creates algorithm processes corresponding to the at least one first algorithm package through its main process, thereby enabling the target device to load and run the at least one first algorithm package. The main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool. The second engine tool is used for communication between the algorithm process of the first algorithm package and the first engine tool.
2. The method according to claim 1, characterized in that, Before the step of creating algorithm processes corresponding to the at least one first algorithm package through the main process of the target device, thereby enabling the target device to load and run the at least one first algorithm package, the method further includes: By decompressing each of the at least one first algorithm package into a preset storage space, an algorithm directory file for each first algorithm package is obtained, and the algorithm directory file for each first algorithm package includes authentication information. For each of the first algorithm packages, authentication processing is performed on the first algorithm package based on the authentication information corresponding to the first algorithm package; The step of creating algorithm processes corresponding to the at least one first algorithm package through the main process of the target device, so that the target device loads and runs the at least one first algorithm package, includes: For each of the at least one first algorithm package, if the authentication of the first algorithm package is determined to be successful based on the authentication information corresponding to the first algorithm package, the main process of the target device creates an algorithm process corresponding to the first algorithm package based on the algorithm directory file of the first algorithm package, so that the target device loads and runs the algorithm directory file of the first algorithm package.
3. The method according to claim 2, characterized in that, The authentication information corresponding to the first algorithm package includes the first hash value of the first algorithm package, which is obtained by the algorithm download platform after performing hash calculation on the first algorithm package using a preset hash algorithm. The authentication process for the first algorithm package based on the authentication information corresponding to the first algorithm package includes: The first algorithm packet is hashed using the preset hash algorithm to obtain the second hash value of the first algorithm packet; The first algorithm package is authenticated based on the first hash value and the second hash value; Before the method further includes, in the case where the authentication of the first algorithm package is determined to be successful based on the authentication information corresponding to the first algorithm package, and before the main process of the target device creates an algorithm process corresponding to the first algorithm package based on the algorithm directory file of the first algorithm package, so that the target device loads and runs the algorithm directory file of the first algorithm package, the method further includes: If the first hash value is determined to be the same as the second hash value, the authentication of the first algorithm package is deemed to have passed.
4. The method according to claim 2, characterized in that, The authentication information corresponding to the first algorithm package includes encrypted information after encrypting the first hash value of the first algorithm package using a preset private key. The first hash value of the first algorithm package is obtained by the algorithm download platform after performing a hash operation on the first algorithm package based on a preset hash function. The authentication process for the first algorithm package based on the authentication information corresponding to the first algorithm package includes: The first algorithm packet is hashed based on the preset hash function to obtain the second hash value of the first algorithm packet; The encrypted information is decrypted using a preset public key to obtain the third hash value of the first algorithm packet; The first algorithm package is authenticated based on the second hash value and the third hash value. Before the method further includes, in the case that the authentication of the first algorithm package is successful based on the authentication information corresponding to the first algorithm package, and before the main process of the target device creates an algorithm process corresponding to the first algorithm package based on the algorithm directory file of the first algorithm package, so that the target device loads and runs the algorithm directory file of the first algorithm package, the method further includes: If the second hash value and the third hash value are the same, it is determined that the first algorithm package authentication is successful.
5. The method according to claim 1, characterized in that, The method further includes: The system receives an upgrade instruction sent by the algorithm platform. The upgrade instruction includes the algorithm package download address of the second algorithm package and the algorithm package identifier of the second algorithm package. The algorithm package download address of the second algorithm package is used by the target device to download and obtain the second algorithm package. Based on the algorithm package identifier of the second algorithm package, a target algorithm process associated with the second algorithm package is determined from the algorithm processes of at least one third algorithm package running on the target device, wherein the third algorithm package corresponding to the target algorithm process is a different version of the same algorithm package as the second algorithm package; The target algorithm process is updated based on the second algorithm package; If an error occurs during the process of updating the target algorithm process based on the second algorithm package, a rollback instruction is sent to the algorithm platform. The rollback instruction is used to instruct the algorithm platform to resend the upgrade instruction to return to the step of receiving the upgrade instruction sent by the algorithm platform, until the preset conditions are met and the process ends.
6. The method according to claim 5, characterized in that, The step of updating the target algorithm process based on the second algorithm package includes: Destroy the target algorithm process; Download the second algorithm package from the download address provided. The target device creates an algorithm process corresponding to the second algorithm package through its main process, thereby enabling the target device to load and run the second algorithm package.
7. An algorithm package execution device, characterized in that, Applied to a target device, the device includes: The receiving module is used to receive a download instruction sent by the algorithm platform. The download instruction is determined by the algorithm platform based on the order request sent by the user device. The order request includes the algorithm package identifier of at least one first algorithm package to be downloaded by the target device. The download instruction includes the algorithm package download address of each of the at least one first algorithm package. The download module is used to download the at least one first algorithm package based on the algorithm package download address of each first algorithm package in the at least one first algorithm package; A creation module is configured to create algorithm processes corresponding to the at least one first algorithm package through the main process of the target device, so that the target device loads and runs the at least one first algorithm package. The main process of the target device includes a first engine tool, and the algorithm process of each first algorithm package includes a second engine tool. The second engine tool is used for communication between the algorithm process of the first algorithm package and the first engine tool.
8. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the algorithm package running method as described in any one of claims 1-6.
9. A computer storage medium, characterized in that, The computer storage medium stores computer program instructions, which, when executed by a processor, are used to run the algorithm package as described in any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the algorithm package running method as described in any one of claims 1 to 6.