An implementation method and system for adaptive mapping of application scenarios and software development kits

By converting user business needs into application scenario diagrams and analyzing the API call sequence, executable templates are generated, which solves the problem of time-consuming user learning chip SDKs, and realizes the flexible adaptation of logical decoupling and SDK upgrades.

CN113391795BActive Publication Date: 2025-08-05LYNXI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010168226.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-11
Publication Date
2025-08-05
Estimated Expiration
2040-03-11

AI Technical Summary

Technical Problem

In the prior art, users need to learn and master the use of chip SDK by reading a large number of development documents and trying various API combinations, resulting in a long time and high difficulty.

Method used

By obtaining user business needs, converting them into application scenario diagrams and optimizing, analyzing operation nodes based on the SDK mapping rule library, determining the API call order, and generating executable application templates to realize logical decoupling and API optimization of user business needs and chip SDK.

Benefits of technology

It realizes logical decoupling of user business needs and chip SDK, reduces the difficulty of learning and mastering SDK, and can automatically generate executable application templates to adapt to dynamic updates of SDK without modifying code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113391795B_ABST
    Figure CN113391795B_ABST
Patent Text Reader

Abstract

The present invention discloses an implementation method for adaptive mapping of application scenarios and software development kits, including: obtaining user business requirements, converting the user business requirements into an application scenario graph, and optimizing the application scenario graph; based on the SDK mapping rule library, parsing each operation node in the optimized application scenario graph to obtain the API combinations corresponding to all operation nodes; determining the call order of each API in the API combination to form an API sequence, and optimizing the API sequence; generating an executable application template based on the optimized application scenario graph and the optimized API sequence. The present invention discloses an implementation system for adaptive mapping of application scenarios and software development kits. The beneficial effects of the present invention are: realizing the logical decoupling between user business requirements and chip SDKs, enabling the optimization of operation node APIs and the optimization of the business logic level, and being able to automatically generate executable application templates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip development, and in particular, to a method and system for implementing adaptive mapping of application scenarios and software development kits. Background Art

[0002] Currently, generally, a set of SDKs, that is, application software development toolkits, are designed for each chip, and some application example software on how to use the SDKs are provided, enabling users to learn and master the usage methods of the chip SDKs by studying relevant development documents and example applications. However, this method requires reading a large number of development documents, and the relationships between various APIs inside the SDKs are complex. Users need to make various attempts to find the API combinations suitable for the application scenarios, which takes a long time. Summary of the Invention

[0003] To solve the above problems, the purpose of the present invention is to provide a method and system for implementing adaptive mapping of application scenarios and software development kits, realizing the logical decoupling between user business requirements and chip SDKs, enabling the optimization of operation node APIs and the optimization of business logic levels, and automatically generating executable application templates.

[0004] The present invention provides a method for implementing adaptive mapping of application scenarios and software development kits, including:

[0005] Obtain user business requirements, convert the user business requirements into an application scenario diagram, and optimize the application scenario diagram;

[0006] Based on the SDK mapping rule library, parse each operation node in the optimized application scenario diagram to obtain the API combinations corresponding to all operation nodes;

[0007] Determine the call order of each API in the API combination to form an API sequence, and optimize the API sequence;

[0008] Based on the optimized application scenario diagram and the optimized API sequence, generate an executable application template.

[0009] As a further improvement of the present invention, obtain user business requirements through a graphical interface or a text format file.

[0010] As a further improvement of the present invention, the application scenario diagram is a structured file describing various applications, the functional modules in the applications and the logical relationships between the modules, and the operation nodes in each functional module.

[0011] As a further improvement of the present invention, optimizing the application scenario diagram includes: performing one or more operations of parallelism extraction and function customization on each functional module in the application scenario diagram.

[0012] As a further improvement of the present invention, by abstracting the usage of the SDK of the chip, obtaining the SDK mapping rules of the chip, and storing the SDK mapping rules in the SDK mapping rule library, each chip corresponds to a set of SDK mapping rules.

[0013] As a further improvement of the present invention, the SDK mapping rule library is dynamically loaded according to the update of the SDK.

[0014] As a further improvement of the present invention, the optimization of the API sequence includes: performing one or more operations of disassembling, merging, and extracting parallelism on the APIs in the API sequence according to the correspondence between each operation node in the application scenario graph and the API sequence.

[0015] As a further improvement of the present invention, the method further includes adding customized functions through the application template.

