A data correction method and device, electronic equipment and storage medium

By detecting abnormalities in the locking device and obtaining screw hole position information, calculating the offset, and correcting the template file, the problem of low positioning accuracy in robot locking was solved, and the positioning accuracy of screw hole locking was improved.

CN119973898BActive Publication Date: 2025-11-11HEFEI LCFC INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411985394.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-11-11
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

When positioning screw holes for robot fastening, the positioning accuracy is low due to the offset between the screw hole and the center of the positioning camera's field of view. Existing technologies cannot effectively correct template files to improve positioning accuracy.

Method used

When an anomaly is detected in the fastening device, the first position information of the screw hole of the target device is obtained, the second position information is collected using the fastening device, the screw hole offset is calculated and the template file is corrected, and the screw hole position information is adjusted to improve the positioning accuracy.

Benefits of technology

When the fastening equipment malfunctions, the positioning accuracy of screw hole fastening is improved by automatically correcting the template file, ensuring the precision of the robot fastening operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119973898B_ABST
    Figure CN119973898B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data correction method and device, electronic equipment and storage medium. The method comprises: acquiring a template file to be corrected when detecting an abnormality of a locking device, the template file to be corrected comprising first position information of a plurality of screw holes of a target device; acquiring second position information of each screw hole of the target device based on the locking device; determining screw hole offset information according to the first position information and the second position information; and correcting the template file to be corrected based on the screw hole offset information. The method realizes automatic correction of the template file and improves the locking positioning accuracy of screw hole locking using the template file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and in particular to a data correction method, apparatus, electronic device, and storage medium. Background Technology

[0002] In the manufacturing process of laptops, due to the large number and variety of keyboard screws, robotic screw fastening is typically employed. Automatic screw fastening requires pre-extracting screw hole position information and storing it in a template file. This template file guides the robot to the screw hole positions during screw fastening. However, the robot's fastening positioning accuracy is affected by the offset distance between the screw hole and the center of the positioning camera's field of view. A larger offset results in a greater positioning error, leading to low accuracy when the robot uses the template file for screw hole fastening. Therefore, how to automatically correct the screw hole position template file and improve the fastening positioning accuracy has become a pressing technical problem. Summary of the Invention

[0003] This disclosure provides a data correction method, apparatus, electronic device, and storage medium.

[0004] According to a first aspect of this disclosure, a data correction method is provided, the method comprising:

[0005] When an abnormality is detected in the locking device, a template file to be corrected is obtained, which includes the first position information of multiple screw holes of the target device;

[0006] Based on the fastening device, the second position information of each screw hole of the target device is obtained;

[0007] Based on the first position information and the second position information, determine the screw hole offset information;

[0008] Based on the screw hole offset information, the template file to be corrected is corrected.

[0009] In one embodiment of this application, obtaining the second position information of each screw hole of the target device based on the locking device includes:

[0010] The fastening device is controlled to acquire image information of each screw hole of the target device in the fastening sequence;

[0011] The second position information of each screw hole of the target device is determined based on the image information.

[0012] In one embodiment of this application, determining the screw hole offset information based on the first position information and the second position information includes:

[0013] Obtain the second position information of the screw holes corresponding to a preset number of target devices to obtain a preset number of sets of second position information;

[0014] Determine the position offset between each set of second position information and the first position information;

[0015] Determine the variance corresponding to the position offset of each group, and use it as the screw hole offset information.

[0016] In one embodiment of this application, the step of correcting the template file to be corrected based on the screw hole offset information includes:

[0017] Determine whether the variance is less than a preset variance threshold;

[0018] If so, correct the template file to be corrected according to the variance.

[0019] According to a second aspect of this disclosure, a data correction apparatus is provided, the apparatus comprising:

[0020] The first information acquisition module is used to acquire a template file to be corrected when an abnormality is detected in the locking device. The template file to be corrected includes the first position information of multiple screw holes of the target device.

