CN115687224A - Asynchronous processing flow generation method and device - Google Patents

Asynchronous processing flow generation method and device Download PDF

Info

Publication number
CN115687224A
CN115687224A CN202211105443.8A CN202211105443A CN115687224A CN 115687224 A CN115687224 A CN 115687224A CN 202211105443 A CN202211105443 A CN 202211105443A CN 115687224 A CN115687224 A CN 115687224A
Authority
CN
China
Prior art keywords
target
processing
data
asynchronous
event signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211105443.8A
Other languages
Chinese (zh)
Inventor
胡博伟
胡景翔
宋震龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikrobot Co Ltd
Original Assignee
Hangzhou Hikrobot Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikrobot Co Ltd filed Critical Hangzhou Hikrobot Co Ltd
Priority to CN202211105443.8A priority Critical patent/CN115687224A/en
Publication of CN115687224A publication Critical patent/CN115687224A/en
Priority to PCT/CN2023/110914 priority patent/WO2024051409A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a method and a device for generating an asynchronous processing flow, which relate to the technical field of data processing, and the method comprises the following steps: connecting each asynchronous processing component based on the processing sequence of the asynchronous processing components configured by the user; determining a target event signal selected by a 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 logic relation between target event signals configured by a user according to the content displayed by the first preset interface; generating operating conditions of the target processing component based on the logical relationship and the target event signal; and the configuration target processing component receives the target event signal through the event receiving interface, operates the data processing unit under the condition that the operation condition is established, and generates a data file for performing data processing according to the asynchronous processing flow according to the configuration result. By applying the scheme provided by the embodiment of the application, the asynchronous processing component can be configured to realize asynchronous data processing.

Description

Asynchronous processing flow generation method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for generating an asynchronous processing flow.
Background
In the prior art, a data processing unit, a data input interface and a data output interface are packaged in a processing assembly, an electronic device can call the processing assembly, data is input into the processing assembly through the data input interface, and the data processing unit processes the data and outputs a processing result from the data output interface.
On the basis, the data output interface of each processing assembly can be respectively connected with the data input interfaces of other processing assemblies according to a preset processing sequence, so that each processing assembly can jointly realize a data processing flow. Specifically, after the data processing unit in each processing assembly processes data, the processing result can be input to the input interface of the next processing assembly connected thereto through the output interface, and after the next processing assembly receives the processing result, the received processing result can be continuously processed through the data processing unit encapsulated by the next processing assembly, and so on, and each processing assembly jointly implements a data processing flow.
However, after the processing components are configured in the above configuration manner, the processing components located at the rear end can start data processing only after the processing components located at the front end in the connection sequence complete data processing and output processing results, and the data processing flow realized among the processing components is a synchronous flow. The configuration mode of the prior art cannot configure the processing components to realize asynchronous data processing.
Disclosure of Invention
An object of an embodiment of the present application is to provide an asynchronous processing flow generation method, which implements asynchronous data processing by configuring a processing component. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for generating an asynchronous processing flow, where the method includes:
connecting the asynchronous processing components based on the processing sequence of the asynchronous processing components configured by the user, wherein the asynchronous processing components comprise: the data output interface of each asynchronous processing assembly is connected with the data input interface of the next asynchronous processing assembly in the processing sequence after connection;
determining a target event signal selected by a 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: a preamble asynchronous processing element outputting an event signal through an event output interface, the preamble asynchronous processing element preceding the target processing element in the processing order;
determining a logic relation between target event signals configured by a user according to the content displayed by the first preset interface;
generating an operating condition of a target processing component based on the logical relationship and the target event signal, wherein the operating condition is: under the condition that a forward asynchronous processing component outputs a target event signal and meets the logical relation, operating a data processing unit in the target processing component;
configuring the target processing component to receive a target event signal through an event receiving interface and configuring the target processing component to operate a data processing unit under the condition that the operating condition is satisfied;
and generating a data file for data processing according to the asynchronous processing flow according to the configuration result.
In an embodiment of the application, before the configuring the target processing component to receive a target event signal through an event receiving interface, the method further includes:
determining a target action selected by a user through a second preset interface, wherein the target action is as follows: an action that a data processing unit in the target processing component needs to perform if the operating condition is met;
the configuring the target processing component to operate a data processing unit under the condition that the operating condition is satisfied includes:
and configuring the target processing component to run a data processing unit to execute a target action under the condition that the running condition is established.
In one embodiment of the present application, the method further comprises:
determining an output event signal configured by a user through a third preset interface;
and configuring the target processing assembly to output the output event signal through an event output interface in the running process of the data processing unit.
In an embodiment of the application, the determining a logical relationship between target events configured by a user according to content displayed on the first preset interface includes:
displaying a preset logic relationship symbol capable of representing a logic relationship through the first preset interface;
and determining a target logical relation symbol selected by a user from the displayed logical relation symbols, and determining a logical relation between the target event signals based on the target logical relation symbol.
In one embodiment of the present application, the logical relationship symbol includes at least one of the following symbols: and sign, or sign, negation sign, parenthesis, function for implementing the set function.
In one embodiment of the present application, the asynchronous processing component is a component in a machine vision algorithm platform, and a data processing unit in the asynchronous processing component is used for processing image data and/or video data.
In a second aspect, an embodiment of the present application provides an asynchronous processing flow generating apparatus, where the apparatus includes:
a component connection module, configured to connect the asynchronous processing components based on a processing sequence of the asynchronous processing components configured by a user, where the asynchronous processing component includes: the data processing device comprises a data input interface for receiving data, a data processing unit for processing the data, a data output interface for outputting the data, an event receiving interface for receiving an event signal and an event output interface for outputting the event signal, wherein the data output interface of each asynchronous processing assembly is connected with the data input interface of the next asynchronous processing assembly in the processing sequence after connection;
the identification selection module is used for determining a target event signal selected by a user for a target processing component in the asynchronous processing components and displaying an identification of the target event signal in a first preset interface, wherein the target event signal is as follows: a preamble asynchronous processing element outputting an event signal through an event output interface, the preamble asynchronous processing element preceding the target processing element in the processing order;
the logic relationship determination module is used for determining the logic relationship between the target event signals configured by the user according to the content displayed by the first preset interface;
an operating condition generating module, configured to generate an operating condition of a target processing component based on the logical relationship and the target event signal, where the operating condition is: under the condition that a forward asynchronous processing component outputs a target event signal and meets the logical relation, operating a data processing unit in the target processing component;
the first component configuration module is used for configuring the target processing component to receive a target event signal through an event receiving interface and configuring the target processing component to operate the data processing unit under the condition that the operating condition is satisfied;
and the data file generation module is used for generating a data file for data processing according to the asynchronous processing flow according to the configuration result.
In one embodiment of the present application, the apparatus further comprises:
the action determining module is used for determining a target action selected by a user through a second preset interface, wherein the target action is as follows: an action that a data processing unit in the target processing component needs to perform if the operating condition is satisfied;
the first component configuration module is specifically configured to:
and configuring the target processing component to receive a target event signal through an event receiving interface, and configuring the target processing component to run a data processing unit to execute a target action under the condition that the running condition is established.
In one embodiment of the present application, the apparatus further comprises:
the output signal determining module is used for determining an output event signal configured by a user through a third preset interface;
and the second component configuration module is used for configuring the target processing component to output the output event signal through the event output interface in the running process of the data processing unit.
In an embodiment of the application, the logical relationship determining module is specifically configured to:
displaying a preset logic relationship symbol capable of representing a logic relationship through the first preset interface;
and determining a target logical relation symbol selected by a user from the displayed logical relation symbols, and determining a logical relation between the target event signals based on the target logical relation symbol.
In one embodiment of the present application, the logical relationship symbol includes at least one of the following symbols: and sign, or sign, negation sign, parenthesis, function for implementing the set function.
In one embodiment of the present application, the asynchronous processing component is a component in a machine vision algorithm platform, and a data processing unit in the asynchronous processing component is used for processing image data and/or video data.
In a third aspect, an embodiment of the present application provides an electronic device, which is characterized by including:
a memory for storing a computer program;
a processor for implementing the method of any of the first aspects when executing a program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the first aspect.
In a fifth aspect, embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the method of any one of the above first aspects.
The embodiment of the application has the following beneficial effects:
in the asynchronous processing flow generation method provided by the embodiment of the application, each asynchronous processing assembly is connected based on the processing sequence of the asynchronous processing assembly configured by a user, and the data output interface of each asynchronous processing assembly is connected with the data input interface of the next asynchronous processing assembly in the processing sequence after connection; determining a target event signal selected by a 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 logic relation between target event signals configured by a user according to the content displayed by the first preset interface; generating operating conditions of the target processing component based on the logical relationship and the target event signal; and the configuration target processing component receives the target event signal through the event receiving interface, operates the data processing unit under the condition that the operation condition is established, and then generates a data file for performing data processing according to the asynchronous processing flow according to the configuration result.
As can be seen from the above, a user may configure a connection relationship between asynchronous processing components through the scheme provided in the embodiment of the present application, and configure a logical relationship between a target event signal and a target event signal for a target processing component in the asynchronous processing components, thereby configuring an operation condition of the target processing component, so that the target processing component operates a data processing unit included in the target processing component when the target processing component obtains the target event signal and the target event signal satisfies the logical relationship. That is, the target processing component after configuration does not start operating the data processing unit after receiving the data output from the preceding asynchronous processing component, but takes the event signal output from the preceding asynchronous processing component as the operating condition of the data processing unit.
The data processing can be continued after the preamble asynchronous processing component outputs the event signal, the target processing component can start to execute the data processing flow of the target processing component when receiving the target event signal and the target event signal meets the operating condition, and the data processing process between the target processing component and the target processing component is asynchronous, so that the asynchronous processing component can be configured to realize asynchronous data processing through the scheme provided by the embodiment of the application. In addition, a user can configure the asynchronous processing unit through the visual first preset interface, and for the user, the asynchronous processing flow generation scheme provided by the embodiment of the application is simple to implement.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to these drawings.
Fig. 1 is a schematic flow chart of a first asynchronous processing flow generation method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an asynchronous processing component according to an embodiment of the present application;
fig. 3 is a schematic diagram of a connection relationship between asynchronous processing components according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an information slot interface provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a first predetermined interface according to an embodiment of the present disclosure;
fig. 6 is a schematic view of an image processing flow processing sequence provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a prior art processing assembly;
FIG. 8 is a diagram illustrating a connection relationship between processing elements in the prior art;
fig. 9 is a schematic flowchart of a second asynchronous processing flow generation method according to an embodiment of the present application;
FIG. 10 is a schematic diagram illustrating a second default interface according to an embodiment of the present application;
fig. 11 is a flowchart illustrating a third asynchronous processing flow generation method according to an embodiment of the present application;
fig. 12 is a schematic flowchart of a fourth asynchronous processing flow generation method according to an embodiment of the present application;
FIG. 13 is a schematic view of a second predetermined interface according to an embodiment of the present application;
FIG. 14 is a schematic view of a third first default interface provided in accordance with an embodiment of the present application;
fig. 15 is a schematic structural diagram of an asynchronous processing flow generation apparatus according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the description herein are intended to be within the scope of the present disclosure.
In order to implement configuration of an asynchronous processing flow, embodiments of the present application provide a method and an apparatus for generating an asynchronous processing flow.
The embodiment of the application provides an asynchronous processing flow generation method, which comprises the following steps:
connecting each asynchronous processing component based on the processing sequence of the asynchronous processing components configured by the user, wherein the asynchronous processing components comprise: the data output interface of each asynchronous processing component is connected with the data input interface of the next asynchronous processing component in the processing sequence after connection;
determining a target event signal selected by a user for a target processing component in the asynchronous processing component, and displaying an identifier of the target event signal in a first preset interface, wherein the target event signal is as follows: a preamble asynchronous processing element outputting an event signal through an event output interface, said preamble asynchronous processing element being located before said target processing element in said processing order;
determining a logic relation between target event signals configured by a user according to the content displayed by the first preset interface;
generating an operating condition of a target processing component based on the logical relationship and the target event signal, wherein the operating condition is as follows: under the condition that the forward asynchronous processing component outputs a target event signal and meets the logic relation, operating a data processing unit in the target processing component;
configuring the target processing assembly to receive a target event signal through an event receiving interface and configuring the target processing assembly to operate a data processing unit under the condition that the operating condition is established;
and generating a data file for data processing according to the asynchronous processing flow according to the configuration result.
As can be seen from the above, a user may configure a connection relationship between asynchronous processing components through the scheme provided in the embodiment of the present application, and configure a logical relationship between a target event signal and a target event signal for a target processing component in the asynchronous processing components, thereby configuring an operation condition of the target processing component, so that the target processing component operates a data processing unit included in the target processing component when the target processing component obtains the target event signal and the target event signal satisfies the logical relationship. That is, the target processing component after configuration does not start operating the data processing unit after receiving the data output from the preceding asynchronous processing component, but takes the event signal output from the preceding asynchronous processing component as the operating condition of the data processing unit.
The preamble asynchronous processing component can continue to process data after outputting the event signal, the target processing component can start to execute the data processing flow of the target processing component when receiving the target event signal and the target event signal meets the operating condition, and the data processing process between the target processing component and the target event signal is asynchronous, so that the asynchronous processing component can be configured to realize asynchronous data processing through the scheme provided by the embodiment of the application. In addition, a user can configure the asynchronous processing unit through the visual first preset interface, and for the user, the asynchronous processing flow generation scheme provided by the embodiment of the application is simple to implement.
Referring to fig. 1, a schematic flow chart of a first asynchronous processing flow generation method provided in an embodiment of the present application is shown, where the method includes the following steps S101 to S106.
S101: and connecting the asynchronous processing components based on the processing sequence of the asynchronous processing components configured by the user.
Wherein, the asynchronous processing module comprises: the device comprises a data input interface for receiving data, a data processing unit for processing the data, a data output interface for outputting the data, an event receiving interface for receiving an event signal and an event output interface for outputting the event signal.
Referring to fig. 2, a schematic structural diagram of an asynchronous processing component according to an embodiment of the present application is provided.
As shown in fig. 2, the 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.
In addition, the data output interface of each asynchronous processing component after connection is connected with the data input interface of the next asynchronous processing component in the processing sequence.
Specifically, in the scheme provided by the embodiment of the present application, a plurality of asynchronous processing components may be provided in advance for a user to select, the user selects an asynchronous processing component through an input component selection instruction, and the execution main body of the embodiment may determine the asynchronous processing component selected by the user based on the component selection instruction.
In an embodiment of the application, the identifier of the optional asynchronous processing component may be displayed on the fourth preset interface, the identifier of the asynchronous processing component may be a name, a function description, and the like of the asynchronous processing component, and a user may select from the provided asynchronous processing components by viewing the content displayed on the fourth preset interface.
In addition, after the user selects the asynchronous processing components, the user can input component connection instructions to control the execution main body to connect the asynchronous processing components.
Specifically, after the asynchronous processing components are connected according to the processing sequence, the data output interface of one asynchronous processing component may be connected to the data input interfaces of multiple asynchronous processing components, and the data output interfaces of multiple asynchronous processing components may also be connected to the data input interface of the same asynchronous processing component, which is not limited in this embodiment of the present application.
Referring to fig. 3, a schematic diagram of a connection relationship between asynchronous processing components according to an embodiment of the present application is provided.
As can be seen from the figure, the data output interface of the asynchronous processing component 1 is connected with the data input interface of the asynchronous processing component 3, and the data output interface of the asynchronous processing component 2 is connected with the data input interfaces of the asynchronous processing component 3 and the asynchronous processing component 4, respectively. The data output interface of the asynchronous processing component 2 is connected to the data input interfaces of the two asynchronous processing components and the data input interface of the asynchronous processing component 3 is connected to the data output interfaces of the two asynchronous processing components.
S102: and determining a target event signal selected by a user for a target processing component in the asynchronous processing components, and displaying the identifier of the target event signal in a first preset interface.
Wherein, the target event signal is: the preamble asynchronous processing element is located before the target processing element in the processing sequence according to the event signal output by the event output interface.
Specifically, the user may select a desired event signal as the target event signal from all event signals that the preamble asynchronous processing component of the target processing component is capable of outputting.
The identifier of the target event signal may be a name, a number, or the like of the target event signal.
Each asynchronous processing component in the asynchronous processing components can be used as a target processing component, a user can select the target processing component according to the configuration requirement of the asynchronous processing flow, the number of the selected processing components can be one or more, and the target processing component can be configured through steps S102-S105 for each target processing component.
In one embodiment of the present application, an information slot may be added to a target processing component, and a target event signal corresponding to the target processing component is configured in the information slot. Specifically, the execution main body in the embodiment of the application may display an information slot interface, and a user may select a target event signal in the information slot interface.
Fig. 4 is a schematic diagram of an information slot interface according to an embodiment of the present disclosure.
As can be seen from the figure, the operation condition configured for the target processing component, the serial number of the operation condition, and the name of the operation condition are displayed in the information slot interface, the operation condition can be configured by clicking the configuration button, specifically, the target event signal included in the operation condition and the logical relationship between the target event signals can be configured, and a new operation condition can be added to the target processing component by clicking the addition button.
Referring to fig. 5, a schematic view of a first preset interface provided in the embodiment of the present application is shown.
The first preset interface displays the identifier of the selected target event signal, including signal 1, signal 2, signal 3, and signal 4. The user may select other event signals of the preceding asynchronous processing component as target event signals by clicking a subscribe button.
S103: and determining the logical relationship between the target event signals configured by the user according to the content displayed by the first preset interface.
In particular, the logical relationship between the target event signals may include an and, or, an unequal logical relationship. The user can determine the selected target event signals according to the identification of the target event signals displayed on the first preset interface, and then the logic relation between the selected target event signals is configured.
Taking the first preset interface shown in fig. 5 as an example, the first preset interface displays an identifier of signal 1, an identifier of signal 2, an identifier of signal 3, and an identifier of signal 4, and 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 by the first preset interface.
In addition, the solution provided in this embodiment of the present application may further record the target event signal and a logical relationship between the target event signals, and use the target event signal and the logical relationship as an event signal combination, so that when a user configures another asynchronous processing component, the user may directly invoke the event signal combination to generate an operating condition of the asynchronous processing component, or add another event signal on the basis of the event signal combination, and set the logical relationship between the event signal combination and the newly added event signal to form a new operating condition.
S104: and generating the operating condition of the target processing component based on the logic relation and the target event signal.
Wherein the operating conditions are as follows: and under the condition that the forward asynchronous processing component outputs a target event signal and meets the logic relation, operating the data processing unit in the target processing component.
In the solution provided in this embodiment, after the logical relationship and the target event signal are configured, an executable file in which the identifier of the target event signal and the logical relationship are recorded may be generated, and used to record the operating condition.
S105: and configuring the target processing component to receive a target event signal through an event receiving interface, and configuring the target processing component to operate a data processing unit under the condition that the operating condition is satisfied.
Specifically, the event receiving interface of the target processing component may be configured to continuously monitor an event output interface for outputting a target event signal in the preamble asynchronous processing component, so as to receive the target event signal.
And after receiving the target event signal, the target processing component may determine whether the received target event signal satisfies the operating condition, and specifically, may read the executable file that records the operating condition and is generated in step S104, and determine whether the target event signal satisfies the operating condition. And if the running conditions are met, the data processing unit is operated to process the data, so that the configuration of the asynchronous processing flow is realized.
S106: and generating a data file for data processing according to the asynchronous processing flow according to the configuration result.
Specifically, the data file may record codes and configuration parameters for performing data processing according to an asynchronous processing flow. The data file is used for: and judging whether the operating condition of the asynchronous processing assembly is established or not aiming at each asynchronous processing assembly, and controlling the asynchronous processing assembly to operate the data processing unit under the condition that the operating condition is established. The data file may be a script file or other executable file having code recorded thereon.
After the data file is generated, the execution main body in the embodiment of the application may run the data file when the asynchronous processing flow needs to be executed, so as to determine whether the running condition of the asynchronous processing assembly is satisfied, and if so, call the asynchronous processing assembly to run the data processing unit, thereby controlling the running of the asynchronous processing flow.
As can be seen from the above, a user may configure a connection relationship between asynchronous processing components through the scheme provided in the embodiment of the present application, and configure a logical relationship between a target event signal and a target event signal for a target processing component in the asynchronous processing components, thereby configuring an operation condition of the target processing component, so that the target processing component operates a data processing unit included in the target processing component when the target processing component obtains the target event signal and the target event signal satisfies the logical relationship. That is, the target processing component after configuration does not start operating the data processing unit after receiving the data output from the preceding asynchronous processing component, but takes the event signal output from the preceding asynchronous processing component as the operating condition of the data processing unit.
The data processing can be continued after the preamble asynchronous processing component outputs the event signal, the target processing component can start to execute the data processing flow of the target processing component when receiving the target event signal and the target event signal meets the operating condition, and the data processing process between the target processing component and the target processing component is asynchronous, so that the asynchronous processing component can be configured to realize asynchronous data processing through the scheme provided by the embodiment of the application. In addition, a user can configure the asynchronous processing unit through the visual first preset interface, and for the user, the asynchronous processing flow generation scheme provided by the embodiment of the application is simpler to implement.
The execution subject of one embodiment of the present application is a machine vision algorithm platform, the asynchronous processing component is a component in the machine vision algorithm platform, and a data processing unit in the asynchronous processing component is used for processing image data and/or video data.
The following describes an asynchronous processing flow generation method provided in the embodiment of the present application by using a specific embodiment.
Taking an asynchronous image processing flow as an example, referring to fig. 6, a schematic diagram of a processing sequence of an image processing flow provided in an embodiment of the present application is shown.
As can be seen from the figure, there are four image acquisition components 1 to 4 in the image processing flow, which are respectively used for acquiring images shot by the cameras 1 to 4, data input interfaces of the image acquisition components 1 to 4 are used for acquiring images shot by the corresponding cameras, data output interfaces are used for outputting the acquired images, and the data output interfaces of the image acquisition components 1 to 4 are all connected with the data input interfaces of the image processing components.
After the image acquisition assembly 1-4 outputs the image, a completion signal 1-4 indicating that the image output is completed is output through an event output interface of the image acquisition assembly 1-4, and the image acquisition assembly 1-4 can continue to acquire a new image after the completion signal is output. The event receiving interface of the image processing component receives the completion signals 1-4, and the logical relationship between any two completion signals in the completion signals 1-4 is an and relationship, then the operating conditions of the image processing component are as follows: after the completion signal 1-4 is completely received, the data processing unit is operated to process the image taken by the camera 1-4.
In addition, in order to highlight the difference between the asynchronous processing flow generation method provided in the embodiment of the present application and the prior art, a synchronous processing flow generation method in the prior art is described next.
First, a structure of a processing module in the related art will be explained.
Fig. 7 is a schematic diagram of a processing assembly in the prior art.
As can be seen from the figure, the processing module 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 by the embodiment of the application comprises an event receiving interface capable of receiving the event signal and an event output interface capable of outputting the event signal.
In addition, referring to fig. 8, a schematic diagram of the connection relationship of the processing components in the prior art is shown.
The data output interface of the processing component connected with the start end of the arrow in the figure is connected with the data input interface of the processing component connected with the end of the arrow.
It can be seen from the figure that the data output interface of the processing component 1 is connected with the data input interfaces of the processing component 2 and the processing component 3 respectively, the data output interface of the processing component 2 is connected with the data input interface of the processing component 4, and the data output interfaces of the processing component 4 and the processing component 2 are connected with the data input interface of the processing component 5.
After the data processing unit in the processing component 1 completes the data processing, the processing component 1 sends the processing result to the processing component 2 and the processing component 3, the data processing units in the processing component 2 and the processing component 3 start to perform data processing, after the data processing unit in the processing component 2 completes the data processing, the processing component 2 sends the processing result to the processing component 4, after the data processing unit in the processing component 4 completes the data processing, the processing component 4 sends the processing result to the processing component 5, after the data processing unit in the processing component 2 completes the data processing, the processing component 2 also sends the processing result to the processing component 5, and the data processing unit in the processing component 5 processes the received processing results of the processing component 4 and the processing component 2.
It can be seen from this that, in the prior art, the execution condition of the processing element located at the rear end in the processing sequence is that the preamble processing element completes data processing and outputs a processing result, that is, only after the preamble processing element completes data processing, the subsequent processing element can start data processing. In the solution provided in the embodiment of the present application, the execution condition of the asynchronous processing component is related to the event signal output by the preamble asynchronous processing component, the asynchronous processing component may output the event signal at any stage in the data processing process performed by the data processing unit, and trigger the subsequent asynchronous processing component to start operating, and after the event signal is output, the data processing unit in the asynchronous processing component may continue to perform its own data processing, thereby implementing an asynchronous data processing flow between the asynchronous processing components.
Referring to fig. 9, a schematic flow diagram of a second asynchronous processing flow generation method provided in the embodiment of the present application further includes the following step S107 before the foregoing step S105, and the foregoing step S105 may be implemented by the following step S105A, compared with the foregoing embodiment shown in fig. 1.
S107: and determining the target action selected by the user through the second preset interface.
Wherein the target action is: an action that the data processing unit in the target processing component needs to perform if the operating condition is satisfied.
Specifically, the data processing unit in the target processing component may have a plurality of different functions and may implement different actions, and the scheme provided in the embodiment of the present application may configure the target action for the target processing component, so that the target action in each action that the data processing unit can implement is executed under the condition that the execution condition is satisfied. The target action selected by the user may be one or more.
For example, the target processing component is an image processing component, a data processing unit in the image processing component can perform actions such as image noise reduction, image cropping, image feature extraction, and the like, and a user can select the target action from the actions, for example, select image noise reduction as the target action, and then the image processing component performs image noise reduction on the received image if the operating condition is satisfied.
In addition, referring to fig. 10, a schematic diagram of a second predetermined interface is provided in the embodiment of the present application.
As can be seen from the figure, the second preset interface displays the serial number of the operating condition, the name of the operating condition, and the target action executed when the operating condition is satisfied, and the user can select the target action from the actions that can be executed by the data processing unit of the target processing component through the target action selection drop-down box.
The interface shown in fig. 10 is only one form of the second predetermined interface, and the embodiment of the present application is not limited thereto.
S105A: and configuring the target processing component to receive a target event signal through an event receiving interface, and configuring the target processing component to operate a data processing unit to execute a target action under the condition that the operation condition is satisfied.
Further, when the data file is generated in step S106 performed on the basis of the aforementioned steps S107 to S105A, the generated data file is used to control the target processing component to execute the target action by the data processing unit when the operating condition of the target processing component is satisfied.
As can be seen from the above, in the solution provided in the embodiment of the present application, a user may select a target action from actions that can be performed by a data processing unit in a target processing component, so that the data processing unit can perform the target action when an operation condition is satisfied, thereby accurately controlling the operation of the target processing component.
Referring to fig. 11, a schematic flow chart of a third asynchronous processing flow generation method provided in this embodiment of the application, compared with the foregoing embodiment shown in fig. 1, the method further includes the following steps S108 to S109.
S108: and determining an output event signal configured by the user through a third preset interface.
According to the scheme provided by the embodiment of the application, the event signals which can be output by the target processing assembly can be preset, and the preset identifiers of the event signals are displayed on the third preset interface, so that a user can select and output the event signals from the preset event signals through the third preset interface.
The identifier of the event signal may be a name or a number of the event signal.
S109: and configuring the target processing assembly to output the output event signal through an event output interface in the running process of the data processing unit.
Specifically, the target processing component may output the output event signal when the data processing unit starts to operate, may output the output event signal during the operation of the data processing unit, or may output the output event signal after the operation of the data processing unit is finished.
As can be seen from the above, in the solution provided in the embodiment of the present application, not only the operating condition of the target processing component may be configured based on the event signal output by the other asynchronous processing component, but also the output event signal output by the target processing component may be configured, and the configured output event signal may also be used as the operating condition of the other asynchronous processing component.
Referring to fig. 12, a flow diagram of a fourth asynchronous processing flow generation method provided in the embodiment of the present application is shown, and compared with the foregoing embodiment shown in fig. 1, the foregoing step S103 may be implemented by the following steps S103A to S103B.
S103A: and displaying a preset logical relationship symbol capable of representing a logical relationship through the first preset interface.
Specifically, the first preset interface displays a preset logical relationship symbol in addition to the identifier of the target event signal, where the logical relationship symbol includes at least one of the following symbols: and signs, or signs, negation signs, brackets, functions for implementing the set function.
For example, the function for implementing the setting function may include a function for counting whether the current cluster number is greater than a preset cluster number, and the like, for example, the preset cluster number may be 5, 6, and the like.
S103B: and determining a target logical relation symbol selected by a user from the displayed logical relation symbols, and determining the logical relation between the target event signals based on the target logical relation symbol.
The user can select a logical relation symbol capable of representing the logical relation between the target event signals from preset logical relation symbols, the selection and symbol represents that the logical relation exists between the target event signals, the selection or symbol represents that the logical relation exists between the target event signals, the selection negation symbol represents that the target event signals are converted into opposite meanings, and the selection bracket represents that the logical relation between the target event signals is combined.
Referring to fig. 13, a schematic view of a second first preset interface provided in the embodiment of the present application is shown.
On the basis of the foregoing embodiment shown in fig. 5, the step of further including a preset logical relationship symbol in the first preset interface includes: bracket "(" and ")", and symbol "& &", or symbol "|", negative symbol "! ".
After the user selects from the preset logical relationship symbols, the logical relationship between the signal 1 and the signal 2 is an and relationship, the logical relationship between the signal 2 and the signal 3 is an and relationship, and the logical relationship between the signal 3 and the signal 4 is an and relationship.
As can be seen from the above, in the scheme provided by the embodiment of the application, the logical relationship symbol can be displayed through the graphical interface, so that a user can configure the logical relationship between the target event signals through the graphical interface, and the user can simply and conveniently configure the logical relationship between the target event signals.
In addition, the logical relationship between signal 1 and signal 4 shown in fig. 13 can be saved as event signal combination 1, so that when configuring other asynchronous processing components, a user can directly call event signal combination 1 to generate an operating condition.
Referring to fig. 14, a schematic view of a third first preset interface provided in the embodiment of the present application is shown.
On the basis of the foregoing embodiment shown in fig. 5 and the embodiment shown in fig. 13, the event signal combination 1 and the signal 5 are invoked in the schematic diagram shown in fig. 14, and the logical relationship between the event signal combination 1 and the signal 5 is an or relationship, which indicates that the data processing unit in the asynchronous processing component is operated when the logical relationship recorded by the event signal combination 1 is established or the signal 5 is received.
Corresponding to the asynchronous processing flow generation method, the embodiment of the application also provides an asynchronous processing flow generation device.
Referring to fig. 15, a schematic structural diagram of an asynchronous processing flow generating device provided in an embodiment of the present application is shown, where the device includes:
a component connection module 1501, configured to connect asynchronous processing components based on a processing sequence of the asynchronous processing components configured by a user, where the asynchronous processing components include: the data output interface of each asynchronous processing assembly is connected with the data input interface of the next asynchronous processing assembly in the processing sequence after connection;
an identifier selecting module 1502 configured to determine a target event signal selected by a user for a target processing component in the asynchronous processing components, and display an identifier of the target event signal in a first preset interface, where the target event signal is: the preorder asynchronous processing component outputs an event signal through an event output interface, and the preorder asynchronous processing component is positioned in front of the target processing component in the processing sequence;
a logical relationship determining module 1503, configured to determine a logical relationship between target event signals configured by the user according to the content displayed on the first preset interface;
an operating condition generating module 1504, configured to generate an operating condition of a target processing component based on the logical relationship and the target event signal, where the operating condition is: under the condition that a forward asynchronous processing component outputs a target event signal and meets the logical relation, operating a data processing unit in the target processing component;
a first component configuration module 1505 for configuring the target processing component to receive a target event signal via an event receiving interface and for configuring the target processing component to operate a data processing unit if the operating condition is satisfied;
the data file generating module 1506 is configured to generate a data file for performing data processing according to the asynchronous processing flow according to the configuration result.
As can be seen from the above, a user may configure a connection relationship between asynchronous processing components through the scheme provided in the embodiment of the present application, and configure a logical relationship between a target event signal and a target event signal for a target processing component in the asynchronous processing components, thereby configuring an operation condition of the target processing component, so that the target processing component operates a data processing unit included in the target processing component when the target processing component obtains the target event signal and the target event signal satisfies the logical relationship. That is, the target processing component after configuration does not start operating the data processing unit after receiving the data output from the preceding asynchronous processing component, but takes the event signal output from the preceding asynchronous processing component as the operating condition of the data processing unit.
The preamble asynchronous processing component can continue to process data after outputting the event signal, the target processing component can start to execute the data processing flow of the target processing component when receiving the target event signal and the target event signal meets the operating condition, and the data processing process between the target processing component and the target event signal is asynchronous, so that the asynchronous processing component can be configured to realize asynchronous data processing through the scheme provided by the embodiment of the application. In addition, a user can configure the asynchronous processing unit through the visual first preset interface, and for the user, the asynchronous processing flow generation scheme provided by the embodiment of the application is simple to implement.
In an embodiment of the present application, the apparatus further includes:
the action determining module is used for determining a target action selected by a user through a second preset interface, wherein the target action is as follows: an action that a data processing unit in the target processing component needs to perform if the operating condition is satisfied;
the first component configuration module 1505 is specifically configured to:
and configuring the target processing component to receive a target event signal through an event receiving interface, and configuring the target processing component to run a data processing unit to execute a target action under the condition that the running condition is established.
As can be seen from the above, in the solution provided in the embodiment of the present application, a user may select a target action from actions that can be performed by a data processing unit in a target processing component, so that the data processing unit can perform the target action when an operation condition is satisfied, thereby accurately controlling the operation of the target processing component.
In one embodiment of the present application, the apparatus further comprises:
the output signal determining module is used for determining an output event signal configured by a user through a third preset interface;
and the second component configuration module is used for configuring the target processing component to output the output event signal through the event output interface in the running process of the data processing unit.
As can be seen from the above, in the solution provided in the embodiment of the present application, not only the operating condition of the target processing component may be configured based on the event signal output by the other asynchronous processing component, but also the output event signal output by the target processing component may be configured, and the configured output event signal may also be used as the operating condition of the other asynchronous processing component.
In an embodiment of the present application, the logical relationship determining module 1503 is specifically configured to:
displaying a preset logic relationship symbol capable of representing a logic relationship through the first preset interface;
and determining a target logical relation symbol selected by a user from the displayed logical relation symbols, and determining a logical relation between the target event signals based on the target logical relation symbol.
As can be seen from the above, in the scheme provided by the embodiment of the application, the logical relationship symbol can be displayed through the graphical interface, so that a user can configure the logical relationship between the target event signals through the graphical interface, and the user can simply and conveniently configure the logical relationship between the target event signals.
In one embodiment of the present application, the logical relationship symbol includes at least one of the following symbols: and sign, or sign, negation sign, parenthesis.
In one embodiment of the present application, the asynchronous processing component is a component in a machine vision algorithm platform, and a data processing unit in the asynchronous processing component is used for processing image data and/or video data.
An embodiment of the present application further provides an electronic device, as shown in fig. 16, including:
a memory 1601 for storing a computer program;
the processor 1602 is configured to implement the method steps of any one of the asynchronous process flow generation methods described above when executing the program stored in the memory 1601.
When the electronic device provided by the embodiment of the application is applied to generate the asynchronous processing flow, a user can configure a connection relationship between asynchronous processing components through the scheme provided by the embodiment of the application, and configure a logical relationship between a target event signal and a target event signal for a target processing component in the asynchronous processing components, so as to configure an operation condition of the target processing component, so that the target processing component operates a data processing unit included in the target processing component under the condition that the target processing component obtains the target event signal and the target event signal meets the logical relationship. That is, the target processing component after configuration does not start operating the data processing unit after receiving the data output from the preceding asynchronous processing component, but takes the event signal output from the preceding asynchronous processing component as the operating condition of the data processing unit.
The preamble asynchronous processing component can continue to process data after outputting the event signal, the target processing component can start to execute the data processing flow of the target processing component when receiving the target event signal and the target event signal meets the operating condition, and the data processing process between the target processing component and the target event signal is asynchronous, so that the asynchronous processing component can be configured to realize asynchronous data processing through the scheme provided by the embodiment of the application. In addition, a user can configure the asynchronous processing unit through the visual first preset interface, and for the user, the asynchronous processing flow generation scheme provided by the embodiment of the application is simple to implement.
The electronic device may further include a communication bus and/or a communication interface, and the processor 1602, the communication interface, and the memory 1601 are configured to communicate with each other through the communication bus.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also 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, discrete hardware components.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the above asynchronous process flow generation methods.
When executing a computer program stored in a computer-readable storage medium provided by the embodiment of the present application to generate an asynchronous processing flow, a user may configure a connection relationship between asynchronous processing components through a scheme provided by the embodiment of the present application, and configure a logical relationship between a target event signal and a target event signal for a target processing component in the asynchronous processing component, thereby configuring an operation condition of the target processing component, so that the target processing component operates a data processing unit included in the target processing component when the target processing component obtains the target event signal and the target event signal satisfies the logical relationship. That is, the target processing element after configuration does not start operating the data processing unit after receiving the data output by the preceding asynchronous processing element, but takes the event signal output by the preceding asynchronous processing element as the operating condition of the data processing unit.
The data processing can be continued after the preamble asynchronous processing component outputs the event signal, the target processing component can start to execute the data processing flow of the target processing component when receiving the target event signal and the target event signal meets the operating condition, and the data processing process between the target processing component and the target processing component is asynchronous, so that the asynchronous processing component can be configured to realize asynchronous data processing through the scheme provided by the embodiment of the application. In addition, a user can configure the asynchronous processing unit through the visual first preset interface, and for the user, the asynchronous processing flow generation scheme provided by the embodiment of the application is simpler to implement.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the asynchronous process flow generation methods of the above embodiments.
When the computer program provided by the embodiment of the present application is executed to generate the asynchronous processing flow, a user may configure a connection relationship between asynchronous processing components through the scheme provided by the embodiment of the present application, and configure a logical relationship between a target event signal and a target event signal for a target processing component in the asynchronous processing components, thereby configuring an operation condition of the target processing component, so that the target processing component operates a data processing unit included in the target processing component when the target processing component obtains the target event signal and the target event signal satisfies the logical relationship. That is, the target processing component after configuration does not start operating the data processing unit after receiving the data output from the preceding asynchronous processing component, but takes the event signal output from the preceding asynchronous processing component as the operating condition of the data processing unit.
The preamble asynchronous processing component can continue to process data after outputting the event signal, the target processing component can start to execute the data processing flow of the target processing component when receiving the target event signal and the target event signal meets the operating condition, and the data processing process between the target processing component and the target event signal is asynchronous, so that the asynchronous processing component can be configured to realize asynchronous data processing through the scheme provided by the embodiment of the application. In addition, a user can configure the asynchronous processing unit through the visual first preset interface, and for the user, the asynchronous processing flow generation scheme provided by the embodiment of the application is simpler to implement.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, 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.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may 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)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, electronic device, computer-readable storage medium, and computer program product embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. An asynchronous process flow generation method, the method comprising:
connecting the asynchronous processing components based on the processing sequence of the asynchronous processing components configured by the user, wherein the asynchronous processing components comprise: the data processing device comprises a data input interface for receiving data, a data processing unit for processing the data, a data output interface for outputting the data, an event receiving interface for receiving an event signal and an event output interface for outputting the event signal, wherein the data output interface of each asynchronous processing assembly is connected with the data input interface of the next asynchronous processing assembly in the processing sequence after connection;
determining a target event signal selected by a 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: a preamble asynchronous processing element outputting an event signal through an event output interface, the preamble asynchronous processing element preceding the target processing element in the processing order;
determining a logical relationship between target event signals configured by a user according to the content displayed by the first preset interface;
generating an operating condition of a target processing component based on the logical relationship and the target event signal, wherein the operating condition is: under the condition that the forward asynchronous processing component outputs a target event signal and meets the logic relation, operating a data processing unit in the target processing component;
configuring the target processing component to receive a target event signal through an event receiving interface and configuring the target processing component to operate a data processing unit under the condition that the operating condition is satisfied;
and generating a data file for data processing according to the asynchronous processing flow according to the configuration result.
2. The method of claim 1, prior to said configuring said target processing component to receive a target event signal via an event receiving interface, further comprising:
determining a target action selected by a user through a second preset interface, wherein the target action is as follows: an action that a data processing unit in the target processing component needs to perform if the operating condition is satisfied;
the configuring the target processing component to operate a data processing unit under the condition that the operating condition is satisfied includes:
and configuring the target processing component to run the data processing unit to execute the target action under the condition that the running condition is satisfied.
3. The method of claim 1, further comprising:
determining an output event signal configured by a user through a third preset interface;
and configuring the target processing assembly to output the output event signal through an event output interface in the running process of the data processing unit.
4. The method according to any one of claims 1 to 3, wherein the determining of the logical relationship between the target events configured by the user according to the content displayed by the first preset interface comprises:
displaying a preset logic relationship symbol capable of representing a logic relationship through the first preset interface;
and determining a target logical relation symbol selected by a user from the displayed logical relation symbols, and determining a logical relation between the target event signals based on the target logical relation symbol.
5. The method of claim 4, wherein the logical relationship symbol comprises at least one of: and sign, or sign, negation sign, parenthesis, function for implementing the set function.
6. The method of any of claims 1-3, wherein 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.
7. An asynchronous process flow generation apparatus, the apparatus comprising:
a component connection module, configured to connect the asynchronous processing components based on a processing sequence of the asynchronous processing components configured by a user, where the asynchronous processing component includes: the data processing device comprises a data input interface for receiving data, a data processing unit for processing the data, a data output interface for outputting the data, an event receiving interface for receiving an event signal and an event output interface for outputting the event signal, wherein the data output interface of each asynchronous processing assembly is connected with the data input interface of the next asynchronous processing assembly in the processing sequence after connection;
the identification selection module is used for determining a target event signal selected by a user for a target processing component in the asynchronous processing components and displaying an identification of the target event signal in a first preset interface, wherein the target event signal is as follows: a preamble asynchronous processing element outputting an event signal through an event output interface, the preamble asynchronous processing element preceding the target processing element in the processing order;
the logic relation determining module is used for determining the logic relation between the target event signals configured by the user according to the content displayed by the first preset interface;
an operating condition generating module, configured to generate an operating condition of a target processing component based on the logical relationship and the target event signal, where the operating condition is: under the condition that a forward asynchronous processing component outputs a target event signal and meets the logical relation, operating a data processing unit in the target processing component;
the first component configuration module is used for configuring the target processing component to receive a target event signal through an event receiving interface and configuring the target processing component to operate the data processing unit under the condition that the operating condition is satisfied;
and the data file generating module is used for generating a data file for data processing according to the asynchronous processing flow according to the configuration result.
8. The apparatus of claim 7,
the device further comprises: the action determining module is used for determining a target action selected by a user through a second preset interface, wherein the target action is as follows: an action that a data processing unit in the target processing component needs to perform if the operating condition is satisfied; the first component configuration module is specifically configured to: configuring the target processing component to receive a target event signal through an event receiving interface, and configuring the target processing component to operate a data processing unit to execute a target action under the condition that the operating condition is satisfied;
or
The device further comprises: the output signal determining module is used for determining an output event signal configured by a user through a third preset interface; the second component configuration module is used for configuring the target processing component to output the output event signal through an event output interface in the running process of the data processing unit;
or
The logical relationship determination module is specifically configured to: 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 a user from the displayed logical relationship symbols, and determining a logical relationship between target event signals based on the target logical relationship symbol;
or
The logical relationship symbol comprises at least one of the following symbols: and signs, or signs, negation signs, brackets, functions for implementing set functions;
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 used for processing image data and/or video data.
9. An electronic device characterized in that it comprises:
a memory for storing a computer program;
a processor for implementing the method of any one of claims 1 to 6 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202211105443.8A 2022-09-09 2022-09-09 Asynchronous processing flow generation method and device Pending CN115687224A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211105443.8A CN115687224A (en) 2022-09-09 2022-09-09 Asynchronous processing flow generation method and device
PCT/CN2023/110914 WO2024051409A1 (en) 2022-09-09 2023-08-03 Method and apparatus for generating asynchronous processing flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211105443.8A CN115687224A (en) 2022-09-09 2022-09-09 Asynchronous processing flow generation method and device

