An asynchronous processing flow generation method and device

By configuring the processing order and logical relationships of asynchronous processing components and generating operating conditions, the problem of synchronous processing in existing technologies is solved, realizing the flexibility and efficiency of asynchronous data processing.

CN115687224BActive Publication Date: 2026-03-17HANGZHOU HIKROBOT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-09
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In existing technologies, processing components can only perform synchronous data processing and cannot be configured for asynchronous data processing flows.

Method used

By configuring the processing order of asynchronous processing components, connecting each asynchronous processing component, determining the target event signals and logical relationships, and generating the running conditions of the target processing component, the data processing unit is run when the event signals of the logical relationships are met.

Benefits of technology

An asynchronous data processing flow has been implemented, allowing preceding processing components to continue processing after outputting event signals, while the target processing component begins processing when conditions are met, thus improving the flexibility and efficiency of the processing flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115687224B_ABST
    Figure CN115687224B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an asynchronous processing flow generation method and device, and relate to the technical field of data processing. The method comprises: connecting each asynchronous processing component based on a processing sequence of the asynchronous processing components configured by a user; determining a target event signal selected by the user for a target processing component in the asynchronous processing components, and displaying an identifier of the target event signal in a first preset interface; determining a logical relationship between the target event signals configured by the user according to the content displayed in the first preset interface; generating a running condition of the target processing component based on the logical relationship and the target event signal; configuring the target processing component to receive the target event signal through an event receiving interface, and configuring the target processing component to run a data processing unit in the case where the running condition is established; and generating a data file for data processing according to the asynchronous processing flow based on the configuration result. The scheme provided by the embodiments of the present application can configure asynchronous processing components to implement asynchronous data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method and apparatus for generating asynchronous processing flows. Background Technology

[0002] In the prior art, the processing component encapsulates a data processing unit, a data input interface, and a data output interface. Electronic devices can call the processing component, input data into the processing component through the data input interface, process the data, and output the processing result from the data output interface.

[0003] Based on this, and following a preset processing order, the data output interfaces of each processing component can be connected to the data input interfaces of other processing components, enabling all processing components to jointly implement a data processing flow. Specifically, after processing the data, the data processing unit in each processing component can input the processing result into the input interface of the next connected processing component through its output interface. After receiving the processing result, the next processing component can continue to process the received result through its own encapsulated data processing unit, and so on, thus enabling all processing components to jointly implement a data processing flow.

[0004] However, after configuring the processing components using the above method, the backend processing components can only begin data processing after the frontend processing component in the connection sequence has completed data processing and output the result. The data processing flow between the various processing components is synchronous. The existing configuration method cannot configure processing components to achieve asynchronous data processing. Summary of the Invention

[0005] The purpose of this application is to provide a method for generating asynchronous processing flows, so as to configure processing components to achieve asynchronous data processing. The specific technical solution is as follows:

[0006] In a first aspect, embodiments of this application provide an asynchronous processing flow generation method, the method comprising:

[0007] Based on the processing order of the asynchronous processing components configured by the user, each asynchronous processing component is connected. The asynchronous processing component includes: a data input interface for receiving data, a data processing unit for processing data, a data output interface for outputting data, an event receiving interface for receiving event signals, and an event output interface for outputting event signals. After connection, the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the processing order.

[0008] The target event signal selected by the user for the target processing component in the asynchronous processing component is determined, and the identifier of the target event signal is displayed in the first preset interface. The target event signal is: the event signal output by the preceding asynchronous processing component through the event output interface, and the preceding asynchronous processing component is located before the target processing component in the processing order.

[0009] Determine the logical relationship between the target event signals configured by the user based on the content displayed on the first preset interface;

[0010] Based on the logical relationship and the target event signal, the operating conditions of the target processing component are generated, wherein the operating conditions are: when the preceding asynchronous processing component outputs the target event signal and satisfies the logical relationship, the data processing unit in the target processing component is run;

[0011] The target processing component is configured to receive target event signals through an event receiving interface, and the target processing component is configured to run the data processing unit when the operating conditions are met;

[0012] Based on the configuration results, a data file is generated that processes data according to an asynchronous processing flow.

[0013] In one embodiment of this application, before configuring the target processing component to receive the target event signal through the event receiving interface, the method further includes:

[0014] Determine the target action selected by the user through the second preset interface, wherein the target action is the action that the data processing unit in the target processing component needs to perform under the condition that the operating conditions are met;

[0015] The configuration of the target processing component to run the data processing unit when the operating conditions are met includes:

[0016] The target processing component is configured to run the data processing unit to perform the target action when the operating conditions are met.

[0017] In one embodiment of this application, the method further includes:

[0018] Determine the output event signals configured by the user through the third preset interface;

[0019] The target processing component is configured to output the output event signal through the event output interface during the operation of the data processing unit.

[0020] In one embodiment of this application, determining the logical relationship between target events configured by the user based on the content displayed by the first preset interface includes:

[0021] The first preset interface displays preset logical relationship symbols that can represent logical relationships;

[0022] Determine the target logical relation symbol selected by the user from the displayed logical relation symbols, and determine the logical relationship between the target event signals based on the target logical relation symbol.

[0023] In one embodiment of this application, the logical relation symbols include at least one of the following symbols: AND symbol, OR symbol, negation symbol, parentheses, and functions used to implement a set function.

[0024] In one embodiment of this application, the asynchronous processing component is a component in a machine vision algorithm platform, and the data processing unit in the asynchronous processing component is used to process image data and / or video data.

[0025] Secondly, embodiments of this application provide an asynchronous processing flow generation apparatus, the apparatus comprising:

[0026] The component connection module is used to connect various asynchronous processing components based on the processing order of the asynchronous processing components configured by the user. The asynchronous processing component includes: a data input interface for receiving data, a data processing unit for processing data, a data output interface for outputting data, an event receiving interface for receiving event signals, and an event output interface for outputting event signals. After connection, the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the processing order.