[0016] As a further improvement of the present invention, the customized functions include one or more of debugging functions and performance testing functions.

[0017] The present invention also provides an implementation system for adaptive mapping of application scenarios and software development kits. Using the method described above, the system includes:

[0018] A user service requirement module, which is used to obtain user service requirements; an application scenario graph generator, which is used to convert the user service requirements into an application scenario graph;

[0019] A scenario graph optimizer, which is used to optimize the application scenario graph;

[0020] A scenario graph parser, which is used to parse each operation node defined in the optimized application scenario graph based on the SDK mapping rules to obtain the API combinations corresponding to all operation nodes;

[0021] An API combination optimizer, which is used to determine the call order of each API in the API combination, form an API sequence, and optimize the API sequence;

[0022] An application template generator, which is used to generate an executable application template according to the optimized application scenario graph and the optimized API sequence.

[0023] As a further improvement of the present invention, the user service requirements are obtained through a graphical interface or a text format file.

[0024] As a further improvement of the present invention, the application scenario graph is a structured file describing various applications, the functional modules in the applications and the logical relationships between the modules, and each operation node in each functional module.

[0025] As a further improvement of the present invention, the scenario graph optimizer extracts the parallelism of each functional module in the application scenario graph, or customizes various functional modules in the application scenario graph.

[0026] As a further improvement of the present invention, by abstracting the usage of the SDK of the chip, the SDK mapping rule of the chip is obtained and stored in the SDK mapping rule library, and each chip corresponds to a set of SDK mapping rules.

[0027] As a further improvement of the present invention, the SDK mapping rule library is dynamically loaded according to the update of the SDK.

[0028] As a further improvement of the present invention, the API combination optimizer performs one or more operations of disassembling, merging, and extracting parallelism on the APIs in the API sequence according to the correspondence between each operation node defined in the application scenario graph and the API sequence.

[0029] As a further improvement of the present invention, the application template generator further includes adding custom functions through the application template.

[0030] As a further improvement of the present invention, the custom functions include one or more of debugging functions and performance testing functions.

[0031] The present invention also provides an electronic device, including a memory and a processor, where the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement the method described above.

[0032] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method described above.

[0033] The beneficial effects of the present invention are as follows:

[0034] The logical decoupling between the user's business requirements and the chip SDK is achieved, and the difficulty of learning and mastering the corresponding SDK is reduced.

[0035] The SDK mapping rule library is dynamically loaded according to the update of the SDK, so that the upgrade of the SDK will not affect the implementation process. The actual experience (know-how) of the user can be reflected in the form of the SDK mapping rule library and can be dynamically implemented without modifying the code.

[0036] The optimization of the operation node APIs and the optimization of the business logic level can be achieved, which is convenient for users to complete various tuning tasks. The whole process can be realized without modifying the code, and an executable application template can be automatically generated. Brief Description of the Drawings

[0037] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0038] Figure 1 It is a flowchart of an implementation system for an application scenario and a software development kit adaptive mapping framework according to an embodiment of the present disclosure. Specific embodiments

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some embodiments of the present disclosure, rather than all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope protected by the present disclosure.

[0040] It should be noted that if there are directional indications (such as up, down, left, right, front, back,...) involved in the embodiments of the present disclosure, the directional indications are only used to explain the relative position relationship and movement conditions between components in a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.

[0041] In addition, in the description of the present disclosure, the terms used are only for the purpose of illustration and are not intended to limit the scope of the present disclosure. The terms "including" and / or "comprising" are used to specify the existence of the described elements, steps, operations and / or components, but do not exclude the existence or addition of one or more other elements, steps, operations and / or components. The terms "first", "second", etc. may be used to describe various elements, do not represent an order, and do not limit these elements. In addition, in the description of the present disclosure, unless otherwise specified, "plural" means two or more. These terms are only used to distinguish one element from another. With the following accompanying drawings, these and / or other aspects become obvious, and it is easier for those of ordinary skill in the art to understand the description of the embodiments of the present disclosure. The accompanying drawings are only used to depict the embodiments of the present disclosure for the purpose of illustration. Those skilled in the art will easily recognize from the following description that alternative embodiments of the structure and method shown in the present disclosure can be adopted without departing from the principles of the present disclosure.

[0042] An implementation method for an application scenario and software development kit adaptive mapping according to an embodiment of the present disclosure can be applied to a terminal or a server. The method includes:

