CN113739695A - Image-based radio frequency connector detection method, detection device and storage medium - Google Patents

Image-based radio frequency connector detection method, detection device and storage medium Download PDF

Info

Publication number
CN113739695A
CN113739695A CN202010464395.6A CN202010464395A CN113739695A CN 113739695 A CN113739695 A CN 113739695A CN 202010464395 A CN202010464395 A CN 202010464395A CN 113739695 A CN113739695 A CN 113739695A
Authority
CN
China
Prior art keywords
radio frequency
frequency connector
circuit board
image
determining
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.)
Pending
Application number
CN202010464395.6A
Other languages
Chinese (zh)
Inventor
陈小平
熊德林
陈国丞
常建伟
李哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yunmi Internet Technology Guangdong Co Ltd
Original Assignee
Yunmi Internet Technology Guangdong Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yunmi Internet Technology Guangdong Co Ltd filed Critical Yunmi Internet Technology Guangdong Co Ltd
Priority to CN202010464395.6A priority Critical patent/CN113739695A/en
Publication of CN113739695A publication Critical patent/CN113739695A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/14Measuring arrangements characterised by the use of optical techniques for measuring distance or clearance between spaced objects or spaced apertures

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The application relates to the technical field of radio frequency connector detection, and discloses a radio frequency connector detection method, a detection device and a storage medium based on images, wherein the method comprises the following steps: acquiring an image which is within a preset range and comprises a radio frequency connector and a circuit board connected with the radio frequency connector through a shooting device; determining an ideal mounting position of the radio frequency connector according to the circuit board in the image; determining the actual installation position of the radio frequency connector according to the radio frequency connector and the circuit board in the image; determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector; and outputting a detection result according to the ideal installation position, the actual installation position and the distance value. The radio frequency connector installation condition detection method and device can improve detection efficiency and accuracy of the installation condition of the radio frequency connector and reduce detection cost.

Description

