A visual inspection method, device, equipment and medium based on flowchart

Through the visual detection method based on flowchart, the target flowchart is obtained and the target plug-in is called, the problem of inefficient customization and development of traditional visual detection equipment software is solved, and efficient visual detection function expansion and hardware interaction are achieved.

CN114356462BActive Publication Date: 2025-08-29SUZHOU LINGYUN VISION INTELLIGENT EQUIP CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111659869.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-08-29
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The software customization and development of traditional visual inspection equipment is inefficient and cannot adapt to the needs of rapid updates and iterations of electronic products, and there is lag.

Method used

The visual detection method based on flowchart is adopted, and the visual detection function is realized by obtaining the target flowchart, selecting candidate process units and calling the target plug-in, avoiding customized software development.

Benefits of technology

It improves the implementation efficiency and expansion capabilities of visual detection functions, simplifies user operations, and enhances the interaction capabilities with hardware, software modules and third-party software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356462B_ABST
    Figure CN114356462B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention disclose a flowchart-based visual inspection method, apparatus, device, and medium. The method comprises: obtaining a target flowchart to be executed; selecting a target flow unit to be executed from at least two candidate flow units based on the connection relationship; selecting a target plug-in from candidate plug-ins based on the unit attribute information of the target flow unit, and invoking the target plug-in to implement the visual inspection function corresponding to the target flow unit. Embodiments of the present invention can improve the efficiency and scalability of visual inspection functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer technology, and in particular to a flowchart-based visual inspection method, apparatus, device, and medium. Background Art

[0002] Visual defect detection is becoming increasingly popular as a highly efficient, high-precision, and non-destructive inspection method. With technological advancements, the development and iteration of electronic products is accelerating. For each new product, visual inspection equipment suppliers must develop custom software.

[0003] Traditional custom software development methods are relatively inefficient, and because development requires a certain period of time, there is an inevitable lag compared to the rapid update and iteration of products. Summary of the Invention

[0004] The embodiments of the present invention provide a flow chart-based visual inspection method, apparatus, device, and medium, which can improve the implementation efficiency and expansion capability of the visual inspection function.

[0005] In a first aspect, an embodiment of the present invention provides a flow chart-based visual inspection method, the method comprising:

[0006] Obtaining a target flow chart to be executed; wherein the target flow chart includes at least two candidate flow units and connection relationships between different candidate flow units;

[0007] selecting a target process unit to be executed from the at least two candidate process units according to the connection relationship;

[0008] A target plug-in is selected from candidate plug-ins according to the unit attribute information of the target process unit, and the target plug-in is called to implement a visual inspection function corresponding to the target process unit.

[0009] In a second aspect, an embodiment of the present invention further provides a visual inspection device based on a flowchart, the device comprising:

[0010] A process acquisition module is used to acquire a target flow chart to be executed; wherein the target flow chart includes at least two candidate flow units and connection relationships between different candidate flow units;

[0011] a process determination module, configured to select a target process unit to be executed from the at least two candidate process units according to the connection relationship;

[0012] The function implementation module is used to select a target plug-in from candidate plug-ins according to the unit attribute information of the target process unit, and call the target plug-in to implement the visual detection function corresponding to the target process unit.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, the device comprising:

[0014] one or more processors;

[0015] a storage device for storing one or more programs;

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the flowchart-based visual inspection method provided by any embodiment of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer-executable instructions, on which computer-executable instructions are stored. When the computer-executable instructions are executed by a computer processor, the flowchart-based visual inspection method provided by any embodiment of the present invention is implemented.

[0018] The present invention obtains the target process unit according to the candidate process units and connection relationships of the target flow chart, and calls the target plug-in according to the unit attribute information of the target process unit to realize the visual detection function. No software customization and development is required to realize the visual detection function, thereby improving the implementation efficiency of the visual detection function. Since the plug-in can interact with any hardware, software module or third-party software, it leaves a higher expansion capability for the visual detection function. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Other features, objects and advantages of the present invention will become more apparent upon reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0020] Figure 1A is a schematic diagram of a flow chart-based visual inspection method provided according to an embodiment of the present invention;

[0021] Figure 1B is a schematic diagram of a target flow chart provided according to an embodiment of the present invention;

[0022] Figure 1C This is a schematic diagram of a software modeling and execution solution framework provided according to an embodiment of the present invention;

[0023] Figure 2A is a schematic diagram of a flow chart-based visual inspection method provided according to another embodiment of the present invention;

[0024] Figure 2B is a schematic diagram of a plug-in interface description file update process provided according to another embodiment of the present invention;

[0025] Figure 3is a structural diagram of a flow chart-based visual inspection device according to another embodiment of the present invention;

[0026] Figure 4 This is a block diagram of an electronic device used to implement an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0028] Before introducing specific embodiments, it is necessary to supplement the application scenarios and technical ideas of the embodiments of the present invention to clarify the technical solutions of the present invention.

[0029] Factors that affect software versatility mainly include: 1) the number, layout, and communication of workstations; 2) the type and quantity of cameras, the number of images collected, the timing of image collection, and the frequency of image collection; 3) PLC communication; 4) light source control; and 5) database type.

[0030] Users can perform visual modeling in the flowchart drawing interface. The process modeling software consists of the following parts: 1) Workstation configuration: configure the number of workstations, workstation ID, network IP, data port, etc.; 2) Scenario modeling: configure the hardware resources, network resources, thread resources, etc. of each workstation; 3) Flowchart modeling: through different visual drawing methods of flowcharts, flexible interaction between different modules of the inspection software and external resources such as cameras, PLCs, networks, etc. within the workstation is achieved.

[0031] Station configuration and scenario modeling are used to describe the initialization parameters of the hardware interacting with the current software. This modeling method can use standard data entry methods. The initialization parameter format in station configuration and scenario modeling is a common process unit data format. During the initialization process, these parameters are passed to a specific plug-in for hardware initialization. The flowchart modeling method is as follows: 1) Drag different flowchart units from the toolbox to the main drawing area; 2) Connect the flowchart units in sequence; 3) Configure the flowchart unit parameters. Users can create multiple processes, which can call each other, allowing plug-ins to call specific processes within the actual process.

[0032] To achieve operational flexibility and ease of use for visual inspection software, concepts such as process modeling and functional configuration are introduced. This invention proposes a graphical method for generating a process model of the software actions required by inspection equipment. Users can customize the software using a visual flowchart drawing method based on specific application scenarios, software and hardware types, data formats, and interaction methods. The process execution module calls different interfaces of different plug-ins based on the flowchart drawn by the user, enabling flexible interaction between the various modules of the inspection software and external resources. The basic implementation principles of this invention are as follows:

[0033] The functions to be implemented were meticulously categorized, and within each category, functional units that interacted with external data and operational units that did not interact with external data were further abstracted. The functional boundaries of each unit were clearly defined, and a series of single-function operational interfaces were developed. These interfaces were then organized into a software development plug-in package based on the categorization. This plug-in package provided interfaces for the visual inspection software platform, and the interface functions were implemented through the assembly and invocation of the process scheduling module.

[0034] Figure 1A This is a flowchart of a flowchart-based visual inspection method provided in one embodiment of the present invention. This embodiment is applicable to situations where visual inspection functions are implemented through flowcharts. The method can be performed by a flowchart-based visual inspection device, which can be implemented using software and / or hardware. The device can be configured in an electronic device with corresponding data processing capabilities. The method specifically includes:

[0035] Step 110: Obtain a target flow chart to be executed; wherein the target flow chart includes at least two candidate flow units and connection relationships between different candidate flow units.

[0036] The target flowchart is generated using flowchart drawing software. This depicts a complete modeling process, enabling the visual inspection functions set within the target flowchart. Compared to custom software development to achieve the target function, flowchart construction is more efficient and simpler to operate. Since no programming is required, the user's workload is reduced. When drawing a flowchart, users select the desired process units from the flowchart drawing software and use connecting lines to describe the connection relationships between process units. A process unit, as a single functional unit, is used to implement a specific basic function. Figure 1B This is a schematic diagram of a target flow chart provided by an embodiment of the present invention. In the target flow chart, there are multiple flow units, each of which is used to implement a different basic function, and connecting lines are used to indicate the connection relationship between the flow units.

[0037] Specifically, the target flowchart can be presented in the form of process data in a general format (such as XML format). The process data corresponding to the target flowchart is obtained. When the process starts to execute, the process data corresponding to the target flowchart is first loaded and obtained. The process data records which process units exist in the target flowchart and the connection relationship corresponding to the connecting lines between the process units.

[0038] Step 120: Select a target process unit to be executed from the at least two candidate process units according to the connection relationship.

[0039] The target process unit is a process unit in the target flow chart used to implement the target function of the process.

[0040] Specifically, when designing the target flow chart, to ensure the normal implementation of the target process unit, the target process unit to be executed is generally initialized, and data collection and other candidate process units used in conjunction with the target process unit are generally configured. After determining the connection relationship, the target process unit to be executed is determined based on the connection relationship between the process units.

[0041] S130 : Select a target plug-in from candidate plug-ins according to the unit attribute information of the target process unit, and call the target plug-in to implement a visual inspection function corresponding to the target process unit.

[0042] Among them, the unit attribute information is the corresponding field content of the target flow chart, and the candidate flow unit can have its corresponding unit attribute information. The unit attribute information may include the following content: 1) The target plug-in name to which the target flow unit belongs: used to distribute the unit data of the target flow unit to the target plug-in for execution according to this field; 2) The target interface name associated with the target flow unit: used by the target plug-in to execute specific interface operation data types according to this field, such as input, output, read-only, etc.; 3) Data format: indicates the format of the data in the current flow chart unit, such as integer, floating point, array, structure, class, etc.; 4) Target data content: the actual content of the flow unit. The module that uses this data parses and accesses the data content according to the data format field.

[0043] Specifically, after determining the target process unit, the unit attribute information corresponding to the target process unit is read to obtain the plug-in name required to implement the target process unit, and the plug-in name is obtained by querying the candidate plug-in, and the corresponding target operation is performed through the plug-in to implement the function.

[0044] For example, Figure 1CThis is a schematic diagram of a software modeling and execution framework provided by the present invention. Plug-ins that can implement different functions are pre-configured as candidate plug-ins. Information about the candidate plug-ins can be stored in a plug-in interface description file, allowing the same plug-in interface description file to be called during process drawing and execution. When a process unit is executed, its unit attribute information is read to obtain the plug-in and corresponding interface required to implement the process unit. Based on the plug-in and its corresponding interface, the specific execution data recorded in the unit attribute information is executed to implement the corresponding function of the process unit.

[0045] The embodiment of the present invention obtains the target process unit based on the candidate process units and connection relationships of the target flow chart, and calls the target plug-in according to the unit attribute information of the target process unit to implement the visual detection function. No software customization and development is required to implement the visual detection function, thereby improving the implementation efficiency of the visual detection function. Since the plug-in can interact with any hardware, software module or third-party software, it leaves a higher expansion capability for the visual detection function.

[0046] FIG2 is a flowchart of a visual inspection method according to another embodiment of the present invention. This embodiment is optimized and improved on the basis of the above embodiments. Specifically, referring to FIG2 , the method may include:

[0047] S210. Obtain a target flowchart to be executed; wherein the target flowchart includes at least two candidate flow units and connection relationships between different candidate flow units.

[0048] S220: Select a target process unit to be executed from the at least two candidate process units according to the connection relationship.

[0049] S230: If the target process unit is a sub-flowchart, the sub-flowchart is used as a new target flowchart to be executed, and visual inspection is triggered according to the new target flowchart.

[0050] Among them, the sub-flowchart is a flow chart other than the target flow chart.

[0051] Specifically, a uniquely identified process ID can be set for each flowchart. When the user draws the target process unit in the target flowchart, the process ID of the sub-flowchart can be set as the target data content of the target process unit, and the sub-flowchart can be executed through the plug-in and interface corresponding to the target process unit. In this process, the sub-flowchart can be executed together with the remaining candidate process units after the target process unit in the target flowchart; or after the execution of the sub-flowchart is completed, the remaining candidate process units after the target process unit in the target flowchart can be executed. The present invention supports calling sub-processes, inserting a calling sub-process interface at any position in the process to realize sub-process calling, and also supports executing processes in independent threads. An independent thread execution sub-process interface can be inserted at any position in the process to realize the execution of specified process functions in independent threads. By calling sub-processes, there is no need to repeatedly model processes with the same functions, which further simplifies the workload of staff and improves modeling efficiency.

[0052] S230, the unit attribute information of the target process unit includes the target plug-in name to which the target process unit belongs, the target interface name associated with the target process unit, and the target data content;

[0053] Selecting a target plug-in from candidate plug-ins according to the name of the target plug-in to which the target process unit belongs;

[0054] The target interface name and the target data content are sent to the target plug-in to instruct the target plug-in to select a target plug-in interface from the target plug-in according to the target interface name, and call the target plug-in interface to process the target data content to implement the visual detection function corresponding to the target process unit.

[0055] Among them, each candidate plug-in corresponds to multiple different interfaces, which are used to implement different functions, such as data upload, download, verification, etc.

[0056] Specifically, the unit attribute data of the target process unit is parsed to obtain the target plug-in name, the target interface name associated with the target process unit, and the target data content in its record field. From a preselected set of candidate plug-ins, the target plug-in necessary to implement the target function is determined. The target plug-in stores the correspondence between interfaces and functions. Based on the received target interface name and target data content, the corresponding target interface is called to process the target data content and implement the visual inspection function corresponding to the interface.

[0057] S240: Monitor whether there is a callback trigger event for the target plug-in;

[0058] If it exists, the callback process of the target plug-in is used as the new target flowchart to be executed, and visual inspection is triggered according to the new target flowchart.

[0059] The callback triggering event may be deployed in the target flow chart in the form of a callback triggering process unit.

[0060] Specifically, when the callback trigger process unit is executed, it is determined that a corresponding callback trigger event has been detected. The target data content of the callback trigger process unit stores a corresponding callback ID, which can correspond to a pre-selected callback process. When the callback trigger process unit learns that a callback process has been triggered, it obtains the target data to obtain the callback ID, thereby determining the corresponding callback process and applying for execution of the corresponding callback process. By implementing process callbacks, the visual inspection function can be implemented with new deployment parameters, thereby making adaptive modifications to the work scenario and improving the adjustment capabilities of process modeling.

[0061] The embodiment of the present invention eliminates the need to repeatedly model processes with the same functions through the calling of sub-processes and the callback of processes, thereby further simplifying the workload of staff and improving the efficiency and adjustment capability of process modeling.

[0062] Optionally, selecting a target plug-in from candidate plug-ins according to a name of a target plug-in to which the target process unit belongs includes:

[0063] Based on the plug-in interface description file, a target plug-in is selected from the candidate plug-ins according to the target plug-in name to which the target process unit belongs; wherein the plug-in interface description file includes the interface data format in the candidate plug-in; the plug-in interface description file is updated according to the editing operation of the candidate plug-in and / or the interface in the candidate plug-in.

[0064] Among them, all interface data formats are stored in the plug-in interface description file, and the flowchart modeling software, process scheduling module and each plug-in work according to the description file. When a plug-in adds or removes an interface, modifies the interface content, or adds or removes a plug-in, only the plug-in itself and the plug-in interface description file need to be modified. Other plug-ins, flowchart modeling software and process scheduling module are not affected. Flowchart drawing software and execution software can continue to determine the correspondence between process units, plug-ins and interfaces through the plug-in interface description file.

[0065] Specifically, based on the plug-in interface description file, the plug-ins and interfaces used in drawing the target flow chart, namely candidate plug-ins, can be obtained. After determining the target plug-in name of the unit attribute information, the target plug-in is determined from the candidate plug-ins.

[0066] For example, Figure 2BThis is a schematic diagram of a plugin interface description file update process provided by the present invention. After detecting that the candidate plugin and / or its interface have been fully edited, the plugin interface description file is updated, and a script model is created before the process script is executed. By updating the interface description file after the plugin or interface is updated, flowchart modeling and process execution remain unaffected during and after the functionality update.

