CN111311678A - USB position positioning method and device - Google Patents
USB position positioning method and device Download PDFInfo
- Publication number
- CN111311678A CN111311678A CN202010072273.2A CN202010072273A CN111311678A CN 111311678 A CN111311678 A CN 111311678A CN 202010072273 A CN202010072273 A CN 202010072273A CN 111311678 A CN111311678 A CN 111311678A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- usb
- usb hole
- detected
- hole
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
- G06T7/75—Determining position or orientation of objects or cameras using feature-based methods involving models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
- G06T7/74—Determining position or orientation of objects or cameras using feature-based methods involving reference images or patches
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Telephone Function (AREA)
Abstract
The invention aims to provide a USB position positioning method and equipment, which can calculate the physical offset between the central position of a USB hole of a mobile phone side model and the central position of a USB hole of a side surface of a mobile phone to be detected after calibrating the moving distance from the central position of the USB hole of the mobile phone side model and the central position aligned with a USB plug, and then move the mobile phone to be detected based on the moving distance and the physical offset so as to accurately and reliably automatically move the central position of the USB hole of the side surface of the mobile phone to be detected to the central position aligned with the USB plug, thereby ensuring that a subsequent USB plug is smoothly inserted into the USB hole of the mobile phone to be detected.
Description
Technical Field
The invention relates to the field of computers, in particular to a USB position positioning method and device.
Background
When the performance of intelligent terminals such as mobile phones is detected, the USB head of the detection equipment needs to be inserted into the USB hole of the intelligent terminal, the operation of inserting the USB head of the existing detection equipment into the USB hole of the intelligent terminal needs to be finished manually, the operation cost is high, and the operation efficiency is low.
Disclosure of Invention
The invention aims to provide a USB position positioning method and equipment.
According to an aspect of the present invention, there is provided a USB position locating method, the method including:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
Further, in the above method, the model of the side surface of the mobile phone with the USB hole is a white rectangular parallelepiped block, and a black rectangle representing the USB hole is drawn on the white rectangular parallelepiped block.
Further, in the above method, after placing the mobile phone side model with the USB hole in the first position, obtaining the center position of the USB hole of the mobile phone side model includes:
arranging the camera at a second position;
after the mobile phone side model with the USB hole is placed at the first position, a camera at the second position is used for shooting a first picture of the mobile phone side model with the USB hole;
and acquiring a first plane pixel point position of the center of the USB hole of the mobile phone side model from the first picture.
Further, in the above method, removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the center position of the USB hole on the side surface of the mobile phone to be detected includes:
removing the mobile phone side model from the first position, and after the side face of the mobile phone to be detected with the USB hole is placed at the first position, shooting a second picture of the side face of the mobile phone to be detected with the USB hole through the camera at the second position;
and acquiring a second plane pixel point position of the center of the USB hole on the side surface of the mobile phone to be detected from the second picture.
Further, in the above method, calculating a physical offset between a center position of the USB hole of the mobile phone side model and a center position of the USB hole of the side of the mobile phone to be detected includes:
calculating the pixel point offset between the first plane pixel point position and the second plane pixel point position;
and calculating the physical offset between the central position of the USB hole of the side model of the mobile phone and the central position of the USB hole of the side of the mobile phone to be detected based on the offset of the pixel point.
Further, in the above method, before moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug, the method further includes:
acquiring the model of the mobile phone to be detected;
determining the type of the USB hole of the mobile phone to be detected based on the model;
and determining a corresponding USB plug based on the type of the USB hole of the mobile phone to be detected.
According to another aspect of the present invention, there is also provided a USB position locating device, wherein the device comprises:
the mobile phone side model comprises a first device and a second device, wherein the first device is used for placing a mobile phone side model with a USB hole at a first position and then acquiring the central position of the USB hole of the mobile phone side model;
the second device is used for moving the mobile phone side model to move the central position of the USB hole of the mobile phone side model to the central position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the central position of the USB plug after recording the moving distance from the central position of the USB hole of the mobile phone side model to the central position aligned with the USB plug;
the third device is used for removing the mobile phone side model from the first position, and acquiring the central position of a USB hole in the side surface of the mobile phone to be detected after the side surface of the mobile phone to be detected with the USB hole is placed at the first position;
a fourth device, configured to calculate a physical offset between a center position of the USB hole of the mobile phone side model and a center position of the USB hole of the side of the mobile phone to be detected;
and the fifth device is used for moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
Furthermore, in the above device, the mobile phone side model with the USB hole is a white cuboid rectangular block, and a black rectangle representing the USB hole is drawn on the white cuboid rectangular block.
Further, in the above apparatus, the first device is configured to set the camera at a second position; after the mobile phone side model with the USB hole is placed at the first position, a camera at the second position is used for shooting a first picture of the mobile phone side model with the USB hole; and acquiring a first plane pixel point position of the center of the USB hole of the mobile phone side model from the first picture.
Further, in the above apparatus, the third device is configured to remove the mobile phone side model from the first position, and after the side surface of the mobile phone to be detected with the USB hole is placed at the first position, take a second picture of the side surface of the mobile phone to be detected with the USB hole through the camera located at the second position; and acquiring a second plane pixel point position of the center of the USB hole on the side surface of the mobile phone to be detected from the second picture.
Further, in the foregoing apparatus, the fourth means is configured to calculate a pixel point offset between the first plane pixel point position and the second plane pixel point position; and calculating the physical offset between the central position of the USB hole of the side model of the mobile phone and the central position of the USB hole of the side of the mobile phone to be detected based on the offset of the pixel point.
Further, in the above apparatus, the second device is configured to obtain a model of the mobile phone to be detected; determining the type of the USB hole of the mobile phone to be detected based on the model; and determining a corresponding USB plug based on the type of the USB hole of the mobile phone to be detected.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
Compared with the prior art, the mobile phone side surface model and the mobile phone side surface model calibrating method have the advantages that after the moving distance from the central position of the USB hole of the mobile phone side surface model and the central position of the USB hole of the mobile phone side surface model to the central position aligned with the USB plug is calibrated, the physical offset between the central position of the USB hole of the mobile phone side surface model and the central position of the USB hole of the side surface of the mobile phone to be detected can be calculated, then, the mobile phone to be detected is moved based on the moving distance and the physical offset, so that the central position of the USB hole of the side surface of the mobile phone to be detected is accurately and reliably moved to the central position aligned with the USB plug, and the fact that the subsequent USB plug is smoothly.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 shows a flowchart of a USB position locating method according to an embodiment of the present invention.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1, the present invention provides a USB position locating method, including:
step S1, after placing the mobile phone side model with the USB hole at the first position, obtaining the center position of the USB hole of the mobile phone side model;
step S2, moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the front of the center position aligned with the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
step S3, removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole at the side surface of the mobile phone to be detected;
step S4, calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and step S5, moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the center position of the USB hole on the side surface of the mobile phone to be detected to the center position aligned with the USB plug.
For example, when the physical offset is +2mm and the moving distance is 10cm, the distance from the center position of the USB hole on the side surface of the mobile phone to be detected to the center position aligned with the USB plug is 10cm +2 mm;
and when the physical offset is-2 mm and the moving distance is 10cm, moving the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug by a distance of 10cm-2 mm.
According to the invention, after the moving distance from the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the mobile phone side model to the central position aligned with the USB plug is calibrated, the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side face of the mobile phone to be detected can be calculated, and then the mobile phone to be detected is moved based on the moving distance and the physical offset so as to accurately and reliably automatically move the central position of the USB hole of the side face of the mobile phone to be detected to the central position aligned with the USB plug, thereby ensuring that the subsequent USB plug is smoothly inserted into the USB hole of the mobile phone to be detected.
In an embodiment of the USB position locating method of the present invention, the model of the side surface of the mobile phone with the USB hole is a white rectangular parallelepiped rectangular block, and a black rectangle representing the USB hole is drawn on the white rectangular parallelepiped rectangular block.
Here, the white cuboid rectangular block represents a side face of the model mobile phone, the black rectangle represents a USB hole, and an area of the white cuboid rectangular block is larger than an area of the black rectangle.
The black rectangle may be 6X18mm in size.
This embodiment is through inciting somebody to action the cell-phone side model that has the USB hole sets up to a white cuboid rectangular block, be painted the black rectangle that represents the USB hole on the white cuboid rectangular block, can simplify the model to can improve the accurate recognition rate in USB hole on the cell-phone side model.
In an embodiment of the USB position locating method of the present invention, in step S1, after placing the mobile phone side model with the USB hole in the first position, obtaining a center position of the USB hole of the mobile phone side model includes:
step S11, arranging the camera at a second position;
step S12, after placing the mobile phone side model with the USB hole at the first position, shooting a first picture of the mobile phone side model with the USB hole through the camera at the second position;
step S13, obtaining a first plane pixel point position of the center of the USB hole of the mobile phone side model from the first photo.
Here, in this embodiment, the camera located at the second position is used to take the first picture of the mobile phone side model with the USB hole, so that the first plane pixel point position of the center of the USB hole of the mobile phone side model can be automatically and reliably obtained from the first picture.
In an embodiment of the USB position locating method of the present invention, in step S3, removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, obtaining the center position of the USB hole at the side surface of the mobile phone to be detected includes:
step S31, removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, shooting a second picture of the side surface of the mobile phone to be detected with the USB hole through the camera at the second position;
and step S32, acquiring the position of a second plane pixel point at the center of the USB hole on the side surface of the mobile phone to be detected from the second picture.
Here, in this embodiment, the camera located at the second position is used to take the second picture of the side surface of the mobile phone to be detected with the USB hole, so that the second plane pixel point position of the center of the USB hole of the side surface of the mobile phone to be detected can be automatically, accurately and efficiently obtained from the second picture.
In an embodiment of the USB position locating method of the present invention, in step S4, calculating a physical offset between a center position of the USB hole of the mobile phone side model and a center position of the USB hole of the side of the mobile phone to be detected includes:
step S41, calculating the pixel point offset between the first plane pixel point position and the second plane pixel point position;
and step S42, calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected based on the pixel point offset.
Here, in this embodiment, based on the pixel point offset, it can be ensured that the physical offset between the center position of the USB hole of the mobile phone side model and the center position of the USB hole of the side of the mobile phone to be detected is calculated efficiently and reliably.
In an embodiment of the USB position locating method according to the present invention, in step S2, before moving the side model of the mobile phone to move the center position of the USB hole of the side model of the mobile phone to the center position aligned with the USB plug, the method further includes:
step S21, acquiring the model of the mobile phone to be detected;
here, the model of the mobile phone to be detected can be obtained by scanning the identification code on the mobile phone to be detected;
step S22, determining the type of the USB hole of the mobile phone to be detected based on the model;
and step S23, determining a corresponding USB plug based on the type of the USB hole of the mobile phone to be detected.
Here, in this embodiment, by obtaining the model of the mobile phone to be detected and determining the type of the USB hole of the mobile phone to be detected based on the model, the USB plug of the mobile phone to be detected with different types of USB holes can be accurately found, so as to ensure that the subsequent USB plug is smoothly inserted into the USB hole of the mobile phone to be detected.
The present invention also provides a USB position locating device, comprising:
the mobile phone side model comprises a first device and a second device, wherein the first device is used for placing a mobile phone side model with a USB hole at a first position and then acquiring the central position of the USB hole of the mobile phone side model;
the second device is used for moving the mobile phone side model to move the central position of the USB hole of the mobile phone side model to the central position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the central position of the USB plug after recording the moving distance from the central position of the USB hole of the mobile phone side model to the central position aligned with the USB plug;
the third device is used for removing the mobile phone side model from the first position, and acquiring the central position of a USB hole in the side surface of the mobile phone to be detected after the side surface of the mobile phone to be detected with the USB hole is placed at the first position;
a fourth device, configured to calculate a physical offset between a center position of the USB hole of the mobile phone side model and a center position of the USB hole of the side of the mobile phone to be detected;
and the fifth device is used for moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
Here, for example, when the physical offset is +2mm and the moving distance is 10cm, the distance from the center position of the USB hole on the side surface of the mobile phone to be detected to the center position aligned with the USB plug is 10cm +2 mm;
and when the physical offset is-2 mm and the moving distance is 10cm, moving the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug by a distance of 10cm-2 mm.
According to the invention, after the moving distance from the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the mobile phone side model to the central position aligned with the USB plug is calibrated, the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side face of the mobile phone to be detected can be calculated, and then the mobile phone to be detected is moved based on the moving distance and the physical offset so as to accurately and reliably automatically move the central position of the USB hole of the side face of the mobile phone to be detected to the central position aligned with the USB plug, thereby ensuring that the subsequent USB plug is smoothly inserted into the USB hole of the mobile phone to be detected.
In an embodiment of the USB position locating method of the present invention, the model of the side surface of the mobile phone with the USB hole is a white rectangular parallelepiped rectangular block, and a black rectangle representing the USB hole is drawn on the white rectangular parallelepiped rectangular block.
Here, the white cuboid rectangular block represents a side face of the model mobile phone, the black rectangle represents a USB hole, and an area of the white cuboid rectangular block is larger than an area of the black rectangle.
The black rectangle may be 6X18mm in size.
This embodiment is through inciting somebody to action the cell-phone side model that has the USB hole sets up to a white cuboid rectangular block, be painted the black rectangle that represents the USB hole on the white cuboid rectangular block, can simplify the model to can improve the accurate recognition rate in USB hole on the cell-phone side model.
In an embodiment of the USB position locating method of the present invention, the first device is configured to set the camera at a second position; after the mobile phone side model with the USB hole is placed at the first position, a camera at the second position is used for shooting a first picture of the mobile phone side model with the USB hole; and acquiring a first plane pixel point position of the center of the USB hole of the mobile phone side model from the first picture.
Here, in this embodiment, the camera located at the second position is used to take the first picture of the mobile phone side model with the USB hole, so that the first plane pixel point position of the center of the USB hole of the mobile phone side model can be automatically and reliably obtained from the first picture.
In an embodiment of the USB position locating method of the present invention, the third device is configured to remove the mobile phone side model from the first position, and after the side surface of the mobile phone to be detected with the USB hole is placed at the first position, take a second photo of the side surface of the mobile phone to be detected with the USB hole through the camera located at the second position; and acquiring a second plane pixel point position of the center of the USB hole on the side surface of the mobile phone to be detected from the second picture.
Here, in this embodiment, the camera located at the second position is used to take the second picture of the side surface of the mobile phone to be detected with the USB hole, so that the second plane pixel point position of the center of the USB hole of the side surface of the mobile phone to be detected can be automatically, accurately and efficiently obtained from the second picture.
In an embodiment of the USB location positioning method of the present invention, the fourth device is configured to calculate a pixel point offset between the first plane pixel point location and the second plane pixel point location; and calculating the physical offset between the central position of the USB hole of the side model of the mobile phone and the central position of the USB hole of the side of the mobile phone to be detected based on the offset of the pixel point.
Here, in this embodiment, based on the pixel point offset, it can be ensured that the physical offset between the center position of the USB hole of the mobile phone side model and the center position of the USB hole of the side of the mobile phone to be detected is calculated efficiently and reliably.
In an embodiment of the USB position locating method of the present invention, the second device is configured to obtain a model of the mobile phone to be detected; determining the type of the USB hole of the mobile phone to be detected based on the model; and determining a corresponding USB plug based on the type of the USB hole of the mobile phone to be detected.
Here, the model of the mobile phone to be detected can be obtained by scanning the identification code on the mobile phone to be detected;
in this embodiment, by obtaining the model of the mobile phone to be detected and determining the type of the USB hole of the mobile phone to be detected based on the model, USB plugs of different types of USB holes of the mobile phone to be detected can be accurately found, so that it is ensured that subsequent USB plugs are smoothly inserted into the USB holes of the mobile phone to be detected.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
For details of embodiments of each device and storage medium of the present invention, reference may be made to corresponding parts of each method embodiment, and details are not described herein again.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present invention may be implemented in software and/or in a combination of software and hardware, for example, as an Application Specific Integrated Circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Also, the software programs (including associated data structures) of the present invention can be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Further, some of the steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present invention can be applied as a computer program product, such as computer program instructions, which when executed by a computer, can invoke or provide the method and/or technical solution according to the present invention through the operation of the computer. Program instructions which invoke the methods of the present invention may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the invention herein comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or solution according to embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Claims (14)
1. A USB position location method, wherein the method comprises:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
2. The method as claimed in claim 1, wherein the mobile phone side model with the USB hole is a white cuboid rectangular block on which a black rectangle representing the USB hole is drawn.
3. The method of claim 1, wherein obtaining the center position of the USB hole of the mobile phone side model after placing the mobile phone side model with the USB hole in the first position comprises:
arranging the camera at a second position;
after the mobile phone side model with the USB hole is placed at the first position, a camera at the second position is used for shooting a first picture of the mobile phone side model with the USB hole;
and acquiring a first plane pixel point position of the center of the USB hole of the mobile phone side model from the first picture.
4. The method of claim 3, wherein removing the mobile phone side model from the first position and obtaining the center position of the USB hole of the side surface of the mobile phone to be detected after the side surface of the mobile phone to be detected with the USB hole is placed at the first position comprises:
removing the mobile phone side model from the first position, and after the side face of the mobile phone to be detected with the USB hole is placed at the first position, shooting a second picture of the side face of the mobile phone to be detected with the USB hole through the camera at the second position;
and acquiring a second plane pixel point position of the center of the USB hole on the side surface of the mobile phone to be detected from the second picture.
5. The method of claim 4, wherein calculating the physical offset between the center position of the USB hole of the mobile phone side model and the center position of the USB hole of the side of the mobile phone to be detected comprises:
calculating the pixel point offset between the first plane pixel point position and the second plane pixel point position;
and calculating the physical offset between the central position of the USB hole of the side model of the mobile phone and the central position of the USB hole of the side of the mobile phone to be detected based on the offset of the pixel point.
6. The method of claim 1, wherein moving the cell phone side model to move the center position of the USB hole of the cell phone side model to the center position aligned with the USB plug further comprises:
acquiring the model of the mobile phone to be detected;
determining the type of the USB hole of the mobile phone to be detected based on the model;
and determining a corresponding USB plug based on the type of the USB hole of the mobile phone to be detected.
7. A USB position-locating device, wherein the device comprises:
the mobile phone side model comprises a first device and a second device, wherein the first device is used for placing a mobile phone side model with a USB hole at a first position and then acquiring the central position of the USB hole of the mobile phone side model;
the second device is used for moving the mobile phone side model to move the central position of the USB hole of the mobile phone side model to the central position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the central position of the USB plug after recording the moving distance from the central position of the USB hole of the mobile phone side model to the central position aligned with the USB plug;
the third device is used for removing the mobile phone side model from the first position, and acquiring the central position of a USB hole in the side surface of the mobile phone to be detected after the side surface of the mobile phone to be detected with the USB hole is placed at the first position;
a fourth device, configured to calculate a physical offset between a center position of the USB hole of the mobile phone side model and a center position of the USB hole of the side of the mobile phone to be detected;
and the fifth device is used for moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
8. The device of claim 7, wherein the side model of the phone with the USB hole is a white cuboid rectangular block on which black rectangles representing the USB hole are drawn.
9. The apparatus of claim 7, wherein the first means for positioning a camera in a second position; after the mobile phone side model with the USB hole is placed at the first position, a camera at the second position is used for shooting a first picture of the mobile phone side model with the USB hole; and acquiring a first plane pixel point position of the center of the USB hole of the mobile phone side model from the first picture.
10. The apparatus according to claim 9, wherein the third means is configured to remove the mobile phone side model from the first position, and after placing the side of the mobile phone to be detected with the USB hole at the first position, take a second picture of the side of the mobile phone to be detected with the USB hole through the camera at the second position; and acquiring a second plane pixel point position of the center of the USB hole on the side surface of the mobile phone to be detected from the second picture.
11. Apparatus according to claim 10, wherein said fourth means for calculating a pixel point offset between a first planar pixel point location and a second planar pixel point location; and calculating the physical offset between the central position of the USB hole of the side model of the mobile phone and the central position of the USB hole of the side of the mobile phone to be detected based on the offset of the pixel point.
12. The device according to claim 7, wherein the second means is configured to obtain a model of the mobile phone to be detected; determining the type of the USB hole of the mobile phone to be detected based on the model; and determining a corresponding USB plug based on the type of the USB hole of the mobile phone to be detected.
13. A computing-based device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
14. A computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
after a mobile phone side model with a USB hole is placed at a first position, the central position of the USB hole of the mobile phone side model is obtained;
moving the mobile phone side model to move the center position of the USB hole of the mobile phone side model to the center position aligned with the corresponding USB plug, and removing the mobile phone side model from the position aligned with the center position of the USB plug after recording the moving distance from the center position of the USB hole of the mobile phone side model to the center position aligned with the USB plug;
removing the mobile phone side model from the first position, and after placing the side surface of the mobile phone to be detected with the USB hole at the first position, acquiring the central position of the USB hole in the side surface of the mobile phone to be detected;
calculating the physical offset between the central position of the USB hole of the mobile phone side model and the central position of the USB hole of the side of the mobile phone to be detected;
and moving the mobile phone to be detected based on the moving distance and the physical offset so as to move the central position of the USB hole on the side surface of the mobile phone to be detected to the central position aligned with the USB plug.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010072273.2A CN111311678B (en) | 2020-01-21 | 2020-01-21 | USB position positioning method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010072273.2A CN111311678B (en) | 2020-01-21 | 2020-01-21 | USB position positioning method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111311678A true CN111311678A (en) | 2020-06-19 |
CN111311678B CN111311678B (en) | 2023-04-07 |
Family
ID=71148898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010072273.2A Active CN111311678B (en) | 2020-01-21 | 2020-01-21 | USB position positioning method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111311678B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11798250B2 (en) | 2019-02-18 | 2023-10-24 | Ecoatm, Llc | Neural network based physical condition evaluation of electronic devices, and associated systems and methods |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989415A (en) * | 2015-03-17 | 2016-10-05 | 埃科亚特姆公司 | Systems and methods for inspecting mobile devices and other consumer electronic devices with a laser |
CN106294263A (en) * | 2016-09-30 | 2017-01-04 | 深圳天珑无线科技有限公司 | Mobile terminal USB plug method and plug-in system |
CN107030687A (en) * | 2016-02-04 | 2017-08-11 | 上海晨兴希姆通电子科技有限公司 | Position bias detecting method and module, crawl position calibration method, grasping system |
CN107174132A (en) * | 2017-06-29 | 2017-09-19 | 苏州美杯信息科技有限公司 | Garland printer, garland printing adjusting apparatus and method and computer-readable medium |
CN107770506A (en) * | 2017-09-27 | 2018-03-06 | 合肥惠科金扬科技有限公司 | Location regulation method, device and the terminal device of generating laser |
CN108012014A (en) * | 2016-12-24 | 2018-05-08 | 深圳雷柏科技股份有限公司 | A kind of mobile phone test device and method |
CN208314859U (en) * | 2018-06-20 | 2019-01-01 | 中国建筑第八工程局有限公司 | Prefabricated components mounting and positioning device |
CN109968319A (en) * | 2017-12-28 | 2019-07-05 | 国网山东省电力公司电力科学研究院 | A kind of robot vision identifying system and method for plug wire |
WO2019140834A1 (en) * | 2018-01-19 | 2019-07-25 | 深圳市海目星激光智能装备股份有限公司 | Device for automatic wire insertion |
-
2020
- 2020-01-21 CN CN202010072273.2A patent/CN111311678B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989415A (en) * | 2015-03-17 | 2016-10-05 | 埃科亚特姆公司 | Systems and methods for inspecting mobile devices and other consumer electronic devices with a laser |
CN107030687A (en) * | 2016-02-04 | 2017-08-11 | 上海晨兴希姆通电子科技有限公司 | Position bias detecting method and module, crawl position calibration method, grasping system |
CN106294263A (en) * | 2016-09-30 | 2017-01-04 | 深圳天珑无线科技有限公司 | Mobile terminal USB plug method and plug-in system |
CN108012014A (en) * | 2016-12-24 | 2018-05-08 | 深圳雷柏科技股份有限公司 | A kind of mobile phone test device and method |
CN107174132A (en) * | 2017-06-29 | 2017-09-19 | 苏州美杯信息科技有限公司 | Garland printer, garland printing adjusting apparatus and method and computer-readable medium |
CN107770506A (en) * | 2017-09-27 | 2018-03-06 | 合肥惠科金扬科技有限公司 | Location regulation method, device and the terminal device of generating laser |
CN109968319A (en) * | 2017-12-28 | 2019-07-05 | 国网山东省电力公司电力科学研究院 | A kind of robot vision identifying system and method for plug wire |
WO2019140834A1 (en) * | 2018-01-19 | 2019-07-25 | 深圳市海目星激光智能装备股份有限公司 | Device for automatic wire insertion |
CN208314859U (en) * | 2018-06-20 | 2019-01-01 | 中国建筑第八工程局有限公司 | Prefabricated components mounting and positioning device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11798250B2 (en) | 2019-02-18 | 2023-10-24 | Ecoatm, Llc | Neural network based physical condition evaluation of electronic devices, and associated systems and methods |
Also Published As
Publication number | Publication date |
---|---|
CN111311678B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111273704B (en) | Method and device for automatically inserting external equipment hole | |
CN111325715A (en) | Camera color spot detection method and device | |
CN110796646A (en) | Method and device for detecting defects of screen area of electronic device | |
CN110675399A (en) | Screen appearance flaw detection method and equipment | |
CN111272067A (en) | Mobile phone detection method and equipment | |
CN111290660A (en) | Method and equipment for converting screen coordinates into touch pen coordinates | |
CN111175318A (en) | Screen scratch fragmentation detection method and equipment | |
CN110348393B (en) | Vehicle feature extraction model training method, vehicle identification method and equipment | |
CN111277695B (en) | Data verification method and equipment | |
CN111210473A (en) | Mobile phone contour positioning method and equipment | |
CN110827248A (en) | Method and device for identifying screen area of electronic device | |
CN111272388A (en) | Method and device for detecting camera flash lamp | |
CN111311749B (en) | Method and device for automatically inserting USB hole of equipment | |
CN110348392B (en) | Vehicle matching method and device | |
CN111325901A (en) | Method and device for identifying mobile phone | |
CN111272393A (en) | Flash lamp detection method and device | |
CN111277696A (en) | Method and device for detecting privacy of apple mobile phone | |
CN111311678B (en) | USB position positioning method and device | |
CN111277659A (en) | Method and device for detecting display state of transverse screen and vertical screen of mobile phone | |
US11238563B2 (en) | Noise processing method and apparatus | |
CN110855979A (en) | Camera module detection method and device | |
CN111294453B (en) | Mobile phone key test method and equipment | |
CN110674171A (en) | Script generation method and device and data processing method and device | |
CN111292374B (en) | Method and equipment for automatically plugging and unplugging USB interface | |
CN111246203A (en) | Camera blur detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai Applicant after: Shanghai wanwansheng Environmental Protection Technology Group Co.,Ltd. Address before: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai Applicant before: SHANGHAI YUEYI NETWORK INFORMATION TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |