Executable file generation method, device, system, and electronic device
By automatically matching the tool library and process template library of the visual inspection system, executable files are generated, which solves the problems of high development threshold and low efficiency in the existing technology and realizes the standardization and automation of the inspection process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING LUSTER LIGHTTECH
- Filing Date
- 2026-02-24
- Publication Date
- 2026-07-03
AI Technical Summary
Existing industrial vision inspection technologies rely on traditional manual programming and graphical drag-and-drop configuration, resulting in high development thresholds, low efficiency, difficulty in standardization and reuse, and difficulties in debugging and maintenance, as well as a high dependence on expert experience.
By parsing the target detection task input by the user, and combining the tool library and detection process template library of the vision inspection system, the system automatically matches and assembles the appropriate tools to be executed and their relationships, generating executable files, thus lowering the development threshold, improving construction efficiency, and reducing reliance on expert experience.
It achieves standardization and automation of the testing process, significantly reduces the development threshold, improves construction efficiency, reduces reliance on expert experience, and ensures the efficient operation of the testing process.
Smart Images

Figure CN122331899A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of visual inspection technology, and in particular relates to a method, apparatus, system and electronic device for generating executable files. Background Technology
[0002] In related technologies, current industrial vision inspection applications mainly rely on two modes: traditional manual programming and graphical drag-and-drop configuration. The former requires developers to have strong programming and algorithm skills, while the latter lowers the coding threshold, but when faced with complex inspection tasks, it still requires manual task decomposition, tool selection, and manual connection of processes, resulting in low development efficiency, high dependence on expert experience, difficulty in standardization and reuse, and difficulty in debugging and maintenance. Summary of the Invention
[0003] This invention aims to address at least one of the technical problems existing in the prior art. To this end, this invention proposes a method, apparatus, system, and electronic device for generating executable files, which can significantly reduce the development threshold, improve construction efficiency, reduce reliance on expert experience, and achieve standardization and automation of the testing process.
[0004] In a first aspect, this application provides a method for generating an executable file, the executable file being applied to a visual inspection system, the method comprising:
[0005] Obtain user input to obtain the target detection task of the vision detection system; Based on the target detection task, the visual detection system obtains the detection information to be executed, which includes the object to be detected, the item to be detected, and the detection constraints of the visual detection system. Based on the detection information to be executed, the tool library and detection process template library of the visual inspection system, multiple tools to be executed and the association relationships between each of the tools to be executed are obtained; The executable file is generated based on the preset configuration information and the association relationship corresponding to each of the tools to be executed.
[0006] According to the executable file generation method of this application, by parsing the target detection task input by the user, the object to be detected, the item to be detected, and the detection constraints are automatically extracted. Combined with the tool library and detection process template library of the visual inspection system, the appropriate executable tools and their relationships are intelligently matched and assembled. Finally, based on the preset configuration information and relationships of each executable tool, a complete executable file is automatically generated, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the detection process.
[0007] According to one embodiment of this application, the step of obtaining multiple executable tools and the association relationships between each executable tool based on the detection information to be executed, the tool library of the visual inspection system, and the detection process template library includes: Based on the detection information to be executed, a search is performed in the tool library to obtain multiple tools to be executed; Based on the detection information to be executed, a search is performed in the detection process template library to obtain the association results between the various tools to be executed.
[0008] According to one embodiment of this application, generating the executable file based on the preset configuration information corresponding to each of the executable tools and the association relationship includes: Based on the preset configuration information and the association relationship corresponding to each of the tools to be executed, a workflow configuration diagram is generated. The workflow configuration diagram is used to indicate the preset configuration information and the association relationship of each of the tools to be executed. The workflow configuration diagram is compiled into the executable file.
[0009] According to one embodiment of this application, after generating the workflow configuration diagram, the method further includes: The workflow configuration diagram is visualized, and the operation of the visual inspection system is simulated and controlled based on the visualization results.
[0010] According to one embodiment of this application, obtaining user input to obtain the target detection task of the visual detection system includes: The user input is obtained, and the user input is parsed using a large language model to obtain the target detection task; The process of generating a workflow configuration diagram based on the preset configuration information and the association relationship corresponding to each of the tools to be executed includes: Based on the preset configuration information and the associated relationships corresponding to each of the tools to be executed, the workflow configuration diagram is generated through the large language model.
[0011] According to one embodiment of this application, generating the executable file based on the preset configuration information corresponding to each of the executable tools and the association relationship includes: Based on the target detection task, generate initialization parameters for each of the tools to be executed; The executable file is generated based on the preset configuration information, initialization parameters, and association relationships corresponding to each of the tools to be executed.
[0012] Secondly, this application provides an apparatus for generating an executable file, the executable file being used in a visual inspection system, the apparatus comprising: The first processing module is used to acquire user input and obtain the target detection task of the visual detection system. The second processing module is used to obtain the detection information to be executed by the visual detection system based on the target detection task. The detection information to be executed includes the object to be detected, the item to be detected, and the detection constraints of the visual detection system. The third processing module is used to obtain multiple execution tools and the association relationships between each execution tool based on the execution detection information, the tool library and the detection process template library of the visual inspection system; The fourth processing module is used to generate the executable file based on the preset configuration information and the association relationship corresponding to each of the tools to be executed.
[0013] According to the executable file generation device of this application, by parsing the target detection task input by the user, the device automatically extracts the object to be detected, the item to be detected, and the detection constraints. Combining the tool library and detection process template library of the visual inspection system, it intelligently matches and assembles the appropriate executable tools and their related relationships. Finally, based on the preset configuration information and related relationships of each executable tool, it automatically generates a complete executable file, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the detection process.
[0014] Thirdly, this application provides an executable file generation system for performing the executable file generation method described in the first aspect above.
[0015] The executable file generation system of this application automatically extracts the object to be detected, the items to be detected, and the detection constraints by parsing the target detection task input by the user. Combined with the tool library and detection process template library of the visual inspection system, it intelligently matches and assembles the appropriate executable tools and their relationships. Finally, based on the preset configuration information and relationships of each executable tool, it automatically generates a complete executable file, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the detection process.
[0016] Fourthly, this application provides a visual inspection system, which has an executable file written in it to perform a target detection task. The executable file is generated by the executable file generation method described in the first aspect above.
[0017] According to the visual inspection system of this application, by parsing the target inspection task input by the user, the system automatically extracts the object to be inspected, the items to be inspected, and the inspection constraints. Combining the tool library and inspection process template library of the visual inspection system, it intelligently matches and assembles the appropriate execution tools and their relationships. Finally, based on the preset configuration information and relationships of each execution tool, it automatically generates a complete executable file, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the inspection process.
[0018] Fifthly, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the executable file generation method described in the fifth aspect above.
[0019] In a sixth aspect, this application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the executable file generation method described in the first aspect above.
[0020] In a seventh aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the executable file generation method described in the first aspect above.
[0021] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0022] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart illustrating the method for generating an executable file provided in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of the executable file generation device provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0023] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0025] The following description, in conjunction with the accompanying drawings, details the executable file generation method, executable file generation apparatus, executable file generation system, visual inspection system, electronic device, and readable storage medium provided in this application through specific embodiments and application scenarios.
[0026] The method for generating executable files can be applied to terminals, and can be executed by hardware or software within the terminal.
[0027] The executable file generation method provided in this application embodiment can be executed by an electronic device or a functional module or functional entity in an electronic device that can implement the executable file generation method. The electronic devices mentioned in this application embodiment include, but are not limited to, mobile phones, tablets, computers, cameras, and wearable devices. The executable file generation method provided in this application embodiment is described below using an electronic device as the execution subject.
[0028] The executable file is used in visual inspection systems.
[0029] A visual inspection system is an automated inspection system that uses cameras and image processing algorithms to automatically identify, analyze, and judge the features or defects of objects.
[0030] like Figure 1 As shown, the method for generating the executable file includes steps 110, 120, and 130.
[0031] Step 110: Obtain user input to obtain the target detection task of the visual inspection system.
[0032] The user input consists of raw information provided by the user regarding their testing needs, such as the object to be tested, the type of defect, or performance requirements.
[0033] The target detection task is to identify specific targets based on user input, such as locating and identifying missing capacitors on a PCB board.
[0034] In this step, information about the inspection object, defect type, and performance requirements is received from the user through a human-computer interaction interface, such as a graphical interface, configuration file, or voice command. This information is then parsed and standardized into specific target inspection tasks that the vision inspection system can perform.
[0035] Step 120: Based on the target detection task, obtain the detection information to be performed by the visual detection system.
[0036] Among them, the detection information to be executed is the structured detection elements extracted based on the target detection task. The detection information to be executed includes the object to be detected, the items to be detected, and the detection constraints of the visual inspection system.
[0037] The object to be inspected is the specific object or area that the visual inspection system needs to check, such as a mobile phone screen or metal parts.
[0038] The items to be inspected are specific features, defects, or attributes on the object to be inspected that need to be identified, measured, or judged, such as cracks, dimensional deviations, or whether characters are clear.
[0039] Detection constraints are the conditions or limitations that must be met when performing detection, such as detection speed, accuracy, ambient lighting, and image resolution.
[0040] By parsing the semantic content in the target detection task, the inspected object, the features or defects to be inspected, and the performance and environmental requirements are identified, thereby generating the detection information to be performed.
[0041] Step 130: Based on the detection information to be executed, the tool library of the visual inspection system, and the detection process template library, obtain multiple tools to be executed and the relationships between them.
[0042] The visual inspection system's tool library contains reusable image processing, analysis, and recognition algorithm modules, while the inspection workflow template library stores predefined tool combinations and execution logic for typical inspection tasks, enabling rapid construction of inspection solutions.
[0043] In this step, by matching and adapting the objects to be tested, the items to be tested, and the testing constraints in the test information to be executed with the functional modules in the tool library and the typical processes in the process template library, the appropriate tools are automatically selected and the relationship between them is determined according to the data flow and logical order defined in the template.
[0044] Step 140: Generate an executable file based on the preset configuration information and associations corresponding to each tool to be executed.
[0045] The preset configuration information includes the parameter settings for each detection tool, and the association describes the execution order and data dependencies between the tools to be executed. Together, they are used to assemble and generate an executable file that can run independently to complete the entire visual inspection task.
[0046] In this step, the preset configuration information of each tool to be executed and its relationship with the detection process, such as execution order and data transmission method, are encoded and integrated, and packaged into an executable file that can be run independently through script compilation, workflow engine or code generation technology.
[0047] The preset configuration information of the tools to be executed is tailored to specific detection scenarios, covering the basic parameters and adaptation rules required for tool operation, ensuring that the tools can function properly. The analysis of relationships takes into account both execution order and data transfer, clearly defining the input-output correspondence between upstream and downstream tools to avoid data breaks or logical conflicts. The integration of these two aspects is the core step in executable file generation, following the basic logic of the detection process, connecting the entire process of tool invocation and task execution, and ensuring that the generated executable file accurately matches the target detection task.
[0048] According to the executable file generation method provided in the embodiments of this application, by parsing the target detection task input by the user, the object to be detected, the item to be detected, and the detection constraints are automatically extracted. Combined with the tool library and detection process template library of the visual inspection system, the appropriate executable tools and their related relationships are intelligently matched and assembled. Finally, based on the preset configuration information and related relationships of each executable tool, a complete executable file is automatically generated, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the detection process.
[0049] In some embodiments, based on the inspection information to be executed, the tool library of the visual inspection system, and the inspection process template library, multiple tools to be executed and the relationships between them are obtained, including: Based on the detection information to be executed, a search is performed in the tool library to obtain multiple tools to be executed; Based on the detection information to be executed, a search is performed in the detection process template library to obtain the correlation results between the various tools to be executed.
[0050] In this embodiment, the tool library is first matched and searched based on the detection information to be executed, and image processing and analysis tools suitable for the current task are selected as the tools to be executed. At the same time, the most matching process template is searched in the detection process template library based on the same detection information to be executed. The process template has predefined the execution order, data flow and logical dependencies between tools in the same type of task, so as to directly output the association results between the tools to be executed and realize the automatic assembly of the tool chain.
[0051] The tool library search relies on preset semantic matching rules to match the objects and items to be detected with the core functions of the tools, eliminating tools with mismatched functions or those that cannot meet the detection constraints, ensuring that the selected tools fit the current task requirements. The process template library search prioritizes matching templates with high scenario similarity. If multiple similar templates exist, further filtering can be performed based on the accuracy and speed requirements in the detection constraints. After the search is completed, the tool compatibility and association logic are initially verified to ensure smooth functional connection between the tools to be executed and that the association relationships conform to the basic logic of the detection process, providing a reliable tool combination and process foundation for the subsequent generation of executable files.
[0052] In some embodiments, an executable file is generated based on the preset configuration information and association relationships corresponding to each tool to be executed, including: Based on the preset configuration information and relationships of each tool to be executed, a workflow configuration diagram is generated. Compile the workflow configuration diagram into an executable file.
[0053] The workflow configuration diagram is used to indicate the preset configuration information and relationships of each tool to be executed. The workflow configuration diagram is a structured data representation form that serves as a blueprint to guide the operation of the vision inspection system.
[0054] In this embodiment, based on the preset configuration information and relationships of each tool to be executed, the workflow configuration diagram is generated by defining the input-output dependencies between the tools to be executed and connecting the process nodes corresponding to each tool to be executed using a graphical tool.
[0055] The workflow configuration diagram is parsed into intermediate code or scripts according to predefined execution semantics, and then linked and optimized in conjunction with the actual functional modules in the tool library. Finally, it is packaged to generate an executable file that can run on the target platform.
[0056] In some embodiments, after generating the workflow configuration graph, the method further includes: The workflow configuration diagram is visualized, and the operation of the vision inspection system is simulated based on the visualization results.
[0057] In this embodiment, after generating the workflow configuration diagram, the abstract workflow configuration diagram is first transformed into an intuitive graphical interface for display, so that users can clearly see the design structure of the entire process and the connection relationship between each tool to be executed. This may involve the use of specific software tools or platforms that support the graphical modeling of workflows.
[0058] Using the graphical interface described above, users can virtually run or simulate workflows. During this process, the behavior of the vision inspection system in actual operation can be simulated based on set parameters and conditions. This verifies the effectiveness and rationality of the workflow configuration and helps identify potential problems or bottlenecks.
[0059] Based on the simulation results, if any problems are found or there is room for improvement, the workflow configuration diagram can be adjusted accordingly. Then, the simulation should be repeated to verify the results until the desired effect is achieved.
[0060] In some embodiments, obtaining user input to obtain the target detection task of the visual inspection system includes: Obtain user input, parse the user input using a large language model, and obtain the object detection task; Based on the preset configuration information and relationships corresponding to each tool to be executed, a workflow configuration diagram is generated, including: Based on the preset configuration information and relationships of each tool to be executed, a workflow configuration diagram is generated through a large language model.
[0061] In this embodiment, the visual inspection system first acquires user input and parses it using a large language model to determine the target inspection task, such as identifying specific objects or detecting defects in the production process. Then, based on the preset configuration information of each selected tool and their interrelationships, the large language model automatically generates a workflow configuration diagram. The workflow configuration diagram details the execution order, parameter settings, and data interaction methods of each tool, effectively guiding the design and implementation of the entire visual inspection process. By intelligently parsing user requirements and automatically generating workflows, the configuration of the visual inspection system becomes more efficient and accurate, and also better suited to the user's actual application needs.
[0062] In some embodiments, an executable file is generated based on the preset configuration information and association relationships corresponding to each tool to be executed, including: Based on the object detection task, generate initialization parameters for each tool to be executed; An executable file is generated based on the preset configuration information, initialization parameters, and associations of each tool to be executed.
[0063] In this embodiment, the initialization parameters required for each tool to be executed, such as thresholds and model paths, are first automatically generated according to the target detection task to adapt to the specific detection scenario. Then, the preset configuration information of each tool to be executed, the generated initialization parameters, and the relationship between the tools to be executed are combined and uniformly arranged and packaged into an executable file that can be run directly on the visual inspection system, thereby realizing end-to-end automated generation from task intent to executable program.
[0064] The following describes a specific embodiment of a method for generating an executable file.
[0065] Build an intelligent orchestration system based on a structured knowledge base, driven by a large language model, and outputting through blueprint compilation.
[0066] Step 1: Constructing a structured visual tool knowledge base, or tool library, involves atomically and structurally describing all visual processing tools within the platform. Create a tool card for each tool, containing: tool name (e.g., circle finder), core functional semantics (e.g., locating the edge of a circle in an image), input interface (e.g., image, ROI region), output interface (e.g., center coordinates X / Y, radius R, confidence level), key adjustable parameters, their physical meaning, and typical value ranges (e.g., edge threshold: 50-200, determining edge detection sensitivity).
[0067] Step 2: Construction of the process template library, i.e., the inspection process template library. The successful implementation schemes of verified typical inspection processes (such as thread starting angle measurement and workpiece surface damage detection) are deconstructed into standard toolchain call sequences, and the data flow and control logic between them are described to form reusable process templates.
[0068] Step 3: Task Requirement Analysis and Knowledge Retrieval: The system receives the user's natural language task description, i.e., user input, and obtains the target detection task (e.g., detecting the inner diameter of this gear and the distance from the tooth tip circle to the center of the mounting hole). The system uses a large language model to parse the description, extracting key detection objects, measurement items, and process constraints to obtain the detection information to be performed. Subsequently, based on the parsing results, the system performs semantic retrieval from the tool knowledge base and process template library to recall relevant tool sets and reference templates, i.e., multiple tools to be executed and the relationships between them.
[0069] Step 4: Structured Process Blueprint Generation. Based on the retrieved information, the large language model performs logical reasoning and planning to generate a structured process blueprint (which can be in JSON or XML format). This blueprint precisely defines: Tool execution sequence: the specific tools used in each step of the process; Data dependencies: clearly define which tool's output variable the input data for each tool comes from (e.g., the input image for the circle-finding tool in step two comes from the OutputImage of the image preprocessing tool in step one); Parameter initialization suggestions: provide initial value suggestions for the key parameters of each tool that are suitable for the current task scenario.
[0070] Step 5: Visual Verification and Interactive Correction: The system automatically renders the structured blueprint into a visual flowchart, intuitively displaying the toolchain and data flow. Engineers can review the logic on this interface and directly adjust parameters or fine-tune connections graphically. The system will then synchronize the changes back to the blueprint.
[0071] Step Six: Executable Process Compilation and Deployment. After user confirmation, the system calls the compilation adapter to translate the final structured blueprint into the target vision platform, directly loading and running the project files (.vpp, .prj, etc.), thus completing automated deployment.
[0072] In related technologies, the development of industrial vision inspection applications mainly relies on the following two technical solutions: manual programming mode: Engineers use C++, Python, or dedicated scripting languages to call the APIs of vision algorithm libraries (such as OpenCV and Halcon) and write complete image processing, analysis, and decision-making logic code. This solution requires developers to have strong programming skills and knowledge of vision algorithms.
[0073] Graphical drag-and-drop configuration mode: Employing graphical integrated development environments such as VisionMaster, Halcon, and HDevelop. The platform provides visual tool modules such as "line finding," "circle finding," "blob analysis," and "template matching." Engineers drag and drop modules onto the canvas, manually set parameters, and define the data flow between modules (such as the transfer of images, coordinates, and values) using connections, ultimately assembling a complete visual inspection workflow.
[0074] In related technologies, the development threshold is high and the efficiency is low. The manual programming mode requires engineers to have extremely high comprehensive abilities. Although the graphical mode reduces the programming requirements, when faced with complex processes (such as thread measurement and gear inspection), engineers still need to manually understand the task, break down the steps, select from hundreds of tools and connect them correctly. The process is tedious and time-consuming.
[0075] Highly dependent on expert experience and difficult to standardize: The quality of the process depends entirely on the individual experience of the engineer, resulting in large differences in solutions for similar testing tasks, unstable process quality, and difficulty in knowledge accumulation and unified reuse within the enterprise.
[0076] Debugging and maintenance are difficult: the process logic exists implicitly in the engineers' minds or in scattered connections. When problems are detected, the trial and error cost of troubleshooting logic errors and adjusting parameter links is high, and the workload of process adjustment is large when changing production.
[0077] Lack of high-level intent understanding: Existing platforms are all passive tools, unable to understand what users want to do, and can only passively receive instructions on how to do it, unable to achieve automatic transformation from task objectives to execution plans.
[0078] The executable file generation method provided in this application can solve the problems of industrial visual inspection process construction being highly dependent on manual labor, inefficient, unable to solidify and reuse knowledge, and unable to respond to high-level task intents. It provides a solution to automatically generate high-quality, executable, standardized visual inspection processes based on task requirements described in natural language.
[0079] In this embodiment of the application, the visual detection task described by natural language is automatically generated into a structured process blueprint by combining a large language model with a structured tool knowledge base.
[0080] The visual inspection system includes the following modules: a structured knowledge base management module, a task parsing and retrieval module, a process blueprint generation module, a visual verification module, and a compilation and deployment module.
[0081] We construct a machine-understandable knowledge base by providing structured descriptions of the functional semantics, interfaces, and parameters of visual tools.
[0082] The specific data organization format of structured process blueprints, especially emphasizing the explicit, declarative definition of data dependencies between tools.
[0083] A hybrid approach that leverages large language models for task understanding and logical planning, combined with semantic-based retrieval techniques to extract precise tool information from a knowledge base.
[0084] In this embodiment, the development mode is upgraded from manual construction to description generation, allowing non-visual experts to quickly build professional processes using natural language.
[0085] Significantly improves development efficiency and consistency. Automatic orchestration reduces work time from hours or even days to minutes, and generates process standards and specifications to ensure stable process quality.
[0086] By turning enterprise knowledge into assets, structured knowledge bases and process template libraries become digital carriers of core technological experience, which can be continuously accumulated, optimized, and passed on.
[0087] The architecture is open and flexible; by changing different compilation adapters, the core orchestration engine can be adapted to a variety of backend visual execution platforms.
[0088] The executable file generation method provided in this application can be executed by an executable file generation device. This application uses an executable file generation device executing the executable file generation method as an example to illustrate the executable file generation device provided in this application.
[0089] This application also provides an apparatus for generating executable files.
[0090] like Figure 2As shown, the apparatus for generating the executable file includes: The first processing module 210 is used to acquire user input and obtain the target detection task of the visual detection system. The second processing module 220 is used to obtain the detection information to be executed by the visual inspection system based on the target detection task. The detection information to be executed includes the object to be detected, the item to be detected, and the detection constraints of the visual inspection system. The third processing module 230 is used to obtain multiple tools to be executed and the relationship between each tool based on the detection information to be executed, the tool library of the visual inspection system and the detection process template library; The fourth processing module 240 is used to generate an executable file based on the preset configuration information and association relationships corresponding to each tool to be executed.
[0091] According to the executable file generation device provided in the embodiments of this application, by parsing the target detection task input by the user, the device automatically extracts the object to be detected, the item to be detected, and the detection constraints. Combining the tool library and detection process template library of the visual inspection system, it intelligently matches and assembles the appropriate executable tools and their related relationships. Finally, based on the preset configuration information and related relationships of each executable tool, it automatically generates a complete executable file, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the detection process.
[0092] In some embodiments, the third processing module 230 is used to search the tool library based on the detection information to be executed to obtain multiple tools to be executed; Based on the detection information to be executed, a search is performed in the detection process template library to obtain the correlation results between the various tools to be executed.
[0093] In some embodiments, the fourth processing module 240 is used to generate a workflow configuration diagram based on the preset configuration information and association relationships corresponding to each tool to be executed. The workflow configuration diagram is used to indicate the preset configuration information and association relationships of each tool to be executed. Compile the workflow configuration diagram into an executable file.
[0094] In some embodiments, the fourth processing module 240 is further configured to visualize the workflow configuration diagram and simulate the operation of the visual inspection system based on the visualization results.
[0095] In some embodiments, the fourth processing module 240 is used to acquire user input, parse the user input through a large language model, and obtain the target detection task; Based on the preset configuration information and relationships corresponding to each tool to be executed, a workflow configuration diagram is generated, including: Based on the preset configuration information and relationships of each tool to be executed, a workflow configuration diagram is generated through a large language model.
[0096] In some embodiments, the fourth processing module 240 is used to generate initialization parameters for each tool to be executed based on the target detection task; An executable file is generated based on the preset configuration information, initialization parameters, and associations of each tool to be executed.
[0097] The executable file generation device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific device.
[0098] The executable file generation device in this application embodiment can be a device with an operating system. This operating system can be a Microsoft (Windows) operating system, an Android operating system, an iOS operating system, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0099] The executable file generation apparatus provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0100] This application also provides an executable file generation system.
[0101] The executable file generation system is used to execute the executable file generation method described above.
[0102] The executable file generation system provided in this application automatically extracts the object to be detected, the item to be detected, and the detection constraints by parsing the target detection task input by the user. Combined with the tool library and detection process template library of the visual inspection system, it intelligently matches and assembles the appropriate executable tools and their related relationships. Finally, it automatically generates a complete executable file based on the preset configuration information and related relationships of each executable tool, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the detection process.
[0103] This application also provides a visual inspection system.
[0104] The visual inspection system has an executable file to perform the target detection task. The executable file is generated using the executable file generation method described above.
[0105] According to the visual inspection system provided in the embodiments of this application, by parsing the target inspection task input by the user, the system automatically extracts the object to be inspected, the item to be inspected, and the inspection constraints. Combining the tool library and inspection process template library of the visual inspection system, it intelligently matches and assembles the appropriate execution tools and their related relationships. Finally, based on the preset configuration information and related relationships of each execution tool, it automatically generates a complete executable file, thereby significantly reducing the development threshold, improving the construction efficiency, reducing the dependence on expert experience, and realizing the standardization and automation of the inspection process.
[0106] In some embodiments, such as Figure 3 As shown, this application embodiment also provides an electronic device 300, including a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the program is executed by the processor 301, it implements the various processes of the above-described executable file generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0107] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0108] This application also provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described executable file generation method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0109] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0110] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method for generating an executable file.
[0111] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0112] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described executable file generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0113] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0114] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0115] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they 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 this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0116] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0117] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0118] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. A method of generating an executable file, characterized by, The executable file is applied to a visual inspection system, and the method includes: Obtain user input to obtain the target detection task of the vision detection system; Based on the target detection task, the visual detection system obtains the detection information to be executed, which includes the object to be detected, the item to be detected, and the detection constraints of the visual detection system. Based on the detection information to be executed, the tool library and detection process template library of the visual inspection system, multiple tools to be executed and the association relationships between each of the tools to be executed are obtained; The executable file is generated based on the preset configuration information and the association relationship corresponding to each of the tools to be executed.
2. The method for generating an executable file according to claim 1, characterized in that, Based on the detection information to be executed, the tool library and detection process template library of the visual inspection system, the relationships between multiple execution tools and each execution tool are obtained, including: Based on the detection information to be executed, a search is performed in the tool library to obtain multiple tools to be executed; Based on the detection information to be executed, a search is performed in the detection process template library to obtain the association results between the various tools to be executed.
3. The method for generating an executable file according to claim 1, characterized in that, The step of generating the executable file based on the preset configuration information corresponding to each of the tools to be executed and the association relationship includes: Based on the preset configuration information and the association relationship corresponding to each of the tools to be executed, a workflow configuration diagram is generated. The workflow configuration diagram is used to indicate the preset configuration information and the association relationship of each of the tools to be executed. The workflow configuration diagram is compiled into the executable file.
4. The method for generating an executable file according to claim 3, characterized in that, After generating the workflow configuration diagram, the method further includes: The workflow configuration diagram is visualized, and the operation of the visual inspection system is simulated and controlled based on the visualization results.
5. The method for generating an executable file according to claim 3, characterized in that, The step of obtaining user input to obtain the target detection task of the visual detection system includes: The user input is obtained, and the user input is parsed using a large language model to obtain the target detection task; The process of generating a workflow configuration diagram based on the preset configuration information and the association relationship corresponding to each of the tools to be executed includes: Based on the preset configuration information and the associated relationships corresponding to each of the tools to be executed, the workflow configuration diagram is generated through the large language model.
6. The method for generating an executable file according to any one of claims 1-5, characterized in that, The step of generating the executable file based on the preset configuration information corresponding to each of the tools to be executed and the association relationship includes: Based on the target detection task, generate initialization parameters for each of the tools to be executed; The executable file is generated based on the preset configuration information, initialization parameters, and association relationships corresponding to each of the tools to be executed.
7. An apparatus for generating an executable file, characterized in that, The executable file is used in a visual inspection system, and the device includes: The first processing module is used to acquire user input and obtain the target detection task of the visual detection system. The second processing module is used to obtain the detection information to be executed by the visual detection system based on the target detection task. The detection information to be executed includes the object to be detected, the item to be detected, and the detection constraints of the visual detection system. The third processing module is used to obtain multiple execution tools and the association relationships between each execution tool based on the execution detection information, the tool library of the visual inspection system, and the detection process template library; The fourth processing module is used to generate the executable file based on the preset configuration information and the association relationship corresponding to each of the tools to be executed.
8. An executable file generation system, characterized in that, Used to perform the method for generating an executable file as described in any one of claims 1-6.
9. A visual inspection system, characterized in that, The visual inspection system has an executable file written to perform the target detection task, and the executable file is generated by the executable file generation method according to any one of claims 1-6.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the executable file generation method as described in any one of claims 1-6.