Publications (1)

Publication Number Publication Date
CN115687224A true CN115687224A (en) 2023-02-03

Family

ID=85061663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211105443.8A Pending CN115687224A (en) 2022-09-09 2022-09-09 Asynchronous processing flow generation method and device

Country Status (2)

Country Link
CN (1) CN115687224A (en)
WO (1) WO2024051409A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024051409A1 (en) * 2022-09-09 2024-03-14 杭州海康机器人股份有限公司 Method and apparatus for generating asynchronous processing flow

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8997116B2 (en) * 2009-11-12 2015-03-31 Red Hat, Inc. Event logging application programming interface (API)
CN108922188B (en) * 2018-07-24 2020-12-29 河北德冠隆电子科技有限公司 Radar tracking and positioning four-dimensional live-action traffic road condition perception early warning monitoring management system
CN109669720B (en) * 2018-11-22 2022-05-10 北京字节跳动网络技术有限公司 Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN112099848B (en) * 2020-09-11 2024-03-05 杭州海康威视数字技术股份有限公司 Service processing method, device and equipment
CN115687224A (en) * 2022-09-09 2023-02-03 杭州海康机器人股份有限公司 Asynchronous processing flow generation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024051409A1 (en) * 2022-09-09 2024-03-14 杭州海康机器人股份有限公司 Method and apparatus for generating asynchronous processing flow

Also Published As

Publication number Publication date
WO2024051409A1 (en) 2024-03-14

Similar Documents

Publication Publication Date Title
CN111601039B (en) Video shooting method and device and electronic equipment
CN108833787B (en) Method and apparatus for generating short video
CN108228293B (en) Interface skin switching method and device
US20160299750A1 (en) Customized automated install process
CN111611767B (en) Verification method and device
CN115687224A (en) Asynchronous processing flow generation method and device
CN109726119A (en) Test scene creation method, application method, device, client and server
CN112380094B (en) RPA business process processing method and device
CN112346947B (en) Performance detection method, device, electronic equipment and computer readable medium
CN111182223B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111597009A (en) Application program display method and device and terminal equipment
CN108037914B (en) Method and device for developing android native system by combining js
CN113810240B (en) Communication protocol analysis method, device and computer readable storage medium
CN113852763A (en) Audio and video processing method and device, electronic equipment and storage medium
CN111324244B (en) Method and device for switching picture display types
CN109684525B (en) Document display method and device, storage medium and test equipment
CN109800146B (en) Application program start time testing method and device, computer equipment and storage medium
CN112988810A (en) Information searching method, device and equipment
CN114968696A (en) Index monitoring method, electronic equipment and chip system
CN111737372A (en) Map data generation method and device
CN109377177B (en) Flow processing method, device, equipment and computer readable storage medium
CN111831187B (en) Method and device for modifying presentation duration of presentation file and electronic equipment
CN112711247B (en) Interface display method, interface display device and electronic equipment
CN116954795A (en) Page view component control method and device, storage medium and computer equipment
CN116010266A (en) Data processing method, device, terminal equipment and medium for webpage test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination