Data correction method and device, electronic equipment and storage medium

By detecting abnormalities in the locking device, the screw hole position information in the template file is obtained and corrected, the problem of insufficient positioning of the robot locking and payment is solved, and the accuracy of the locking and payment positioning is improved.

CN119973898AActive Publication Date: 2025-05-13HEFEI LCFC INFORMATION TECH
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

During the production process of laptops, the robot lock positioning accuracy is affected by the offset distance between the screw hole and the center of the view of the positioning camera, resulting in a low accuracy of lock positioning.

Method used

By detecting abnormalities of the locking device, the template file to be corrected is obtained, the second position information of the screw hole is obtained based on the locking device, the screw hole offset information is determined, and the template file is corrected based on this.

Benefits of technology

Automatic correction of template files is realized, and the accuracy of lock payment positioning is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119973898A_ABST
    Figure CN119973898A_ABST
Patent Text Reader

Abstract

The invention provides a data correction method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a to-be-corrected template file when it is detected that locking equipment is abnormal, and the to-be-corrected template file comprises first position information of a plurality of screw holes of target equipment; acquiring second position information of each screw hole of the target equipment based on the locking equipment; 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. By the adoption of the method, automatic correction of the template file is achieved, and the locking positioning accuracy of screw hole locking through the template file is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the production process of laptop computers, robots are usually used to automatically tighten the screws due to the large number and variety of keyboard screws. Automatic screw tightening requires the extraction of screw hole position information in advance and storage in the template file, which is used to guide the robot to move to the screw hole position for positioning when the screw is tightened. However. Since the robot's locking positioning accuracy is affected by the offset distance between the screw hole and the center of the positioning camera's field of view, the greater the deviation distance, the greater the positioning error, resulting in a low positioning accuracy when the robot is locking the screw hole based on the template file. Therefore, how to automatically correct the template file of the screw hole position and improve the locking positioning accuracy has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present disclosure provides a data correction method, device, electronic equipment and storage medium.

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

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

[0006] Acquiring second position information of each screw hole of the target device based on the locking device;

[0007] Determining screw hole offset information according to the first position information and the second position information;

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

[0009] In an implementation of the present application, the step of obtaining the second position information of each screw hole of the target device based on the locking device includes:

[0010] Controlling the locking device to collect image information of each screw hole of the target device according to the locking sequence;

[0011] Second position information of each screw hole of the target device is determined according to the image information.

[0012] In an implementation of the present application, determining the screw hole offset information according to the first position information and the second position information includes:

[0013] Acquire 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;

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

[0015] The variance corresponding to each group of the position offsets is determined as screw hole offset information.

[0016] In an implementation of the present application, the step of correcting the template file to be corrected based on the screw hole offset information includes:

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

[0018] If yes, the template file to be corrected is corrected according to the variance.

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

[0020] A first information acquisition module, used for acquiring a template file to be corrected when an abnormality of the locking device is detected, wherein the template file to be corrected includes first position information of a plurality of screw holes of the target device;

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

[0022] An offset information determining module, used to determine screw hole offset information according to the first position information and the second position information;

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

[0024] In one implementation of the present application, the second information acquisition module is specifically used to control the locking device to collect image information of each screw hole of the target device according to the locking sequence; and determine the second position information of each screw hole of the target device based on the image information.

[0025] In one implementation of the present application, the offset information determination module is specifically used to obtain the second position information of the 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; determine the variance corresponding to each group of the position offsets as the screw hole offset information.

[0026] In an implementation of the present application, the correction module is specifically used to determine whether the variance is less than a preset variance threshold; if so, correct the template file to be corrected according to the variance.

[0027] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0028] at least one processor; and

[0029] a memory communicatively coupled to the at least one processor;

[0030] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the present disclosure.

[0031] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.

[0032] By adopting the data correction method provided by the present disclosure, when an abnormality of the locking device is detected, a template file to be corrected is obtained, and the template file to be corrected includes the first position information of multiple screw holes of the target device; the second position information of each screw hole of the target device is obtained based on the locking device; the screw hole offset information is determined according to the first position information and the second position information; and the template file to be corrected is corrected based on the screw hole offset information. When the locking device is abnormal, the position information of each screw hole of the target device is determined by the locking device, and 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, and the locking positioning accuracy of the screw hole locking using the template file is also improved by automatically correcting the template file.

[0033] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:

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

[0036] Figure 1 A schematic diagram of an implementation flow of a data correction method provided in an embodiment of the present application is shown;

[0037] Figure 2 A schematic diagram of screw hole position correction provided by an embodiment of the present application is shown;

[0038] Figure 3 A schematic diagram of the structure of a data correction device provided in an embodiment of the present application is shown;

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

[0040] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0041] Since the current robot's locking positioning accuracy is affected by the offset distance between the screw hole and the center of the positioning camera's field of view, the robot's positioning accuracy when performing screw hole locking positioning based on the template file is low. Therefore, in order to automatically correct the template file of the screw hole position and improve the locking positioning accuracy, the present application provides a data correction method, device, electronic device, and storage medium. The electronic device provided in the present application can be a mobile phone, computer, tablet computer, and other devices.