[0067] Figure 3 This is a structural block diagram of a flow chart of a visual inspection device provided by another embodiment of the present invention. This embodiment is applicable to the case where the visual inspection function is realized through process modeling. The device can be implemented in software and / or hardware. The device can be configured in an electronic device with corresponding data processing capabilities. Figure 3 As shown, the device may include:

[0068] The process acquisition module 310 is used to acquire a target flow chart to be executed; wherein the target flow chart includes at least two candidate flow units and connection relationships between different candidate flow units;

[0069] a process determination module 320, configured to select a target process unit to be executed from the at least two candidate process units according to the connection relationship;

[0070] The function implementation module 330 is configured to select a target plug-in from candidate plug-ins according to the unit attribute information of the target process unit, and call the target plug-in to implement the visual inspection function corresponding to the target process unit.

[0071] The device and module can execute the flow chart-based visual inspection method provided by any embodiment of the present invention, and have the corresponding functional modules and beneficial effects of the execution method.

[0072] Optionally, the unit attribute information of the target process unit includes a target plug-in name to which the target process unit belongs, a target interface name associated with the target process unit, and target data content; the function implementation module is specifically configured to:

[0073] Selecting a target plug-in from candidate plug-ins according to the name of the target plug-in to which the target process unit belongs;

[0074] The target interface name and the target data content are sent to the target plug-in to instruct the target plug-in to select a target plug-in interface from the target plug-in according to the target interface name, and call the target plug-in interface to process the target data content to implement the visual detection function corresponding to the target process unit.

[0075] Optionally, the function implementation module includes a plug-in selection unit, which is used to:

[0076] Based on the plug-in interface description file, a target plug-in is selected from the candidate plug-ins according to the target plug-in name to which the target process unit belongs; wherein the plug-in interface description file includes the interface data format in the candidate plug-in; the plug-in interface description file is updated according to the editing operation of the candidate plug-in and / or the interface in the candidate plug-in.

[0077] Optionally, the device further includes a process callback module, configured to:

[0078] Monitor whether there is a callback trigger event of the target plug-in;

[0079] If it exists, the callback process of the target plug-in is used as the new target flowchart to be executed, and visual inspection is triggered according to the new target flowchart.

[0080] Optionally, the device further includes a sub-process calling module, configured to:

[0081] If the target flow unit is a sub-flowchart, the sub-flowchart is used as a new target flowchart to be executed, and visual inspection is triggered according to the new target flowchart.

[0082] The devices and modules further described can execute the flow chart-based visual inspection method provided by any embodiment of the present invention, and have the corresponding functional modules and beneficial effects of the execution method.

[0083] Figure 4 A schematic diagram of an electronic structure provided by another embodiment of the present invention is shown in FIG. Figure 4 As shown, the device includes a processor 40, a memory 41, an input device 42 and an output device 43; the number of processors 40 in the device can be one or more. Figure 4 Take a processor 40 as an example; the processor 40, memory 41, input device 42 and output device 43 of the device may be connected via a bus or other means. Figure 4 The bus connection is taken as an example.

[0084] The memory 41, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the flowchart-based visual inspection method in the embodiment of the present invention (for example, the process acquisition module 310, process determination module 320, and function implementation module 330 in the visual inspection device of the flowchart). The processor 40 executes the software programs, instructions, and modules stored in the memory 41 to execute various functional applications and data processing of the device, thereby implementing the above-mentioned flowchart-based visual inspection method.

[0085] The memory 41 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data created based on the use of the terminal, etc. Furthermore, the memory 41 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some instances, the memory 41 may further include memory remotely located relative to the processor 40, and these remote memories may be connected to the device via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0086] The input device 42 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 43 may include a display device such as a display screen.

[0087] Yet another embodiment of the present invention provides a storage medium containing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform a visual inspection method of a flowchart, the method comprising:

[0088] Obtaining a target flow chart to be executed; wherein the target flow chart includes at least two candidate flow units and connection relationships between different candidate flow units;

[0089] selecting a target process unit to be executed from the at least two candidate process units according to the connection relationship;

[0090] A target plug-in is selected from candidate plug-ins according to the unit attribute information of the target process unit, and the target plug-in is called to implement a visual inspection function corresponding to the target process unit.

[0091] Of course, the computer-executable instructions provided in the storage medium containing computer-executable instructions in the embodiments of the present invention are not limited to the operations of the method described above, but can also perform the relevant operations in the visual inspection method provided in the flowchart of any embodiment of the present invention.

[0092] Through the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented with the help of software and necessary general-purpose hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0093] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0094] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A visual inspection method based on a flowchart, characterized in that: include: Obtaining a target flow chart to be executed; wherein the target flow chart includes at least two candidate flow units and connection relationships between different candidate flow units; selecting a target process unit to be executed from the at least two candidate process units according to the connection relationship; Selecting a target plug-in from candidate plug-ins according to the unit attribute information of the target process unit, and calling the target plug-in to implement the visual inspection function corresponding to the target process unit; The unit attribute information of the target process unit includes the target plug-in name to which the target process unit belongs, the target interface name associated with the target process unit, and the target data content; The step of selecting a target plug-in from candidate plug-ins according to the unit attribute information of the target process unit, and calling the target plug-in to implement a visual inspection function corresponding to the target process unit includes: Selecting a target plug-in from candidate plug-ins according to the name of the target plug-in to which the target process unit belongs; The target interface name and the target data content are sent to the target plug-in to instruct the target plug-in to select a target plug-in interface from the target plug-in according to the target interface name, and call the target plug-in interface to process the target data content to implement the visual detection function corresponding to the target process unit.

2. The method according to claim 1, characterized in that The step of selecting a target plug-in from candidate plug-ins according to the name of the target plug-in to which the target process unit belongs includes: Based on the plug-in interface description file, selecting a target plug-in from candidate plug-ins according to the target plug-in name to which the target process unit belongs; The plug-in interface description file includes the interface data format of the candidate plug-in; and the plug-in interface description file is updated according to the editing operation on the candidate plug-in and / or the interface in the candidate plug-in.

3. The method according to claim 1, characterized in that After calling the target plug-in to implement the visual inspection function corresponding to the target process unit, the method further includes: Monitor whether there is a callback trigger event of the target plug-in; If it exists, the callback process of the target plug-in is used as the new target flowchart to be executed, and visual inspection is triggered according to the new target flowchart.

4. The method according to claim 1, wherein After selecting a target process unit to be executed from the at least two candidate process units according to the connection relationship, the method further includes: If the target flow unit is a sub-flowchart, the sub-flowchart is used as a new target flowchart to be executed, and visual inspection is triggered according to the new target flowchart.

5. A visual inspection device based on a flowchart, characterized in that: include: A process acquisition module is used to acquire a target flow chart to be executed; wherein the target flow chart includes at least two candidate flow units and connection relationships between different candidate flow units; a process determination module, configured to select a target process unit to be executed from the at least two candidate process units according to the connection relationship; A function implementation module, configured to select a target plug-in from candidate plug-ins according to the unit attribute information of the target process unit, and call the target plug-in to implement a visual inspection function corresponding to the target process unit; The unit attribute information of the target process unit includes the target plug-in name to which the target process unit belongs, the target interface name associated with the target process unit, and the target data content; the function implementation module is specifically used to: Selecting a target plug-in from candidate plug-ins according to the name of the target plug-in to which the target process unit belongs; The target interface name and the target data content are sent to the target plug-in to instruct the target plug-in to select a target plug-in interface from the target plug-in according to the target interface name, and call the target plug-in interface to process the target data content to implement the visual detection function corresponding to the target process unit.

6. The device according to claim 5, characterized in that The function implementation module includes a plug-in selection unit, which is used to: Based on the plug-in interface description file, selecting a target plug-in from candidate plug-ins according to the target plug-in name to which the target process unit belongs; The plug-in interface description file includes the interface data format of the candidate plug-in; and the plug-in interface description file is updated according to the editing operation on the candidate plug-in and / or the interface in the candidate plug-in.

7. An electronic device, characterized in that: The device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the flowchart-based visual inspection method according to any one of claims 1 to 4.

8. A storage medium comprising computer-executable instructions, wherein the computer-executable instructions are used to perform the flowchart-based visual inspection method according to any one of claims 1 to 4 when executed by a computer processor.

Citation Information

Patent Citations

  • Process scheduling method and device for visual software

    CN112579266A