[0021] The second information acquisition module is used to acquire the second position information of each screw hole of the target device based on the locking device;

[0022] The offset information determination module is used to determine the screw hole offset information based on the first position information and the second position information;

[0023] The calibration module is used to calibrate the template file to be calibrated based on the screw hole offset information.

[0024] In one embodiment of this application, the second information acquisition module is specifically used to control the fastening device to acquire image information of each screw hole of the target device in fastening sequence; and to determine the second position information of each screw hole of the target device based on the image information.

[0025] In one embodiment of this application, the offset information determination module is specifically used to obtain the second position information of screw holes corresponding to a preset number of target devices, to obtain a preset number of sets of second position information; determine the position offset between each set of second position information and the first position information; and determine the variance corresponding to each set of position offsets as screw hole offset information.

[0026] In one embodiment of this application, the correction module is specifically used to determine whether the variance is less than a preset variance threshold; if so, to correct the template file to be corrected based on the variance.

[0027] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0028] At least one processor; and

[0029] A memory that is communicatively connected to the at least one processor;

[0030] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method described in this disclosure.

[0031] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the methods described in this disclosure.

[0032] The data correction method provided in this disclosure involves obtaining a template file to be corrected when an anomaly is detected in the fastening device. This template file includes first position information of multiple screw holes on the target device. Second position information of each screw hole on the target device is obtained based on the fastening device. Screw hole offset information is determined based on the first and second position information. The template file to be corrected is then corrected based on the screw hole offset information. When an anomaly occurs in the fastening device, the position information of each screw hole on the target device is determined using the fastening device. The screw hole offset information is then used to determine the screw hole offset information, thus achieving automatic correction of the template file. This automatic correction of the template file also improves the fastening positioning accuracy of using the template file for screw hole fastening.

[0033] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0034] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which:

[0035] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.

[0036] Figure 1 This illustration shows a schematic diagram of an implementation flow of the data correction method provided in an embodiment of this application;

[0037] Figure 2 This illustration shows a schematic diagram of screw hole position correction provided in an embodiment of this application;

[0038] Figure 3 This paper shows a schematic diagram of a data correction device provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation

[0040] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0041] Because the positioning accuracy of current robot screw fastening is affected by the offset distance between the screw hole and the center of the positioning camera's field of view, the positioning accuracy of the robot when using a template file for screw fastening is relatively low. Therefore, to automatically correct the template file for screw hole positions and improve the positioning accuracy, this application provides a data correction method, apparatus, electronic device, and storage medium. The electronic device provided in this application can be a mobile phone, computer, tablet computer, or similar device.

[0042] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings.

[0043] Figure 1 This illustration shows a schematic diagram of an implementation flow of the data correction method provided in an embodiment of this application, such as... Figure 1 As shown, the method includes:

[0044] S101, when an abnormality is detected in the locking device, a template file to be corrected is obtained, wherein the template file to be corrected includes the first position information of multiple screw holes of the target device.

[0045] In this disclosure, a screw-fastening device refers to a device that fastens screws into the screw holes of a target device. For example, a screw-fastening device may include a robot that fastens screws. Abnormalities in the screw-fastening device include collisions or misalignment of the device's mounting bracket. The target device may be an electronic device such as a laptop or mobile phone.

[0046] In this disclosure, the template file includes signals such as the type and location of the screw holes in the target device and the corresponding screw model. The template file to be corrected includes the first position information of multiple screw holes on the target device. The first position information includes the position coordinates of the screw holes.

[0047] In this disclosure, calibration function options can also be pre-set via calibration software. These options are used to initiate calibration operations on the template file. If the user enables the calibration function options in the calibration software, the template file to be calibrated can be obtained and calibrated when an anomaly is detected in the locking device. If the user does not enable the calibration function options in the calibration software, the template file to be calibrated may not be calibrated after an anomaly is detected in the locking device.

[0048] S102, based on the locking device, obtain the second position information of each screw hole of the target device.