[0042] The technical solution of the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application.

[0043] Figure 1 A schematic diagram of an implementation flow of the data correction method provided in an embodiment of the present application is shown. Figure 1 As shown, the method includes:

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

[0045] In the present disclosure, a locking device refers to a device for locking screws in screw holes of a target device. For example, the locking device may include a robot for locking screws. Abnormal situations of the locking device include collision of the locking device or displacement of a fixing carrier of the locking device. The target device may be an electronic device such as a laptop or a mobile phone.

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

[0047] In the present disclosure, a correction function option can also be set in advance through the correction software, and the correction function option is used to start the correction operation for the template file. If the user turns on the correction function option in the correction software, when the lock payment device is detected to be abnormal, the template file to be corrected can be obtained, and the template file to be corrected can be corrected. If the user does not turn on the correction function option in the correction software, after the lock payment device is detected to be abnormal, the template file to be corrected may not be corrected.

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

[0049] In the present disclosure, after detecting an abnormality in the locking device, the locking 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 hole.

[0050] In a possible implementation manner, the acquiring 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, controlling the locking device to collect image information of each screw hole of the target device according to the locking sequence.

[0052] In the present disclosure, the running track of the lock payment device can be preset, for example, running from left to right and from top to bottom on the surface of the target device. The running track can be used as the lock payment sequence.

[0053] In the present disclosure, the locking device may be controlled to capture an image of each screw hole of the target device in a locking sequence, or an image including all screw holes of the target device may be captured.

[0054] Step A2: determining second position information of each screw hole of the target device according to the image information.

[0055] In the present disclosure, a contour detection algorithm can be used to extract the screw hole contours of each screw hole included in the image information, and 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 hole.

[0056] S103: Determine screw hole offset information according to the first position information and the second position information.

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

[0058] In a possible implementation manner, determining the screw hole offset information according to the first position information and the second position information may include steps B1-B3:

[0059] Step B1, obtaining second position information of screw holes corresponding to a preset number of target devices, and obtaining a preset number of groups of second position information.

[0060] In the present disclosure, the preset number may be set to 4 or 5, etc.

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

[0062] In the present disclosure, the screw holes of multiple target devices can be locked by a locking device to obtain the position offset between the actual position coordinates of each screw hole of each target device and the position coordinates recorded in the template file to be corrected. The position offset may include a horizontal offset and a vertical offset.

[0063] For example, if the locking device collects the second position information of the screw holes of 5 target devices, and determines the position 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] (x1_offset, y1_offset), (x2_offset, y2_offset), (x3_offset, y3_offset), (x4_offset, y4_offset), (x5_offset, y5_offset). x1_offset, x2_offset, x3_offset, x4_offset, x5_offset respectively represent the horizontal offset of each screw hole position corresponding to each target device, and y1_offset, y2_offset, y3_offset, y4_offset, y5_offset respectively represent the vertical offset of each screw hole position corresponding to each target device.

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

[0066] In the present disclosure, the following formula may be used to determine the variance corresponding to each group of position offsets:

[0067]

[0068] Among them, S 2 represents the variance corresponding to the position offset, n represents the number of target devices, m represents the average value of the position offset of the preset number of groups, and xi Represents the position offset of the i-th group.

[0069] In the present disclosure, the variance corresponding to each group of lateral offsets and the variance corresponding to each group of longitudinal offsets may also be calculated separately.

[0070] S104: Correct the template file to be corrected based on the screw hole offset information.

[0071] In the present 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] By adopting the data correction method provided by the present disclosure, when an abnormality of the locking device is detected, a template file to be corrected is obtained, and the template file to be corrected includes the first position information of multiple screw holes of the target device; the second position information of each screw hole of the target device is obtained based on the locking device; the screw hole offset information is determined according to the first position information and the second position information; and the template file to be corrected is corrected based on the screw hole offset information. When the locking device is abnormal, the position information of each screw hole of the target device is determined by the locking device, and 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, and the locking positioning accuracy of the screw hole locking using the template file is also improved by automatically correcting the template file.

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

[0074] Step C1, determining whether the variance is less than a preset variance threshold.

[0075] In the present disclosure, it can be determined whether the variance corresponding to each group of lateral offsets and the variance corresponding to each group of longitudinal 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 each group of lateral offsets and the variances corresponding to each group of longitudinal offsets are both smaller than the preset variance threshold, it means 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 horizontal position coordinate of the screw hole recorded in the template file and the horizontal offset corresponding to the screw hole can be calculated as a new horizontal position coordinate, and the sum of the vertical position coordinate of the screw hole recorded in the template file and the vertical offset corresponding to the screw hole can be calculated as a new vertical position coordinate. The new horizontal position coordinate and the new vertical position coordinate corresponding to each screw hole are updated to the template file to obtain a corrected template file.

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