[0043] Obtain the user's business requirements, convert the user's business requirements into an application scenario diagram, and optimize the application scenario diagram. Since the business requirements defined by the user are unstructured information, through conversion, the business requirements are converted into a structured application scenario diagram, which is convenient for subsequent analysis of the business requirements.

[0044] Among them, the user's business requirements can refer to the data operations that the user needs to process in the application scenario.

[0045] In an optional implementation manner, the user's business requirements are obtained through a graphical interface. For example, a graphical interface can be provided, where the graphical interface includes selectable options, and each selectable option is related to the user's business requirements. The user can define their requirements by dragging and dropping buttons on the graphical interface, selecting various selectable options, etc. In another optional implementation manner, the user's business requirements are defined through a text format file. For example, the user can describe the business requirements through an Excel file or a text file, and the terminal or server can obtain the text format file to obtain the user's business requirements.

[0046] In an optional implementation manner, the application scenario diagram is a structured file that describes various applications, the functional modules in the applications, the logical relationships between the modules, and the operation nodes in each functional module. An application can be understood as the process of data operations required by the user's business requirements. A functional module can be understood as a module of the chip to implement the user's business requirements, and at least one step in each functional module operates on the data. An operation node can be understood as an operation performed on the data. For example, in a face recognition application, the application in the application scenario diagram can be described as: performing target detection on the video stream, when a face appears in the video, intercepting the area where the face is located, and performing face recognition on the intercepted image. At this time, each functional module can be defined as: a decoding module, a target detection module, and a classification and recognition module. The execution logic of each functional module is: the output of the decoding module is connected to the input of the target detection module, and the output of the target detection module is connected to the input of the classification and recognition module. Taking the decoding module as an example to illustrate the various operations in this module, the operation nodes of the decoding module can be defined as: video decoding and image preprocessing.

[0047] In an optional implementation manner, the application scenario diagram can adopt various structured formats. In an optional implementation manner, the format of the structured file can be selected as YAML or JSON. For example, the application scenario diagram can select a YAML format file. YAML has high readability, is very close to the data structure of the programming language, and at the same time has rich expression capabilities and scalability.

[0048] In an optional implementation manner, the application scenario diagram can be generated by a separate scenario diagram generator or by a functional module in an application program.

[0049] In an alternative embodiment, optimizing the application scenario graph includes: performing one or more operations of parallelism extraction and function customization on various functional modules in the application scenario graph. The optimization can be based on the user's specification. Multiple functional modules can be extracted for parallelism, thereby setting a pipeline for related applications. For example, in a face recognition application, a pipeline operation is constructed for each functional module so that each functional module can form a 32-way pipeline operation, thus supporting the application of 32-channel video surveillance. It is also possible to customize the functional modules. For example, for some functional modules, the user can specify to be completed by different processors (such as CPU, GPU, etc.), and evaluate the impact on the performance of the final application through different operation implementation paths.

[0050] Based on the SDK mapping rule library, each operation node in the optimized application scenario graph is parsed to obtain the API combination corresponding to all operation nodes. Here, the operation nodes can be understood as the operation nodes in each functional module.

[0051] In an alternative embodiment, by abstracting the SDK usage of the chip, the SDK mapping rule of the chip is obtained and stored in the SDK mapping rule library. Each chip corresponds to a set of SDK mapping rules.

[0052] In an alternative embodiment, the SDK mapping rule library is dynamically loaded according to the update of the SDK. After each SDK upgrade, by updating the SDK mapping rule library, new SDK features can be covered, so that the SDK upgrade does not affect the implementation process. Whenever there is new know-how in application development, it can be dynamically implemented by updating the SDK mapping rule library without modifying the code, improving the flexibility of the adaptive mapping between the application scenario and the software development kit.

[0053] Determine the call order of each API in the API combination, form an API sequence, and optimize the API sequence.

[0054] The mapped API sequence can be optimized. For example, it can include optimization within the API combination and optimization between API combinations, etc. In an alternative embodiment, optimizing the API sequence can include: performing one or more operations of disassembling, merging, and extracting parallelism on the APIs in the API sequence according to the correspondence between each operation node in the application scenario graph and the API sequence. Among them, it can be based on ensuring the realization of application functions and is carried out with the principle of conforming to the chip optimization strategy. The chip optimization strategy can be understood as improving the efficiency of the hardware, reducing the overhead of system interaction, reducing the resource consumption of memory or CPU, etc.

[0055] By optimizing the API sequence, it is possible to improve system performance, reduce resource consumption while ensuring the realization of application functions, and facilitate users to complete various optimization tasks.

[0056] For example, in the image preprocessing stage, four preprocessing operations A, B, C, and D need to be executed in sequence. If the order of calling A, B, C, and D in sequence exactly conforms to the chip optimization strategy, then the multiple APIs corresponding to the four preprocessing operations A, B, C, and D can be merged into a new large API, thereby reducing the overhead of system interaction. Another example, in the image preprocessing stage, four preprocessing operations A, B, C, and D need to be executed in sequence. If swapping the B and C operations does not affect the preprocessing result, and the new call order A, C, B, D after swapping conforms to the chip optimization strategy, then the multiple APIs corresponding to the four preprocessing operations A, C, B, D are merged into a new large API. For example, among API combinations, the APIs above and below two sequential groups can be merged into a new large API. For example, parallelism can also be provided by extracting the parallelism of multiple APIs in the API sequence.

[0057] Generate an executable application template based on the configuration of the optimized application scenario graph and the optimized API sequence.

[0058] Users can run the application template by themselves to complete the default functions. In an optional implementation manner, customized functions can also be added through the application template. In an optional implementation manner, the customized functions include one or more of debugging functions and performance testing functions. For example, a debugging function can be added to the application template to facilitate users to complete performance optimization tasks through debugging.

[0059] An implementation system for adaptive mapping of an application scenario and a software development kit according to an embodiment of the present disclosure adopts the foregoing implementation method, as Figure 1 shown, including:

[0060] A user business requirement module, which is used to obtain user business requirements.

[0061] Users can define their business requirements through this module, and this module can have different implementation forms. In an optional implementation manner, this module can be a graphical interface, where the graphical interface includes selectable items, and each selectable item is related to user business requirements. For example, users can define their requirements by means of drag-and-drop buttons and selecting various selectable items in the graphical interface. In another optional implementation manner, this module can be a text format file. For example, users can describe business requirements through an Excel file or a text file, and the terminal or server can obtain the text format file to obtain user business requirements.

[0062] An application scenario graph generator is used to convert user business requirements into an application scenario graph. Since the business requirements defined by the user are unstructured information, through conversion, the business requirements are converted into a structured application scenario graph, which is convenient for subsequent analysis of application requirements.

[0063] In an optional implementation, the application scenario graph is a structured file that describes various applications, the functional modules in the applications and the logical relationships between the modules, as well as the operation nodes in each functional module. An application can be understood as the process of data operations required by user business requirements. A functional module can be understood as a module of the chip to implement user business requirements, and at least one step in each functional module operates on data. An operation node can be understood as an operation performed on data. For example, in a face recognition application, the application in the application scenario graph can be described as: performing object detection on a video stream, when a face appears in the video, intercepting the area where the face is located, and performing face recognition on the intercepted image. At this time, the functional modules can be defined as: a decoding module, an object detection module, and a classification and recognition module. The execution logic of each functional module is: the output of the decoding module is connected to the input of the object detection module, and the output of the object detection module is connected to the input of the classification and recognition module. Taking the decoding module as an example to illustrate the various operations in this module, the operation nodes of the decoding module can be defined as: video decoding, image preprocessing.

[0064] In an optional implementation, the application scenario graph can adopt various structured formats. In an optional implementation, the format of the structured file can be selected as YAML or JSON. For example, the application scenario graph can select a YAML format file. YAML has high readability, is very close to the data structure of programming languages, and at the same time has rich expressive power and scalability.

[0065] In an optional implementation, the application scenario graph can be generated by a separate scenario graph generator or by a functional module in an application program.

[0066] A scenario graph optimizer is used to optimize the application scenario graph. This module can implement some optimizations specified by the user for the application scenario graph or customize certain functions.

[0067] In an optional implementation, the optimization of the module includes: performing one or more operations of parallelism extraction and function customization on various functional modules in the application scenario diagram. The optimization can be based on the user's specification. Multiple functional modules can be extracted for parallelism, so as to set a pipeline for related applications. For example, in a face recognition application, a pipeline operation is constructed for each functional module, so that each functional module can form a 32-way pipeline operation, thereby supporting the application of 32-channel video surveillance. It is also possible to customize the functional modules. For example, for some functional modules, the user can specify to be completed by different processors (such as CPU, GPU, etc.), and the impact on the performance of the final application can be evaluated through different operation implementation paths.

