Input and output implementation method, device and electronic equipment applied to visual platform

By setting up IO description documents for the functional modules of the visual platform and generating IO objects, dynamically adjusting the input and output structure, the problem of complexity and large workload caused by fixed input and output of the code is solved, and the scalability and flexibility of the visual platform are improved. sex.

CN117453098BActive Publication Date: 2024-12-06HANGZHOU HIKROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311348716.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-17
Publication Date
2024-12-06
Estimated Expiration
2043-10-17

AI Technical Summary

Technical Problem

The input and output of the existing visual platform functional modules require complex and time-consuming code modification when modifying, resulting in a large amount of work.

Method used

Set up the corresponding IO description document for each functional module, record its input and output description information, and when an IO object generation event is detected, IO objects are generated based on these documents, and the input and output structure is dynamically adjusted to avoid fixed input and output through code.

Benefits of technology

The input and output modification process of functional modules is simplified, the workload and time are reduced, and the scalability and flexibility of the visual platform are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117453098B_ABST
    Figure CN117453098B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an input and output implementation method, device and electronic device applied to a visual platform. In this embodiment, a corresponding IO description document is set for the input and output of each functional module of the visual platform, and the IO description document records the description information of the input and output of the functional module. Then, when an IO object corresponding to the functional module is detected to generate an event, the IO object of the functional module is generated based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module, so that the input and output (IO) of the functional module is implemented through the IO description document, avoiding the problem caused by fixing the input and output (IO) of the functional module through code, that is, the modification is complicated, the workload is large and the time is long.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine vision, and in particular to an input / output (IO) implementation method, device, and electronic device applied to a vision platform. Background Art

[0002] The so-called visual platform is actually a visual processing toolbox that integrates many functional modules of different visual algorithms (for example, circle search module, graphic search module, variable calculation module, etc.), and supports processing the input image by using at least one functional module to obtain and output the processing results, thereby realizing the input and output IO of the visual platform.

[0003] However, each functional module generally requires fixed input and output (IO), and the fixed input and output (IO) required by the functional module are fixed when encoded. Once the functional module is modified, such as adding a shielded area input for the input requirement and adding an angle output for the output requirement, the above code needs to be modified accordingly. The modification is complicated, labor-intensive and time-consuming. Summary of the invention

[0004] In view of this, the embodiments of the present application provide an input and output (IO) implementation method, device and electronic device applied to a visual platform, so as to implement the input and output (IO) of a functional module through an IO description document, thereby avoiding the problems caused by fixing the input and output (IO) of the functional module through code.

[0005] According to a first aspect of an embodiment of the present application, there is provided an input / output IO implementation method applied to a visual platform, the method being applied to an electronic device in which a visual platform is deployed, the visual platform comprising a plurality of functional modules, the input / output of the functional modules having corresponding IO description documents, the IO description document corresponding to the input / output of any functional module being used to record the description information of the input / output of the functional module; the method comprising:

[0006] Detecting an IO object generation event corresponding to a functional module, if an IO object generation event corresponding to the functional module is detected, then loading an IO description document corresponding to the input and output of the functional module;

[0007] Based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module, the IO object of the functional module is generated; the IO object is used to indicate the input structure and output structure of the functional module, so that the functional module processes the input information that satisfies the input structure and outputs the corresponding output information according to the output structure after processing the subsequent input information, and the processing includes the processing operation corresponding to the function configured by the functional module.

[0008] According to a second aspect of an embodiment of the present application, an input / output IO implementation device applied to a visual platform is provided, the device being applied to an electronic device on which a visual platform is deployed, the visual platform comprising a plurality of functional modules, the input / output of the functional modules having corresponding IO description documents, the IO description document corresponding to the input / output of any functional module being used to record the description information of the input / output of the functional module; the device comprising:

[0009] A detection module is used to detect an IO object generation event corresponding to a functional module. If an IO object generation event corresponding to the functional module is detected, an IO description document corresponding to the input and output of the functional module is loaded;

[0010] An IO object generation module is used to generate an IO object of the functional module based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module; the IO object is used to indicate the input structure and output structure of the functional module, so that the functional module processes the input information that satisfies the input structure and outputs the corresponding output information according to the output structure, and the processing includes the processing operation corresponding to the function configured by the functional module.

