A control method and system for a micro electromagnetic valve processing device
By combining contact and non-contact oiling technologies and using image processing to identify non-uniform areas, uniformity and precise control of oiling in miniature solenoid valves are achieved. This solves the problems of insufficient oiling position and uniformity in existing technologies, reduces costs and complexity, and improves equipment applicability and flexibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN YUTIAN TECH CO LTD
- Filing Date
- 2026-04-30
- Publication Date
- 2026-07-31
AI Technical Summary
The existing oiling process for miniature solenoid valves uses a contact method, which is highly dependent on the characteristics of the grease, has poor adaptability, insufficient precision in controlling the amount of grease, and makes it difficult to guarantee the oiling position and uniformity. It also results in long production changeover times and increases the complexity of management and production.
A combination of contact and non-contact oiling methods is adopted. The initial position and oiling contour information are obtained through an image acquisition device, the initial contact oil amount is calculated, and after the first oiling operation, image processing is performed to identify non-uniform areas. Then, precise oiling is performed through a piezoelectric jet valve to achieve lubrication uniformity and precise control of grease amount.
It improves the uniformity of oil application and lubrication, reduces grease waste, lowers costs, enhances the applicability and flexibility of equipment, reduces the complexity of management and production, and saves production changeover time.
Smart Images

Figure CN122488554A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of air pump manufacturing technology, and in particular to a control method for a micro solenoid valve processing equipment, a control system for the micro solenoid valve processing equipment, a computer device, and a storage medium. Background Technology
[0002] A miniature solenoid valve is a basic automated component that uses electromagnetic force to control the on / off or direction switching of fluids (air, water, oil, steam, etc.). It is characterized by its small size, compact structure, and sensitive operation. Simply put, it is a miniature switch controlled by electricity, but this switch controls the flow of liquids or gases, not current. The equipment involved in producing these miniature solenoid valves mainly includes automated assembly lines and punching machines. Automated assembly lines for miniature solenoid valves can automate the entire process from feeding, oiling, forming, assembly, and tray loading. However, existing oiling processes generally use contact-based methods, which are highly dependent on the properties of the oil, have poor adaptability, insufficient precision in oil quantity control, difficulty in ensuring oiling position and uniformity, long changeover times, poor flexibility, and increase the complexity of management and production. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a control method for a micro solenoid valve processing equipment, a control system for a micro solenoid valve processing equipment, a computer device, and a storage medium to overcome or at least partially solve the above problems.
[0004] To address the aforementioned problems, this invention discloses a control method for a micro electromagnetic valve processing equipment. The micro electromagnetic valve processing equipment includes a valve body oiling device and an image acquisition device. The valve body oiling device is equipped with a piezoelectric injection valve and a metering pump, comprising: The initial position and oiling contour information of the micro solenoid valve were obtained; The initial contact oil amount is calculated based on the initial position and oiling contour information; The metering pump is controlled to perform the first oiling operation on the mating surface of the iron core and the valve body according to the initial contact oil volume, and the image acquisition device is controlled to obtain the image of the mating surface after the first oiling operation. The mating surface image after the first oiling operation is processed to obtain the precise oiling area; The piezoelectric jet valve is controlled to perform a second oiling operation on the precise oiling area, resulting in an oiled iron core and valve body.
[0005] Preferably, obtaining the initial position and oiling contour information of the micro solenoid valve includes: The image acquisition device obtains an initial image of the mating surface between the iron core and the valve body; Determine the initial point coordinates and a series of coordinate points of the mating surface based on the initial image; Based on the series of coordinate points, the oiling profile information of the mating surfaces of the iron core and the valve body is generated.
[0006] Preferably, calculating the initial contact oil amount based on the initial position and oiling contour information includes: Obtain a mapping table of preset length and preset oil amount for the pre-set oiling contour information; The contour length identified based on the initial position and the oiling contour information; By querying the mapping table using the contour length, the preset oil quantity corresponding to the contour length is determined as the initial contact oil quantity.
[0007] Preferably, the step of controlling the metering pump to perform a first oiling operation on the mating surface of the iron core and valve body based on the initial contact oil volume, and controlling the image acquisition device to obtain an image of the mating surface after the first oiling operation, includes: The starting point is determined by controlling the quantitative pump to move to the initial point coordinates of the mating surface between the iron core and the valve body. The metering pump is controlled to move at the series of coordinate points to perform the first oiling operation on the mating surfaces of the iron core and the valve body. The control image acquisition device captures images of the mating surfaces after the first oiling operation.
[0008] Preferably, the step of performing distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area includes: Convert the image of the mating surface after the first oiling operation into a label image; A graph index for the mating surface image is constructed using the label graph, and the subgraph distribution is calculated; Image classification is performed based on subgraph distribution to obtain classified images. Non-uniformly distributed regions in the classified images are then used to determine the precise areas to be coated with oil.
[0009] Preferably, the step of constructing a graph index for the mating surface image using the label graph and calculating the subgraph distribution includes: Calculate the distance correction amount corresponding to the edge label in the label graph; The distance correction amount is added to the annotation information of the edge label or vertex label to obtain the corrected label map; A graph index for the mating surface image is constructed using the corrected label graph, and the subgraph distribution is calculated.
[0010] Preferably, the step of performing image classification based on subgraph distribution to obtain a classified image, and determining the precise oiling area from the non-uniformly distributed region in the classified image, includes: The sub-image distribution feature vector is input into a pre-trained classifier to classify the image region, resulting in a classified image. The non-uniformly distributed region in the classified image is then used to determine the precise oiling area.
[0011] This invention discloses a control system for a micro electromagnetic valve processing equipment. The micro electromagnetic valve processing equipment includes a valve body oiling device and an image acquisition device. The valve body oiling device is equipped with a piezoelectric jet valve and a metering pump, and includes: The acquisition module is used to acquire the initial position and oiling contour information of the micro solenoid valve. The calculation module is used to calculate the initial contact oil amount based on the initial position and oiling contour information; The first oiling operation module is used to control the metering pump to perform the first oiling operation on the mating surface of the iron core and the valve body according to the initial contact oil volume, and to control the image acquisition device to obtain the mating surface image after the first oiling operation. The distribution image processing module is used to perform distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area. The second oiling operation module is used to control the piezoelectric jet valve to perform a second oiling operation on the precise oiling area, resulting in an oiled iron core and valve body.
[0012] This invention also discloses a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the control steps of the micro electromagnetic valve processing equipment described above.
[0013] This invention also discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the control steps of the aforementioned micro-electromagnetic valve processing equipment.
[0014] The embodiments of the present invention have the following advantages: In this embodiment of the invention, the control method of the micro solenoid valve processing equipment includes: acquiring the initial position and oiling contour information of the micro solenoid valve for oiling; calculating the initial contact oil amount based on the initial position and oiling contour information; controlling the metering pump to perform a first oiling operation on the mating surface of the iron core and valve body based on the initial contact oil amount, and controlling the image acquisition device to obtain an image of the mating surface after the first oiling operation; performing distribution image processing on the mating surface image after the first oiling operation to obtain a precise oiling area; controlling the piezoelectric jet valve to perform a second oiling operation on the precise oiling area to obtain the oiled iron core and valve body; by combining contact oiling and non-contact oiling, the uniformity of oiling lubrication at the mating point of the valve body and iron core is improved, while the amount of grease can be precisely controlled, reducing grease waste and reducing the amount of excess grease used, effectively reducing costs; improving the uniformity of oiling lubrication, ensuring the oiling lubrication effect, applicable to various different workpieces and working conditions, improving the applicability and flexibility of the equipment, reducing the complexity of management and production, and saving production changeover time and costs. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating the steps of a control method embodiment for a micro electromagnetic valve processing equipment according to an embodiment of the present invention. Figure 2 This is a schematic diagram of a label image according to an embodiment of the present invention; Figure 3 This is a structural block diagram of a control system embodiment of a micro solenoid valve processing equipment according to an embodiment of the present invention; Figure 4 This is an internal structural diagram of a computer device according to one embodiment. Detailed Implementation
[0017] To make the technical problems, technical solutions, and beneficial effects solved by the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.
[0018] In this embodiment of the invention, both a contact oiling device and a non-contact oiling device are simultaneously installed in the processing equipment. By combining these two methods, the uniformity of oiling lubrication at the valve body and iron core mating area is improved. Simultaneously, the amount of grease can be precisely controlled, reducing waste and excess grease usage, thus effectively lowering costs. Specifically, the contact oiling method, using a metering pump, is used to perform a rough coating operation on the valve body and iron core mating area. However, due to equipment vibration and other factors, the uniformity of the contact oiling is insufficient. In this embodiment, image classification is used to identify areas requiring further oiling. Then, a non-contact oiling device, namely a piezoelectric jet valve, is used to apply additional grease to these areas, improving the uniformity of oiling lubrication and ensuring effective lubrication. This method is applicable to various workpieces and working conditions, improving the applicability and flexibility of the equipment, reducing management and production complexity, and saving production changeover time and costs.
[0019] Reference Figure 1 This diagram illustrates a flowchart of a control method embodiment for a micro electromagnetic valve processing equipment according to an embodiment of the present invention. The micro electromagnetic valve processing equipment includes a valve body oiling device and an image acquisition device. The valve body oiling device is equipped with a piezoelectric injection valve and a metering pump, and may specifically include the following steps: Step 101: Obtain the initial position and oiling contour information of the micro solenoid valve; In this embodiment of the invention, the micro solenoid valve processing equipment can refer to a micro solenoid valve automated assembly line. This assembly line is mainly used to assemble the valve body, iron core, and other components (such as sealing rings, valve covers, screws, etc.) into a micro solenoid valve. In this embodiment of the invention, the micro solenoid valve processing equipment includes a valve body oiling device and an image acquisition device. The valve body oiling device is equipped with a piezoelectric jet valve and a metering pump. The valve body oiling device refers to the device used for oiling the mating surfaces of the iron core and the valve body. It can include various contact oiling devices or non-contact oiling devices such as piezoelectric jet valves or metering pumps. This embodiment of the invention does not impose too many limitations on this. Preferably, the piezoelectric jet valve is a non-contact oiling device. It is a device that uses the inverse piezoelectric effect of piezoelectric ceramics as a driving source to push the valve core and nozzle through high-frequency, rapid micro-displacement, and sprays a small amount of liquid (lubricating oil, etc.) at high speed in the form of droplets onto the target substrate.
[0020] A metering pump is a contact-type oiling device, which can be a screw pump or a gear pump. This invention does not impose too many restrictions on this. The screw pump can refer to a rotary positive displacement pump. Its core principle is to use one or more helical rotors (screws) to rotate synchronously in the stator (or bushing) to generate continuous sealed cavities. These sealed cavities smoothly push the fluid from the suction end to the discharge end along the axial direction.
[0021] In addition, the miniature solenoid valve processing equipment may also include an image acquisition device, which may refer to a camera, including components such as a lens, an image sensor, and a signal processing and control system. The embodiments of the present invention do not impose too many restrictions on this.
[0022] In this embodiment of the invention, obtaining the initial position and oiling contour information of the micro solenoid valve includes: obtaining an initial image of the mating surface of the iron core and the valve body through the image acquisition device; determining the initial point coordinates and a series of coordinate points of the mating surface based on the initial image; and generating the oiling contour information of the mating surface of the iron core and the valve body based on the series of coordinate points.
[0023] In the processing and assembly process, the equipment control system can first control the image acquisition device to acquire the initial image of the mating surface of the iron core and the valve body; determine any point on the mating surface as the initial point coordinates, and then, with the initial point coordinates as the starting point, determine the coordinates of adjacent points in the image as a series of coordinate points, and then, with the initial point coordinates as the ending point, a coating profile can be formed. That is, the coating profile of the mating surface of the iron core and the valve body is formed by multiple series of coordinate points. The coating profile can be used to calculate the amount of grease applied in the first contact, and this initial position is the initial point coordinates.
[0024] Step 102: Calculate the initial contact oil amount based on the initial position and oiling contour information; Further applied to embodiments of the present invention, the initial contact oil amount is calculated based on the initial position and oiling contour information. This initial contact oil amount refers to the amount of grease applied during the first contact oiling using a metering pump. The specific calculation method is as follows: Calculating the initial contact oil amount based on the initial position and oiling contour information includes: obtaining a pre-set mapping table between the preset length of the oiling contour information and the preset oil amount; identifying the contour length based on the initial position and oiling contour information; querying the mapping table through the contour length to determine the preset oil amount corresponding to the contour length as the initial contact oil amount.
[0025] First, a correspondence between length and oil volume can be established. Based on this correspondence, the initial contact oil volume corresponding to the contour length can be obtained. The contour length can be the shape length in the oiling contour. It should be noted that there can be multiple oiling contour information, and multiple oiling contour information constitute the area of the mating surface.
[0026] Step 103: Control the metering pump to perform the first oiling operation on the mating surface of the iron core and valve body according to the initial contact oil volume, and control the image acquisition device to obtain the mating surface image after the first oiling operation. After obtaining the initial contact oil volume, the metering pump can be controlled to perform the first oiling operation on the mating surface of the iron core and the valve body. After the first oiling operation is completed, the image acquisition device can be controlled to obtain the image of the mating surface after the first oiling operation. Specifically, in this embodiment of the invention, controlling the metering pump to perform a first oiling operation on the mating surface of the iron core and the valve body based on the initial contact oil volume, and controlling the image acquisition device to obtain an image of the mating surface after the first oiling operation, includes: The starting point is determined by controlling the quantitative pump to move to the initial point coordinates of the mating surface between the iron core and the valve body. The metering pump is controlled to move at the series of coordinate points to perform the first oiling operation on the mating surfaces of the iron core and the valve body. The control image acquisition device captures images of the mating surfaces after the first oiling operation.
[0027] During the first oiling operation, the system first moves the metering pump to the initial point coordinates of the mating surface of the iron core and the valve body, and performs the oiling operation with the initial point coordinates as the starting point. The initial point coordinates can be calibrated to obtain the starting point corresponding to the initial point coordinates. This embodiment of the invention does not impose too many restrictions on this.
[0028] Step 104: Perform distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area; After obtaining the mating surface image after the first oiling operation, image processing is performed on the mating surface image after the first oiling operation to identify the precise oiling area. The precise oiling area may refer to the un-oiled area or the area that was missing or omitted after the first oiling operation.
[0029] Specifically, in this embodiment of the invention, the step of performing distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area includes: converting the mating surface image after the first oiling operation into a label image; constructing a graph index for the mating surface image using the label image, and calculating the sub-graph distribution; performing image classification based on the sub-graph distribution to obtain a classified image, and determining the precise oiling area from the non-uniformly distributed areas in the classified image.
[0030] Further applied to embodiments of the present invention, the step of performing image classification based on subgraph distribution to obtain a classified image, and determining the precise oiling area from the non-uniformly distributed region in the classified image, includes: The sub-image distribution feature vector is input into a pre-trained classifier to classify the image region, resulting in a classified image. The non-uniformly distributed region in the classified image is then used to determine the precise oiling area.
[0031] In a specific example of an embodiment of the present invention, the precise oiling area can be determined by the following steps: First, the mating surface image after the first oiling operation needs to be converted into a label image, which may include vertices, edges, vertex labels and edge labels.
[0032] Specifically, a vertex refers to each region after the image is segmented into multiple regions (e.g., using a superpixel segmentation algorithm); while an edge refers to the connection established between two adjacent regions.
[0033] Vertex labels are annotations based on the pixel features (such as grayscale value, color, and texture) of each region. For example, an oiled area may have a high grayscale value (oil reflection) or a specific color. An unoiled area or a non-uniform area may have a low grayscale value or a metallic base color.
[0034] Edge labels are annotations based on the similarity between regions (such as color differences and texture differences).
[0035] Furthermore, a graph index is constructed for the label graph using the BGLI (Build Graph Location Index) algorithm to efficiently manage subgraph data. First, multiple subgraphs are sampled from the label graph to form a subgraph list. The label graph and the subgraph list are input into the BGLI algorithm model, and the graph likelihood function value and vertex degree mapping function value of each subgraph are calculated as index keys. Subgraphs with the same key value are grouped to obtain multiple output index structures.
[0036] On the other hand, the subgraph distribution is calculated using the ESGS (Estimate Sub Graphon Spark) algorithm. The labeled graph is input into the ESGS algorithm, and after the Map and Reduce phases, the output subgraph distribution feature vector is obtained. The subgraph distribution feature vector represents the probability of occurrence of each subgraph type.
[0037] The Map phase involves sampling subgraphs based on random walks to ensure subgraph connectivity, and calling the BGLI algorithm to classify and count the subgraphs. The Reduce phase merges subgraph data from different labeled graphs and performs isomorphic testing on subgraphs in the same group (prioritizing subgraphs with similar frequencies).
[0038] Specifically applied in this embodiment of the invention, the sub-image distribution feature vector is input into the classifier to classify the image region: the label is binary classification: oiled / unoiled (non-uniform oiling), the precise oiled region is predicted, the local sub-image distribution of each region (vertex) of the current image is extracted, and the classifier is used to predict whether the region belongs to the oiled region.
[0039] The classification results are mapped back to the image space to generate a binary mask: the oiled area is represented as white (1), and the non-oiled area (non-uniform oiling) is represented as black (0). The continuity of the region is optimized by morphological operations (such as closing operation) to obtain the final accurate oiled area. A pre-trained classifier can refer to a classifier trained using historical data (images of known painted areas). It can be an SVM classifier or a Bayesian classifier. This embodiment of the invention does not impose too many restrictions on this.
[0040] In a preferred embodiment of the present invention, referring to Figure 2 The diagram illustrates a label graph according to an embodiment of the present invention. The step of constructing a graph index for the mating surface image using the label graph and calculating the subgraph distribution includes: calculating the distance correction amount corresponding to the edge labels in the label graph; adding the distance correction amount to the annotation information of the edge labels or vertex labels to obtain a corrected label graph; and constructing a graph index for the mating surface image using the corrected label graph and calculating the subgraph distribution.
[0041] Firstly, the distance correction amount corresponding to the edge label in the label diagram can be used. Furthermore, this distance correction amount can also be a pre-set amount; this embodiment of the invention does not impose excessive restrictions on this. Figure 2 As shown, the distance correction is also set as the labeling information of the edge labels. A and B represent the original vertex labels, and D represents the vertex label corresponding to the distance correction. This results in a corrected label map, which improves the accuracy of the samples and enhances the accuracy and robustness of the model.
[0042] Step 105: Control the piezoelectric jet valve to perform a second oiling operation on the precise oiling area to obtain the oiled iron core and valve body.
[0043] After obtaining the precise oiling area, the piezoelectric injection valve is controlled to perform a second oiling operation on the precise oiling area to obtain the oiled iron core and valve body. The amount of oil injected by the piezoelectric injection valve can be any amount set by those skilled in the art according to the actual situation. This embodiment of the invention does not impose too many restrictions on this.
[0044] In this embodiment of the invention, the control method of the micro solenoid valve processing equipment includes: acquiring the initial position and oiling contour information of the micro solenoid valve for oiling; calculating the initial contact oil amount based on the initial position and oiling contour information; controlling the metering pump to perform a first oiling operation on the mating surface of the iron core and valve body based on the initial contact oil amount, and controlling the image acquisition device to obtain an image of the mating surface after the first oiling operation; performing distribution image processing on the mating surface image after the first oiling operation to obtain a precise oiling area; controlling the piezoelectric jet valve to perform a second oiling operation on the precise oiling area to obtain the oiled iron core and valve body; by combining contact oiling and non-contact oiling, the uniformity of oiling lubrication at the mating point of the valve body and iron core is improved, while the amount of grease can be precisely controlled, reducing grease waste and reducing the amount of excess grease used, effectively reducing costs; improving the uniformity of oiling lubrication, ensuring the oiling lubrication effect, applicable to various different workpieces and working conditions, improving the applicability and flexibility of the equipment, reducing the complexity of management and production, and saving production changeover time and costs.
[0045] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0046] Reference Figure 3 This diagram illustrates a structural block diagram of a control system embodiment for a micro electromagnetic valve processing equipment according to an embodiment of the present invention. The micro electromagnetic valve processing equipment includes a valve body oiling device and an image acquisition device. The valve body oiling device is equipped with a piezoelectric injection valve and a metering pump, and may specifically include the following modules: The acquisition module 301 is used to acquire the initial position and oiling contour information of the micro solenoid valve. Calculation module 302 is used to calculate the initial contact oil amount based on the initial position and oiling contour information; The first oiling operation module 303 is used to control the metering pump to perform the first oiling operation on the mating surface of the iron core and the valve body according to the initial contact oil amount, and to control the image acquisition device to obtain the mating surface image after the first oiling operation. The distribution image processing module 304 is used to perform distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area. The second oiling operation module 305 is used to control the piezoelectric jet valve to perform a second oiling operation on the precise oiling area, so as to obtain the oiled iron core and valve body.
[0047] Preferably, the acquisition module includes: The initial image submodule is used to obtain an initial image of the mating surface between the iron core and the valve body through the image acquisition device; The determination submodule is used to determine the initial point coordinates and a series of coordinate points of the mating surface based on the initial image; The generation submodule is used to generate the oiling contour information of the mating surfaces of the iron core and the valve body based on the series of coordinate points.
[0048] Preferably, the computing module includes: The preset submodule is used to obtain a mapping table of preset length and preset oil amount for the preset oiling contour information; The identification submodule is used to identify the contour length based on the initial position and the oiling contour information; The query submodule is used to query the mapping table by the contour length and determine the preset oil quantity corresponding to the contour length as the initial contact oil quantity.
[0049] Preferably, the first oiling operation module includes: The first control submodule is used to control the metering pump to move to the initial point coordinates of the mating surface of the iron core and the valve body as the starting point; The second control submodule is used to control the quantitative pump to move at the series of coordinate points to perform the first oiling operation on the mating surface of the iron core and the valve body. The imaging submodule is used to control the image acquisition device to capture images of the mating surface after the first oiling operation.
[0050] Preferably, the distributed image processing module includes: The conversion submodule is used to convert the mating surface image after the first oiling operation into a label image; The graph indexing submodule is used to construct a graph index for the mating surface image using the label graph and to calculate the subgraph distribution; The determination submodule is used to classify images based on the subgraph distribution, obtain classified images, and determine the precise oiling areas in the non-uniformly distributed areas of the classified images.
[0051] Preferably, the graph index submodule includes: The calculation unit is used to calculate the distance correction amount corresponding to the edge label in the label graph; An additional unit is added to the annotation information of the edge label or vertex label to obtain the corrected label map; The graph indexing unit is used to construct a graph index for the mating surface image using the corrected label graph and to calculate the subgraph distribution.
[0052] Preferably, the determining submodule includes: The classification unit is used to input the sub-image distribution feature vector into the pre-trained classifier to classify the image region, obtain the classified image, and determine the precise oiling area in the non-uniformly distributed region of the classified image.
[0053] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0054] Specific limitations regarding the control system of the micro solenoid valve processing equipment can be found in the limitations of the control method for the micro solenoid valve processing equipment mentioned above, and will not be repeated here. Each module in the control system of the aforementioned micro solenoid valve processing equipment can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0055] The control system of the micro solenoid valve processing equipment provided above can be used to execute the control method of the micro solenoid valve processing equipment provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0056] In one embodiment, a computer device is provided, which may be a control terminal corresponding to an atomizing air pump, and its internal structure diagram may be as follows: Figure 4 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a control method for a miniature solenoid valve processing device. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0057] Those skilled in the art will understand that Figure 4The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0058] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps: The initial position and oiling contour information of the micro solenoid valve were obtained; The initial contact oil amount is calculated based on the initial position and oiling contour information; The metering pump is controlled to perform the first oiling operation on the mating surface of the iron core and the valve body according to the initial contact oil volume, and the image acquisition device is controlled to obtain the image of the mating surface after the first oiling operation. The mating surface image after the first oiling operation is processed to obtain the precise oiling area; The piezoelectric jet valve is controlled to perform a second oiling operation on the precise oiling area, resulting in an oiled iron core and valve body.
[0059] Preferably, obtaining the initial position and oiling contour information of the micro solenoid valve includes: The image acquisition device obtains an initial image of the mating surface between the iron core and the valve body; Determine the initial point coordinates and a series of coordinate points of the mating surface based on the initial image; Based on the series of coordinate points, the oiling profile information of the mating surfaces of the iron core and the valve body is generated.
[0060] Preferably, calculating the initial contact oil amount based on the initial position and oiling contour information includes: Obtain a mapping table of preset length and preset oil amount for the pre-set oiling contour information; The contour length identified based on the initial position and the oiling contour information; By querying the mapping table using the contour length, the preset oil quantity corresponding to the contour length is determined as the initial contact oil quantity.
[0061] Preferably, the step of controlling the metering pump to perform a first oiling operation on the mating surface of the iron core and valve body based on the initial contact oil volume, and controlling the image acquisition device to obtain an image of the mating surface after the first oiling operation, includes: The starting point is determined by controlling the quantitative pump to move to the initial point coordinates of the mating surface between the iron core and the valve body. The metering pump is controlled to move at the series of coordinate points to perform the first oiling operation on the mating surfaces of the iron core and the valve body. The control image acquisition device captures images of the mating surfaces after the first oiling operation.
[0062] Preferably, the step of performing distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area includes: Convert the image of the mating surface after the first oiling operation into a label image; A graph index for the mating surface image is constructed using the label graph, and the subgraph distribution is calculated; Image classification is performed based on subgraph distribution to obtain classified images. Non-uniformly distributed regions in the classified images are then used to determine the precise areas to be coated with oil.
[0063] Preferably, the step of constructing a graph index for the mating surface image using the label graph and calculating the subgraph distribution includes: Calculate the distance correction amount corresponding to the edge label in the label graph; The distance correction amount is added to the annotation information of the edge label or vertex label to obtain the corrected label map; A graph index for the mating surface image is constructed using the corrected label graph, and the subgraph distribution is calculated.
[0064] Preferably, the step of performing image classification based on subgraph distribution to obtain a classified image, and determining the precise oiling area from the non-uniformly distributed region in the classified image, includes: The sub-image distribution feature vector is input into a pre-trained classifier to classify the image region, resulting in a classified image. The non-uniformly distributed region in the classified image is then used to determine the precise oiling area.
[0065] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps: The initial position and oiling contour information of the micro solenoid valve were obtained; The initial contact oil amount is calculated based on the initial position and oiling contour information; The metering pump is controlled to perform the first oiling operation on the mating surface of the iron core and the valve body according to the initial contact oil volume, and the image acquisition device is controlled to obtain the image of the mating surface after the first oiling operation. The mating surface image after the first oiling operation is processed to obtain the precise oiling area; The piezoelectric jet valve is controlled to perform a second oiling operation on the precise oiling area, resulting in an oiled iron core and valve body.
[0066] Preferably, obtaining the initial position and oiling contour information of the micro solenoid valve includes: The image acquisition device obtains an initial image of the mating surface between the iron core and the valve body; Determine the initial point coordinates and a series of coordinate points of the mating surface based on the initial image; Based on the series of coordinate points, the oiling profile information of the mating surfaces of the iron core and the valve body is generated.
[0067] Preferably, calculating the initial contact oil amount based on the initial position and oiling contour information includes: Obtain a mapping table of preset length and preset oil amount for the pre-set oiling contour information; The contour length identified based on the initial position and the oiling contour information; By querying the mapping table using the contour length, the preset oil quantity corresponding to the contour length is determined as the initial contact oil quantity.
[0068] Preferably, the step of controlling the metering pump to perform a first oiling operation on the mating surface of the iron core and valve body based on the initial contact oil volume, and controlling the image acquisition device to obtain an image of the mating surface after the first oiling operation, includes: The starting point is determined by controlling the quantitative pump to move to the initial point coordinates of the mating surface between the iron core and the valve body. The metering pump is controlled to move at the series of coordinate points to perform the first oiling operation on the mating surfaces of the iron core and the valve body. The control image acquisition device captures images of the mating surfaces after the first oiling operation.
[0069] Preferably, the step of performing distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area includes: Convert the image of the mating surface after the first oiling operation into a label image; A graph index for the mating surface image is constructed using the label graph, and the subgraph distribution is calculated; Image classification is performed based on subgraph distribution to obtain classified images. Non-uniformly distributed regions in the classified images are then used to determine the precise areas to be coated with oil.
[0070] Preferably, the step of constructing a graph index for the mating surface image using the label graph and calculating the subgraph distribution includes: Calculate the distance correction amount corresponding to the edge label in the label graph; The distance correction amount is added to the annotation information of the edge label or vertex label to obtain the corrected label map; A graph index for the mating surface image is constructed using the corrected label graph, and the subgraph distribution is calculated.
[0071] Preferably, the step of performing image classification based on subgraph distribution to obtain a classified image, and determining the precise oiling area from the non-uniformly distributed region in the classified image, includes: The sub-image distribution feature vector is input into a pre-trained classifier to classify the image region, resulting in a classified image. The non-uniformly distributed region in the classified image is then used to determine the precise oiling area.
[0072] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0073] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0074] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0075] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of apparatus, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0076] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction methods implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0077] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0078] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0079] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or terminal device 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, apparatus, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or terminal device that includes said element.
[0080] The control method, control system, computer device, and storage medium of a micro solenoid valve processing equipment provided by the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The above description of the embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A control method of a micro electromagnetic valve processing apparatus, characterized by, The micro electromagnetic valve processing equipment includes a valve body oiling device and an image acquisition device. The valve body oiling device is equipped with a piezoelectric injection valve and a metering pump, including: The initial position and oiling contour information of the micro solenoid valve were obtained; The initial contact oil amount is calculated based on the initial position and oiling contour information; The metering pump is controlled to perform the first oiling operation on the mating surface of the iron core and the valve body according to the initial contact oil volume, and the image acquisition device is controlled to obtain the image of the mating surface after the first oiling operation. The mating surface image after the first oiling operation is processed to obtain the precise oiling area; The piezoelectric jet valve is controlled to perform a second oiling operation on the precise oiling area, resulting in an oiled iron core and valve body.
2. The method of claim 1, wherein, The acquisition of the initial position and oiling contour information of the micro solenoid valve includes: The image acquisition device obtains an initial image of the mating surface between the iron core and the valve body; Determine the initial point coordinates and a series of coordinate points of the mating surface based on the initial image; Based on the series of coordinate points, the oiling profile information of the mating surfaces of the iron core and the valve body is generated.
3. The method of claim 1, wherein, The calculation of the initial contact oil amount based on the initial position and oiling contour information includes: Obtain a mapping table of preset length and preset oil amount for the pre-set oiling contour information; The contour length identified based on the initial position and the oiling contour information; By querying the mapping table using the contour length, the preset oil quantity corresponding to the contour length is determined as the initial contact oil quantity.
4. The method of claim 2, wherein, The step of controlling the metering pump to perform a first oiling operation on the mating surface of the iron core and valve body based on the initial contact oil volume, and controlling the image acquisition device to obtain an image of the mating surface after the first oiling operation, includes: The starting point is determined by controlling the quantitative pump to move to the initial point coordinates of the mating surface between the iron core and the valve body. The metering pump is controlled to move at the series of coordinate points to perform the first oiling operation on the mating surfaces of the iron core and the valve body. The control image acquisition device captures images of the mating surfaces after the first oiling operation.
5. The method of claim 2, wherein, The step of performing distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area includes: Convert the image of the mating surface after the first oiling operation into a label image; A graph index for the mating surface image is constructed using the label graph, and the subgraph distribution is calculated; Image classification is performed based on subgraph distribution to obtain classified images. Non-uniformly distributed regions in the classified images are then used to determine the precise areas to be coated with oil.
6. The method of claim 2, wherein, The step of constructing a graph index for the mating surface image using the label graph and calculating the subgraph distribution includes: Calculate the distance correction amount corresponding to the edge label in the label graph; The distance correction amount is added to the annotation information of the edge label or vertex label to obtain the corrected label map; A graph index for the mating surface image is constructed using the corrected label graph, and the subgraph distribution is calculated.
7. The method of claim 2, wherein, The process of image classification based on subgraph distribution to obtain a classified image, and determining the precise oiling area from the non-uniformly distributed regions in the classified image, includes: The sub-image distribution feature vector is input into a pre-trained classifier to classify the image region, resulting in a classified image. The non-uniformly distributed region in the classified image is then used to determine the precise oiling area.
8. A control system for a micro solenoid valve processing equipment, characterized in that, The micro electromagnetic valve processing equipment includes a valve body oiling device and an image acquisition device. The valve body oiling device is equipped with a piezoelectric injection valve and a metering pump, including: The acquisition module is used to acquire the initial position and oiling contour information of the micro solenoid valve. The calculation module is used to calculate the initial contact oil amount based on the initial position and oiling contour information; The first oiling operation module is used to control the metering pump to perform the first oiling operation on the mating surface of the iron core and the valve body according to the initial contact oil volume, and to control the image acquisition device to obtain the mating surface image after the first oiling operation. The distribution image processing module is used to perform distribution image processing on the mating surface image after the first oiling operation to obtain the precise oiling area. The second oiling module is used to control the piezoelectric jet valve to perform a second oiling operation on the precise oiling area, resulting in an oiled iron core and valve body. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. When the processor executes the computer program, it implements the steps of the control method for the micro electromagnetic valve processing equipment according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the control method for the micro electromagnetic valve processing equipment according to any one of claims 1 to 7.