[0080] Figure 2 A schematic diagram of screw hole position correction provided by an embodiment of the present application is shown. Figure 2 As shown, the position offset between the actual position of the screw hole and the screw hole position 210 recorded in the template file is collected by the locking device, and the screw hole position 210 recorded in the template file is corrected based on the position offset, so that the corrected screw hole position 220 can be obtained, and the corrected screw hole position 220 is updated to the template file, thereby realizing the correction of the template file.

[0081] By adopting the data correction method provided by the present invention, the position information of each screw hole of the target device is determined by the locking device when the locking device is abnormal, and the screw hole offset information is determined 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, and the locking positioning accuracy of the screw hole locking using the template file is also improved by automatically correcting the template file.

[0082] Based on the same inventive concept, according to the data correction method provided by the above embodiment of the present disclosure, correspondingly, another embodiment of the present disclosure further provides a data correction device, whose structural schematic diagram is shown in FIG. Figure 3 As shown, specifically including:

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

[0084] A second information acquisition module 302, configured to acquire second position information of each screw hole of the target device based on the locking device;

[0085] An offset information determining module 303, configured to determine screw hole offset information according to 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] By using the data correction device provided by the present disclosure, when an abnormality of the locking device is detected, a template file to be corrected is obtained, and the template file to be corrected includes the first position information of multiple screw holes of the target device; the second position information of each screw hole of the target device is obtained based on the locking device; the screw hole offset information is determined according to the first position information and the second position information; and the template file to be corrected is corrected based on the screw hole offset information. When the locking device is abnormal, the position information of each screw hole of the target device is determined by the locking device, and 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, and the locking positioning accuracy of the screw hole locking using the template file is also improved by automatically correcting the template file.

[0088] In one possible implementation, the second information acquisition module 302 is specifically used to control the locking device to collect image information of each screw hole of the target device according to the locking sequence; and determine the second position information of each screw hole of the target device according to the image information.

[0089] In one possible implementation, the offset information determination module 303 is specifically used to obtain the second position information of the 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 the position offsets as the screw hole offset information.

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

[0091] By using the data correction device provided by the present invention, the position information of each screw hole of the target device is determined by the locking device when the locking device is abnormal, and the screw hole offset information is determined 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, and the locking positioning accuracy of the screw hole locking using the template file is also improved by automatically correcting the template file.

[0092] According to an embodiment of the present disclosure, the present 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 an embodiment 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 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

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

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

[0096] The computing unit 401 may be a variety of general and / or special 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 dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as a data correction method. For example, in some embodiments, the data correction method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the 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 the data correction method in any other appropriate manner (e.g., by means of firmware).

[0097] Various implementations 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), integrated systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0099] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, 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 (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 acoustic input, voice input, or tactile input).

[0101] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0102] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0104] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0105] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data correction method, characterized in that: The method comprises: When an abnormality of the locking device is detected, a template file to be corrected is obtained, wherein the template file to be corrected includes first position information of multiple screw holes of the 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; Based on the screw hole offset information, the template file to be corrected is corrected.

2. The method according to claim 1, characterized in that The acquiring the second position information of each screw hole of the target device based on the locking device includes: Controlling the locking device to collect image information of each screw hole of the target device according to the locking sequence; Second position information of each screw hole of the target device is determined according to the image information.

3. The method according to claim 1, characterized in that The step of determining the screw hole offset information according to the first position information and the second position information includes: Acquire 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; Determine a position offset between each set of second position information and the first position information; The variance corresponding to each group of the position offsets is determined as screw hole offset information.

4. The method according to claim 3, characterized in that The correcting the template file to be corrected based on the screw hole offset information includes: Determining whether the variance is less than a preset variance threshold; If yes, the template file to be corrected is corrected according to the variance.

5. A data correction device, characterized in that: The device comprises: A first information acquisition module, used for acquiring a template file to be corrected when an abnormality of the locking device is detected, wherein the template file to be corrected includes first position information of a plurality of screw holes of the target device; A second information acquisition module, used to acquire second position information of each screw hole of the target device based on the locking device; An offset information determining module, used to determine screw hole offset information according to 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.

6. The device according to claim 5, characterized in that The second information acquisition module is specifically used to control the locking device to collect image information of each screw hole of the target device according to the locking sequence; and determine the second position information of each screw hole of the target device according to the image information.

7. The device according to claim 5, characterized in that The offset information determination module is specifically used to obtain second position information of screw holes corresponding to a preset number of target devices, obtain a preset number of groups of second position information; and determine the position offset between each group of second position information and the first position information; The variance corresponding to each group of the position offsets is determined as screw hole offset information.

8. The device according to claim 7, characterized in that The correction module is specifically used to determine whether the variance is less than a preset variance threshold; if so, correct the template file to be corrected according to the variance.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 4 is implemented.

10. A storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to perform the method of any one of claims 1 to 4.

Citation Information

Patent Citations

  • Correction method, correction device, computer readable storage medium and computer equipment

    CN113034620A

  • Screw hitting method and device, controller, manipulator and screw hitting equipment

    CN117182528A

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

    CN118470130A

  • Method and apparatus for information processing, and program

    JP2011093076A

  • Automatic thread fastening device

    JP2014124765A