[0011] According to a third aspect of an embodiment of the present application, there is provided an electronic device, the electronic device comprising: a processor and a memory;

[0012] Wherein, the memory is used to store machine executable instructions;

[0013] The processor is used to read and execute the machine executable instructions stored in the memory to implement the method as described in the first aspect.

[0014] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0015] In an embodiment of the present application, a corresponding IO description document is set for the input and output of each functional module of the visual platform, and the IO description document records the description information of the input and output of the functional module. Then, when an IO object generation event corresponding to the functional module is detected, the IO object of the functional module is generated based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module, thereby realizing the dynamic generation of the IO object of the functional module through the IO description document, avoiding the problems such as complex modification, large workload and long time consumption caused by fixing the IO of the functional module through code. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of the method provided in the embodiment of the present application.

[0017] Figure 2 This is an example diagram of a functional module provided in an embodiment of the present application.

[0018] Figure 3 This is a specific example diagram of the full dynamic IO implementation provided in the embodiment of the present application.

[0019] Figure 4 This is a device block diagram provided in an embodiment of the present application.

[0020] Figure 5 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0022] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0023] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0024] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.

[0025] The method provided in the embodiment of the present application is described below:

[0026] See also Figure 1 , Figure 1The method flow chart provided in the embodiment of the present application is applied to an electronic device deployed with a visual platform, as an embodiment, the electronic device here is, for example, a terminal, a server, etc., which is not specifically limited in this embodiment.

[0027] Here, the visual platform, also known as the visual processing toolbox, supports the application of multiple visual algorithms (reflected by functional modules) to the collected images for processing, and finally obtains certain specific processing results, such as: material position, fitting deviation, type and position of defects, characters in the image and other information.

[0028] Correspondingly, in this embodiment, the visual platform may include multiple functional modules. For example, the functional modules here may be, for example, a circle search module, a material position determination module, a character search module, etc., which are set on the visual platform, and the embodiments of the present application are not specifically limited. Optionally, the circle search module here can be used to search for a circle in the input according to the set parameters and output it; the material position determination module can be used to determine the target position such as the material position in the input according to the set parameters and output the position information (such as the position box); the character search module can be used to search for the target character in the input according to the set parameters and output it.

[0029] For example, Figure 2 A specific example diagram of a circle search module is shown as follows: Figure 2 As shown, the input of the circle search module is an image, and the output is the coordinates (x, y) of the center point of the found circle and the radius. The process executed by the circle search module may include: searching area, searching direction..., which is not specifically limited in the embodiments of the present application.

[0030] The output of the circle search module includes not only the related information of the found circle mentioned above, but also the module status. Here, the module status is used to indicate whether the circle is found. For example, if the circle is found, the module status is 1, and if not, the module status is 0.

[0031] For the above functional modules, their inputs and outputs are fixed in the code when they are encoded. If the input and / or output needs to be modified according to actual needs, for example, a shielding area is added to the input, an angle is added to the output, etc., then the above code needs to be modified accordingly. The modification is complicated, labor-intensive and time-consuming.

[0032] In order to solve the above technical problems, an embodiment of the present application sets a corresponding IO description document for the input and output of each functional module. The IO description document is used to record the description information of the input and output of the functional module. For example, the input description information is represented by "Input:..."; the output description information is represented by "Output:..."

[0033] Taking the circle search module as an example, the IO description document corresponding to the input and output of the circle search module can be: the input description information (recorded as Input) is: image, length, width, format; the output description information (recorded as Output) is: center coordinates, radius.

[0034] In this embodiment, the above-mentioned IO description document can be an XML document or a JSON document, which is not specifically limited in the embodiment of the present application.

[0035] like Figure 1 As shown, the process may include the following steps:

[0036] S110: Detecting an IO object generation event corresponding to a functional module. If an IO object generation event corresponding to the functional module is detected, an IO description document corresponding to the input and output of the functional module is loaded.

[0037] Exemplarily, in this embodiment, the IO object generating event corresponding to the detection function module may be to detect whether the visual platform is started, or whether the detection function module is loaded, etc., which is not specifically limited in the embodiment of the present application.

[0038] Here, the visual platform is activated when the user clicks the visual platform on the display interface of the electronic device. After the visual platform is activated, it is detected that the IO object generation events corresponding to all functional modules included in the visual platform are generated. The functional module is loaded when the user clicks the functional module on the display interface of the visual platform. At this time, only the IO object generation event corresponding to the clicked functional module is detected.