[0027] The identifier selection module is used to determine the target event signal selected by the user for the target processing component in the asynchronous processing component, and to display the identifier of the target event signal in the first preset interface. The target event signal is: the event signal output by the preceding asynchronous processing component through the event output interface, and the preceding asynchronous processing component is located before the target processing component in the processing order.

[0028] The logical relationship determination module is used to determine the logical relationship between target event signals configured by the user based on the content displayed on the first preset interface.

[0029] The running condition generation module is used to generate running conditions for the target processing component based on the logical relationship and the target event signal, wherein the running condition is: when the preceding asynchronous processing component outputs the target event signal and satisfies the logical relationship, the data processing unit in the target processing component is run;

[0030] The first component configuration module is used to configure the target processing component to receive target event signals through the event receiving interface, and to configure the target processing component to run the data processing unit when the running conditions are met.

[0031] The data file generation module is used to generate data files that are processed according to an asynchronous process, based on the configuration results.

[0032] In one embodiment of this application, the apparatus further includes:

[0033] An action determination module is used to determine the target action selected by the user through a second preset interface, wherein the target action is the action that the data processing unit in the target processing component needs to perform under the condition that the operating conditions are met;

[0034] The first component configuration module is specifically used for:

[0035] The target processing component is configured to receive target event signals through an event receiving interface, and the target processing component is configured to run the data processing unit to perform target actions when the operating conditions are met.

[0036] In one embodiment of this application, the apparatus further includes:

[0037] The output signal determination module is used to determine the output event signals configured by the user through a third preset interface;

[0038] The second component configuration module is used to configure the target processing component to output the output event signal through the event output interface during the operation of the data processing unit.

[0039] In one embodiment of this application, the logical relationship determination module is specifically used for:

[0040] The first preset interface displays preset logical relationship symbols that can represent logical relationships;

[0041] Determine the target logical relation symbol selected by the user from the displayed logical relation symbols, and determine the logical relationship between the target event signals based on the target logical relation symbol.

[0042] In one embodiment of this application, the logical relation symbols include at least one of the following symbols: AND symbol, OR symbol, negation symbol, parentheses, and functions used to implement a set function.

[0043] In one embodiment of this application, the asynchronous processing component is a component in a machine vision algorithm platform, and the data processing unit in the asynchronous processing component is used to process image data and / or video data.

[0044] Thirdly, embodiments of this application provide an electronic device, characterized in that it includes:

[0045] Memory, used to store computer programs;

[0046] A processor, when executing a program stored in memory, implements any of the methods described in the first aspect.

[0047] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the methods described in the first aspect.

[0048] Fifthly, embodiments of this application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the methods described in the first aspect above.

[0049] Beneficial effects of the embodiments in this application:

[0050] In the asynchronous processing flow generation method provided in this application embodiment, based on the processing order of the asynchronous processing components configured by the user, each asynchronous processing component is connected. After connection, the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the processing order. The target event signal selected by the user for the target processing component in the asynchronous processing component is determined, and the identifier of the target event signal is displayed in a first preset interface. The logical relationship between the target event signals configured by the user according to the content displayed in the first preset interface is determined. Based on the logical relationship and the target event signal, the running conditions of the target processing component are generated. The target processing component is configured to receive the target event signal through the event receiving interface, and the target processing component is configured to run the data processing unit when the running conditions are met. Then, according to the configuration result, a data file that performs data processing according to the asynchronous processing flow is generated.

[0051] As can be seen from the above, users can configure the connection relationship between asynchronous processing components through the solution provided in the embodiments of this application, and configure the logical relationship between target event signals for the target processing component in the asynchronous processing component, thereby configuring the running conditions of the target processing component. This allows the target processing component to run its data processing unit when it receives a target event signal and the target event signal satisfies the logical relationship. In other words, after configuration, the target processing component does not start running its data processing unit after receiving data output from the preceding asynchronous processing component, but rather uses the event signal output by the preceding asynchronous processing component as the running condition for the data processing unit.

[0052] After the preceding asynchronous processing component outputs an event signal, it can continue data processing. When the target processing component receives the target event signal and the target event signal meets the running conditions, it can begin executing its own data processing flow. The data processing processes between the two are asynchronous. Therefore, the solution provided in this application embodiment can configure the asynchronous processing component to achieve asynchronous data processing. In addition, users can configure the asynchronous processing unit through a visual first preset interface. For users, the implementation of the asynchronous processing flow generation solution provided in this application embodiment is relatively simple. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0054] Figure 1 A flowchart illustrating the first asynchronous processing flow generation method provided in this application embodiment;

[0055] Figure 2 This is a schematic diagram of the structure of an asynchronous processing component provided in an embodiment of this application;

[0056] Figure 3 A schematic diagram illustrating the connection relationship between asynchronous processing components provided in an embodiment of this application;

[0057] Figure 4 A schematic diagram of an information slot interface provided in an embodiment of this application;

[0058] Figure 5 A schematic diagram of a first preset interface provided in an embodiment of this application;

[0059] Figure 6 This is a schematic diagram of the processing sequence of an image processing flow provided in an embodiment of this application;

[0060] Figure 7 This is a schematic diagram of the structure of a processing component in the prior art;

[0061] Figure 8 This is a schematic diagram illustrating how component connection relationships are handled in existing technologies.

[0062] Figure 9 A flowchart illustrating the second asynchronous processing flow generation method provided in this application embodiment;

[0063] Figure 10 A schematic diagram of a second preset interface provided in an embodiment of this application;

[0064] Figure 11 A flowchart illustrating the third asynchronous processing flow generation method provided in this application embodiment;

[0065] Figure 12 A flowchart illustrating the fourth asynchronous processing flow generation method provided in this application embodiment;

[0066] Figure 13 A schematic diagram of a second type of first preset interface provided in an embodiment of this application;

[0067] Figure 14 A schematic diagram of a third type of first preset interface provided in an embodiment of this application;

[0068] Figure 15 A schematic diagram of an asynchronous processing flow generation device provided in an embodiment of this application;

[0069] Figure 16 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0070] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of this application.

[0071] To enable the configuration of asynchronous processing flows, embodiments of this application provide an asynchronous processing flow generation method and apparatus.

[0072] This application provides a method for generating an asynchronous processing flow, the method comprising:

[0073] Based on the processing order of the asynchronous processing components configured by the user, each asynchronous processing component is connected. The asynchronous processing component includes: a data input interface for receiving data, a data processing unit for processing data, a data output interface for outputting data, an event receiving interface for receiving event signals, and an event output interface for outputting event signals. After connection, the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the above processing order.

[0074] The target event signal selected by the user for the target processing component in the asynchronous processing component is determined, and the identifier of the target event signal is displayed in the first preset interface. The target event signal is: the event signal output by the preceding asynchronous processing component through the event output interface, and the preceding asynchronous processing component is located before the target processing component in the processing order.

[0075] Determine the logical relationship between the target event signals configured by the user based on the content displayed on the first preset interface;

[0076] Based on the above logical relationship and the above target event signal, the operating conditions of the target processing component are generated, wherein the above operating conditions are: when the preceding asynchronous processing component outputs the target event signal and satisfies the above logical relationship, the data processing unit in the above target processing component is run;

[0077] Configure the target processing component to receive target event signals through the event receiving interface, and configure the target processing component to run the data processing unit when the above operating conditions are met;

[0078] Based on the configuration results, a data file is generated that processes data according to an asynchronous processing flow.

[0079] As can be seen from the above, users can configure the connection relationship between asynchronous processing components through the solution provided in the embodiments of this application, and configure the logical relationship between target event signals for the target processing component in the asynchronous processing component, thereby configuring the running conditions of the target processing component. This allows the target processing component to run its data processing unit when it receives a target event signal and the target event signal satisfies the logical relationship. In other words, after configuration, the target processing component does not start running its data processing unit after receiving data output from the preceding asynchronous processing component, but rather uses the event signal output by the preceding asynchronous processing component as the running condition for the data processing unit.

[0080] After the preceding asynchronous processing component outputs an event signal, it can continue data processing. When the target processing component receives the target event signal and the target event signal meets the running conditions, it can begin executing its own data processing flow. The data processing processes between the two are asynchronous. Therefore, the solution provided in this application embodiment can configure the asynchronous processing component to achieve asynchronous data processing. In addition, users can configure the asynchronous processing unit through a visual first preset interface. For users, the implementation of the asynchronous processing flow generation solution provided in this application embodiment is relatively simple.

[0081] See Figure 1 This is a flowchart illustrating the first asynchronous processing flow generation method provided in the embodiments of this application. The method includes the following steps S101-S106.

[0082] S101: Connect the asynchronous processing components based on the processing order configured by the user.

[0083] The aforementioned asynchronous processing component includes: a data input interface for receiving data, a data processing unit for processing data, a data output interface for outputting data, an event receiving interface for receiving event signals, and an event output interface for outputting event signals.

[0084] See Figure 2 This is a schematic diagram of the structure of an asynchronous processing component provided in an embodiment of this application.

[0085] Depend on Figure 2 As can be seen, the above asynchronous processing component includes a data processing unit, a data input interface, a data output interface, an event receiving interface, and an event output interface.

[0086] In addition, after connection, the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the above processing sequence.

[0087] Specifically, the solution provided in this application embodiment can provide users with a variety of asynchronous processing components for users to choose from. Users select asynchronous processing components by inputting component selection instructions. The execution entity of this embodiment can determine the asynchronous processing component selected by the user based on the component selection instructions.

[0088] In one embodiment of this application, the identifiers of selectable asynchronous processing components can be displayed on a fourth preset interface. The identifiers of the asynchronous processing components can be the name, function description, etc. of the asynchronous processing components. Users can select from the provided asynchronous processing components by viewing the content displayed on the fourth preset interface.

[0089] In addition, after selecting an asynchronous processing component, the user can enter component connection instructions to control the execution entity to connect to each asynchronous processing component.

[0090] Specifically, after connecting the asynchronous processing components according to the processing order, the data output interface of one asynchronous processing component can be connected to the data input interfaces of multiple asynchronous processing components, and the data output interfaces of multiple asynchronous processing components can also be connected to the data input interface of the same asynchronous processing component. This application does not limit this aspect.

[0091] See Figure 3 This is a schematic diagram illustrating the connection relationship between asynchronous processing components provided in an embodiment of this application.

[0092] In the diagram, the starting end of the arrow connects to the data output interface of the asynchronous processing component, and the ending end connects to the data input interface of the asynchronous processing component. As shown in the diagram, the data output interface of asynchronous processing component 1 is connected to the data input interface of asynchronous processing component 3, and the data output interface of asynchronous processing component 2 is connected to the data input interfaces of asynchronous processing components 3 and 4 respectively. Therefore, the data output interface of asynchronous processing component 2 is connected to the data input interfaces of two asynchronous processing components, and the data input interface of asynchronous processing component 3 is connected to the data output interfaces of two asynchronous processing components.

[0093] S102: Determine the target event signal selected by the user for the target processing component in the asynchronous processing component, and display the identifier of the target event signal in the first preset interface.

[0094] The target event signal is the event signal output by the preceding asynchronous processing component through the event output interface, and the preceding asynchronous processing component is located before the target processing component in the above processing order.

[0095] Specifically, users can select the desired event signal as the target event signal from all event signals that can be output by the preceding asynchronous processing component of the target processing component.

[0096] In addition, the identifier of the aforementioned target event signal can be the name, number, etc. of the target event signal.

[0097] Each asynchronous processing component can be used as a target processing component. Users can select a target processing component according to the configuration requirements of the asynchronous processing flow. The selected processing component can be one or more. For each target processing component, the target processing component can be configured through steps S102-S105.