[0049] In this disclosure, after detecting an abnormality in the fastening device, the fastening device can be controlled to mark the actual position coordinates of each screw hole on the target device as the second position information of the screw holes.

[0050] In one possible implementation, obtaining the second position information of each screw hole of the target device based on the locking device may include steps A1-A2:

[0051] Step A1: Control the fastening device to collect image information of each screw hole of the target device according to the fastening sequence.

[0052] In this disclosure, the operating trajectory of the locking device can be preset, for example, operating in a sequence from left to right and from top to bottom on the surface of the target device. The operating trajectory can be used as the locking sequence.

[0053] In this disclosure, the fastening device can be controlled to acquire images of each screw hole of the target device in the fastening sequence, or images of all screw holes of the target device can be acquired.

[0054] Step A2: Determine the second position information of each screw hole of the target device based on the image information.

[0055] In this disclosure, a contour detection algorithm can be used to extract the screw hole contours of each screw hole included in the image information. Then, the geometric center coordinates of the screw hole contours of each screw hole are calculated, and the geometric center coordinates of the screw hole contours are used as the second position information of the screw holes.

[0056] S103, determine the screw hole offset information based on the first position information and the second position information.

[0057] In this disclosure, the positional offset between the first position information and the second position information of each screw hole of the target device can be calculated as screw hole offset information.

[0058] In one possible implementation, determining the screw hole offset information based on the first position information and the second position information may include steps B1-B3:

[0059] Step B1: Obtain the second position information of the screw holes corresponding to a preset number of target devices, and obtain a preset number of sets of second position information.

[0060] In this disclosure, the preset quantity can be set to 4 or 5, etc.

[0061] Step B2: Determine the position offset between each group of second position information and the first position information.

[0062] In this disclosure, a fastening device can be used to fasten the screw holes of multiple target devices, thereby obtaining the positional offset between the actual position coordinates of each screw hole on each target device and the position coordinates recorded in the template file to be calibrated. The positional offset may include lateral offset and longitudinal offset.

[0063] For example, if the fastening device collects the second position information of the screw holes of 5 target devices, and determines the positional offset between each set of second position information and the first position information, the lateral offset and longitudinal offset corresponding to each target device can be obtained:

[0064] The offsets are (x1_offset, y1_offset), (x2_offset, y2_offset), (x3_offset, y3_offset), (x4_offset, y4_offset), and (x5_offset, y5_offset). Here, x1_offset, x2_offset, x3_offset, x4_offset, and x5_offset represent the lateral offsets of the screw hole positions corresponding to each target device, and y1_offset, y2_offset, y3_offset, y4_offset, and y5_offset represent the longitudinal offsets of the screw hole positions corresponding to each target device.

[0065] Step B3: Determine the variance corresponding to the position offset of each group, as the screw hole offset information.

[0066] In this disclosure, the variance corresponding to each group of position offsets can be determined using the following formula:

[0067]

[0068] Among them, S 2 Let x represent the variance corresponding to the position offset, n represent the number of target devices, m represent the average position offset of a preset number of groups, and x represent the variance.i This represents the position offset of the i-th group.

[0069] In this disclosure, the variances corresponding to the lateral offsets of each group and the longitudinal offsets of each group can also be calculated separately.

[0070] S104, Based on the screw hole offset information, correct the template file to be corrected.

[0071] In this disclosure, the position information of the corresponding screw holes in the template file to be corrected can be adjusted according to the screw hole offset information to achieve automatic correction of the template file.

[0072] The data correction method provided in this disclosure involves obtaining a template file to be corrected when an anomaly is detected in the fastening device. This template file includes first position information of multiple screw holes on the target device. Second position information of each screw hole on the target device is obtained based on the fastening device. Screw hole offset information is determined based on the first and second position information. The template file to be corrected is then corrected based on the screw hole offset information. When an anomaly occurs in the fastening device, the position information of each screw hole on the target device is determined using the fastening device. The screw hole offset information is then used to determine the screw hole offset information, thus achieving automatic correction of the template file. This automatic correction of the template file also improves the fastening positioning accuracy of using the template file for screw hole fastening.