[0039] Based on the above description, detecting that the IO object generation event corresponding to the functional module is generated can specifically be: when it is detected that the visual platform is started, it is determined that the IO object generation event corresponding to the functional module is detected; and / or, when the functional module is loaded, it is determined that the IO object generation event corresponding to the functional module is detected.

[0040] In this embodiment, the IO description documents corresponding to the input and output of each functional module included in the visual platform are set in advance and stored locally. When it is detected that the IO object corresponding to the functional module generates an event, the IO description documents corresponding to the input and output of the functional module are obtained locally and loaded.

[0041] S120: Generate an IO object of the functional module based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module.

[0042] Exemplarily, in this embodiment, the IO object is used to indicate the input structure and output structure of the functional module, so that the functional module processes the input information that satisfies the input structure and outputs the corresponding output information according to the output structure, and the processing includes the processing operations corresponding to the functions configured by the functional module.

[0043] So far, completed Figure 1 The process shown.

[0044] pass Figure 1 It can be seen from the shown process that in the embodiment of the present application, a corresponding IO description document is set for the input and output of each functional module of the visual platform, and the IO description document records the description information of the input and output of the functional module. Then, when it is detected that the IO object corresponding to the functional module generates an event, the IO object of the functional module is generated based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module, thereby realizing the input and output (IO) of the functional module through the IO description document, avoiding the problems caused by fixing the input and output (IO) of the functional module through code, that is, complex modification, large workload and long time consumption.

[0045] As an optional implementation of an embodiment of the present application, if the input description information of a functional module is a custom input, the input description information recorded in the IO description document corresponding to the input and output of the functional module is empty or specified information; and / or, if the output description information of the functional module is a custom output, the output description information recorded in the IO description document corresponding to the input and output of the functional module is empty or specified information.

[0046] Exemplarily, in this embodiment, the user can customize the input and output of the functional module (i.e., fully dynamic IO), that is, initially, the input description information recorded in the IO description document corresponding to the input and output of the functional module is empty or is specified information and / or the output description information recorded in the IO description document corresponding to the input and output of the functional module is empty or is specified information.

[0047] Here, the specified information may be basic IO, such as the module status mentioned above, etc. The embodiment of the present application does not specifically limit the specified information.

[0048] After generating the IO object of the functional module, the input and output IO implementation method applied to the visual platform further includes:

[0049] First, output the display interface for displaying IO objects.

[0050] Secondly, when the input description information of the functional module is a custom input, respond to the configuration operation of the input description information of the functional module in the display interface used to display the IO object; and / or, when the output description information of the functional module is a custom input, respond to the configuration operation of the output description information of the functional module in the display interface used to display the IO object.

[0051] Again, based on the configuration operation of the input description information and / or the configuration operation of the output description information, update the input description information and / or output description information recorded in the IO description document corresponding to the input and output of the functional module, and return to the step of detecting the IO object corresponding to the functional module to generate an event.

[0052] Exemplarily, in this embodiment, after generating the IO object of the functional module, a display interface for displaying the IO object is output, and the user can perform input and / or output configuration operations on the display interface for displaying the IO object. Here, the configuration operation includes at least one of modification, addition, and deletion.

[0053] In this embodiment, after the user performs input and / or output configuration operations on the display interface for displaying IO objects, the visual platform on the electronic device updates the input description information and / or output description information recorded in the IO description document corresponding to the input and output of the functional module based on the configuration operation of the input description information and / or the configuration operation of the output description information, that is, saves the input and output configured by the user through the interface to the IO description document corresponding to the input and output of the functional module, thereby realizing the bidirectional generation of IO description documents and IO objects. Here, the updated IO description document is used for subsequent functional modules to generate IO objects.

[0054] For example, Figure 3 As shown, Figure 3 The figure shows a specific example of dynamic IO implementation. In this embodiment, dynamic IO refers to dynamic changes in input and output, such as variable calculation. For some functional modules, their IO is not preset at the beginning, and needs to be configured according to requirements when in use. This input and output that can be modified at will during runtime is called dynamic IO. The embodiment of the present application can adapt to some applications that have not appeared before by dynamically implementing the input and output IO of the functional module, thereby improving the scalability of the visual platform.