[0098] In one embodiment of this application, an information slot can be added to the target processing component, and the target event signal corresponding to the target processing component can be configured in the information slot. Specifically, the execution entity of this embodiment can display an information slot interface, where the user can select the target event signal.

[0099] See Figure 4 This is a schematic diagram of an information slot interface provided in an embodiment of this application.

[0100] As shown in the figure, the information slot interface displays the running conditions configured for the target processing component, the sequence number of the running conditions, and the name of the running conditions. The running conditions can be configured by clicking the configuration button. Specifically, the target event signals included in the running conditions and the logical relationships between the target event signals can be configured. New running conditions can be added to the target processing component by clicking the add button.

[0101] See Figure 5 This is a schematic diagram of a first preset interface provided in the embodiments of this application.

[0102] The first preset interface displays identifiers for the selected target event signals, including signal 1, signal 2, signal 3, and signal 4. By clicking the subscribe button, users can select other event signals from preceding asynchronous processing components as target event signals.

[0103] S103: Determine the logical relationship between the target event signals configured by the user based on the content displayed on the first preset interface.

[0104] Specifically, the logical relationships between target event signals can include AND, OR, NOT, and other logical relationships. Users can determine the selected target event signals based on the identifiers of the target event signals displayed on the first preset interface, and then configure the logical relationships between the selected target event signals.

[0105] As mentioned above Figure 5 Taking the first preset interface as an example, the first preset interface displays the identifiers of signal 1, signal 2, signal 3, and signal 4. The user can configure the logical relationship between signal 1 and signal 2 as an AND relationship, the logical relationship between signal 2 and signal 3 as an AND relationship, and the logical relationship between signal 3 and signal 4 as an OR relationship based on the content displayed on the first preset interface.

[0106] Furthermore, the solution provided in this application embodiment can also record the above-mentioned target event signals and the logical relationship between the target event signals. As a combination of event signals, when configuring other asynchronous processing components, the user can directly call the combination of event signals to generate the running conditions of the asynchronous processing component, or add other event signals on the basis of the combination of event signals and set the logical relationship between the combination of event signals and the newly added event signals to form new running conditions.

[0107] S104: Based on the above logical relationship and the above target event signal, generate the operating conditions of the target processing component.

[0108] The above operating conditions are as follows: when the preceding asynchronous processing component outputs the target event signal and satisfies the above logical relationship, the data processing unit in the target processing component is run.

[0109] In the solution provided in this application embodiment, after the above logical relationship and target event signal are configured, an executable file that records the identifier of the above target event signal and the above logical relationship can be generated to record the above operating conditions.

[0110] S105: Configure the above target processing component to receive target event signals through the event receiving interface, and configure the above target processing component to run the data processing unit when the above operating conditions are met.

[0111] Specifically, the event receiving interface of the aforementioned target processing component can be configured to continuously monitor the event output interface of the preceding asynchronous processing component used to output target event signals, thereby receiving target event signals.

[0112] Upon receiving the target event signal, the target processing component can determine whether the received target event signal meets the operating conditions. Specifically, it can read the executable file recording the operating conditions generated in step S104 above to determine whether the target event signal meets the operating conditions. If the above operating conditions are met, the data processing unit is run to process the data, thereby realizing the configuration of the asynchronous processing flow.

[0113] S106: Based on the configuration results, generate a data file that processes data according to the asynchronous processing flow.

[0114] Specifically, the aforementioned data file may record code and configuration parameters for data processing according to the asynchronous processing flow. This data file is used to: for each asynchronous processing component, determine whether the running conditions of that component are met, and, if the running conditions are met, control the asynchronous processing component to run the data processing unit. The aforementioned data file can be a script file or other executable file containing code.

[0115] After generating the aforementioned data file, the execution entity of this application embodiment can run the aforementioned data file when an asynchronous processing flow needs to be executed, thereby determining whether the running conditions of the asynchronous processing component are met. If they are met, the asynchronous processing component is called to run the data processing unit, thereby controlling the operation of the asynchronous processing flow.

[0116] As can be seen from the above, users can configure the connection relationship between asynchronous processing components through the solution provided in the embodiments of this application, and configure the logical relationship between target event signals for the target processing component in the asynchronous processing component, thereby configuring the running conditions of the target processing component. This allows the target processing component to run its data processing unit when it receives a target event signal and the target event signal satisfies the logical relationship. In other words, after configuration, the target processing component does not start running its data processing unit after receiving data output from the preceding asynchronous processing component, but rather uses the event signal output by the preceding asynchronous processing component as the running condition for the data processing unit.

[0117] After the preceding asynchronous processing component outputs an event signal, it can continue data processing. When the target processing component receives the target event signal and the target event signal meets the running conditions, it can begin executing its own data processing flow. The data processing processes between the two are asynchronous. Therefore, the solution provided in this application embodiment can configure the asynchronous processing component to achieve asynchronous data processing. In addition, users can configure the asynchronous processing unit through a visual first preset interface. For users, the implementation of the asynchronous processing flow generation solution provided in this application embodiment is relatively simple.

[0118] In one embodiment of this application, the execution subject is a machine vision algorithm platform, and the aforementioned asynchronous processing component is a component in the aforementioned machine vision algorithm platform. The data processing unit in the aforementioned asynchronous processing component is used to process image data and / or video data.

[0119] The asynchronous processing flow generation method provided in this application is described below through specific embodiments.

[0120] Taking asynchronous image processing as an example, see Figure 6 This is a schematic diagram of the processing sequence of an image processing flow provided in an embodiment of this application.

[0121] As shown in the figure, there are four image acquisition components 1-4 in the image processing flow, which are used to acquire images captured by cameras 1-4 respectively. The data input interface of the image acquisition components 1-4 is used to acquire the image captured by the corresponding camera, and the data output interface is used to output the acquired image. The data output interface of the image acquisition components 1-4 is connected to the data input interface of the image processing component.

[0122] After outputting an image, image acquisition components 1-4 each output a completion signal 1-4 through their own event output interface, indicating that the image output is complete. Image acquisition components 1-4 can continue to acquire new images after outputting the completion signal. The event receiving interface of the image processing component receives the completion signals 1-4. Since the logical relationship between any two completion signals 1-4 is an AND relationship, the operating condition of the image processing component is: after fully receiving the completion signals 1-4, the data processing unit runs to process the images captured by camera 1-4.

[0123] In addition, to highlight the difference between the asynchronous processing flow generation method provided in this application embodiment and the prior art, the synchronous processing flow generation method in the prior art will be described below.

[0124] First, the structure of the processing components in the prior art will be explained.

[0125] See Figure 7 This is a schematic diagram of the structure of a processing component in the prior art.

[0126] As shown in the figure, the processing component in the prior art only includes a data input interface for receiving data, a data output interface for outputting data, and a data processing unit for processing data. Therefore, compared with the prior art, the asynchronous processing component provided in this application embodiment includes an event receiving interface capable of receiving event signals and an event output interface capable of outputting event signals.

[0127] Additionally, see Figure 8 This is a schematic diagram illustrating how component connection relationships are handled in existing technologies.

[0128] The data output interface of the processing component connected to the starting end of the arrow in the diagram is connected to the data input interface of the processing component connected to the ending end of the arrow.

[0129] As shown in the figure, the data output interface of processing component 1 is connected to the data input interfaces of processing component 2 and processing component 3 respectively, the data output interface of processing component 2 is connected to the data input interface of processing component 4, and the data output interfaces of processing component 4 and processing component 2 are both connected to the data input interface of processing component 5.

[0130] After the data processing unit in processing component 1 completes its data processing, processing component 1 sends the processing result to processing components 2 and 3. The data processing units in processing components 2 and 3 then begin their respective data processing. After the data processing unit in processing component 2 completes its data processing, processing component 2 sends the processing result to processing component 4. After the data processing unit in processing component 4 completes its data processing, processing component 4 sends the processing result to processing component 5. After the data processing unit in processing component 2 completes its data processing, processing component 2 also sends the processing result to processing component 5. The data processing unit in processing component 5 then processes the received processing results from processing components 4 and 2.

[0131] Therefore, in the prior art, the execution condition of a processing component located at the back end of the processing sequence is that the preceding processing component completes data processing and outputs the processing result. That is, only after the preceding processing component completes data processing can the subsequent processing component begin data processing. However, in the solution provided by this application embodiment, the execution condition of the asynchronous processing component is related to the event signal output by the preceding asynchronous processing component. The asynchronous processing component can output an event signal at any stage in the data processing process of the data processing unit, triggering the subsequent asynchronous processing component to start running. After outputting the event signal, the data processing unit in the asynchronous processing component can continue its own data processing, thereby realizing the asynchronous data processing flow between various asynchronous processing components.

[0132] See Figure 9This is a flowchart illustrating the second asynchronous processing flow generation method provided in this application embodiment, which is consistent with the aforementioned... Figure 1 Compared to the embodiment shown, the previous step S105 is preceded by step S107, and step S105 can be implemented by step S105A.

[0133] S107: Determine the target action selected by the user through the second preset interface.

[0134] The aforementioned target action refers to the action that the data processing unit in the aforementioned target processing component needs to perform under the aforementioned operating conditions.

[0135] Specifically, the data processing unit in the target processing component may have various functions and be able to perform different actions. The solution provided in this application embodiment can configure target actions for the target processing component, so that, under the condition of meeting the operating conditions, the target action among the various actions that the data processing unit can perform can be executed. The user can select one or more target actions.

[0136] For example, the target processing component mentioned above is an image processing component. The data processing unit in the image processing component can perform actions such as image denoising, image cropping, and image feature extraction. Users can select target actions from it. For example, if image denoising is selected as the target action, then the image processing component will perform image denoising on the received image if the operating conditions are met.

[0137] Additionally, see Figure 10 This is a schematic diagram of a second preset interface provided in an embodiment of this application.

[0138] As shown in the figure, the second preset interface displays the sequence number of the running conditions, the name of the running conditions, and the target action to be executed when the running conditions are met. Users can select the target action from the actions that the data processing unit of the target processing component can perform through the target action selection drop-down box.

[0139] Figure 10 The interface shown is only one form of the second preset interface, and this application embodiment does not limit it.

[0140] S105A: Configure the above target processing component to receive target event signals through the event receiving interface, and configure the above target processing component to run the data processing unit to perform target actions when the above operating conditions are met.

[0141] Furthermore, when step S106 is executed to generate a data file based on the aforementioned steps S107-S105A, the generated data file is used to control the target processing component to run the data processing unit to perform the target action when the operating conditions of the target processing component are met.

[0142] As can be seen from the above, in the solution provided by the embodiments of this application, the user can select the target action from the actions that the data processing unit within the target processing component can perform, so that the data processing unit can perform the target action when the running conditions are met, thereby precisely controlling the operation of the target processing component.

[0143] See Figure 11 This is a flowchart illustrating the third asynchronous processing flow generation method provided in this application embodiment, which is consistent with the aforementioned... Figure 1 Compared to the embodiments shown, the above method further includes the following steps S108-S109.

[0144] S108: Determine the output event signal configured by the user through the third preset interface.

[0145] The solution provided in this application embodiment can pre-set the event signals that the target processing component can output, and display the identifiers of each pre-set event signal on a third preset interface, so that the user can select the output event signal from each pre-set event signal through the third preset interface.

[0146] The identifier for the aforementioned event signal can be the event signal's name or number, etc.

[0147] S109: Configure the above target processing component to output the above output event signal through the event output interface during the operation of the data processing unit.

[0148] Specifically, the aforementioned target processing component may output the aforementioned output event signal at the start of the data processing unit's operation, during the operation of the data processing unit, or after the data processing unit's operation has ended.

[0149] As can be seen from the above, the solution provided in this application embodiment can not only configure the running conditions of the target processing component based on the event signals output by other asynchronous processing components, but also configure the output event signals output by the target processing component, and the configured output event signals can be used as the running conditions of other asynchronous processing components.

[0150] See Figure 12 This is a flowchart illustrating the fourth asynchronous processing flow generation method provided in this application embodiment, which is consistent with the aforementioned... Figure 1 Compared to the embodiment shown, step S103 can be implemented by the following steps S103A-S103B.

[0151] S103A: Display preset logical relationship symbols that can represent logical relationships through the first preset interface mentioned above.

[0152] Specifically, in addition to displaying the identifier of the target event signal, the first preset interface also displays preset logical relationship symbols, which include at least one of the following symbols: AND symbol, OR symbol, negation symbol, parentheses, and functions used to implement the set functions.

[0153] For example, the function that implements the setting function may include a function for counting whether the current number of clusters is greater than the preset number of clusters, such as the preset number of clusters being 5, 6, etc.

[0154] S103B: Determine the target logical relation symbol selected by the user from the displayed logical relation symbols, and determine the logical relationship between the target event signals based on the target logical relation symbol.

[0155] Users can select from preset logical relation symbols that can represent the logical relationship between target event signals. Selecting the AND symbol indicates that there is an AND relationship between the target event signals, selecting the OR symbol indicates that there is an OR relationship between the target event signals, selecting the negation symbol indicates that the target event signals are converted to the opposite meaning, and selecting parentheses indicates that the logical relationship between the target event signals is combined.

[0156] See Figure 13 This is a schematic diagram of a second type of first preset interface provided in the embodiments of this application.

[0157] In the foregoing Figure 5 Based on the embodiment shown, the first preset interface also includes preset logical relationship symbols including: parentheses “(” and “)”, AND symbol “&&”, OR symbol “||”, and negation symbol “!”.

[0158] After the user selects from the preset logical relation symbols, the logical relation between signal 1 and signal 2 is AND, the logical relation between signal 2 and signal 3 is AND, and the logical relation between signal 3 and signal 4 is AND.

[0159] As can be seen from the above, the solution provided in this application embodiment can display logical relationship symbols through a graphical interface, enabling users to configure the logical relationship between target event signals through the graphical interface, thus allowing users to easily and conveniently configure the logical relationship between target event signals.

[0160] In addition, it can Figure 13 The logical relationship between signals 1-4 shown is saved as event signal combination 1. When configuring other asynchronous processing components, users can directly call event signal combination 1 to generate running conditions.

[0161] See Figure 14 This is a schematic diagram of the third type of first preset interface provided in the embodiments of this application.

[0162] In the foregoing Figure 5 The illustrated embodiments and Figure 13 Based on the embodiments shown, Figure 14 The diagram shows that event signal combination 1 and signal 5 are invoked. The logical relationship between event signal combination 1 and signal 5 is an OR relationship, which means that the data processing unit in the asynchronous processing component is run when the logical relationship recorded by event signal combination 1 is true or when signal 5 is received.

[0163] Corresponding to the aforementioned asynchronous processing flow generation method, this application embodiment also provides an asynchronous processing flow generation device.

[0164] See Figure 15 This is a schematic diagram of an asynchronous processing flow generation device provided in an embodiment of this application. The device includes:

[0165] The component connection module 1501 is used to connect various asynchronous processing components based on the processing order of the asynchronous processing components configured by the user. The asynchronous processing component includes: a data input interface for receiving data, a data processing unit for processing data, a data output interface for outputting data, an event receiving interface for receiving event signals, and an event output interface for outputting event signals. After connection, the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the processing order.

[0166] The identifier selection module 1502 is used to determine the target event signal selected by the user for the target processing component in the asynchronous processing component, and to display the identifier of the target event signal in the first preset interface. The target event signal is: the event signal output by the preceding asynchronous processing component through the event output interface, and the preceding asynchronous processing component is located before the target processing component in the processing order.

[0167] The logical relationship determination module 1503 is used to determine the logical relationship between target event signals configured by the user based on the content displayed on the first preset interface.

[0168] The running condition generation module 1504 is used to generate running conditions for the target processing component based on the logical relationship and the target event signal, wherein the running condition is: when the preceding asynchronous processing component outputs the target event signal and satisfies the logical relationship, the data processing unit in the target processing component is run;

[0169] The first component configuration module 1505 is used to configure the target processing component to receive target event signals through the event receiving interface, and to configure the target processing component to run the data processing unit when the running conditions are met.

[0170] The data file generation module 1506 is used to generate data files that are processed according to an asynchronous processing flow, based on the configuration results.

[0171] As can be seen from the above, users can configure the connection relationship between asynchronous processing components through the solution provided in the embodiments of this application, and configure the logical relationship between target event signals for the target processing component in the asynchronous processing component, thereby configuring the running conditions of the target processing component. This allows the target processing component to run its data processing unit when it receives a target event signal and the target event signal satisfies the logical relationship. In other words, after configuration, the target processing component does not start running its data processing unit after receiving data output from the preceding asynchronous processing component, but rather uses the event signal output by the preceding asynchronous processing component as the running condition for the data processing unit.

[0172] After the preceding asynchronous processing component outputs an event signal, it can continue data processing. When the target processing component receives the target event signal and the target event signal meets the running conditions, it can begin executing its own data processing flow. The data processing processes between the two are asynchronous. Therefore, the solution provided in this application embodiment can configure the asynchronous processing component to achieve asynchronous data processing. In addition, users can configure the asynchronous processing unit through a visual first preset interface. For users, the implementation of the asynchronous processing flow generation solution provided in this application embodiment is relatively simple.

[0173] In one embodiment of this application, the above-mentioned apparatus further includes:

[0174] An action determination module is used to determine the target action selected by the user through a second preset interface, wherein the target action is the action that the data processing unit in the target processing component needs to perform under the condition that the operating conditions are met;

[0175] The first component configuration module 1505 is specifically used for:

[0176] The target processing component is configured to receive target event signals through an event receiving interface, and the target processing component is configured to run the data processing unit to perform target actions when the operating conditions are met.

[0177] As can be seen from the above, in the solution provided by the embodiments of this application, the user can select the target action from the actions that the data processing unit within the target processing component can perform, so that the data processing unit can perform the target action when the running conditions are met, thereby precisely controlling the operation of the target processing component.

[0178] In one embodiment of this application, the apparatus further includes:

[0179] The output signal determination module is used to determine the output event signals configured by the user through a third preset interface;

[0180] The second component configuration module is used to configure the target processing component to output the output event signal through the event output interface during the operation of the data processing unit.

[0181] As can be seen from the above, the solution provided in this application embodiment can not only configure the running conditions of the target processing component based on the event signals output by other asynchronous processing components, but also configure the output event signals output by the target processing component, and the configured output event signals can be used as the running conditions of other asynchronous processing components.

[0182] In one embodiment of this application, the logical relationship determination module 1503 is specifically used for:

[0183] The first preset interface displays preset logical relationship symbols that can represent logical relationships;

[0184] Determine the target logical relation symbol selected by the user from the displayed logical relation symbols, and determine the logical relationship between the target event signals based on the target logical relation symbol.

[0185] As can be seen from the above, the solution provided in this application embodiment can display logical relationship symbols through a graphical interface, enabling users to configure the logical relationship between target event signals through the graphical interface, thus allowing users to easily and conveniently configure the logical relationship between target event signals.

[0186] In one embodiment of this application, the logical relation symbols include at least one of the following symbols: AND symbol, OR symbol, negation symbol, and parentheses.

[0187] In one embodiment of this application, the asynchronous processing component is a component in a machine vision algorithm platform, and the data processing unit in the asynchronous processing component is used to process image data and / or video data.

[0188] This application also provides an electronic device, such as... Figure 16 As shown, it includes:

[0189] Memory 1601 is used to store computer programs;

[0190] When the processor 1602 executes the program stored in the memory 1601, it implements any of the method steps shown in the aforementioned asynchronous processing flow generation method.

[0191] When generating asynchronous processing flows using the electronic device provided in this application embodiment, the user can configure the connection relationship between asynchronous processing components through the scheme provided in this application embodiment, and configure the logical relationship between target event signals and target event signals for the target processing component in the asynchronous processing component. This configures the operating conditions of the target processing component, so that the target processing component runs the data processing unit contained therein when it receives the target event signal and the target event signal satisfies the logical relationship. That is, after configuration, the target processing component does not start running the data processing unit after receiving the data output by the preceding asynchronous processing component, but rather uses the event signal output by the preceding asynchronous processing component as the operating condition for the data processing unit.

[0192] After the preceding asynchronous processing component outputs an event signal, it can continue data processing. When the target processing component receives the target event signal and the target event signal meets the running conditions, it can begin executing its own data processing flow. The data processing processes between the two are asynchronous. Therefore, the solution provided in this application embodiment can configure the asynchronous processing component to achieve asynchronous data processing. In addition, users can configure the asynchronous processing unit through a visual first preset interface. For users, the implementation of the asynchronous processing flow generation solution provided in this application embodiment is relatively simple.

[0193] Furthermore, the aforementioned electronic device may also include a communication bus and / or a communication interface, with the processor 1602, the communication interface, and the memory 1601 communicating with each other via the communication bus.

[0194] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0195] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0196] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0197] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0198] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described asynchronous processing flow generation methods.

[0199] When generating an asynchronous processing flow using the computer program stored in the computer-readable storage medium provided in this application embodiment, the user can configure the connection relationship between asynchronous processing components through the scheme provided in this application embodiment, and configure the logical relationship between target event signals and target event signals for the target processing component in the asynchronous processing component, thereby configuring the running conditions of the target processing component, so that the target processing component runs the data processing unit contained in the target processing component when it receives the target event signal and the target event signal satisfies the logical relationship. That is, after configuration, the target processing component does not start running the data processing unit after receiving the data output by the preceding asynchronous processing component, but uses the event signal output by the preceding asynchronous processing component as the running condition of the data processing unit.

[0200] After the preceding asynchronous processing component outputs an event signal, it can continue data processing. When the target processing component receives the target event signal and the target event signal meets the running conditions, it can begin executing its own data processing flow. The data processing processes between the two are asynchronous. Therefore, the solution provided in this application embodiment can configure the asynchronous processing component to achieve asynchronous data processing. In addition, users can configure the asynchronous processing unit through a visual first preset interface. For users, the implementation of the asynchronous processing flow generation solution provided in this application embodiment is relatively simple.

[0201] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the asynchronous processing flow generation methods described above.

[0202] When generating an asynchronous processing flow using the computer program provided in this application embodiment, the user can configure the connection relationship between asynchronous processing components through the scheme provided in this application embodiment, and configure the logical relationship between target event signals and target event signals for the target processing component in the asynchronous processing component. This configures the operating conditions of the target processing component, so that the target processing component runs the data processing unit contained therein when it receives the target event signal and the target event signal satisfies the logical relationship. That is, after configuration, the target processing component does not start running the data processing unit after receiving the data output by the preceding asynchronous processing component, but rather uses the event signal output by the preceding asynchronous processing component as the operating condition for the data processing unit.

[0203] After the preceding asynchronous processing component outputs an event signal, it can continue data processing. When the target processing component receives the target event signal and the target event signal meets the running conditions, it can begin executing its own data processing flow. The data processing processes between the two are asynchronous. Therefore, the solution provided in this application embodiment can configure the asynchronous processing component to achieve asynchronous data processing. In addition, users can configure the asynchronous processing unit through a visual first preset interface. For users, the implementation of the asynchronous processing flow generation solution provided in this application embodiment is relatively simple.

[0204] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0205] It should be noted that, in this document, relational terms such as "first" and "second" are used only 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 one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0206] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, electronic devices, computer-readable storage media, and computer program products are basically similar to the method embodiments, and therefore the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0207] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

Claims

1. An asynchronous process flow generation method, characterized by, The method comprises: connecting each asynchronous processing component based on a processing sequence of the asynchronous processing components configured by a user, wherein the asynchronous processing component comprises a data input interface for receiving data, a data processing unit for processing data, a data output interface for outputting data, an event receiving interface for receiving an event signal, and an event output interface for outputting an event signal, and the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the processing sequence after connection; determining a target event signal selected by the user for a target processing component in the asynchronous processing components, and displaying an identifier of the target event signal in a first preset interface, wherein the target event signal is an event signal output by a previous asynchronous processing component through the event output interface, and the previous asynchronous processing component is located before the target processing component in the processing sequence; determining a logical relationship between target event signals configured by the user according to the content displayed in the first preset interface; generating a running condition of the target processing component based on the logical relationship and the target event signal, wherein the running condition is to run the data processing unit in the target processing component in the case that the previous asynchronous processing component outputs the target event signal and the logical relationship is met; configuring the target processing component to receive the target event signal through the event receiving interface, and configuring the target processing component to run the data processing unit in the case that the running condition is met; generating a data file for data processing according to the configuration result in the asynchronous processing flow.

2. The method of claim 1, wherein, Before the configuration of the target processing component to receive the target event signal through the event receiving interface, the method further comprises: determining a target action selected by the user through a second preset interface, wherein the target action is an action that needs to be performed by the data processing unit in the target processing component in the case that the running condition is met; the configuration of the target processing component to run the data processing unit in the case that the running condition is met comprises: configuring the target processing component to run the data processing unit to perform the target action in the case that the running condition is met.

3. The method of claim 1, wherein, The method further comprises: determining an output event signal configured by the user through a third preset interface; configuring the target processing component to output the output event signal through the event output interface during the running of the data processing unit.

4. The method according to any one of claims 1 to 3, characterized in that, The determination of the logical relationship between the target event signals configured by the user according to the content displayed in the first preset interface comprises: displaying a preset logical relationship symbol capable of representing a logical relationship through the first preset interface; determining a target logical relationship symbol selected by the user from the displayed logical relationship symbols, and determining the logical relationship between the target event signals based on the target logical relationship symbol.

5. The method of claim 4, wherein, The logical relationship symbol comprises at least one of the following symbols: an AND symbol, an OR symbol, a NOT symbol, a parenthesis, and a function for realizing a set function.

6. The method according to any one of claims 1-3, characterized in that, The asynchronous processing component is a component in a machine vision algorithm platform, and the data processing unit in the asynchronous processing component is used for processing image data and / or video data.

7. An asynchronous process flow generation apparatus, characterized by comprising: The device comprises: The component connection module is used to connect various asynchronous processing components based on the processing order of the asynchronous processing components configured by the user. The asynchronous processing component includes: a data input interface for receiving data, a data processing unit for processing data, a data output interface for outputting data, an event receiving interface for receiving event signals, and an event output interface for outputting event signals. After connection, the data output interface of each asynchronous processing component is connected to the data input interface of the next asynchronous processing component in the processing order. The identifier selection module is used to determine the target event signal selected by the user for the target processing component in the asynchronous processing component, and to display the identifier of the target event signal in the first preset interface. The target event signal is: the event signal output by the preceding asynchronous processing component through the event output interface, and the preceding asynchronous processing component is located before the target processing component in the processing order. The logical relationship determination module is used to determine the logical relationship between target event signals configured by the user based on the content displayed on the first preset interface. The running condition generation module is used to generate running conditions for the target processing component based on the logical relationship and the target event signal, wherein the running condition is: when the preceding asynchronous processing component outputs the target event signal and satisfies the logical relationship, the data processing unit in the target processing component is run; The first component configuration module is used to configure the target processing component to receive target event signals through the event receiving interface, and to configure the target processing component to run the data processing unit when the running conditions are met. The data file generation module is used to generate data files that are processed according to an asynchronous process, based on the configuration results.

8. The apparatus according to claim 7, characterized in that, The device further includes: an action determination module, used to determine the target action selected by the user through a second preset interface, wherein the target action is: the action that the data processing unit in the target processing component needs to perform under the condition that the operating conditions are met; and a first component configuration module, specifically used to: configure the target processing component to receive a target event signal through an event receiving interface, and configure the target processing component to run the data processing unit to perform the target action when the operating conditions are met. or The device further includes: an output signal determination module, used to determine the output event signal configured by the user through a third preset interface; and a second component configuration module, used to configure the target processing component to output the output event signal through an event output interface during the operation of the data processing unit. or The logical relationship determination module is specifically used for: displaying preset logical relationship symbols that can represent logical relationships through the first preset interface; determining the target logical relationship symbol selected by the user from the displayed logical relationship symbols; and determining the logical relationship between target event signals based on the target logical relationship symbol. or The logic relation symbol includes at least one of the following symbols: and symbol, or symbol, negation symbol, bracket, function for realizing setting function; Or The asynchronous processing component is a component in a machine vision algorithm platform, and a data processing unit in the asynchronous processing component is configured to process image data and / or video data. 9.An electronic device, characterized in that, comprising: a memory for storing a computer program; a processor for executing the program stored on the memory to implement the method of any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method steps of any one of claims 1-6.

Citation Information

Patent Citations

  • Promise-based chained asynchronous request processing method and apparatus and electronic device

    CN109669720A

  • Event Logging Application Programming Interface (API)

    US20110113436A1