Image-based radio frequency connector detection method, detection device and storage medium
Technical Field
The present disclosure relates to the field of radio frequency connector detection technologies, and in particular, to a method, an apparatus, and a storage medium for detecting a radio frequency connector based on an image.
Background
The radio frequency connector can be installed in place after being installed on a circuit board, and even the radio frequency performance of the radio frequency connector is affected, so that the detection of the installation condition of the radio frequency connector is an important step in the installation process of the radio frequency connector. In the conventional detection method, a circuit and a device are additionally arranged on a radio frequency connector to be detected, and whether the radio frequency connector is connected or not is judged by checking the direct current connection and disconnection conditions, but the method can only detect the connection and disconnection of the radio frequency connector, and the radio frequency connector can pass the detection even if not completely fastened, so that an error exists in a test result; and a special receiving instrument is added at the rear end of the production line to test the radio frequency performance of the radio frequency connector so as to determine the installation condition of the radio frequency connector, but the receiving instrument needs to be replaced every iteration of the communication technology, and the receiving instrument is used in an environment needing shielding, if the radio frequency connector to be tested is large, the shielding environment is difficult to provide, so that the overall detection cost is high.
Therefore, how to improve the detection efficiency and accuracy of the installation situation of the radio frequency connector becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a radio frequency connector detection method, a detection device and a storage medium based on images, so that the detection efficiency and accuracy of the installation condition of the radio frequency connector are improved, and the detection cost is reduced.
In a first aspect, the present application provides an image-based radio frequency connector detection method, including:
acquiring an image which is within a preset range and comprises a radio frequency connector and a circuit board connected with the radio frequency connector through a shooting device;
determining an ideal mounting position of the radio frequency connector according to the circuit board in the image;
determining the actual installation position of the radio frequency connector according to the radio frequency connector and the circuit board in the image;
determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector;
and outputting a detection result according to the ideal installation position, the actual installation position and the distance value.
In a second aspect, the present application further provides a detection apparatus comprising a processor, a memory and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the image-based radio frequency connector detection method as described above.
In a third aspect, the present application also provides a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the image-based radio frequency connector detection method as described above.
The application discloses radio frequency connector detection method, detection device and storage medium based on image obtains the image that includes the radio frequency connector and with the circuit board that the radio frequency connector is connected in the scope of predetermineeing through the shooting device, and according to circuit board in the image, confirms the ideal mounted position of radio frequency connector, and according to radio frequency connector and circuit board in the image, confirm the actual mounted position of radio frequency connector, confirm then the distance value between radio frequency connector and the circuit board that the radio frequency connector is connected, at last according to the ideal mounted position actual mounted position with the distance value, output testing result to improve detection efficiency and the accuracy to the radio frequency connector installation, reduce detection cost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of an image-based radio frequency connector detection method provided in an embodiment of the present application;
FIG. 2 is a schematic flowchart of an image-based RF connector inspection method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an image including a radio frequency connector and a circuit board connected to the radio frequency connector provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a feature point of an RF connector provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a test instrument according to an embodiment of the present disclosure;
fig. 6 is a block diagram schematically illustrating a structure of a detection apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a radio frequency connector detection method and device based on images and a storage medium. The image-based radio frequency connector detection method can be applied to terminals or servers, the terminals can comprise electronic terminals such as mobile phones, tablet computers, notebook computers, desktop computers, personal digital assistants and wearable devices, and the servers can be single servers or server clusters formed by multiple servers. For example, the image-based radio frequency connector detection method is applied to a terminal, and the terminal determines an ideal installation position of a radio frequency connector according to an image including the radio frequency connector and a circuit board connected with the radio frequency connector within a preset range, determines an actual installation position of the radio frequency connector according to the radio frequency connector and the circuit board in the image, then determines a distance value between the radio frequency connector and the circuit board connected with the radio frequency connector, and finally outputs a detection result according to the ideal installation position, the actual installation position and the distance value. Illustratively, as shown in fig. 1, the detection terminal may establish communication with a pre-installed camera, such as a video camera, to acquire an image including the rf connector and a circuit board connected to the rf connector within a preset range.
The following explanation takes the application of the image-based rf connector detection method to a detection server as an example. Illustratively, the detection server is equipped with a pre-trained detection tool, such as a computer program, independent software or plug-in, etc. The image-based radio frequency connector detection method may be implemented when the detection server runs a detection tool.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 2, fig. 2 is a schematic flow chart of an image-based rf connector detection method according to an embodiment of the present disclosure.
As shown in fig. 2, the image-based rf connector detection method includes steps S101 to S105.
S101, obtaining an image which is within a preset range and comprises a radio frequency connector and a circuit board connected with the radio frequency connector through a shooting device.
In some embodiments, a camera is pre-installed to acquire an image including a radio frequency connector and a circuit board connected to the radio frequency connector within a preset range. Illustratively, the shooting device comprises a communication module which can communicate with the detection server to send images including a radio frequency connector and a circuit board connected with the radio frequency connector within a preset range to the test server. The specific position of the installation of the shooting device can be flexibly set according to actual needs, for example, the shooting device can be installed at a position obliquely above a circuit board or directly above the circuit board, so that the shooting device can acquire a front top view of the radio frequency connector and the circuit board connected with the radio frequency connector, as shown in fig. 3, a front top view of the radio frequency connector 20 and the circuit board 10 connected with the radio frequency connector. Illustratively, the camera includes a camera, which may be a general 2D camera, but may also be other cameras, such as a depth camera.
In some embodiments, after the image including the radio frequency connector and the circuit board connected to the radio frequency connector within the preset range is acquired by the shooting device, the method further includes the following steps:
judging whether the shooting device and the circuit board are parallel or not according to the image;
and if the shooting device is not parallel to the circuit board, executing preset operation.
Illustratively, the circuit board is provided with at least three marking color blocks. The determining whether the camera and the circuit board are parallel according to the image may specifically include: and judging whether the shooting device is parallel to the circuit board or not according to the marked color blocks on the circuit board in the image. Specifically, whether the shooting device and the circuit board are parallel or not can be judged according to the distance between every two marked color blocks. For example, when distances between every two marking color blocks on the circuit board are equal, if the distances between every two marking color blocks on the circuit board in the acquired image are not equal, it is determined that the photographing device is not parallel to the circuit board, and if the distances between every two marking color blocks on the circuit board in the acquired image are equal, it is determined that the photographing device is parallel to the circuit board.
For example, if it is determined that the photographing device and the circuit board are not parallel, a preset reminding operation is performed to remind a detection person to adjust the position and/or the photographing direction of the photographing device, so that the photographing device obtains a front plan view of the circuit board. And executing the preset reminding operation, such as lighting a preset breathing lamp, broadcasting a preset reminding sound and displaying preset reminding information.
Specifically, whether the position of the shooting device is parallel to the position of the circuit board or not is judged according to the image, so that the shooting device can acquire a front plan view of the circuit board, and accuracy of image recognition and detection is improved.
Illustratively, the shooting device includes an adjusting module, and the adjusting module is configured to adjust a position and/or a shooting direction of the shooting device according to the determination result, so that the shooting device acquires a front plan view of the circuit board.
In some embodiments, after acquiring the image including the rf connector and the circuit board connected to the rf connector within the preset range, the method further includes the following steps:
and preprocessing the image, wherein the preprocessing comprises any one of filtering processing and gray processing.
Specifically, after an image including a radio frequency connector and a circuit board connected with the radio frequency connector within a preset range is acquired, the image can be preprocessed, and the preprocessing includes any one of filtering processing and gray processing, so that noise information in the image is reduced, the operation amount during image recognition is reduced, and the accuracy of detection is improved.
And S102, determining an ideal mounting position of the radio frequency connector according to the circuit board in the image.
In some embodiments, the circuit board in the image is identified by identifying the image, and the two-dimensional position of the circuit board is determined, so as to determine the ideal installation position of the radio frequency connector according to the two-dimensional position of the circuit board. The two-dimensional position of the circuit board is the position of the circuit board on a plane rectangular coordinate system established on the plane where the circuit board is located, namely the position of the circuit board on the X axis and the position of the Y axis on the plane rectangular coordinate system.
In some embodiments, image features in the image are identified according to a pre-trained machine learning algorithm, feature point coordinates in the image are determined, and thus a two-dimensional position of the circuit board is determined according to the feature point coordinates. Specifically, according to a pre-trained machine learning algorithm, a circuit board in the image is identified, a feature point is determined in the image, and finally, a two-dimensional position of the circuit board is determined according to coordinates of the feature point, wherein the feature point comprises an angular vertex of the circuit board.
Illustratively, the machine learning algorithm may be trained by the following process: acquiring image data, wherein the image data comprises at least one characteristic point and a mark corresponding to the characteristic point, performing data preprocessing on the image data to obtain training data, and adjusting algorithm parameters through the training data to optimize the algorithm.
For example, the coordinates of the feature points may be set in advance, that is, after the feature points are determined in the image, the coordinates of the feature points may be determined based on the coordinates of the feature points set in advance. For example, if the coordinates of the first feature point a on the circuit board are preset to be (0, 0), when the first feature point a in the image is determined, the coordinates of the first feature point a in the image may be determined to be (0, 0), and then the two-dimensional position of the circuit board is determined according to the coordinates of the first feature point. By presetting the first characteristic point coordinates, the calculation amount can be reduced, the speed of determining the two-dimensional position of the circuit board is increased, and the detection efficiency of the radio frequency connector is improved.
Illustratively, the first feature point may be a specific color block, such as a black color block, disposed on the circuit board, or may be a corner point of the circuit board.
In some embodiments, the ideal installation position of the radio frequency connector is determined according to the two-dimensional position of the circuit board and a preset position relation between the radio frequency connector and the circuit board connected with the radio frequency connector. Specifically, the ideal mounting position of the radio frequency connector includes ideal positions of the respective second feature points of the radio frequency connector. For example, the dimensions of a known circuit board are: length W, width V, and there is first characteristic point a on the circuit board, the coordinate of first characteristic point a is (0, 0), as shown in fig. 4, the coordinate of first characteristic point a is used as the origin, a rectangular coordinate system is established with two adjacent edges of the circuit board, the radio frequency connector connected with the circuit board is a regular quadrilateral and includes four second characteristic points: a. b, c, d, wherein the ab-side is parallel to the X-axis, the lengths of the ab-side and the cd-side are X1, the lengths of the bc-side and the cd-side are X2, determining ideal coordinates corresponding to four second feature points of the radio frequency connector connected with the circuit board according to the position relation between the radio frequency connector and the circuit board connected with the radio frequency connector, that is, the ideal position is, for example, (q × W, p × V) for ideal coordinates of a, (q × W + X1, p × V) for ideal coordinates of b, (q × W + X1, p × V + X2) for ideal coordinates of c, and (q × W, p × V + X2) for ideal coordinates of d, and q and p are constants, and the numerical values of q and p can be set by a user in a self-defined mode or automatically generated by a server/detection tool according to the position relation between the radio frequency connector and a circuit board connected with the radio frequency connector.
Illustratively, the second feature point may be a specific color block, such as a black color block, disposed on the radio frequency connector, or may be a corner point of the radio frequency connector.
And S103, determining the actual installation position of the radio frequency connector according to the radio frequency connector and the circuit board in the image.
Specifically, the image is identified to identify the circuit board and the circuit board in the image, and the actual mounting position of the radio frequency connector on the circuit board is determined. Illustratively, the actual mounting position of the radio frequency connector on the circuit board is determined according to a plane rectangular coordinate system established on the plane where the circuit board is located, that is, the X-axis and Y-axis positions of the radio frequency connector on the plane rectangular coordinate system are determined.
In some embodiments, the radio frequency connector and the circuit board in the image are identified according to a pre-trained machine learning algorithm, and feature point coordinates in the radio frequency connector and the circuit board are determined, so that the actual installation position of the radio frequency connector is determined according to the feature point coordinates. Specifically, according to a pre-trained machine learning algorithm, the radio frequency connector and the circuit board in the image are identified, feature points corresponding to the radio frequency connector and the circuit board are respectively determined, and the actual installation position of the radio frequency connector is determined according to the feature points. For example, the actual mounting position of the radio frequency connector on the circuit board may be determined according to a rectangular plane coordinate system established on the plane where the circuit board is located by the second feature point corresponding to the radio frequency connector.
Illustratively, the radio frequency connector comprises a plurality of second characteristic points, and the actual installation position of the radio frequency connector comprises actual coordinates of the characteristic points corresponding to the radio frequency connector.
For example, the dimensions of a known circuit board are: long W, wide V, and there is first characteristic point A on the circuit board, and first characteristic point A's coordinate is (0, 0), and the radio frequency connector who is connected with the circuit board includes four second characteristic points: a. b, c and d, determining actual coordinates corresponding to four second feature points of the radio frequency connector connected with the circuit board based on the image algorithm and the coordinates of the first feature point A, namely the actual coordinates of a are (Xa, Ya), the actual coordinates of b are (Xb, Yb), the actual coordinates of c are (Xc, Yc) and the actual coordinates of d are (Xd, Yd), and accordingly determining the actual installation position of the radio frequency connector.
And step S104, determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector.
Specifically, a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector is determined through a distance measuring instrument. For example, as shown in fig. 5, the distance measuring instrument 30 transmits a signal to the rf connector 20 and the circuit board 10 connected to the rf connector, and the distance value between the rf connector 20 and the circuit board 10 connected to the rf connector is determined by the time when the signal encounters the rf connector 20 and reflects back and the time when the signal encounters the circuit board 10.
Illustratively, a laser ranging instrument is mounted at the detection area to determine a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector by using laser ranging. The specific position of the laser ranging instrument can be flexibly set according to actual needs, for example, the laser ranging instrument can be installed at the positions such as right above a circuit board and a radio frequency connector connected with the circuit board, so that the laser ranging instrument can send laser signals to the circuit board and the radio frequency connector connected with the circuit board, determine the time difference of returning of the laser signals through the time when the laser signals meet the circuit board and the time when the laser signals meet the radio frequency connector connected with the circuit board and the time when the laser signals meet the radio frequency connector and the radio frequency connector, and finally determine the distance value between the radio frequency connector and the circuit board connected with the radio frequency connector according to the time difference of returning of the laser signals. For example, a mapping table between time and distance may be preset, and a distance value between the rf connector and a circuit board connected to the rf connector may be determined according to a time difference of return of the laser signal and the mapping table.
The laser range finder includes a TOF (Time of Flight) sensor. For example, a TOF sensor is mounted at the detection region to determine a distance value between the radio frequency connector and a circuit board to which the radio frequency connector is connected. The specific position of the TOF sensor can be flexibly set according to actual needs, for example, the TOF sensor can be installed at a position such as a position right above a circuit board and a radio frequency connector connected with the circuit board, so that the TOF sensor can send optical pulses to the circuit board and the radio frequency connector connected with the circuit board, respectively receive the optical pulses returned from the circuit board and the radio frequency connector connected with the circuit board, respectively obtain the distances between the circuit board and the radio frequency connector relative to the TOF sensor by detecting the flight round-trip time of the optical pulses, and finally determine the distance value between the radio frequency connector and the circuit board connected with the radio frequency connector according to the distances between the circuit board and the radio frequency connector relative to the TOF sensor.
Illustratively, an ultrasonic ranging instrument is installed at the detection area to determine a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector using ultrasonic ranging. The specific position of the ultrasonic ranging instrument can be flexibly set according to actual needs, for example, the ultrasonic ranging instrument can be installed at the positions such as right above a circuit board and a radio frequency connector connected with the circuit board, so that the ultrasonic ranging instrument can send ultrasonic signals to the circuit board and the radio frequency connector connected with the circuit board, determine the time difference of returning ultrasonic waves through the time of the ultrasonic signals reflected back by the circuit board and the time of the ultrasonic signals reflected back by the radio frequency connector connected with the circuit board, and finally determine the distance value between the radio frequency connector and the circuit board connected with the radio frequency connector according to the time difference of returning ultrasonic waves. For example, a mapping table between time and distance may be preset, and a distance value between the radio frequency connector and a circuit board connected to the radio frequency connector may be determined according to the time difference of return of the ultrasonic wave and the mapping table.
The ultrasonic distance measuring instrument comprises an ultrasonic distance measuring sensor. For example, an ultrasonic ranging sensor is mounted at the detection area to determine a distance value between the radio frequency connector and a circuit board connected to the radio frequency connector. The specific position of the ultrasonic distance measuring sensor can be flexibly arranged according to actual needs, for example, the ultrasonic distance measuring sensor can be arranged right above a circuit board and a radio frequency connector connected with the circuit board, and the like, so that the ultrasonic distance measuring sensor can send ultrasonic signals to the circuit board and the radio frequency connector connected with the circuit board, then respectively receive ultrasonic signals returned from the circuit board and the radio frequency connector connected with the circuit board, respectively obtain the distance between the circuit board and the radio frequency connector relative to the ultrasonic distance measuring sensor through the round-trip time of the ultrasonic signals, and finally determine the distance value between the radio frequency connector and the circuit board connected with the radio frequency connector according to the distance between the circuit board and the radio frequency connector relative to the ultrasonic distance measuring sensor.
And S105, outputting a detection result according to the ideal installation position, the actual installation position and the distance value.
Specifically, a difference value between the actual installation position and the ideal installation position of the radio frequency connector is judged according to the ideal installation position, the actual installation position and the distance value, whether the radio frequency connector meets a buckling standard with a circuit board or not is judged according to the difference value and the distance value, and a detection result is generated according to a judgment result.
In some embodiments, the outputting a detection result according to the ideal installation position, the actual installation position, and the distance value specifically includes the following steps: determining the position offset of the ideal installation position and the actual installation position according to the ideal installation position and the actual installation position; and outputting a detection result according to the position offset and the distance value. Illustratively, the position offset of the ideal installation position and the actual installation position of the radio frequency connector is determined according to the ideal coordinate and the actual coordinate corresponding to the second characteristic point of the radio frequency connector. For example, the rf connector has four second feature points: a. the ideal coordinates of b, c, d and a are (xW, yV), the actual coordinates are (Xa, Ya), the ideal coordinates of b are (xW + X1, yV), the actual coordinates are (Xb, Yb), the ideal coordinates of c are (xW + X1, yV + X2), the actual coordinates are (Xc, Yc), the ideal coordinates of d are (xW, yV + X2), and the actual coordinates of d are (Xd, Yd).
In some embodiments, the outputting a detection result according to the position offset and the distance value specifically includes the following steps:
if the position offset is not greater than a preset offset threshold and the distance value is not greater than a preset distance threshold, judging that the installation of the radio frequency connector meets a preset standard, and outputting a detection result qualified in detection;
if the position offset is larger than a preset offset threshold, judging that the installation of the radio frequency connector does not meet a preset standard, and outputting a detection result that the detection is unqualified;
and if the distance value is larger than a preset distance threshold value, judging that the installation of the radio frequency connector does not meet a preset standard, and outputting a detection result that the detection is unqualified.
Specifically, the mounting of the rf connector needs to satisfy two conditions that the position offset amount between the ideal mounting position and the actual mounting position is not greater than a preset offset threshold value and the distance value between the rf connector and the circuit board is not greater than a preset distance threshold value. If the installation of one radio frequency connector meets the two conditions, determining that the radio frequency connector meets the preset standard, and outputting a detection result that the radio frequency connector is qualified; and if the two conditions are not met when one radio frequency connector is installed at the same time, determining that the radio frequency connector does not meet the preset standard, and outputting a detection result that the radio frequency connector is detected to be unqualified.
In the image-based radio frequency connector detection method provided by the embodiment, an image including a radio frequency connector and a circuit board connected with the radio frequency connector within a preset range is obtained through a shooting device, an ideal installation position of the radio frequency connector is determined according to the circuit board in the image, an actual installation position of the radio frequency connector is determined according to the radio frequency connector and the circuit board in the image, then a distance value between the radio frequency connector and the circuit board connected with the radio frequency connector is determined, and finally a detection result is output according to the ideal installation position, the actual installation position and the distance value, so that the detection efficiency and accuracy of the installation condition of the radio frequency connector are improved, and the detection cost is reduced.
Referring to fig. 6, fig. 6 is a schematic block diagram of a structure of a detection apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the detection apparatus 200 includes a processor 202, a memory 203, and a communication interface 204 connected by a system bus 201, wherein the memory 203 may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the image-based radio frequency connector detection methods.
Processor 202 is used to provide computational and control capabilities to support the operation of the overall detection device.
The memory 203 provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by the processor 202, causes the processor 202 to perform any of the image-based radio frequency connector detection methods.
The communication interface 204 is used for communication. It will be appreciated by those skilled in the art that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the detection apparatus to which the present application is applied, and a particular detection apparatus may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
It should be understood that the bus 201 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 203 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 202 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor 202 is configured to run a computer program stored in the memory 203 to implement the following steps:
acquiring an image which is within a preset range and comprises a radio frequency connector and a circuit board connected with the radio frequency connector through a shooting device;
determining an ideal mounting position of the radio frequency connector according to the circuit board in the image;
determining the actual installation position of the radio frequency connector according to the radio frequency connector and the circuit board in the image;
determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector;
and outputting a detection result according to the ideal installation position, the actual installation position and the distance value.
In one embodiment, the processor 202, in implementing the determining the ideal mounting position of the rf connector from the circuit boards in the image, is configured to implement:
determining a two-dimensional position of the circuit board according to the image;
and determining an ideal installation position of the radio frequency connector according to the two-dimensional position.
In one embodiment, the processor 202, in implementing the determining the two-dimensional position of the circuit board from the image, is configured to implement:
identifying image features in the image based on a pre-trained machine learning algorithm, and determining feature point coordinates in the image;
and determining the two-dimensional position of the circuit board according to the characteristic point coordinates.
In one embodiment, the processor 202, in implementing the determining the ideal mounting position of the rf connector according to the two-dimensional position, is further configured to implement:
and determining an ideal installation position of the radio frequency connector according to the two-dimensional position and a preset position relation between the radio frequency connector and a circuit board connected with the radio frequency connector.
In one embodiment, the processor 202, in implementing the determining the distance value between the rf connector and the circuit board connected to the rf connector, is configured to implement:
determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector based on laser ranging; or
And determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector based on ultrasonic ranging.
In one embodiment, the processor 202, when implementing the outputting the detection result according to the ideal installation position, the actual installation position and the distance value, is configured to implement:
determining the position offset of the ideal installation position and the actual installation position according to the ideal installation position and the actual installation position;
and outputting a detection result according to the position offset and the distance value.
In one embodiment, when the processor 202 is configured to output the detection result according to the position offset and the distance value, it is configured to:
if the position offset is not greater than a preset offset threshold and the distance value is not greater than a preset distance threshold, judging that the installation of the radio frequency connector meets a preset standard, and outputting a detection result qualified in detection;
if the position offset is larger than a preset offset threshold, judging that the installation of the radio frequency connector does not meet a preset standard, and outputting a detection result that the detection is unqualified;
and if the distance value is larger than a preset distance threshold value, judging that the installation of the radio frequency connector does not meet a preset standard, and outputting a detection result that the detection is unqualified.
In an embodiment, the circuit board is provided with at least three marked color blocks, and the processor 202 is configured to, after obtaining the image including the radio frequency connector and the circuit board connected to the radio frequency connector within the preset range by the shooting device, implement:
judging whether the shooting device is parallel to the circuit board or not according to the marked color blocks on the circuit board in the image;
and if the shooting device is not parallel to the circuit board, executing preset operation to enable the shooting device to acquire a front plan view of the circuit board.
In one embodiment, the processor 202, after implementing the acquiring the image including the rf connector and the circuit board connected to the rf connector within the preset range, is configured to implement:
and preprocessing the image, wherein the preprocessing comprises any one of filtering processing and gray processing.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the detection apparatus described above may refer to the corresponding process in the foregoing embodiment of the detection apparatus control method, and is not described herein again.
According to the detection device provided by the embodiment, the image which is within the preset range and comprises the radio frequency connector and the circuit board connected with the radio frequency connector is obtained through the shooting device, the ideal installation position of the radio frequency connector is determined according to the circuit board in the image, the actual installation position of the radio frequency connector is determined according to the radio frequency connector and the circuit board in the image, then the distance value between the radio frequency connector and the circuit board connected with the radio frequency connector is determined, and finally the detection result is output according to the ideal installation position, the actual installation position and the distance value, so that the detection efficiency and the accuracy of the installation condition of the radio frequency connector are improved, and the detection cost is reduced.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed, a method implemented by the computer program instructions may refer to various embodiments of the image-based radio frequency connector detection method in the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The computer-readable storage medium may be an internal storage unit of the detection apparatus described in the foregoing embodiment, for example, a hard disk or a memory of the detection apparatus. The computer readable storage medium may also be an external storage device of the detection apparatus, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the detection apparatus.
Since the computer program stored in the computer-readable storage medium can execute any detection device control method provided in the embodiments of the present application, beneficial effects that can be achieved by any detection device control method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the details, see the foregoing embodiments.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and various equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An image-based radio frequency connector detection method, comprising:
acquiring an image which is within a preset range and comprises a radio frequency connector and a circuit board connected with the radio frequency connector through a shooting device;
determining an ideal mounting position of the radio frequency connector according to the circuit board in the image;
determining the actual installation position of the radio frequency connector according to the radio frequency connector and the circuit board in the image;
determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector;
and outputting a detection result according to the ideal installation position, the actual installation position and the distance value.
2. The method of claim 1, wherein the determining the ideal mounting location of the rf connector based on the circuit board in the image comprises:
determining a two-dimensional position of the circuit board according to the image;
determining an ideal installation position of the radio frequency connector according to the two-dimensional position;
said determining a two-dimensional position of said circuit board from said image, comprising:
identifying image features in the image based on a pre-trained machine learning algorithm, and determining feature point coordinates in the image;
and determining the two-dimensional position of the circuit board according to the characteristic point coordinates.
3. The method of claim 2, wherein the determining the ideal mounting position of the rf connector based on the two-dimensional position comprises:
and determining an ideal installation position of the radio frequency connector according to the two-dimensional position and a preset position relation between the radio frequency connector and a circuit board connected with the radio frequency connector.
4. The method of claim 1, wherein the determining a distance value between the radio frequency connector and a circuit board connected to the radio frequency connector comprises:
determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector through laser ranging; or
And determining a distance value between the radio frequency connector and a circuit board connected with the radio frequency connector through ultrasonic ranging.
5. The method for detecting a radio frequency connector according to claim 1, wherein the outputting a detection result according to the ideal installation position, the actual installation position and the distance value comprises:
determining the position offset of the ideal installation position and the actual installation position according to the ideal installation position and the actual installation position;
and outputting a detection result according to the position offset and the distance value.
6. The method for detecting a radio frequency connector according to claim 5, wherein the outputting a detection result according to the position offset and the distance value comprises:
if the position offset is not greater than a preset offset threshold and the distance value is not greater than a preset distance threshold, judging that the installation of the radio frequency connector meets a preset standard, and outputting a detection result qualified in detection;
if the position offset is larger than a preset offset threshold, judging that the installation of the radio frequency connector does not meet a preset standard, and outputting a detection result that the detection is unqualified;
and if the distance value is larger than a preset distance threshold value, judging that the installation of the radio frequency connector does not meet a preset standard, and outputting a detection result that the detection is unqualified.
7. The method according to claim 1, wherein the circuit board is provided with at least three marked color blocks;
after the image including the radio frequency connector and with the circuit board that the radio frequency connector is connected is obtained to predetermine within range through camera device, still include:
judging whether the shooting device is parallel to the circuit board or not according to the marked color blocks on the circuit board in the image;
and if the shooting device is not parallel to the circuit board, executing preset operation to enable the shooting device to acquire a front plan view of the circuit board.
8. The method for detecting the radio frequency connector according to claim 1, wherein after the image including the radio frequency connector and the circuit board connected with the radio frequency connector within the preset range is obtained through a preset shooting device, the method further comprises the following steps:
and preprocessing the image, wherein the preprocessing comprises any one of filtering processing and gray processing.
9. A detection apparatus, characterized in that the detection apparatus comprises a processor, a memory and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the image based radio frequency connector detection method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the image-based radio frequency connector detection method according to any one of claims 1 to 8.
CN202010464395.6A 2020-05-27 2020-05-27 Image-based radio frequency connector detection method, detection device and storage medium Pending CN113739695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010464395.6A CN113739695A (en) 2020-05-27 2020-05-27 Image-based radio frequency connector detection method, detection device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010464395.6A CN113739695A (en) 2020-05-27 2020-05-27 Image-based radio frequency connector detection method, detection device and storage medium