[0055] As an optional implementation of the embodiment of the present application, the input and output IO implementation method applied to the visual platform also includes:

[0056] First, in response to a viewing operation of an IO description document corresponding to an input and output of a functional module, input description information and output description information in the IO description document are displayed on a display interface for displaying the IO description document.

[0057] Secondly, in response to the configuration operation of the input description information and / or output description information in the IO description document in the display interface for displaying the IO description document, the input description information and output description information recorded in the IO description document corresponding to the input and output of the functional module are updated, and the step of detecting the IO object corresponding to the functional module to generate an event is returned.

[0058] Exemplarily, in this embodiment, the user can also modify the input and output of the functional module by directly modifying the IO description document. Specifically, the user can click on the IO description document corresponding to the input and output of the functional module in the interface of the visual platform to view the IO description document. In response to the viewing operation of the IO description document corresponding to the input and output of the functional module, the electronic device displays the input description information and output description information in the IO description document on the display interface for displaying the IO description document.

[0059] Exemplarily, in this embodiment, the configuration operation includes at least one of modification, addition, and deletion, which is not specifically limited in the embodiment of the present application.

[0060] In this embodiment, after the user performs configuration operations on the input description information and / or output description information in the IO description document, the input description information and output description information recorded in the IO description document corresponding to the input and output of the functional module are updated, and the updated IO description document is used for subsequent functional modules to generate IO objects.

[0061] As an optional implementation of the embodiment of the present application, the input description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved N input variables; and / or, the output description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved M output variables.

[0062] In this embodiment, the types of variables may include: floating-point variables, integer variables, etc., which are not specifically limited in the embodiment of the present application.

[0063] Exemplarily, in this embodiment, N is greater than or equal to 1. In this embodiment, the N input variables may be N input variables of the same type, for example, 16 floating-point input variables; or may be N input variables of different types, for example, 32 floating-point input variables and 32 integer input variables, which is not specifically limited in the embodiment of the present application.

[0064] Correspondingly, M is greater than or equal to 1, and the M output variables may be M output variables of the same type, or may be M output variables of different types, which is not specifically limited in the embodiments of the present application.

[0065] After generating the IO object of the functional module, the input and output IO implementation method applied to the visual platform further includes:

[0066] First, output the display interface for displaying IO objects.

[0067] Secondly, when the number of input variables displayed on the display interface for displaying IO objects is less than N, and / or the number of output variables displayed on the display interface for displaying IO objects is less than M, in response to an operation of adding input variables and / or output variables of a functional module on the display interface for displaying IO objects, the added input variables and / or output variables are displayed on the display interface for displaying IO objects; in response to an operation of deleting input variables and / or output variables of a functional module on the display interface for displaying IO objects, the deleted input variables and / or output variables are hidden on the display interface for displaying IO objects.

[0068] Exemplarily, in this embodiment, after generating the IO object of the functional module, a display interface for displaying the IO object is output. At this time, the number of input variables displayed on the display interface for displaying the IO object is less than N, and / or the number of output variables displayed on the display interface for displaying the IO object is less than M.

[0069] Based on the above description, in this embodiment, the user operates the input variables and / or output variables of the functional module in the display interface for displaying IO objects. For example, the user adds the input variables and / or output variables of the functional module in the display interface for displaying IO objects, and the added input variables and / or output variables are displayed on the display interface for displaying IO objects. For another example, the user deletes the input variables and / or output variables of the functional module in the display interface for displaying IO objects, and the deleted input variables and / or output variables are hidden on the display interface for displaying IO objects.

[0070] As an embodiment, the above-mentioned functional module may be one of the modules in a designated functional group (Group). Here, the functional group is configured to implement designated business functions such as searching for camera modules, etc. Based on this, the IO objects of the above-mentioned functional modules in the functional group and the IO objects of other functional modules in the functional group cooperate to implement the above-mentioned designated business functions such as searching for camera modules, etc. The generation method of the IO objects of other functional modules in the functional group is similar to the generation method of the IO objects of the above-mentioned functional modules, and examples are not given here one by one. By introducing the functional group, it is possible to combine multiple algorithm modules to realize customized functions.