[0073] In one possible implementation, correcting the template file to be corrected based on the screw hole offset information may include steps C1-C2:

[0074] Step C1: Determine whether the variance is less than a preset variance threshold.

[0075] In this disclosure, it is possible to determine whether the variances corresponding to each group of horizontal offsets and each group of vertical offsets are both less than a preset variance threshold. The preset variance threshold can be set according to actual application requirements.

[0076] Step C2, if yes, correct the template file to be corrected according to the variance.

[0077] If the variances corresponding to the lateral offsets of each group and the longitudinal offsets of each group are both less than the preset variance threshold, it indicates that the carrier position of the locking device is stable and suitable for correction, and the template file can be corrected.

[0078] Specifically, for each screw hole of the target device in the template file, the sum of the lateral position coordinate of the screw hole recorded in the template file and the corresponding lateral offset can be calculated as the new lateral position coordinate. Similarly, the sum of the longitudinal position coordinate of the screw hole recorded in the template file and the corresponding longitudinal offset can be calculated as the new longitudinal position coordinate. The new lateral and longitudinal position coordinates for each screw hole are then updated in the template file to obtain the corrected template file.

[0079] In this disclosure, if the variances corresponding to the lateral offsets of each group and the longitudinal offsets of each group are not less than a preset variance threshold, it indicates that the carrier position of the fastening device is unstable, which will affect the screw fastening operation and is not conducive to the correction of the template file.

[0080] Figure 2 This illustration shows a schematic diagram of screw hole position correction provided in an embodiment of this application, as shown below. Figure 2 As shown, the positional offset between the actual position of the screw hole and the screw hole position 210 recorded in the template file is collected by the fastening device. Based on the positional offset, the screw hole position 210 recorded in the template file is corrected to obtain the corrected screw hole position 220. The corrected screw hole position 220 is then updated to the template file, thus realizing the correction of the template file.

[0081] Using the data correction method provided in this disclosure, when the fastening device malfunctions, the position information of each screw hole of the target device is determined by the fastening device. The screw hole offset information is determined by using the position information and the position information in the template file to be corrected. The template file is automatically corrected by the screw hole offset information. The fastening positioning accuracy of the screw hole fastening using the template file is also improved by automatically correcting the template file.

[0082] Based on the same inventive concept, and according to the data correction method provided in the above embodiments of this disclosure, another embodiment of this disclosure also provides a data correction device, the structural schematic diagram of which is shown below. Figure 3 As shown, it specifically includes:

[0083] The first information acquisition module 301 is used to acquire a template file to be corrected when an abnormality is detected in the locking device. The template file to be corrected includes the first position information of multiple screw holes of the target device.

[0084] The second information acquisition module 302 is used to acquire the second position information of each screw hole of the target device based on the locking device;

[0085] The offset information determination module 303 is used to determine the screw hole offset information based on the first position information and the second position information;

[0086] The correction module 304 is used to correct the template file to be corrected based on the screw hole offset information.

[0087] Using the data correction device provided in this disclosure, when an anomaly is detected in the fastening device, a template file to be corrected is acquired. The template file includes first position information of multiple screw holes on the target device. Second position information of each screw hole on the target device is acquired based on the fastening device. Screw hole offset information is determined based on the first and second position information. The template file to be corrected is then corrected based on the screw hole offset information. When an anomaly occurs in the fastening device, the position information of each screw hole on the target device is determined using the fastening device. The screw hole offset information is then used to determine the screw hole offset information, thus achieving automatic correction of the template file. This automatic correction of the template file also improves the fastening positioning accuracy of using the template file for screw hole fastening.

[0088] In one embodiment, the second information acquisition module 302 is specifically used to control the fastening device to acquire image information of each screw hole of the target device in fastening sequence; and to determine the second position information of each screw hole of the target device based on the image information.