[0068] A scenario graph parser, which is used to parse each operation node defined in the optimized application scenario graph based on the SDK mapping rules, and obtain the API combinations corresponding to all operation nodes.

[0069] In an optional implementation, by abstracting the SDK usage of the chip, the SDK mapping rules of the chip are obtained and stored in the SDK mapping rule library. Each chip corresponds to a set of SDK mapping rules.

[0070] In an optional implementation, the SDK mapping rule library is dynamically loaded according to the update of the SDK. After each SDK upgrade, by updating the SDK mapping rule library, the new SDK features can be covered, so that the SDK upgrade will not affect the implementation process. Whenever there is new know-how in application development, by updating the SDK mapping rule library, it can be dynamically implemented without modifying the code, improving the flexibility of the adaptive mapping between the application scenario and the software development kit.

[0071] An API combination optimizer, which is used to determine the call order of each API in the API combination, form an API sequence, and optimize the API sequence.

[0072] This module can perform various disassembling, combining, and optimizing operations on the corresponding relationships between the originally parsed operation nodes and APIs, including optimizations within API combinations and between API combinations, etc. In an optional implementation manner, according to the corresponding relationships between each operation node and the API sequence in the application scenario diagram, one or more operations of disassembling, merging, and extracting parallelism are performed on the APIs in the API sequence. Among them, it can be based on ensuring the realization of application functions and following the principle of conforming to the chip optimization strategy for API optimization. The chip optimization strategy can be understood as improving the efficiency of the hardware, reducing the overhead of system interaction, reducing the resource consumption of memory or CPU, etc. By optimizing the APIs of each operation node, it is convenient for users to complete various tuning tasks. For example, in the image preprocessing link, if the user needs to sequentially execute four preprocessing operations A, B, C, and D, and if the order of sequentially calling A, B, C, and D exactly conforms to the chip optimization strategy, then the multiple APIs corresponding to the four preprocessing operations A, B, C, and D are combined into a new large API, thereby reducing the overhead of system interaction. Another example is that in the image preprocessing link, if the user needs to sequentially execute four preprocessing operations A, B, C, and D, and if swapping the B and C operations does not affect the preprocessing result and the new call order A, C, B, D after swapping conforms to the chip optimization strategy, then the multiple APIs corresponding to the four preprocessing operations A, C, B, D are combined into a new large API. For example, between API combination groups, the APIs above and below two sequential groups can be combined into a new large API. For example, parallelism can also be provided by extracting the parallelism of multiple APIs in the API sequence.

[0073] An application template generator, which is used to generate an executable application template according to the configuration of the optimized application scenario diagram and the optimized API sequence.

[0074] The user can run the application template by themselves to complete the default functions. In an optional implementation manner, customized functions can also be added through the application template. In an optional implementation manner, the customized functions include one or more of debugging functions and performance testing functions. For example, adding a debugging function facilitates the user to complete performance tuning tasks through debugging.

[0075] This disclosure also relates to an electronic device, including a server, a terminal, etc. The electronic device includes: at least one processor; a memory communicatively connected to at least one processor; and a communication component communicatively connected to a storage medium, where the communication component receives and sends data under the control of the processor; wherein, the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor to implement the implementation method of the application scenario and software development kit adaptive mapping in the above embodiments.

[0076] In an alternative embodiment, the memory, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. By running the non-volatile software programs, instructions, and modules stored in the memory, the processor can execute various functional applications and data processing of the device, that is, implement the implementation method of the above application scenario and software development kit adaptive mapping.

[0077] The memory can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store an option list, etc. In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely set relative to the processor, and these remote memories can be connected to an external device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0078] One or more modules are stored in the memory and, when executed by one or more processors, implement the implementation method of the application scenario and software development kit adaptive mapping in any of the above method embodiments.

[0079] The above product can execute the implementation method of the application scenario and software development kit adaptive mapping provided in the embodiments of the present application, and has corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference can be made to the implementation method of the application scenario and software development kit adaptive mapping provided in the embodiments of the present application.

[0080] The present disclosure also relates to a computer-readable storage medium for storing a computer-readable program, and the computer-readable program is used for a computer to execute the embodiments of the above-mentioned implementation method of the application scenario and software development kit adaptive mapping in part or in whole.