[0071] As another embodiment, the above-mentioned functional module may also be a single module independent of any functional group. Here, the IO object of the functional module is used to implement the functions configured by the functional module, such as searching for a circle.

[0072] Corresponding to the embodiments of the aforementioned method, this specification also provides embodiments of a device and a terminal to which it is applied.

[0073] See also Figure 4 , Figure 4 The device structure diagram provided in the embodiment of the present application. The device is applied to an electronic device deployed with a visual platform, the visual platform includes multiple functional modules, the input and output of the functional modules have corresponding IO description documents, and the IO description document corresponding to the input and output of any functional module is used to record the description information of the input and output of the functional module; the device may include:

[0074] A detection module is used to detect an IO object generation event corresponding to a functional module. If an IO object generation event corresponding to the functional module is detected, an IO description document corresponding to the input and output of the functional module is loaded;

[0075] An IO object generation module is used to generate an IO object of a functional module based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module; the IO object is used to indicate the input structure and output structure of the functional module, so that the functional module processes the input information that satisfies the input structure and outputs the corresponding output information according to the output structure, and the processing includes the processing operation corresponding to the function configured by the functional module.

[0076] As an optional implementation of the embodiment of the present application, if the input description information of the function module is a custom input, the input description information recorded in the IO description document corresponding to the input and output of the function module is empty or specified information; and / or, if the output description information of the function module is a custom output, the output description information recorded in the IO description document corresponding to the input and output of the function module is empty or specified information;

[0077] After generating the IO object of the functional module, the input and output IO implementation device applied to the visual platform further includes:

[0078] A display interface output module, used to output a display interface for displaying IO objects;

[0079] a configuration operation response module, used to respond to a configuration operation on the input description information of the function module on a display interface for displaying IO objects when the input description information of the function module is a custom input; and / or to respond to a configuration operation on the output description information of the function module on a display interface for displaying IO objects when the output description information of the function module is a custom input; the configuration operation includes at least one of modification, addition, and deletion;

[0080] The first IO description document update module is used to update the input description information and / or output description information recorded in the IO description document corresponding to the input and output of the functional module based on the configuration operation of the input description information and / or the configuration operation of the output description information, and return to the step of detecting the IO object corresponding to the functional module to generate an event.

[0081] As an optional implementation of the embodiment of the present application, the input and output IO implementation device applied to the visual platform also includes:

[0082] An IO description document viewing module, used to display input description information and output description information in the IO description document on a display interface used to display the IO description document in response to a viewing operation of the IO description document corresponding to the input and output of the functional module;

[0083] The second IO description document update module is used to respond to the configuration operation of the input description information and / or output description information in the IO description document in the display interface for displaying the IO description document, update the input description information and output description information recorded in the IO description document corresponding to the input and output of the functional module, and return to the step of detecting the IO object corresponding to the functional module to generate an event; the configuration operation includes at least one of modification, addition, and deletion.

[0084] As an optional implementation of the embodiment of the present application, the input description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved N input variables; and / or, the output description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved M output variables; N is greater than or equal to 1; M is greater than or equal to 1;

[0085] After generating the IO object of the functional module, the input and output IO implementation device applied to the visual platform further includes:

[0086] A display interface output module, used to output a display interface for displaying IO objects;

[0087] An adding and deleting module is used to display the added input variables and / or output variables on the display interface for displaying IO objects in response to an operation of adding input variables and / or output variables of a functional module on the display interface for displaying IO objects; and to hide the deleted input variables and / or output variables on the display interface for displaying IO objects in response to an operation of deleting input variables and / or output variables of a functional module on the display interface for displaying IO objects when the number of input variables displayed on the display interface for displaying IO objects is greater than or equal to 1 and less than N, and / or the number of output variables displayed on the display interface for displaying IO objects is greater than or equal to 1 and less than M.

[0088] As an optional implementation of the embodiment of the present application, the above detection module is specifically used for:

[0089] When it is detected that the visual platform is started, it is determined that an IO object corresponding to the functional module is detected to generate an event; and / or,

[0090] When the function module is loaded, it is determined that an IO object corresponding to the function module generates an event.

[0091] As an embodiment, the function module is one of the modules in a specified function group Group, the function group is configured to implement a specified business function, and the IO object of the function module cooperates with the IO objects of other function modules in the function group to implement the specified business function; or,

[0092] The functional module is a module independent of any functional group, and the IO object of the functional module is used to implement the configured function of the functional module.

[0093] So far, completed Figure 4 Structural description of the device shown.

[0094] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0095] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0096] Correspondingly, the embodiment of the present application also provides Figure 4 The hardware structure diagram of the device shown is as follows Figure 5 As shown, the electronic device may be a device for implementing the above method. Figure 5 As shown, the hardware structure includes: a processor and a memory.

[0097] Wherein, the memory is used to store machine executable instructions;

[0098] The processor is used to read and execute the machine executable instructions stored in the memory to implement the corresponding input and output IO implementation method embodiment applied to the visual platform as shown above.

[0099] As an embodiment, the memory may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the memory may be: a volatile memory, a non-volatile memory or a similar storage medium. Specifically, the memory may be a RAM (Random Access Memory), a flash memory, a storage drive (such as a hard disk drive), a solid state drive, any type of storage disk (such as a CD, a DVD, etc.), or a similar storage medium, or a combination thereof.

[0100] So far, completed Figure 5 Description of the electronic device shown.

[0101] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0102] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0103] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0104] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. An input and output IO implementation method applied to a visual platform, characterized in that: The method is applied to an electronic device deployed with a visual platform, wherein the visual platform includes a plurality of functional modules, the input and output of the functional modules have corresponding IO description documents, and the IO description document corresponding to the input and output of any functional module is used to record the description information of the input and output of the functional module; the dynamic input and output of the functional module are realized through the IO description document of the functional module; wherein the dynamic input and output of the functional module include input and output that can be configured at runtime, and the configuration includes at least one of modification, addition, and deletion; The method includes: Detecting an IO object generation event corresponding to a functional module, if an IO object generation event corresponding to the functional module is detected, then loading an IO description document corresponding to the input and output of the functional module; Based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module, the IO object of the functional module is generated; the IO object is used to indicate the input structure and output structure of the functional module, so that the functional module processes the input information that satisfies the input structure and outputs the corresponding output information according to the output structure after processing the subsequent input information, and the processing includes the processing operation corresponding to the function configured by the functional module.

2. The method according to claim 1, characterized in that If the input description information of the functional module is a custom input, the input description information recorded in the IO description document corresponding to the input and output of the functional module is empty or specified information; and / or, if the output description information of the functional module is a custom output, the output description information recorded in the IO description document corresponding to the input and output of the functional module is empty or specified information; After generating the IO object of the functional module, the method further comprises: Output a display interface for displaying the IO object; When the input description information of the functional module is a custom input, responding to a configuration operation on the input description information of the functional module on a display interface for displaying the IO object; and / or, when the output description information of the functional module is a custom input, responding to a configuration operation on the output description information of the functional module on a display interface for displaying the IO object; Based on the configuration operation of the input description information and / or the configuration operation of the output description information, update the input description information and / or output description information recorded in the IO description document corresponding to the input and output of the functional module, and return to the step of detecting the IO object generation event corresponding to the functional module.

3. The method according to claim 1, characterized in that The method further comprises: In response to a viewing operation of the IO description document corresponding to the input and output of the functional module, displaying input description information and output description information in the IO description document on a display interface for displaying the IO description document; In response to a configuration operation on the input description information and / or output description information in the IO description document on a display interface for displaying the IO description document, the input description information and output description information recorded in the IO description document corresponding to the input and output of the functional module are updated, and the step of detecting an IO object generating an event corresponding to the functional module is returned.

4. The method according to claim 1, characterized in that: The input description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved N input variables; and / or, the output description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved M output variables; N is greater than or equal to 1; M is greater than or equal to 1; After generating the IO object of the functional module, the method further comprises: Output a display interface for displaying the IO object; When the number of input variables displayed on the display interface for displaying the IO object is less than N, and / or the number of output variables displayed on the display interface is less than M, in response to an operation of adding input variables and / or output variables of the functional module on the display interface for displaying the IO object, the added input variables and / or output variables are displayed on the display interface for displaying the IO object; in response to an operation of deleting input variables and / or output variables of the functional module on the display interface for displaying the IO object, the deleted input variables and / or output variables are hidden on the display interface for displaying the IO object.

5. The method according to claim 1, characterized in that The detecting that the IO object corresponding to the functional module generates an event includes: When it is detected that the visual platform is started, it is determined that an IO object corresponding to a functional module is detected to generate an event; and / or, When the function module is loaded, it is determined that an IO object generation event corresponding to the function module is detected.

6. The method according to claim 1, characterized in that The function module is one of the modules in a specified function group Group, the function group is configured to implement a specified business function, and the IO object of the function module cooperates with the IO objects of other function modules in the function group to implement the specified business function; or The functional module is a module independent of any functional group, and the IO object of the functional module is used to implement the configured function of the functional module.

7. An input / output (IO) implementation device applied to a visual platform, characterized in that: The device is applied to an electronic device deployed with a visual platform, wherein the visual platform includes a plurality of functional modules, the input and output of the functional modules have corresponding IO description documents, and the IO description document corresponding to the input and output of any functional module is used to record the description information of the input and output of the functional module; the dynamic input and output of the functional module are realized through the IO description document of the functional module; wherein the dynamic input and output of the functional module include input and output that can be configured at runtime, and the configuration includes at least one of modification, addition, and deletion; The device includes: A detection module is used to detect an IO object generation event corresponding to a functional module. If an IO object generation event corresponding to the functional module is detected, an IO description document corresponding to the input and output of the functional module is loaded; An IO object generation module is used to generate an IO object of the functional module based on the description information of the input and output of the functional module recorded in the IO description document corresponding to the input and output of the functional module; the IO object is used to indicate the input structure and output structure of the functional module, so that the functional module processes the input information that satisfies the input structure and outputs the corresponding output information according to the output structure, and the processing includes the processing operation corresponding to the function configured by the functional module.

8. The device according to claim 7, characterized in that If the input description information of the functional module is a custom input, the input description information recorded in the IO description document corresponding to the input and output of the functional module is empty or specified information; and / or, if the output description information of the functional module is a custom output, the output description information recorded in the IO description document corresponding to the input and output of the functional module is empty or specified information; After generating the IO object of the functional module, the apparatus further comprises: A display interface output module, used to output a display interface for displaying the IO object; a configuration operation response module, used to respond to a configuration operation on the input description information of the function module on a display interface for displaying the IO object when the input description information of the function module is a custom input; and / or to respond to a configuration operation on the output description information of the function module on a display interface for displaying the IO object when the output description information of the function module is a custom input; The first IO description document updating module is used to update the input description information and / or output description information recorded in the IO description document corresponding to the input and output of the functional module based on the configuration operation of the input description information and / or the configuration operation of the output description information, and return to the step of detecting the IO object generating event corresponding to the functional module.

9. The device according to claim 7, characterized in that The device also includes: An IO description document viewing module, used for displaying input description information and output description information in the IO description document on a display interface used for displaying the IO description document in response to a viewing operation of the IO description document corresponding to the input and output of the functional module; The second IO description document updating module is used to update the input description information and output description information recorded in the IO description document corresponding to the input and output of the functional module in response to the configuration operation of the input description information and / or output description information in the IO description document on the display interface for displaying the IO description document, and return to the step of detecting the IO object generating event corresponding to the functional module.

10. The device according to claim 7, characterized in that The input description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved N input variables; and / or, the output description information recorded in the IO description document corresponding to the input and output of the functional module is the reserved M output variables; N is greater than or equal to 1; M is greater than or equal to 1; After generating the IO object of the functional module, the apparatus further comprises: A display interface output module, used to output a display interface for displaying the IO object; An adding and deleting module is used to display the added input variables and / or output variables on the display interface for displaying the IO object in response to an operation of adding the input variables and / or output variables of the functional module on the display interface for displaying the IO object; and to hide the deleted input variables and / or output variables on the display interface for displaying the IO object in response to an operation of deleting the input variables and / or output variables of the functional module on the display interface.

11. The device according to claim 7, characterized in that The function module is one of the modules in a specified function group Group, the function group is configured to implement a specified business function, and the IO object of the function module cooperates with the IO objects of other function modules in the function group to implement the specified business function; or The functional module is a module independent of any functional group, and the IO object of the functional module is used to implement the configured function of the functional module.

12. An electronic device, characterized in that: The electronic device includes: a processor and a memory; Wherein, the memory is used to store machine executable instructions; The processor is used to read and execute the machine executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.