Publications (1)

Publication Number Publication Date
CN113739695A true CN113739695A (en) 2021-12-03

Family

ID=78723681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010464395.6A Pending CN113739695A (en) 2020-05-27 2020-05-27 Image-based radio frequency connector detection method, detection device and storage medium

Country Status (1)

Country Link
CN (1) CN113739695A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05303628A (en) * 1992-04-27 1993-11-16 Matsushita Electric Ind Co Ltd Device for inspecting mounted substrate appearance
JPH1051195A (en) * 1996-04-23 1998-02-20 Matsushita Electric Ind Co Ltd Mounting apparatus for electronic component
US5760893A (en) * 1996-12-24 1998-06-02 Teradyne, Inc. Method and apparatus for inspecting component placement and solder connection in printed circuit board manufacture
GB0616167D0 (en) * 2006-08-15 2006-09-20 Mv Res Ltd Inspection of components in SMT
CN110291855A (en) * 2017-02-13 2019-09-27 株式会社高永科技 Check device, its method of operation and the computer readable recording medium of the component mounted in printed circuit board
CN110517260A (en) * 2019-08-30 2019-11-29 北京地平线机器人技术研发有限公司 The detection method and device of circuit board, storage medium, electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05303628A (en) * 1992-04-27 1993-11-16 Matsushita Electric Ind Co Ltd Device for inspecting mounted substrate appearance
JPH1051195A (en) * 1996-04-23 1998-02-20 Matsushita Electric Ind Co Ltd Mounting apparatus for electronic component
US5760893A (en) * 1996-12-24 1998-06-02 Teradyne, Inc. Method and apparatus for inspecting component placement and solder connection in printed circuit board manufacture
GB0616167D0 (en) * 2006-08-15 2006-09-20 Mv Res Ltd Inspection of components in SMT
CN110291855A (en) * 2017-02-13 2019-09-27 株式会社高永科技 Check device, its method of operation and the computer readable recording medium of the component mounted in printed circuit board
CN110517260A (en) * 2019-08-30 2019-11-29 北京地平线机器人技术研发有限公司 The detection method and device of circuit board, storage medium, electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周德俭,吴兆华主编: "电子封装工艺与装备技术基础教程", 31 July 2017, 西安电子科技大学出版社, pages: 256 - 259 *