[0081] That is, those skilled in the art can understand that all or part of the steps in implementing the methods of the above embodiments can be completed by a program instructing relevant hardware. The program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical disks and other various media that can store program codes.

[0082] In the specification provided herein, numerous specific details are set forth. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail so as not to obscure an understanding of this description.

[0083] In addition, those of ordinary skill in the art will understand that, although some embodiments described herein include certain features included in other embodiments but not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

[0084] Those skilled in the art will appreciate that, although the invention has been described with reference to exemplary embodiments, various changes may be made and equivalents may be substituted for its elements without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from its essential scope. Therefore, the invention is not limited to the specific embodiments disclosed, but the invention will include all embodiments falling within the scope of the appended claims.

Claims

1. A method for implementing adaptive mapping between application scenarios and software development kits, characterized in that: include: Obtain user business requirements, convert them into an application scenario graph, and optimize the application scenario graph. The user business requirements are unstructured information and are obtained through a graphical interface or text-formatted file. The application scenario graph is structured information and is a structured file that describes various applications, the functional modules within the applications, the logical relationships between modules, and the operation nodes within each functional module. The user business requirements refer to the data operations that the user needs to process in the application scenario. Abstract the SDK usage of the chip to obtain the SDK mapping rules of the chip, and store the SDK mapping rules in the SDK mapping rule library; Based on the SDK mapping rule library, each operation node in the optimized application scenario graph is parsed to obtain the API combination corresponding to all operation nodes, where the operation node is an operation performed on the data; Determine the calling order of each API in the API combination to form an API sequence, and optimize the API sequence; Generate an executable application template based on the optimized application scenario graph and the optimized API sequence.

2. The method according to claim 1, characterized in that Optimizing the application scenario graph includes performing one or more operations of parallel extraction and function customization on each functional module in the application scenario graph.

3. The method according to claim 1, characterized in that Each chip corresponds to a set of SDK mapping rules.

4. The method according to claim 3, characterized in that The SDK mapping rule library is dynamically loaded according to the update of the SDK.

5. The method according to claim 1, characterized in that The optimization of the API sequence includes: performing one or more operations of disassembling, merging, and extracting parallelism on the APIs in the API sequence according to the corresponding relationship between each operation node and the API sequence in the application scenario graph.

6. The method according to claim 1, characterized in that The method further includes adding customized functions through the application template.

7. The method according to claim 6, characterized in that The customized function includes one or more of a debugging function and a performance testing function.

8. A system for implementing adaptive mapping between application scenarios and software development kits, characterized in that: According to any one of claims 1 to 7, the system comprises: The user business requirements module is used to obtain user business requirements. The user business requirements are unstructured information and are obtained through a graphical interface or text format file. The application scenario diagram is structured information and is a structured file that describes various applications, the functional modules in the applications, the logical relationships between modules, and the operation nodes in each functional module. The user business requirements refer to the data operations that the user needs to process in the application scenario. An application scenario graph generator, which is used to convert the user business requirements into an application scenario graph; A scene graph optimizer, configured to optimize the application scene graph; The scene graph parser is used to parse each operation node in the optimized application scene graph based on the SDK mapping rule library, and obtain the API combination corresponding to all operation nodes. The SDK mapping rules of the chip are obtained by abstracting the SDK usage of the chip, and the SDK mapping rules are stored in the SDK mapping rule library. The operation node is an operation performed on the data; An API combination optimizer, which is used to determine the calling order of each API in the API combination, form an API sequence, and optimize the API sequence; The application template generator is used to generate an executable application template based on the optimized application scenario graph and the optimized API sequence.

9. The system according to claim 8, characterized in that The scene graph optimizer extracts parallelism from each functional module in the application scene graph, or customizes various functional modules in the application scene graph.

10. The system according to claim 8, wherein: Each chip corresponds to a set of SDK mapping rules.

11. The system according to claim 10, wherein: The SDK mapping rule library is dynamically loaded according to the update of the SDK.

12. The system according to claim 8, wherein: The API combination optimizer disassembles, merges and extracts one or more operations in parallelism from the APIs in the API sequence according to the correspondence between each operation node and the API sequence defined in the application scenario graph.

13. The system according to claim 8, wherein: The application template generator also includes adding customization functions through the application template.

14. The system according to claim 13, wherein: The customized function includes one or more of a debugging function and a performance testing function.

15. An electronic device comprising a memory and a processor, characterized in that: The memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 7.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the method according to any one of claims 1 to 7.