Assembly method based on machine vision, control device, equipment, medium and product
Through machine vision technology, the camera distortion is identified and compensated, and the position offset of the assembly hole is calculated, which solves the problem of low assembly accuracy in automated press-fitting systems and realizes an efficient and accurate assembly process.
Patent Information
- Application Number
- CN202410795655.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-06-19
AI Technical Summary
In existing automated press-fitting systems, position deviations caused by camera distortion affect assembly accuracy, resulting in inaccurate press-fitting, affecting the final press-fit quality and overall assembly performance.
Through machine vision technology, identify the version type of the current pressed surface, obtain assembly feature information, calculate the initial and corrected position offsets of each hole to be assembled, generate movement instructions, move the assembly hole to the center of the camera field of view, and optimize image capture and Assembly accuracy.
It improves assembly accuracy, reduces quality problems caused by camera distortion, optimizes production processes, enhances the adaptability and efficiency of the automated assembly system, and ensures high-quality assembly results.
Smart Images

Figure CN118875688A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of assembly technology, and in particular to an assembly method, control device, equipment, medium and product based on machine vision. Background Art
[0002] Automated press-fitting technology improves production efficiency and enhances product consistency and quality. In the traditional manual press-fitting process, the press-fitting results may fluctuate greatly due to reliance on workers' skills and experience, especially when dealing with the precision assembly of complex or tiny components, the possibility of deviation increases. In contrast, automated press-fitting reduces human errors through machine operation, helping to keep components consistently assembled according to preset specifications. In addition, automated systems can run continuously, improve production throughput, reduce labor costs and reduce quality issues caused by human operation. These systems generally integrate visual recognition to achieve real-time monitoring and adjustment of the press-fitting process, ensuring that high quality standards can be maintained even in a fast production environment.
[0003] In the prior art, most press-fitting systems use high-precision mechanical devices, such as servo motors and guide rails, whose main function is to achieve accurate position control and smooth movement. This type of mechanical system effectively reduces the position deviation caused by mechanical errors by moving the press-fitting head or workpiece to the specified position, thereby improving the accuracy of the operation. In addition, many systems also integrate visual systems, using cameras to capture images of the workpiece, and then using image processing technology to analyze the position and positioning points of the workpiece in real time. This process is particularly suitable for the assembly of complex components, such as hydraulic valve blocks. In the automated assembly process of hydraulic valve blocks, robotic arms or other automated equipment are often used to transport and position the valve blocks, while visual systems are used to identify and locate press-fitting holes. The valve blocks are ensured to move to the press-fitting position through preset program path control. This press-fitting system that combines mechanical and visual technologies not only improves the efficiency of press-fitting operations, but also optimizes the entire production process through automation technology. The implementation of these technologies has improved the level of automation on the production line and reduced errors and production inconsistencies caused by human factors, thereby ensuring the continuous improvement of product quality and production efficiency.
[0004] Although existing vision systems can achieve real-time capture and analysis of workpieces using camera technology, the inherent distortion of the camera, especially the distortion at the edge of the field of view, often causes image distortion, affecting the accurate judgment of the exact position of the press-fitting hole. This position deviation caused by distortion not only leads to inaccurate press-fitting, but also affects the final press-fitting quality and the performance of the overall assembly. Therefore, there is an urgent need for an assembly method based on machine vision to solve the technical problem of low precision of traditional workpiece press-fitting. Summary of the invention
[0005] The present invention provides an assembly method, a control device, equipment, a medium and a product based on machine vision, which are used to solve the problem of low press-fitting accuracy during workpiece assembly.
[0006] A first aspect of an embodiment of the present invention provides an assembly method based on machine vision, comprising:
[0007] After determining the version type of the current press-fit surface, obtaining assembly feature information matching the current press-fit surface, and obtaining initial position information of each to-be-assembled hole on the current press-fit surface according to the assembly feature information;
[0008] Acquire initial reference information corresponding to the current press-fitting surface, acquire the initial position offset corresponding to each hole to be assembled according to the initial reference information and the initial position information of each hole to be assembled, and sequentially send movement instructions including the initial position offset corresponding to the hole to be assembled and the initial position information, so as to realize that each assembly hole is sequentially moved to the central range of the field of view of the image capture device through the moving device;
[0009] Based on any of the movement instructions, after determining that the moving device has completed the movement according to the movement instruction, obtaining the current position information of the hole to be assembled located in the center range of the field of view, and obtaining the corrected position offset of the hole to be assembled according to the current position information of the hole to be assembled and the corrected reference information;
[0010] According to the initial position offset and the corrected position offset corresponding to each of the holes to be assembled, assembly instructions containing the initial position offset and the corrected position offset are sent in sequence to complete the assembly of the holes to be assembled.
[0011] Optionally, in the method described above, the step of obtaining assembly feature information matching the current press-fit surface includes:
[0012] After determining the version type of the current press-fit surface, query and obtain assembly feature information matching the current press-fit surface; wherein the assembly feature information includes the size of the current press-fit surface, the position arrangement information of the assembly holes, and the number of the assembly holes;
[0013] Then, according to the assembly feature information, the initial position information of each to-be-assembled hole on the current press-fitting surface is obtained, including:
[0014] According to the size of the current press-fitting surface and the preset image size information, the photographing position information of the current press-fitting surface is obtained, and according to the photographing position information, the image information corresponding to each photographing position is sequentially obtained to obtain all the image information of the current press-fitting surface; wherein the photographing position information includes the number and position of the photographing positions;
[0015] According to the assembly hole position arrangement information and quantity matching the current press-fitting surface, the image search area of the current press-fitting surface is obtained, and based on the image search area, all image information of the current press-fitting surface is searched, and a preset image processing algorithm is used to identify and obtain the initial position information of each hole to be assembled.
[0016] Optionally, in the method as described above, the obtaining of initial reference information corresponding to the current press-fitting surface includes:
[0017] According to the version type of the current press-fit surface, query and obtain the assembly hole reference and the photographing position reference matching each assembly hole;
[0018] Then, the initial position offset corresponding to each hole to be assembled is obtained according to the initial reference information and the initial position information of each hole to be assembled, including:
[0019] Calculate and obtain the assembly hole position offset of each assembly hole according to the initial position information of the assembly hole and the assembly hole reference coordinates corresponding to the assembly hole;
[0020] According to the current photographing position and the reference photographing position where the hole to be assembled is located, the photographing position offset of each hole to be assembled is obtained, and according to the assembly hole position offset and the photographing position offset, the initial position offset of each hole to be assembled is obtained.
[0021] Optionally, in the method described above, determining the version type of the current press-fit surface includes:
[0022] Based on a preset sensor, the size information of the to-be-assembled component to which the current press-fitting surface belongs is obtained, and the image information of the current press-fitting surface is analyzed to obtain the shape characteristics and surface characteristics of the current press-fitting surface;
[0023] The version type of the current press-fitting surface is acquired according to the size information of the component to be assembled, the shape characteristics and the surface characteristics of the current press-fitting surface.
[0024] Optionally, in the method described above, the step of obtaining the current position information of the hole to be assembled located in the center of the field of view includes:
[0025] Based on the hole to be assembled located in the center range of the field of view, according to the current image information of the hole to be assembled, obtaining the current position information of the hole to be assembled;
[0026] Then, according to the current position information of the hole to be assembled and the corrected reference information, the corrected position offset of the hole to be assembled is obtained, including:
[0027] Correction reference information matching the size information of the to-be-assembled component is queried and acquired, and a corrected position offset of the to-be-assembled hole is acquired according to the correction reference information and the current position information.
[0028] Optionally, in the method as described above, according to the initial position offset and the corrected position offset corresponding to each of the holes to be assembled, sequentially sending assembly instructions containing the initial position offset and the corrected position offset to complete the assembly of the holes to be assembled, including:
[0029] Generate a movement instruction including the initial position offset and the corrected position offset according to the initial position offset and the corrected position offset, and send the movement instruction to the moving device, so as to move the hole to be assembled to a preset press-fitting position through the moving device;
[0030] Press-fitting reference information matching the size information of the component to be assembled is queried and acquired, and after determining that the moving device has completed the movement according to the movement instruction, the assembly of the hole to be assembled is completed according to the press-fitting reference information.
[0031] Optionally, the method as described above further includes:
[0032] After determining the version type of the current press-fit surface, obtaining the status of the assembly components in all the to-be-assembled holes on the current press-fit surface;
[0033] If the state of the press-fit component in the to-be-assembled hole is existence, obtaining the initial position information of all the to-be-assembled holes on the current press-fitting surface;
[0034] or,
[0035] If the state of the press-fit component in the hole to be assembled is non-existent, an alarm message is issued.
[0036] Optionally, in the above method, obtaining the version type of the current press-fitting surface according to the size information of the component to be assembled, the shape characteristics and the surface characteristics of the current press-fitting surface includes:
[0037] According to the size information of the component to be assembled, the shape characteristics and surface characteristics of the current press-fitting surface, a trained support vector machine classification model is used to obtain the version type of the current press-fitting surface;
[0038] Wherein, the size information includes the height, length and width of the component to be assembled;
[0039] The shape features include the diameter of the assembly hole, the distance from the assembly hole to the edge of the component to be assembled, and the geometric shape of the current press-fit surface;
[0040] The surface features include the surface pattern, character information and texture features of the current press-fitting surface.
[0041] A second aspect of an embodiment of the present invention provides a control device, including:
[0042] An initial position information acquisition module, used to acquire assembly feature information matching the current press-fit surface after determining the version type of the current press-fit surface, and acquire initial position information of each to-be-assembled hole on the current press-fit surface according to the assembly feature information;
[0043] A first positioning module, used to obtain initial reference information corresponding to the current press-fitting surface, obtain the initial position offset corresponding to each hole to be assembled according to the initial reference information and the initial position information of each hole to be assembled, and sequentially send movement instructions including the initial position offset corresponding to the hole to be assembled and the initial position information, so as to realize that each assembly hole is sequentially moved to the central range of the field of view of the image capture device through the moving device;
[0044] A second positioning module is used for obtaining the current position information of the hole to be assembled located in the center range of the field of view based on any of the movement instructions after determining that the mobile device has completed the movement according to the movement instruction, and obtaining the corrected position offset of the hole to be assembled according to the current position information of the hole to be assembled and the corrected reference information;
[0045] The assembly execution module is used to send assembly instructions containing the initial position offset and the corrected position offset in sequence according to the initial position offset and the corrected position offset corresponding to each of the holes to be assembled, so as to complete the assembly of the holes to be assembled.
[0046] A third aspect of an embodiment of the present invention provides an electronic device, including: a memory and a processor;
[0047] The memory stores computer-executable instructions;
[0048] The processor executes the computer-executable instructions stored in the memory to implement the assembly method described in any one of the first aspects.
[0049] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the assembly method described in any one of the first aspects.
[0050] A fifth aspect of an embodiment of the present invention provides a computer program product, including a computer program, which implements the assembly method described in any one of the first aspects when executed by a processor.
[0051] The embodiment of the present invention provides an assembly method, control device, equipment, medium and product based on machine vision. Through the embodiment of the present application, a high-precision and high-efficiency automated assembly process is realized, and the accuracy of the assembly operation and the flexibility of the production line are improved. First, by identifying the version type of the current press-fit surface and obtaining the matching assembly feature information, it can automatically adjust to meet the specific assembly requirements of different products, thereby enhancing the adaptability of the production line to diversified products. Accurate feature information recognition ensures the accuracy of the assembly starting point, laying a solid foundation for the entire assembly process. Subsequently, the position offset of each hole to be assembled is calculated using the obtained initial reference information and initial position information, and a movement instruction is generated. These movement instructions enable the assembly holes to be accurately positioned within the center range of the camera's field of view, thereby optimizing the quality of image capture and the accuracy of assembly. The execution of this step improves the accuracy of component positioning and ensures high-quality assembly results. After the mobile device executes the movement instruction, the current position information of the hole to be assembled in the center of the field of view is obtained and compared with the correction reference to calculate the required correction position offset. This process not only optimizes the assembly accuracy, but also reduces the assembly defects caused by position errors and camera distortion, thereby improving the assembly quality. According to the calculated initial and corrected position offsets, comprehensive assembly instructions are sent to complete the assembly of each hole to be assembled. The automated control of this process improves assembly efficiency and production line speed while maintaining the consistency and reliability of product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0053] Figure 1 A schematic diagram of a process flow of a machine vision-based assembly method provided in an embodiment of the present application;
[0054] Figure 2 A schematic flow chart of a method for identifying the state of an assembly component in a hole to be press-fitted provided in an embodiment of the present application;
[0055] Figure 3 A schematic flow chart of a method for obtaining initial position information of each to-be-assembled hole on a current press-fit surface provided in an embodiment of the present application;
[0056] Figure 4 A schematic flow chart of a method for obtaining an initial position offset corresponding to each hole to be assembled provided in an embodiment of the present application;
[0057] Figure 5 A schematic flow chart of a method for determining the version type of a current press-fit surface provided in an embodiment of the present application;
[0058] Figure 6 A schematic flow chart of a method for obtaining a corrected position offset of a hole to be assembled provided for the implementation of the present application;
[0059] Figure 7 A schematic flow chart of a method for assembling a hole to be assembled provided in an embodiment of the present application;
[0060] Figure 8 A schematic diagram of the structure of the assembly system provided in the embodiment of the present application;
[0061] Fig. 9 A schematic diagram of obtaining a specific valve block image provided in an embodiment of the present application;
[0062] Fig.10 A schematic diagram of the first photo positioning provided in an embodiment of the present application;
[0063] Fig.11 A schematic diagram of the second photo positioning provided in an embodiment of the present application;
[0064] Fig.12 A schematic diagram of the structure of a control device provided in an embodiment of the present application;
[0065] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0066] Reference numerals:
[0067] 1-Hydraulic valve block, 2-Pallet, 3-Cylinder, 4-Electric cylinder, 5-Industrial camera, 6-Press machine.
[0068] The above drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0069] 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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0070] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0071] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail. In current automated assembly, basic assembly tasks are usually achieved through a series of standardized mechanical operations. These operations include fixing parts with automated fixtures and installing various components through program-controlled execution paths. Automated systems are usually equipped with sensors and basic visual systems to monitor the assembly process and ensure that the parts are placed correctly. For example, in an automated workshop, suction cups or manipulators may be used to grab specific components such as circuit boards, small motors or other assembly parts and install them in preset positions. Operations are performed through pre-programmed path instructions. At the same time, the mechanical fixtures and tools used for assembly are replaced according to different assembly requirements to handle parts of various sizes and shapes. In order to achieve accurate positioning, cameras are usually used to capture images of assembly objects and guide assembly operations. However, cameras are often affected by optical distortion when capturing images, especially in the edge areas of the field of view, which can cause image distortion, which in turn affects the identification and positioning of assembly points. The accumulation of errors may lead to inaccurate assembly, affecting the function and quality of the product. Furthermore, existing automated assembly technologies are usually designed to accommodate one or a few similar product types and lack sufficient flexibility to accommodate a wide range of product variations.
[0072] In order to solve the assembly accuracy problem often caused by camera distortion in the prior art, the embodiment of the present application proposes an assembly method based on machine vision. This method can effectively identify and compensate for the errors caused by camera distortion. First, the version type of the current press-fit surface is determined by machine vision, and then the assembly feature information matching it is obtained to lay a data foundation for the subsequent assembly operation. The identification of the version type increases the flexibility of automated assembly, enabling it to use a wider range of components to be assembled. Among them, the acquisition of assembly feature information ensures the accuracy of subsequent operations. After obtaining the assembly feature information, the initial position information related to the current press-fit surface is obtained, which includes the actual position of each hole to be assembled. And combined with the initial reference information, the initial position offset between the actual position of each hole to be assembled and the reference position can be calculated. These offset data are used to generate movement instructions to ensure that the mobile device can accurately move each assembly hole to the center of the camera's field of view. After completing any movement, the current position information of the hole to be assembled within the current field of view center range is obtained, and compared with the preset correction reference information to calculate the final correction position offset. This step takes into account possible mechanical or software errors to ensure that the assembly achieves a high degree of accuracy. Finally, the assembly instructions generated based on the initial position offset and the corrected position offset are sent to the assembly machine to complete the assembly of each hole to be assembled. The method of the embodiment of the present application not only improves the assembly accuracy and reduces the quality problems caused by the edge distortion of the camera field of view, but also optimizes the production process and enhances the adaptability and efficiency of the automated assembly system in handling multiple versions and complex products. The application of this technology makes the automated assembly process more reliable and efficient.
[0073] The following is an introduction to the application scenarios of the assembly method provided by the embodiment of the present invention. The embodiment of the present application is directed to an automated assembly system in the assembly industry, and is particularly suitable for manufacturing environments involving diversified products and high precision requirements. It is suitable for industries such as automobile, aerospace, precision machinery and electronic product manufacturing, where product assembly requires high precision and repeatability, and product types and specifications change frequently. In the automotive manufacturing industry, for example, the embodiment of the present application can be used for the automated assembly of automobile engine parts, such as the installation of hydraulic valve blocks, to ensure that the assembly position of each component reaches a high degree of precision. In addition, due to the wide variety of parts in the automotive industry, the flexibility and adjustment capabilities of the system enable it to quickly adapt to the assembly requirements of different models and designs, thereby reducing equipment replacement and adjustment time and improving production efficiency. In the aerospace industry, such as the assembly of key hydraulic system components of aircraft engines and spacecraft. This requires not only precise assembly technology to ensure safety and reliability, but also requires the assembly process to adapt to strict quality control standards. In addition, in the manufacture of electronic products, especially the assembly of high-precision electronic chips and circuit boards, it is also an application scenario of the embodiment of the present application. With the development of electronic products towards high performance and multi-function, the reduction of component size and the increase of assembly density require assembly technology with high precision and low error rate. In summary, the present application can be widely used in manufacturing industries that require precise and efficient assembly, improving product quality, reducing production costs, and increasing market competitiveness.
[0074] The embodiments of the present invention are described below in conjunction with the accompanying drawings.
[0075] Figure 1 The present invention provides a flowchart of a machine vision-based assembly method, which is applied to an assembly system having a mobile device and an image capture device. Figure 1 As shown, including:
[0076] S11, after determining the version type of the current press-fitting surface, obtaining assembly feature information matching the current press-fitting surface, and obtaining initial position information of each to-be-assembled hole on the current press-fitting surface according to the assembly feature information.
[0077] In this embodiment, after determining the version type of the current press-fit surface, the matching assembly feature information is obtained. This is because different versions of press-fit surfaces may have different configurations, hole arrangements and size specifications. The purpose of this step is to ensure that these differences can be accurately identified and distinguished, so as to perform more precise assembly operations. In order to achieve this goal, machine vision technology is first used to analyze the image data of the current press-fit surface. For example, the type of the current press-fit surface is queried through an integrated database, which contains various models of press-fit surfaces and their corresponding technical specifications and assembly features. These assembly features include but are not limited to the diameter, depth, shape of the assembly hole and the relative position relationship with other holes. This information is pre-collected by engineers through measurement and model analysis during the development stage, and is stored in the database or system in the form of drawings or digital models. According to the basic information of the current press-fit surface, a query and match is performed in the database to obtain the assembly feature information that matches the current press-fit surface.
[0078] Next, based on the assembly feature information, the initial position information of each hole to be assembled on the current press-fit surface is obtained. In this data acquisition process, the technical means that may be used include industrial cameras and image processing. The industrial camera can capture the image information of the current press-fit surface, and these images are then sent to the image processing software for analysis. Pre-programmed algorithms are used to identify key features in the image, such as hole positions, cutting lines, or marking points, which can determine the position of the assembly holes. In addition, the image processing software can also analyze the dimensional information in the image to ensure that the identified assembly features match the actual operating parameters of the machine. In this way, not only can the position of each hole to be assembled be accurately identified, but also the accuracy and reliability of this position information can be ensured. After obtaining this assembly feature information, it will be able to provide the necessary data support for subsequent assembly operations to ensure that each component can be accurately installed in its place.
[0079] S12, obtaining initial reference information corresponding to the current press-fitting surface, obtaining the initial position offset corresponding to each hole to be assembled according to the initial reference information and the initial position information of each hole to be assembled, and sending movement instructions containing the initial position offset and initial position information corresponding to the hole to be assembled in sequence, so as to realize moving each assembly hole in sequence to the central range of the field of view of the image capture device through the mobile device.
[0080] In this embodiment, first, the initial reference information of the current press-fitting surface is obtained, which generally includes the geometric dimensions of the press-fitting surface, the standard position of the hole and other relevant standards. It can be pre-set according to the design specifications of the press-fitting surface. This reference information is determined by the engineer through physical measurement in the early stage and stored in the database. Once the initial position information of each hole to be assembled on the current press-fitting surface is obtained, it will be compared with these initial reference information. Specifically, this process involves calculating the deviation between the actual coordinates of each assembly hole and the preset reference coordinates, that is, the initial position offset. These initial position offsets are combined with the initial position information of the assembly hole to generate movement instructions. These instructions are sent to a mobile device, such as a robotic arm or a mobile platform, to instruct it to adjust the position of each assembly hole. The mobile device acts according to the received instructions to ensure that each assembly hole is moved to the center of the field of view of the image capture device in turn. Further, this operation not only involves position adjustment, but also includes the control of the speed and acceleration of the mobile device to avoid the inertial effect generated during rapid movement causing position overshoot or vibration, which may affect the final assembly accuracy. For example, by real-time monitoring of feedback data during the movement process, it is ensured that each step of movement is strictly executed according to the preset path and target, and when deviation occurs, it will be corrected immediately. Through this control and dynamic adjustment, it can be ensured that each assembly hole can enter the center of the field of view of the image capture device in a preset manner, improving the reliability and repeatability of the assembly process, thereby ensuring the efficiency and product quality of the entire production line. The implementation of this method effectively reduces human errors and mechanical errors.
[0081] S13, based on any movement instruction, after determining that the mobile device has completed the movement according to the movement instruction, obtain the current position information of the hole to be assembled located in the center range of the field of view, and obtain the corrected position offset of the hole to be assembled based on the current position information of the hole to be assembled and the corrected reference information.
[0082] In this embodiment, after confirming that the mobile device has completed the preliminary movement of the assembly hole according to any one of the movement instructions, the current position information of the hole to be assembled in the center range of the field of view is obtained. The main purpose of this step is to ensure that the previous movement instructions have been accurately executed and the hole to be assembled has been adjusted to the corresponding position, so as to prepare for the next positioning correction operation. Then, the image of the hole to be assembled located in the center of the field of view is captured again. And the current position information (i.e., the current actual position) of the hole to be assembled is identified by using image analysis technology. This analysis usually includes identifying the edge of the hole and measuring its geometric parameters. Subsequently, the current position information of the hole to be assembled is compared with the preset correction reference information. The correction reference information contains the ideal position data, that is, the precise position that each hole to be assembled should reach without error. By comparing the current position and the ideal position, the required correction position offset can be calculated. This correction position offset refers to the additional movement required to reach the ideal position from the current position, which takes into account any possible initial positioning error and inaccuracy of mechanical execution. In summary, through the above steps, not only can high-precision position adjustment be achieved, but also the efficiency and quality of assembly can be greatly improved. It reduces rework and scrap rates during the production process and improves overall production efficiency. At the same time, by reducing assembly defects caused by position errors, it improves the flexibility and economic efficiency of the production line while ensuring product quality.
[0083] S14, according to the initial position offset and the corrected position offset corresponding to each hole to be assembled, assembly instructions including the initial position offset and the corrected position offset are sent in sequence to complete the assembly of the holes to be assembled.
[0084] In this embodiment, assembly instructions are sent according to the initial position offset and the corrected position offset of each hole to be assembled. Among them, the initial position offset provides the data of the first rough positioning from the preset reference position to the actual detection position, and the corrected position offset is the data of the secondary positioning based on this, aiming to correct the error of the first positioning and realize the accurate positioning of the assembly hole. The combination of the two forms a comprehensive adjustment strategy to ensure that the assembly hole can be accurately aligned with the press-fitting device. In specific operations, these two offset data are integrated into the final assembly instructions. These assembly instructions not only instruct the mobile device how to adjust the position, but also involve the adjustment of parameters such as speed and force to adapt to the characteristics of different materials and assembly requirements. For example, it may be necessary to adjust the movement speed to avoid damage when contacting fragile materials, or adjust the applied pressure to adapt to materials of different thicknesses. Once the assembly instructions are determined and sent to the mobile device, the assembly hole will be moved to the press-fitting position according to these instructions. During this process, each step of the operation will be continuously monitored to ensure that all parameters comply with the preset standards. In addition, feedback information will be received in real time so that adjustments can be made immediately when any deviation is found. In addition, after the press-fitting is completed, a series of inspections and tests will be carried out to confirm whether the position, depth and fixation of the assembly holes meet the quality standards. These tests may include visual inspection, dimensional measurement and functional testing to ensure that each assembly hole is correctly and firmly pressed in the specified position. In this way, not only the accuracy and efficiency of assembly activities are ensured, but also the production cost is significantly reduced. And human errors and production defect rates are minimized to the greatest extent, and the operating efficiency and product quality of the entire production line are improved.
[0085] The embodiment of the present application realizes a high-precision and high-efficiency automated assembly process, which improves the accuracy of the assembly operation and the flexibility of the production line. First, by identifying the version type of the current press-fit surface and obtaining the matching assembly feature information, it can automatically adjust to meet the specific assembly requirements of different products, thereby enhancing the adaptability of the production line to diversified products. Accurate feature information recognition ensures the accuracy of the assembly starting point, laying a solid foundation for the entire assembly process. Subsequently, the position offset of each hole to be assembled is calculated using the obtained initial reference information and initial position information, and a movement instruction is generated. These movement instructions enable the assembly hole to be accurately positioned within the center range of the camera's field of view, thereby optimizing the quality of image capture and the accuracy of assembly. The execution of this step improves the accuracy of component positioning and ensures high-quality assembly results. After the mobile device executes the movement instruction, the required corrected position offset is calculated by obtaining the current position information of the hole to be assembled at the center of the field of view and comparing it with the corrected reference. This process not only optimizes the assembly accuracy, but also reduces the assembly defects caused by position errors and camera distortion, thereby improving the assembly quality. According to the calculated initial and corrected position offsets, a comprehensive assembly instruction is sent to complete the assembly of each hole to be assembled. Automated control of this process improves assembly efficiency and production line speed while maintaining consistent and reliable product quality.
[0086] Figure 2 A schematic flow chart of a method for identifying the state of an assembly component in a hole to be press-fitted provided in an embodiment of the present application. Before performing the press-fitting operation, it is necessary to determine whether there is an assembly component in the hole to be press-fitted. Based on the above embodiment, Figure 2 As shown, including:
[0087] S21, after determining the version type of the current press-fit surface, obtaining the status of the assembly components in all the to-be-assembled holes on the current press-fit surface;
[0088] S22, if the state of the press-fit component in the to-be-assembled hole is existence, obtaining the initial position information of all the to-be-assembled holes on the current press-fitting surface;
[0089] S23, if the state of the press-fit component in the hole to be assembled is non-existent, an alarm message is issued.
[0090] In this embodiment, the version type of the current press-fit surface is first determined. This process usually involves the identification of specific identifications on the press-fit surface, such as identifying specific marks, sizes or other features that distinguish different versions through a visual system. Once the version type is determined, it is then checked whether the assembly components have been correctly placed in each hole to be assembled on the press-fit surface. Exemplarily, industrial cameras and lighting devices are used for monitoring. The camera is fixed above the assembly line and equipped with a ring LED light to ensure uniform lighting, thereby optimizing image quality and reducing interference from shadows and reflections. At the beginning of the assembly cycle, images of the holes to be assembled are captured. These images are then sent to the image processing unit, which runs a specific algorithm to analyze the features in the holes. The key basis for judgment is whether there are white spots in the holes, which are usually caused by reflections of assembly components, indicating that the necessary components have been pre-installed in the holes. If the algorithm recognizes such bright spots in the image, the hole will be recorded as assembled and ready to enter the next assembly operation. That is, if there are already assembly components in the holes to be assembled, the initial position information of each hole to be assembled of the existing assembly components is obtained. That is, the subsequent positioning process is carried out.
[0091] On the other hand, if no white spots are detected in the image, this indicates that the assembly hole is missing an assembly component. At this point, an alarm is automatically triggered, pausing the assembly line and prompting the operator or automation system to handle this abnormal situation. This alarm not only includes visual or sound signals, but may also display which specific assembly hole has a problem through the system interface to ensure that the problem can be quickly and accurately located and solved. The alarm setting is designed to minimize production delays and increased costs caused by assembly errors. This series of inspections and feedback mechanisms ensure that assembly can maintain consistency and reliability of product quality while producing efficiently. By monitoring each assembly hole and taking timely response measures, errors can be minimized and production efficiency can be improved.
[0092] Furthermore, for filling the assembly components into the holes to be assembled, a variety of methods are used, including but not limited to manual or mechanical. Exemplary, for the mechanical form, the final assembly coordinates of each hole are calculated using the initial position information of each hole to be assembled and the corrected position offset. The holes to be assembled can be moved to the assembly component filling unit in sequence by a mobile device. This filling unit is equipped with an assembly component output port for filling assembly components such as press-fit ball plugs into the holes to be assembled. Then, a feedback mechanism can also be set to confirm whether the components are correctly filled. Once the component is placed, the camera will capture the image of the hole again to confirm the position and installation status of the component. If any deviation or improper installation is found, the operator is reminded to intervene manually. This instant quality control mechanism not only improves the accuracy of assembly, but also significantly reduces the defect rate in production.
[0093] In one embodiment, a specific description is given of an implementation method of obtaining assembly feature information matching the current press-fit surface in the above step S11. Based on the above embodiment, it includes:
[0094] S111, after determining the version type of the current press-fit surface, query and obtain assembly feature information matching the current press-fit surface; wherein the assembly feature information includes the size of the current press-fit surface, the position arrangement information of the assembly holes, and the number of the assembly holes.
[0095] In this embodiment, the assembly feature information is usually stored in a database or an integrated management system, which records all relevant parameters and characteristics of each press-fit surface version. This information includes not only the specific position arrangement information of the assembly holes, but also the number of holes required for each press-fit surface, the size of the holes, the shape of the holes, and possible special processing requirements. By accurately querying these data, all necessary details can be obtained to accurately configure and adjust the assembly operation. Exemplarily, the query process is automatically executed, and the relevant assembly feature information is quickly retrieved by inputting the press-fit surface version type as a keyword. This information retrieval is achieved through data management technology, such as using an indexed database and an optimized query algorithm to ensure that information can be provided quickly and accurately even in a big data environment. The acquired assembly feature information is then used in multiple aspects: first, it is used for the mechanical device to adjust its operating path and settings to ensure that each assembly hole can be located and processed. For example, the assembly machine may need to adjust its range of movement according to the position arrangement of the holes, or adjust the press-fit sequence according to the number and distribution of the holes to maximize the efficiency and effectiveness of the operation. Secondly, this information is also used for possible adjustments and fine-tuning operations. During the assembly process, the actual assembly situation may deviate slightly from the preset model due to material differences or mechanical wear. Having detailed assembly feature information allows for more flexibility in adapting to these changes. Finally, this detailed assembly feature information is also an important part of quality control. By comparing with the preset standards, the assembly quality can be monitored in real time, possible deviations can be discovered and corrected in a timely manner, and each product can be ensured to meet the highest quality standards. In short, by querying and obtaining assembly feature information that matches the current press-fit surface, it is possible to flexibly respond to various complex and changing assembly requirements. This not only improves production efficiency, but also ensures high product quality and consistency.
[0096] Furthermore, Figure 3 The following is a flow chart of a method for obtaining the initial position information of each hole to be assembled on the current press-fit surface provided in an embodiment of the present application. It is a specific description of the implementation method of obtaining the initial position information of the hole to be assembled in the above step S11. Figure 3 As shown, including:
[0097] S31, according to the size of the current press-fitting surface and the preset image size information, obtaining the photographing position information of the current press-fitting surface, and according to the photographing position information, sequentially obtaining the image information corresponding to each photographing position, so as to obtain all the image information of the current press-fitting surface; wherein the photographing position information includes the number and position of the photographing positions;
[0098] S32, according to the assembly hole position arrangement information and quantity matching the current press-fitting surface, obtain the image search area of the current press-fitting surface, and based on the image search area, search all the image information of the current press-fitting surface, and use a preset image processing algorithm to identify and obtain the initial position information of each hole to be assembled.
[0099] In this embodiment, the photographing position information is determined according to the specific size of the current press-fitting surface and the preset image size information. These photographing position information include the number of photographs and the specific position of each photographing position. This setting is to fully cover the entire press-fitting surface and ensure that no detailed image of any assembly hole is missed. After the photographing position information is determined, the image information corresponding to each photographing position will be obtained in turn. Exemplarily, by adjusting the position and angle of the image capture device (such as a camera), the image of the current press-fitting surface is captured at these specified positions. Ensure that the obtained image has sufficient quality and detailed information for subsequent analysis. This step requires controlling the positioning and shooting angle of the camera to ensure that each image can capture the clearest press-fitting surface details with the most appropriate viewing angle and light conditions. Adjust the focal length and exposure settings of the camera according to the photographing position information to obtain high-quality images for subsequent image processing and analysis. Preferably, a fixed image capture device is used, that is, by controlling a mobile device, the acquisition of images of different photographing positions is achieved. The fixed image capture device reduces the complexity of the machinery. Since the camera is fixed, no complex mechanical structure is required to support the movement and positioning of the camera, which improves the stability and reliability of image acquisition. At the same time, this setup reduces vibration or positioning errors caused by camera movement, ensuring consistent and accurate image quality. Second, by moving the parts to be assembled rather than the image capture device, the repeatability of the operation is improved. Each shot is taken under the same conditions, which helps ensure the consistency and comparability of the data. And this configuration can be applied to a wider range of product types without being limited by the configuration of the image capture device.
[0100] Once all the image information of the current press-fit surface is obtained, the next image search and processing will be entered. In this stage, the image search area is first determined based on the assembly hole position arrangement information and quantity that matches the current press-fit surface. These search areas are marked on the image, corresponding to each preset assembly hole position. Using this information, the search is performed in a specific area of the image, which improves the search efficiency and accuracy. In order to identify and locate the initial position of each hole to be assembled, a preset image processing algorithm is used. Exemplarily, the application of the image processing algorithm includes multiple stages, the first of which is image preprocessing, such as contrast enhancement, denoising, and color correction, which help to enhance the recognizability of the assembly holes in the image. Subsequently, edge detection, shape recognition, and pattern matching techniques are used to accurately identify the features of the assembly holes in a complex background. Through these image processing steps, even if these holes may be visually very small or have similar colors and textures to the background, the position information of each assembly hole can be analyzed and extracted from the overall image. Further, once the initial position information of each hole to be assembled is determined, it will be recorded. This position information provides reference data for subsequent assembly, which is used to guide the robot arm or other automated devices to align the press-fitted parts with these holes for operation. In addition, this information can also be used to analyze and adjust the mechanical settings during the press-fitting process, such as adjusting the movement path or changing the operation strategy to adapt to the actual observed position deviation. Through this method based on image search and image processing, it is possible to locate each assembly hole, improving the accuracy and efficiency of assembly. This technology not only ensures the high quality standards of the production process, but also significantly reduces production defects caused by position errors.
[0101] In one embodiment, a specific description of an implementation method for obtaining the initial reference information corresponding to the current press-fitting surface in the above step S12 is provided. Based on the above embodiment, it includes:
[0102] S121, query and obtain the assembly hole reference and the photographing position reference matching each assembly hole according to the version type of the current press-fitting surface.
[0103] In this embodiment, after the version type of the current press-fit surface is determined, the assembly hole reference and the photographing position reference that match each assembly hole are obtained through a query operation according to the version type. Specifically, by accessing a comprehensive database or configuration file, according to the determined press-fit surface version type, the detailed assembly parameters that match it are found. These parameters include reference information such as the preset position, size, shape, etc. of each assembly hole, and the photographing position reference set to achieve good image capture. The assembly hole reference refers to the hole position and properties in a predefined, ideal state. The photographing position reference is the set photographing position and angle to ensure that a clear and accurate image can be obtained. These reference information are the prerequisite for assembly. In addition, these reference information are also used for quality monitoring and feedback adjustment mechanisms. During the assembly process, the actual assembly situation is constantly compared with these reference information, and any deviations will be identified and adjusted to ensure that the final product meets the preset quality standards. Through such reference settings and operation processes, operational accuracy can be achieved, production efficiency can be improved, and the defect rate caused by human or mechanical errors can be reduced, ensuring that each product meets the expected quality requirements.
[0104] then, Figure 4 The following is a flow chart of a method for obtaining the initial position offset corresponding to each hole to be assembled provided in an embodiment of the present application. It is an explanation of a specific implementation method for obtaining the initial position offset corresponding to each hole to be assembled in the above step S12. Figure 4 As shown, including:
[0105] S41, calculating and acquiring the assembly hole position offset of each assembly hole according to the initial position information of the assembly hole and the assembly hole reference coordinates corresponding to the assembly hole;
[0106] S42, obtaining the photographing position offset of each hole to be assembled according to the current photographing position and the reference photographing position where the hole to be assembled is located, and obtaining the initial position offset of each hole to be assembled according to the assembly hole position offset and the photographing position offset.
[0107] In this embodiment, it is necessary to calculate the position offset of the hole to be assembled. Specifically, based on the acquired initial position information of the hole to be assembled, this includes the actual position of each hole on the current press-fit surface. These position information are usually obtained by image capture and identified by image processing algorithms. Once these initial position information are obtained, they will be compared with the preset assembly hole reference. These references are defined according to the design specifications of the press-fit surface. By comparing the actual position with this reference position, the assembly hole position offset of each hole to be assembled (i.e., the offset relative to its preset reference position on the press-fit surface) can be calculated. This offset represents the difference between the actual position and the reference position, including the offset in the X and Y coordinates. Next, it is necessary to determine the position of the current photographing position, i.e., the photographing position offset. This offset provides information about the position of the photographing position in the overall device or working area. The photographing position offset is determined by comparing the current photographing position with the preset reference photographing position. Exemplarily, one photographing position can be reselected from multiple photographing positions as the reference photographing position. The assembly hole position offset is combined with the photographing position offset to comprehensively calculate the initial position offset of each hole to be assembled. By combining the assembly hole position offset with the camera position offset, the position of each assembly hole at the first camera shot can be located. This ensures that identification and positioning can be achieved regardless of how the actual position of the assembly hole or the actual camera position of the assembly component changes. This improves the efficiency of the entire assembly process and the consistency of the product. This not only reduces errors and rework in the production process, but also optimizes the overall operation of the production line.
[0108] Figure 5 A schematic flow chart of a method for determining the version type of the current press-fit surface provided in an embodiment of the present application. A specific embodiment is provided for determining the version type in the above step S11. Based on the above embodiment, Figure 5 As shown, including:
[0109] S51, based on a preset sensor, obtaining the size information of the to-be-assembled component to which the current press-fitting surface belongs, and analyzing the image information of the current press-fitting surface to obtain the shape characteristics and surface characteristics of the current press-fitting surface;
[0110] S52, acquiring the version type of the current press-fitting surface according to the size information of the component to be assembled, the shape characteristics and the surface characteristics of the current press-fitting surface.
[0111] In this embodiment, correctly identifying the version type of the current press-fitting surface is the basis for achieving efficient and accurate assembly. First, the preset sensors are used to obtain the size information of the part to be assembled to which the current press-fitting surface belongs. These sensors, such as laser rangefinders or ultrasonic sensors, can provide size data, including the length, width and height of the part to be assembled. After obtaining the size information, the image information of the current press-fitting surface is further analyzed. The image captured by the camera is analyzed by image processing to identify the shape features and surface features of the current press-fitting surface. The shape features may include edge contours, angles and curves, while the surface features include the texture, color and possible marks or imprints of the material. By combining the size information and the shape and surface features extracted from the image, the version type of the current press-fitting surface can be determined. This process involves matching the collected data with the standard features of each version of the press-fitting surface stored in the database. Each version in the database has a description, including a size range and a feature image. Through comparative analysis, the version type that the current press-fitting surface best matches can be identified, ensuring that all subsequent assembly operations are based on the correct version information. Correctly identifying the version type of the press-fit surface is not only related to assembly accuracy, but also directly affects production efficiency and product quality. Using sensor-based and image analysis-based methods for version identification can automatically adjust assembly parameters and strategies to meet the specific requirements of different versions. This automated version identification method greatly reduces the need for manual operation and the error rate, and improves the automation level and degree of automation of the production line.
[0112] In a specific embodiment, a specific implementation method is provided here for obtaining the version type of the current press-fitting surface in the above step S52, which includes:
[0113] S521, according to the size information of the component to be assembled, the shape characteristics and surface characteristics of the current press-fitting surface, the trained support vector machine classification model is used to obtain the version type of the current press-fitting surface; wherein the size information includes the height, length and width of the component to be assembled; the shape characteristics include the diameter of the assembly hole, the distance from the assembly hole to the edge of the component to be assembled and the geometric shape of the current press-fitting surface; the surface characteristics include the surface pattern, character information and texture characteristics of the current press-fitting surface.
[0114] In this embodiment, a support vector machine classification model is used to analyze and determine the specific version type of the press-fit surface. First, it is necessary to collect comprehensive information about the components to be assembled, including size information, shape and surface features. The size information usually covers the height, length and width of the components to be assembled. These data are measured by sensors, such as laser rangefinders or electronic measuring instruments, to ensure the accuracy and reliability of the data. The shape features include the diameter of the assembly hole, the distance from the assembly hole to the edge of the component to be assembled, and the overall geometry of the current press-fit surface. This information is captured and analyzed by a visual system, which can capture every concave and convex and edge on the press-fit surface to ensure a complete record of the shape features. The analysis of surface features includes the recognition of the surface pattern, character information and texture features of the current press-fit surface. These features are analyzed by image processing software, which can parse various patterns and texts on the surface and analyze the texture differences on the surface. This not only helps version identification, but can also be used for subsequent quality control and review work. After collecting these data, the trained support vector machine classification model is used for data analysis. The support vector machine classification model is a powerful machine learning tool suitable for tasks of classifying and recognizing complex patterns. The model achieves efficient classification by constructing one or more hyperplanes to distinguish different types of data points. Before applying the support vector machine classification model, all collected size, shape, and surface data are first converted into a format that the model can handle and then input into the model. The model analyzes these features and predicts the version type that the current press-fit surface is most likely to belong to based on the learned data patterns. This process is not only fast, but also highly accurate, and can quickly guide production decisions in complex production environments. In summary, by using the trained support vector machine classification model combined with data collection and analysis, the version type of the press-fit surface can be effectively identified, and this ability improves the accuracy and efficiency of the press-fitting process. In addition, the application of this method can also help reduce errors and improve the overall performance of the production line.
[0115] In a specific embodiment, Figure 6 A schematic flow chart of a method for obtaining the corrected position offset of a hole to be assembled provided for the implementation of this application. First, a specific description of an implementation method for obtaining the current position information of the hole to be assembled located in the center of the field of view in the above step S13 is given. Based on the above embodiment, it includes:
[0116] S61, based on the hole to be assembled located in the center range of the field of view, according to the current image information of the hole to be assembled, obtaining the current position information of the hole to be assembled.
[0117] In this embodiment, based on the current image information of the hole to be assembled located in the center of the field of view, the assembly hole is identified and located by image processing technology. First, a real-time image of the hole to be assembled is captured by a camera configured on a robotic arm or a mobile platform. The camera can capture clear images under various lighting conditions to ensure that the image quality is sufficient for subsequent detailed analysis. After moving, the hole to be assembled is located close to (or in) the center of the field of view, which can maximize the identification of errors that may be caused by camera lens distortion. After obtaining the image, the image data is transmitted to the image processing. Preset image processing algorithms are used to analyze the image and identify the exact location of the hole to be assembled. Exemplarily, these algorithms may include edge detection technology for identifying the outline of the hole; pattern recognition technology for comparing the shape of the hole with a known template; and feature point detection technology for calibrating the center point of the hole or other key features. Through these technologies, the position coordinates of the hole to be assembled can be calculated, including the X and Y coordinates of the center point of the hole in the image. The exact position data enables the mechanical device to align the assembly tool with each assembly hole with high accuracy, thereby ensuring the successful execution of the press-fitting operation.
[0118] Next, in the above step S13, according to the current position information of the hole to be assembled and the correction reference information, an implementation method is described, which includes:
[0119] S62, query and obtain the correction reference information matching the size information of the component to be assembled, and obtain the correction position offset of the hole to be assembled according to the correction reference information and the current position information.
[0120] In this embodiment, the correction reference information is queried according to the specific size information of the parts to be assembled. These correction reference information are pre-set in the database of the system and are constructed based on a large amount of historical data and previous successful assembly cases. These reference information include various possible position adjustment parameters for parts to be assembled of different sizes, such as offset angle, offset distance, etc., to adapt to possible mechanical errors or slight changes in the assembly process. By matching the size of the parts to be assembled and the corresponding correction reference, the most suitable adjustment can be provided for each specific assembly task. After obtaining the matching correction reference information, the correction position offset of the hole to be assembled will be calculated in combination with the current position information. The current position information provides the position of the hole to be assembled in the actual assembly environment. Combined with the correction reference, the required correction offset is obtained by calculating the difference between the current position and the reference position. This offset not only includes the difference in the X and Y coordinates, but may also include angle adjustment to ensure that the assembly tool can accurately align each hole. The calculated correction position offset will be used to adjust the movement of the robot arm or other assembly equipment to ensure that each assembly hole can be calibrated (or compensated) during press-fitting. This method of using the corrected reference information and actual position information in combination can improve assembly accuracy and minimize quality problems caused by camera distortion or operation deviation. This not only optimizes the production process and reduces the scrap rate, but also ensures the consistency and reliability of product quality, bringing economic benefits to the company.
[0121] In a specific embodiment, after the hole to be assembled is moved to the center of the field of view, a clear image of the hole to be assembled in the center of the field of view can be obtained. At this time, it can be determined whether there is an assembly component in the current assembly hole based on the image information. The process relies on the camera to analyze the image information inside the hole to be assembled. After the image is captured, the optical characteristics of the hole are checked using an image processing algorithm. If a press-fit component is installed in the hole, white spots usually appear in the image, which is caused by the reflection of light by the material or surface treatment of the press-fit component. Conversely, if there is no assembly component in the hole, the inside of the hole usually appears uniformly black because there is no substance to reflect light. Whether there is a press-fit component in the hole is automatically determined by analyzing the brightness changes in the captured image. This method not only simplifies the detection process, but also greatly improves the accuracy and reliability of the detection. In this way, holes that are not assembled as specified can be quickly identified, and corresponding alarms or corrective measures can be triggered accordingly, such as stopping the assembly line, prompting the operator to perform manual inspection or automatic reassembly. This verification step ensures quality control of the assembly process, reduces the defect rate of the finished product, and improves the efficiency of the entire production process and the consistency of the product.
[0122] Figure 7The schematic flow chart of the method for assembling the to-be-assembled hole provided in the embodiment of the present application is a specific description of an implementation method for completing the assembly of the to-be-assembled hole in the above step S14. Figure 7 As shown, including:
[0123] S71, generating a movement instruction including the initial position offset and the correction position offset according to the initial position offset and the correction position offset, and sending the movement instruction to the moving device, so as to move the hole to be assembled to a preset press-fitting position through the moving device;
[0124] S72, querying and acquiring press-fitting reference information matching the size information of the component to be assembled, and after determining that the moving device has completed the movement according to the moving instruction, completing the assembly of the hole to be assembled according to the press-fitting reference information.
[0125] In this embodiment, the initial position offset and the corrected position offset of the assembly hole are first considered comprehensively. The initial position offset is based on the relative deviation of the assembly hole on the assembly surface from the preset reference position, while the corrected position offset further considers the additional offset caused by the distortion of the image capture device or the system error. Through the data of these two offsets, a more accurate instruction, such as a movement instruction, can be generated, which instructs the mobile device to adjust the assembly hole to the press-fit position. This movement instruction not only considers the conversion of spatial coordinates, but also includes the necessary speed and acceleration parameters to ensure that the movement of the mobile device is smooth and accurate. After being sent to the mobile device, these instructions will be executed to physically align the assembly hole to the assembly tool, thereby preparing for the press-fit operation. Once the assembly hole is moved to the preset press-fit position, a query operation will be performed to obtain the press-fit reference information matching the size information of the assembly component. These reference information are pre-set according to the specifications of different components, including parameters such as the necessary press-fit force, angle and duration. These press-fit reference information are used in the final assembly process to ensure that each operation is strictly performed in accordance with the process standards. This not only improves assembly quality, but also ensures product consistency and reliability. After completing these operations, the press-fitting results are monitored to confirm whether they meet quality standards, and records are kept for future reference. Through this method of combining position offset information and press-fitting reference information, complex press-fitting tasks can be completed efficiently, ensuring that each assembly step is accurate. This not only improves production efficiency, but also greatly improves the overall quality and consistency of the product, improves the automation level of the production line, reduces human errors, and optimizes the production process.
[0126] Figure 8 The schematic diagram of the structure of the assembly system provided in the embodiment of the present application. The assembly system mainly includes a tray, a mobile device, a servo press, a visual system (usually including an image acquisition part and a data processing part) and an electronic control system. Figure 8As shown, in a specific embodiment, it includes a hydraulic valve block 1, a pallet 2, a cylinder 3, an electric cylinder 4, an industrial camera 5, and a servo press 6.
[0127] Specifically, the tray 2 is used to place the hydraulic valve block 1, and is designed to accommodate two hydraulic valve blocks 1 for batch processing. The moving device allows the tray 2 to move in the X and Y directions, so that the tray 2 can be accurately positioned in the designated area of the assembly line, which is assisted by the cylinder 3 to stabilize the hydraulic valve block 1 during the movement to ensure accurate movement and positioning. And the electric cylinder 4 is generally used to provide accurate linear motion control. It is an electric actuator that can control the distance, speed and force of movement to achieve high-precision positioning and operation. This can flexibly handle different workstation requirements, from assembly to press fitting without manual intervention, greatly improving production efficiency and safety. The servo press 6 in the system is responsible for performing the press fitting operation. Compared with traditional press fitting equipment, the servo press 6 can provide more accurate pressure and position control to ensure that each press fitting can achieve the preset effect. In addition, the servo is designed as a fixed device and is equipped with an industrial camera 5 nearby. This layout has higher stability and reduces the error that may be introduced due to equipment movement. The visual system includes an industrial camera 5, which can capture image information of the hydraulic valve block 1 and identify the features of the assembly surface through an image processing algorithm. When an abnormal situation is identified, the system will automatically sound an alarm. At the same time, the visual system is also responsible for calculating the position coordinates of the holes to be assembled, and guiding the mobile device to accurately move the workpiece to the preset position. The cylinder 3 is an auxiliary component in the assembly, which is used to tighten and fix the product during the assembly and press-fitting process to ensure stability and accuracy during the operation. The sensor is responsible for detecting the size and position of the product and providing necessary feedback information to the control device for real-time adjustment and optimization. The assembly system provided in this embodiment can not only efficiently process and assemble the hydraulic valve block 1, but also ensure that each product meets strict quality standards. The application of this system improves the automation level and production efficiency of the manufacturing process.
[0128] Furthermore, based on this system, the method of the embodiment of the present application is further explained. Fig. 9 A schematic diagram of obtaining an image of a specific valve block provided in an embodiment of the present application. According to the size of different versions of the product, a corresponding number of photographing positions for the first photographing (first image acquisition) are set, such as Fig. 9 As shown in the figure, there are 4 preset photo positions. After the product version is determined, the vehicle is controlled to carry the product to the corresponding photo position for taking pictures, and the target is calculated and analyzed in the entire camera field of view (the sum of the images of the four photo positions is the entire field of view as the search area). When the system obtains the position information of the ball blocking the hole, it immediately guides the ball blocking the hole to the center of the camera field of view (only a small box below is the search area) for secondary positioning. That is, there are 4 photo positions for the first time and 1 photo position for the second time. Specific process:
[0129] Fixing: Place the hydraulic valve block on the pallet and fix the valve block with a cylinder to ensure that the valve block is in a stable position during movement and press-fitting.
[0130] Preparation: The mobile device moves the pallet with the valve block to four preset photo positions according to the instructions of the control system. At each photo position, the industrial camera captures the image of the valve block and analyzes the size and press-fit surface features of the valve block through the visual system. These image data are used to identify the specific version of the product and check whether there is a ball plug. If the ball plug is found to be missing, an alarm will be issued, requiring the operator to replenish the missing parts and restart the assembly process.
[0131] First photo location: Fig.10 Schematic diagram of the first photo positioning provided in the embodiment of the present application. Calculate the position information (X) of each ball blocking hole 11 , Y 11 )、(X 12 , Y 12 )……(X 1n , Y 1n ). 11 , Y 11 )、(X 12 , Y 12 )……(X 1n , Y 1n ) is successively compared with the preset reference position (X a , Y a ) to calculate the position offset of all ball plugging holes (DX 11 , DY 11 ), (DX 12 , DY 12 )……(DX 1n , DY 1n ); and the distance (DCX, DCY) between the photographing position here and the photographing position 1 (reference photographing position) is calculated to calculate the new position to which the ball plug hole should be moved. During the first positioning, each ball plug hole on each press-fitting surface will have its own reference position.
[0132] Second photo location: Fig.11 Schematic diagram of the second photo positioning provided in the embodiment of the present application. According to the offset data, the mobile device is guided to adjust the position of the tray so that the ball plug hole to be pressed is aligned with the center of the camera field of view. The key to the secondary positioning here is to adjust the image obtained by the camera to ensure that the error caused by lens distortion can be measured and corrected. Move a certain press-fit hole to be pressed to the center of the camera field of view, such as Fig.11 As shown, the coordinates (X2, Y2) of the ball plugging hole at the visual center are obtained, and the reference coordinates (X b , Y b), calculate the second offset, i.e. the corrected offset (DX2, DY2). During the second positioning, all ball plug holes on the press-fit surface share a common reference position.
[0133] Pressing offset: The calculated first photo positioning coordinate offset (DX 11 , DY 11 ) and the calculated second-time photo positioning coordinate offset (DX2, DY2) are added to calculate the press-fit position offset (DX3, DY3);
[0134] Pressing and product inspection: The press-fitting position coordinates are calculated based on the coordinate offset data to guide the tray carrying the product into the press-fitting position and start press-fitting; after the press-fitting is completed, the tray enters the discharge port, the cylinder is released, and the operator or automatic machine can take away the processed product. At the same time, the visual system sends the recorded ball plugging hole position data to the electronic control system, which uses this data for final inspection to ensure that each ball plugging hole is accurately pressed.
[0135] Through this series of steps, the assembly system can efficiently handle and press-fit hydraulic valve blocks, ensuring assembly quality while improving the overall efficiency and output of the production line.
[0136] Here, specific implementation methods are given for the establishment of various benchmarks. These benchmarks include the establishment of the initial benchmark position and the correction benchmark position. When the equipment is debugged for the first time, the valve block will be placed in the standard position, and then the photo position and the press-fitting position will be set. During the setting process, the product position must remain fixed. At this time, this position is obtained as the benchmark position. From then on, this position will be used as the benchmark to calculate the offset. During the first positioning, each ball plug hole on each press-fitting surface will have its own benchmark position. For the correction benchmark position, put the valve block in the standard position, select one of the ball plug holes as the benchmark hole, move this hole to the center of the camera field of view, obtain the position at this time as the benchmark for the secondary positioning (i.e., the correction benchmark position), move this hole to the bottom of the press, and obtain the position at this time as the press-fitting benchmark.
[0137] Fig.12 This is a schematic diagram of the structure of a control device provided in an embodiment of the present application. In this embodiment, the control device 12 includes:
[0138] The initial position information acquisition module 121 is used to acquire the assembly feature information matching the current press-fitting surface after determining the version type of the current press-fitting surface, and acquire the initial position information of each to-be-assembled hole on the current press-fitting surface according to the assembly feature information;
[0139] The first positioning module 122 is used to obtain the initial reference information corresponding to the current press-fitting surface, obtain the initial position offset corresponding to each hole to be assembled according to the initial reference information and the initial position information of each hole to be assembled, and sequentially send movement instructions including the initial position offset and initial position information corresponding to the hole to be assembled, so as to realize the movement of each assembly hole to the center range of the camera field of view in sequence through the moving device;
[0140] The second positioning module 123 is used to obtain the current position information of the hole to be assembled after determining that the moving device has completed the movement according to the moving instruction, and obtain the corrected position offset of the hole to be assembled according to the current position information of the hole to be assembled and the corrected reference information;
[0141] The assembly execution module 124 is used to send assembly instructions containing the initial position offset and the corrected position offset in sequence according to the initial position offset and the corrected position offset corresponding to each hole to be assembled, so as to complete the assembly of the holes to be assembled.
[0142] The control device provided in this embodiment can execute the technical solutions of the above embodiments. Its implementation principle and technical effects are similar to those of the above method embodiments, and will not be described in detail here.
[0143] According to an embodiment of the present invention, the present invention also provides an electronic device, a computer-readable storage medium and a computer program product.
[0144] like Fig.13 As shown, Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. It is intended that various electronic devices that can perform the assembly method are used, such as microcomputers, single-chip microcomputers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0145] like Fig.13 As shown, the electronic device includes: the electronic device 13 includes: at least one processor 131 and a memory 132. The electronic device 13 also includes a communication component 133. The processor 131, the memory 132 and the communication component 133 are connected via a bus 134.
[0146] In the specific implementation process, at least one processor 131 executes the computer execution instructions stored in the memory 132, so that at least one processor 131 executes the above method executed by the electronic device side.
[0147] The specific implementation process of the processor 131 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0148] The memory 132 is a non-transitory computer-readable storage medium provided by the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions, and the computer instructions are used to enable a computer to execute the injection valve fault diagnosis method provided by the present invention.
[0149] The memory 132 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the injection valve fault diagnosis method in the embodiment of the present invention. The processor 131 executes various functional applications and data processing by running the non-transient software programs, instructions and modules stored in the memory 132, that is, the injection valve fault diagnosis method in the above method embodiment is implemented.
[0150] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0151] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0152] At the same time, an embodiment of the present application also provides a computer program product, including a computer program. When the instructions in the computer program product are executed by a processor, the injection valve fault diagnosis method of the above embodiment can be executed.
[0153] Those skilled in the art will readily appreciate other implementations of the embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the embodiments of the present invention that follow the general principles of the embodiments of the present invention and include common knowledge or customary technical means in the art that are not disclosed in the embodiments of the present invention. The specification and examples are to be regarded as exemplary only, and the true scope and spirit of the embodiments of the present invention are indicated by the claims.
[0154] It should be understood that the embodiments of the present invention are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present invention is limited only by the appended claims.
Claims
1. An assembly method based on machine vision, applied to an assembly system having a mobile device and an image capture device, characterized in that: include: After determining the version type of the current press-fit surface, obtaining assembly feature information matching the current press-fit surface, and obtaining initial position information of each to-be-assembled hole on the current press-fit surface according to the assembly feature information; Acquire initial reference information corresponding to the current press-fitting surface, acquire the initial position offset corresponding to each hole to be assembled according to the initial reference information and the initial position information of each hole to be assembled, and sequentially send movement instructions including the initial position offset corresponding to the hole to be assembled and the initial position information, so as to realize that each assembly hole is sequentially moved to the central range of the field of view of the image capture device through the moving device; Based on any of the movement instructions, after determining that the moving device has completed the movement according to the movement instruction, obtaining the current position information of the hole to be assembled located in the center range of the field of view, and obtaining the corrected position offset of the hole to be assembled according to the current position information of the hole to be assembled and the corrected reference information; According to the initial position offset and the corrected position offset corresponding to each of the holes to be assembled, assembly instructions containing the initial position offset and the corrected position offset are sent in sequence to complete the assembly of the holes to be assembled.
2. The method according to claim 1, characterized in that The acquiring of assembly feature information matching the current press-fit surface includes: After determining the version type of the current press-fit surface, query and obtain assembly feature information matching the current press-fit surface; wherein the assembly feature information includes the size of the current press-fit surface, the position arrangement information of the assembly holes, and the number of the assembly holes; Then, according to the assembly feature information, the initial position information of each to-be-assembled hole on the current press-fit surface is obtained, including: According to the size of the current press-fitting surface and the preset image size information, the photographing position information of the current press-fitting surface is obtained, and according to the photographing position information, the image information corresponding to each photographing position is sequentially obtained to obtain all the image information of the current press-fitting surface; wherein the photographing position information includes the number and position of the photographing positions; According to the assembly hole position arrangement information and quantity matching the current press-fitting surface, the image search area of the current press-fitting surface is obtained, and based on the image search area, all image information of the current press-fitting surface is searched, and a preset image processing algorithm is used to identify and obtain the initial position information of each hole to be assembled.
3. The method according to claim 2, characterized in that The acquiring of initial reference information corresponding to the current press-fitting surface includes: According to the version type of the current press-fit surface, query and obtain the assembly hole reference and the photographing position reference matching each assembly hole; Then, the initial position offset corresponding to each hole to be assembled is obtained according to the initial reference information and the initial position information of each hole to be assembled, including: Calculate and obtain the assembly hole position offset of each assembly hole according to the initial position information of the assembly hole and the assembly hole reference coordinates corresponding to the assembly hole; According to the current photographing position and the reference photographing position where the hole to be assembled is located, the photographing position offset of each hole to be assembled is obtained, and according to the assembly hole position offset and the photographing position offset, the initial position offset of each hole to be assembled is obtained.
4. The method according to claim 1 or 2, characterized in that: Determining the version type of the current press-fit surface includes: Based on a preset sensor, the size information of the to-be-assembled component to which the current press-fitting surface belongs is obtained, and the image information of the current press-fitting surface is analyzed to obtain the shape characteristics and surface characteristics of the current press-fitting surface; The version type of the current press-fitting surface is acquired according to the size information of the component to be assembled, the shape characteristics and the surface characteristics of the current press-fitting surface.
5. The method according to claim 4, characterized in that The step of obtaining the current position information of the hole to be assembled located in the center of the field of view includes: Based on the hole to be assembled located in the center range of the field of view, according to the current image information of the hole to be assembled, obtaining the current position information of the hole to be assembled; Then, according to the current position information of the hole to be assembled and the corrected reference information, the corrected position offset of the hole to be assembled is obtained, including: Correction reference information matching the size information of the to-be-assembled component is queried and acquired, and a corrected position offset of the to-be-assembled hole is acquired according to the correction reference information and the current position information.
6. The method according to claim 4, characterized in that The step of sending assembly instructions including the initial position offset and the corrected position offset in sequence according to the initial position offset and the corrected position offset corresponding to each of the holes to be assembled to complete the assembly of the holes to be assembled includes: Generate a movement instruction including the initial position offset and the corrected position offset according to the initial position offset and the corrected position offset, and send the movement instruction to the moving device, so as to move the hole to be assembled to a preset press-fitting position through the moving device; Press-fitting reference information matching the size information of the component to be assembled is queried and acquired, and after determining that the moving device has completed the movement according to the movement instruction, the assembly of the hole to be assembled is completed according to the press-fitting reference information.
7. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: After determining the version type of the current press-fit surface, obtaining the status of the assembly components in all the to-be-assembled holes on the current press-fit surface; If the state of the press-fit component in the to-be-assembled hole is existence, obtaining the initial position information of all the to-be-assembled holes on the current press-fitting surface; or, If the state of the press-fit component in the hole to be assembled is non-existent, an alarm message is issued.
8. The method according to claim 4, characterized in that The step of obtaining the version type of the current press-fitting surface according to the size information of the component to be assembled, the shape characteristics and the surface characteristics of the current press-fitting surface comprises: According to the size information of the component to be assembled, the shape characteristics and the surface characteristics of the current press-fitting surface, the version type of the current press-fitting surface is obtained by using a trained support vector machine classification model; Wherein, the size information includes the height, length and width of the component to be assembled; The shape features include the diameter of the assembly hole, the distance from the assembly hole to the edge of the component to be assembled, and the geometric shape of the current press-fit surface; The surface features include the surface pattern, character information and texture features of the current press-fitting surface.
9. A control device, characterized in that: include: An initial position information acquisition module, used to acquire assembly feature information matching the current press-fit surface after determining the version type of the current press-fit surface, and acquire initial position information of each to-be-assembled hole on the current press-fit surface according to the assembly feature information; A first positioning module, used to obtain initial reference information corresponding to the current press-fitting surface, obtain the initial position offset corresponding to each hole to be assembled according to the initial reference information and the initial position information of each hole to be assembled, and sequentially send movement instructions including the initial position offset corresponding to the hole to be assembled and the initial position information, so as to realize that each assembly hole is sequentially moved to the central range of the field of view of the image capture device through the moving device; A second positioning module is used for obtaining the current position information of the hole to be assembled located in the center range of the field of view based on any of the movement instructions after determining that the mobile device has completed the movement according to the movement instruction, and obtaining the corrected position offset of the hole to be assembled according to the current position information of the hole to be assembled and the corrected reference information; The assembly execution module is used to send assembly instructions containing the initial position offset and the corrected position offset in sequence according to the initial position offset and the corrected position offset corresponding to each of the holes to be assembled, so as to complete the assembly of the holes to be assembled.
10. An electronic device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the assembly method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the assembly method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the assembly method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Assembly inspection apparatus and assembly processing apparatus using the same
CN102207370A
Method for installing dental cast and base
CN115635272A
Camera product assembling method, equipment, system and storage medium
CN116160239A
Workpiece machining method and device, machining equipment and readable storage medium
CN117608237A
Building visual displacement monitoring system and monitoring method thereof
CN117704970A
Cited By
Machine-vision-guided intelligent assembling method for gear boxes of co-rotating parallel double-screw extruder and execution system
CN120326345A
Bicycle center shaft press-fitting machining system based on machine vision positioning
CN121042865A
Digital intelligent production method and equipment for liquid storage device of air conditioner and medium
CN121245424A
Door and window frame quality detection data processing method and system
CN122198776A