Similar Documents

Publication Publication Date Title
EP3460385B1 (en) Method and apparatus for determining volume of object
US11763568B2 (en) Ground plane estimation in a computer vision system
EP3879307A1 (en) Method and apparatus for detecting obstacle
US10152119B2 (en) Head-mounted display apparatus and calibration method thereof
US10198830B2 (en) Parallax operation system, information processing apparatus, information processing method, and recording medium
CN109855568B (en) Method and device for detecting automatic driving sensor, electronic equipment and storage medium
CN108513121B (en) Method and apparatus for depth map evaluation of a scene
CN111259890A (en) Water level identification method, device and equipment of water level gauge
CN111539943B (en) Lithium battery pole piece stacking position measuring method, device and system based on multiple cameras
WO2022151658A1 (en) Defect detection method and apparatus, and computer device and computer-readable storage medium
KR20180105875A (en) Camera calibration method using single image and apparatus therefor
US10936886B2 (en) Method and system for stereo based vehicle pose estimation
CN111311671B (en) Workpiece measuring method and device, electronic equipment and storage medium
US11089291B2 (en) Detection method and detection device, electronic device and computer readable storage medium
CN112689842B (en) Target detection method and device
CN113739695A (en) Image-based radio frequency connector detection method, detection device and storage medium
CN114424240A (en) Target detection method and device, equipment and storage medium
CN113033248A (en) Image identification method and device and computer readable storage medium
CN112633143B (en) Image processing system, method, head-mounted device, processing device, and storage medium
CN113188569A (en) Vehicle and laser radar coordinate system calibration method, device and storage medium
CN110930451B (en) Three-dimensional space positioning method, system and storage medium based on two-dimensional image
CN110197228B (en) Image correction method and device
CN115407281A (en) Point cloud denoising method and device, detection radar and storage medium
CN113066100A (en) Target tracking method, device, equipment and storage medium
CN112665583B (en) Inertial navigation method, terminal device and computer-readable storage medium

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