[0089] In one possible implementation, the offset information determination module 303 is specifically used to obtain the second position information of screw holes corresponding to a preset number of target devices, to obtain a preset number of sets of second position information; determine the position offset between each set of second position information and the first position information; and determine the variance corresponding to each set of position offsets as screw hole offset information.

[0090] In one possible implementation, the correction module 304 is specifically used to determine whether the variance is less than a preset variance threshold; if so, to correct the template file to be corrected based on the variance.

[0091] Using the data correction device provided in this disclosure, when the fastening device malfunctions, the position information of each screw hole of the target device is determined by the fastening device. The screw hole offset information is determined by using the position information and the position information in the template file to be corrected. The automatic correction of the template file is achieved by using the screw hole offset information. The automatic correction of the template file also improves the fastening positioning accuracy of using the template file for screw hole fastening.

[0092] According to embodiments of this disclosure, this disclosure also provides an electronic device and a readable storage medium.

[0093] Figure 4A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0094] like Figure 4 As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 402 or a computer program loaded from storage unit 408 into random access memory (RAM) 403. RAM 403 may also store various programs and data required for the operation of device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.

[0095] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0096] The computing unit 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as data correction methods. For example, in some embodiments, the data correction method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the data correction method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform data correction methods by any other suitable means (e.g., by means of firmware).

[0097] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0099] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0100] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0101] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0102] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0103] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0104] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.

[0105] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A data correction method, characterized in that, The method includes: When an abnormality is detected in the locking device, a template file to be corrected is obtained, which includes the first position information of multiple screw holes of the target device; Based on the fastening device, the second position information of each screw hole of the target device is obtained; Based on the first position information and the second position information, determine the screw hole offset information; Based on the screw hole offset information, the template file to be corrected is corrected; The step of determining the screw hole offset information based on the first position information and the second position information includes: obtaining the second position information of screw holes corresponding to a preset number of target devices to obtain a preset number of groups of second position information; determining the position offset between each group of second position information and the first position information; and determining the variance corresponding to each group of position offsets as the screw hole offset information.

2. The method according to claim 1, characterized in that, The step of obtaining the second position information of each screw hole of the target device based on the locking device includes: The fastening device is controlled to acquire image information of each screw hole of the target device in the fastening sequence; The second position information of each screw hole of the target device is determined based on the image information.

3. The method according to claim 1, characterized in that, The step of correcting the template file to be corrected based on the screw hole offset information includes: Determine whether the variance is less than a preset variance threshold; If so, correct the template file to be corrected according to the variance.

4. A data correction device, characterized in that, The device includes: The first information acquisition module is used to acquire a template file to be corrected when an abnormality is detected in the locking device. The template file to be corrected includes the first position information of multiple screw holes of the target device. The second information acquisition module is used to acquire the second position information of each screw hole of the target device based on the locking device; The offset information determination module is used to determine the screw hole offset information based on the first position information and the second position information; A correction module is used to correct the template file to be corrected based on the screw hole offset information; The offset information determination module is specifically used to obtain the second position information of screw holes corresponding to a preset number of target devices, and obtain a preset number of groups of second position information; determine the position offset between each group of second position information and the first position information; and determine the variance corresponding to each group of position offsets as screw hole offset information.

5. The apparatus according to claim 4, characterized in that, The second information acquisition module is specifically used to control the fastening device to acquire image information of each screw hole of the target device in fastening sequence; and to determine the second position information of each screw hole of the target device based on the image information.

6. The apparatus according to claim 4, characterized in that, The correction module is specifically used to determine whether the variance is less than a preset variance threshold; if so, to correct the template file to be corrected based on the variance.

7. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the method as described in any one of claims 1-3.

8. A storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform the method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Machine vision camera calibration method and system and machine vision camera positioning method

    CN118470130A

  • Method and apparatus for information processing, and program

    JP2011093076A