CN113724198A - Module testing distance detection method, device, system, electronic device and medium - Google Patents

Module testing distance detection method, device, system, electronic device and medium Download PDF

Info

Publication number
CN113724198A
CN113724198A CN202110849249.XA CN202110849249A CN113724198A CN 113724198 A CN113724198 A CN 113724198A CN 202110849249 A CN202110849249 A CN 202110849249A CN 113724198 A CN113724198 A CN 113724198A
Authority
CN
China
Prior art keywords
distance
marker
camera module
target camera
image
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
CN202110849249.XA
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.)
Kunshanqiu Titanium Photoelectric Technology Co Ltd
Original Assignee
Kunshanqiu Titanium Photoelectric Technology 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 Kunshanqiu Titanium Photoelectric Technology Co Ltd filed Critical Kunshanqiu Titanium Photoelectric Technology Co Ltd
Priority to CN202110849249.XA priority Critical patent/CN113724198A/en
Publication of CN113724198A publication Critical patent/CN113724198A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a method, a device and a system for detecting a module testing distance, electronic equipment and a medium, wherein the method comprises the following steps: the method comprises the steps of acquiring an image of a test object acquired by a target camera module, arranging a first marker and a second marker on the test object, and then determining the distance between the first marker and the second marker in the image; then, based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the test object and the distance in the image, the test distance of the target camera module, namely the distance between the target camera module and the test object, is determined. Therefore, the testing distance of the camera module in the quality testing process can be mastered in time, so that the camera module can be corrected in time when the testing distance goes wrong, and the reliability of the quality testing result is improved.

Description

Module testing distance detection method, device, system, electronic device and medium
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a medium for detecting a testing distance of a module.
Background
The quality detection of the camera often needs to test various different patterns at different distances, and the accuracy of the test distance is an important factor influencing the quality detection result. Therefore, the requirement for the accuracy of the test distance is also high during the test. At present, the testing distance is ensured to be within a required range by manual periodical point inspection, but the periodical inspection belongs to a mode of after interception, a certain amount of product rework can be generated, and the quality of the product is not guaranteed.
Disclosure of Invention
The invention provides a method, a device and a system for detecting a module testing distance, electronic equipment and a medium, which can efficiently detect the testing distance of a camera module and are beneficial to timely correcting the distance, thereby improving the reliability of a quality testing result and reducing the rework of a product.
In a first aspect, an embodiment of the present specification provides a module test distance detection method, where the method includes: acquiring an image of a test object acquired by a target camera module, wherein a first marker and a second marker are arranged on the test object; determining the distance between the first marker and the second marker in the image; and determining the testing distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the testing object and the distance in the image, wherein the testing distance is the distance between the target camera module and the testing object.
Further, the determining the test distance of the target camera module based on the imaging parameter of the target camera module, the distance between the first marker and the second marker on the test object, and the distance in the image includes: acquiring the distance between the first marker and the second marker on the test object and the focal length of the target camera module; and determining the testing distance of the target camera module on the basis of the focal distance, the distance of the first marker and the second marker on the testing object and the distance in the image.
Further, after determining the testing distance of the target camera module, the method further includes: and if the difference value between the test distance and the preset distance exceeds a preset range, stopping the test of the target camera module and displaying error prompt information to a user.
Further, the presenting of the error prompt information to the user includes: and sending the error prompt information to a target mobile terminal.
Further, the method further comprises: and adjusting the distance between the target camera module and the test object based on the difference between the test distance and the preset distance so that the difference between the test distance of the target camera module and the preset distance is within the preset range.
Further, the determining the distance between the first marker and the second marker in the image comprises: carrying out binarization processing on the image; determining respective central coordinates of the first marker and the second marker by a centroid method based on the binarized image, and determining a pixel distance between the central coordinate of the first marker and the central coordinate of the second marker; and determining the distance between the first marker and the second marker in the image based on the imaging resolution of the target camera module, the physical size of each pixel and the pixel distance.
In a second aspect, an embodiment of the present specification provides a module testing distance detection apparatus, where the apparatus includes: the image acquisition module is used for acquiring an image of a test object acquired by the target camera module, wherein a first marker and a second marker are arranged on the test object; the first distance determination module is used for determining the distance between the first marker and the second marker in the image; and the second distance determining module is used for determining the testing distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the testing object and the distance in the image, wherein the testing distance is the distance between the target camera module and the testing object.
In a third aspect, an embodiment of the present specification provides a module testing system, where the system includes: the device comprises electronic equipment, a target camera module, a test object and mobile control equipment. The target shooting module and the mobile control equipment are connected with the electronic equipment. The target camera module is used for collecting the image of the test object. The electronic equipment is used for acquiring an image of a test object acquired by a target camera module and determining the distance between the first marker and the second marker in the image; and determining the testing distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the testing object and the distance in the image, and sending a distance adjusting instruction to the mobile control equipment if the difference between the testing distance and the preset distance exceeds a preset range. The mobile control equipment is used for adjusting the distance between the target camera module and the test object based on the distance adjusting instruction, so that the difference value between the test distance of the target camera module and the preset distance is within the preset range.
In a fourth aspect, an embodiment of the present specification provides an electronic device, including: a processor, a memory and a computer program stored in the memory, wherein the processor implements the steps of the module test distance detection method according to the first aspect when executing the computer program.
In a fifth aspect, an embodiment of the present specification provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the module test distance detection method according to the first aspect.
In the method for detecting the module testing distance provided in one embodiment of the present specification, a first marker and a second marker are set on a test object in advance, an image of the test object acquired by a target camera module is acquired, and then the distance between the first marker and the second marker in the image is determined; then, based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the test object and the distance in the image, the test distance of the target camera module, namely the distance between the target camera module and the test object, is determined. Therefore, the testing distance of the camera module in the quality testing process can be timely mastered, so that the camera module can be timely corrected when the testing distance goes wrong, the reliability of a quality testing result is improved, and the rework of a product is reduced.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the specification. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for detecting a testing distance of a module according to a first aspect of an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating an exemplary aperture imaging principle according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a module testing distance detection apparatus provided in a second aspect of the embodiments of the present disclosure;
FIG. 4 is a schematic structural diagram of an exemplary module testing system provided in a third aspect of embodiments of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device provided in the fourth aspect of the embodiments of the present disclosure.
Detailed Description
In order to better understand the technical solutions provided by the embodiments of the present specification, the technical solutions of the embodiments of the present specification are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present specification are detailed descriptions of the technical solutions of the embodiments of the present specification, and are not limitations on the technical solutions of the embodiments of the present specification, and the technical features in the embodiments and examples of the present specification may be combined with each other without conflict.
In a first aspect, fig. 1 shows a flowchart of a method for detecting a module test distance according to an embodiment of the present invention. The method for detecting a module test distance provided by the embodiment of the invention is applied to an electronic device, and as shown in fig. 1, the method may include the following steps S101 to S103.
Step S101, obtaining an image of a test object acquired by a target camera module, wherein a first marker and a second marker are arranged on the test object.
The target camera module is a camera module to be detected. For example, in an application scenario, the quality detection of the camera needs to test a plurality of different patterns at different distances, for example, a single test distance may be set, and the plurality of different patterns set at the distance may be tested, or a plurality of test distances may be set, and a plurality of different patterns may be tested at each distance.
As an optional implementation manner, the test object may be a picture including a test pattern, and the specific picture layout manner may be set according to actual needs, for example, the test picture may be pasted on a display board, or the test picture may be displayed through a display screen, and the like, which is not limited herein. After the target camera module, the test object and the distance between the target camera module and the test object are arranged, the target camera module can be triggered to take a picture, and therefore the image of the test object is collected.
In this embodiment, a marker is previously set on a test object to be tested, taking the test object as a picture as an example, the marker may be a point marker or a graphic marker, for example, a specific dot or polygon may be added in a pattern included in the picture. Specifically, the number of the markers provided on the test object may be two, and the first marker and the second marker are provided. In an alternative embodiment, more than three markers may be set on the test object, so that each two markers are set as a group, and are respectively a first marker and a second marker, the following steps S102 to S103 are performed to respectively determine a test distance, and then the test distances are combined to determine the test distance of the target camera module by means of averaging or median. Therefore, the accuracy of the detection result of the testing distance is improved.
Step S102, determining the distance between the first marker and the second marker in the image.
Specifically, it is necessary to identify a first marker and a second marker from an image, locate a pixel distance between the two markers based on respective reference points of the two markers, and then convert the pixel distance into a physical distance, i.e., obtain a distance between the two markers in the image.
As an alternative embodiment, for the image acquired in step S101, the centroid of the identifier in the image may be used as the reference point. Firstly, carrying out binarization processing on an image, determining respective central coordinates of a first marker and a second marker by a centroid method based on the binarized image, and determining a pixel distance between the central coordinates of the first marker and the central coordinates of the second marker; and determining the distance between the first marker and the second marker in the image based on the imaging resolution of the target camera module, the physical size of each pixel and the pixel distance. That is, the pixel distance is converted into the physical distance according to the imaging resolution of the target camera module and the corresponding physical size of the single pixel. Of course, in other embodiments of the present invention, other reference points may also be used, for example, the identifier is a polygon, and one of the corner points of the polygon may be used as the reference point.
The imaging resolution of the target camera module and the physical size of each pixel can be preset according to the imaging resolution and the single pixel size of the image sensor adopted by the target camera module.
And step S103, determining the testing distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the testing object and the distance in the image.
It should be understood that the above-mentioned test distance refers to the distance between the target camera module and the test object. As an embodiment, the imaging parameter of the target camera module may include a focal length of the target camera module, and the process of determining the test distance of the target camera module based on the imaging parameter of the target camera module, the distance between the first marker and the second marker on the test object, and the distance in the image may include: acquiring the distance between a first marker and a second marker on a test object and the focal length of a target camera module; and determining the test distance of the target camera module based on the focal distance, the distance of the first marker and the second marker on the test object and the distance in the image. The distance between the two markers on the test object and the focal length of the target camera module are known and can be preset.
It will be appreciated that the camera imaging principle is similar to the pinhole imaging principle, and as shown in fig. 2, assuming that the size of the object is w, the size of the image made by the object is: x, object distance u, image distance v, then: and w/x is u/v.
On the basis, the Gaussian imaging formula is combined: 1/u + 1/v-1/f, it is possible to determine the actual distance w between two markers on the test object0And the distance x in the image0Then, the object distance u is calculated0I.e. the above-mentioned test distance. And f is the focal length of the target camera module.
Of course, in other embodiments of the present invention, the imaging parameter of the target camera module may include an image distance, or the image distance of the target camera module may be predetermined, and the distance w between the two markers on the test object is determined0And the distance x in the image0Then, the object distance, i.e., the test distance, can be determined based on the above formula w/x-u/v.
Further, after determining the test distance of the target camera module, the method for detecting the test distance of the module provided in this embodiment may further include: and if the difference value between the determined test distance and the preset distance exceeds the preset range, stopping the test of the target camera module, and displaying error prompt information to a user so that the user can timely master and solve the abnormal condition of the test distance. It should be noted that the preset distance and the preset range are set according to actual test requirements, and the preset range is an acceptable error range. For example, when the test distance is wrong, that is, the error exceeds the acceptable range, the electronic device may display error prompt information to the user through voice broadcast, audible and visual alarm, or display error prompt such as text prompt or button color status prompt.
In an application scenario, the correcting of the testing distance needs to be completed by a relevant professional, and the relevant professional may not be able to keep in the testing place, so that, in order to notify the relevant professional to adjust when the testing distance is wrong, in an optional implementation, the presenting of the error prompt information to the user may include: and sending the error prompt information to the target mobile terminal. For example, the error prompt message may include a prompt message for indicating that the test distance is incorrect and a specific difference value; the target mobile terminal may be a mobile terminal such as a mobile phone, a tablet computer, or a PDA (Personal Digital Assistant). Therefore, related professionals only need to carry the target mobile terminal to master the abnormal condition of the testing distance in the quality testing process of the target camera module, and timely arrive at the scene to adjust when the testing distance is wrong so as to improve the reliability of the quality testing result and reduce the rework of products.
Further, in order to reduce user operations and more efficiently complete the quality test of the camera module, the method for detecting the module testing distance provided by this embodiment may further include: based on the difference between the testing distance and the preset distance, the distance between the target camera module and the testing object is adjusted, so that the difference between the testing distance of the target camera module and the preset distance is within the preset range. Like this, on the one hand can be wrong at the test distance, in time accomplish automatic correction, guarantee the reliability of quality test result, and reduce user operation, reduce the human resource cost, on the other hand also can be through setting up preset distance, realize the module quality test of making a video recording under multiple different test distances, be favorable to improving efficiency of software testing.
For example, in an application scenario, the preset distance of the current quality testing process is D0The predetermined range is (-delta, delta), if the distance D is measuredtAnd D0If the difference between the target image pickup module and the test object exceeds the preset range, the distance between the target image pickup module and the test object needs to be adjusted by Dt-D0. It will be appreciated that if the difference is positive, then it is adjusted closer, and if the difference is negative, then it is adjusted farther. As another example, in an application scenario, the distance D needs to be preceded and followed1、D2、D3And D4When the image acquisition test is carried out, D is firstly carried out1As the preset distance, the module test distance detection method provided in this embodiment is executed, and if the distance D between the current target camera module and the test object is detected1If the difference between the two exceeds the preset range, the operation is executedAnd adjusting the distance. Upon detection of completion of pair D1After the image acquisition test at the distance, the preset distance can be updated to D2If the distance D between the current target camera module and the test object is detected, the method continues to execute the method for detecting the module test distance provided by the embodiment2If the difference value between the distance values exceeds the preset range, the distance adjustment is executed, and the like is performed until the image acquisition tests of all the distances are completed.
In a specific implementation process, the mobile control device may be configured to adjust the position of the target camera module or adjust the position of the test object, so as to adjust the distance between the target camera module and the test object.
For example, the mobile control device may include a guide rail, a motor, and a motor driving device, the guide rail is disposed along a distance direction between the target camera module and the test object, the target camera module or the test object is mounted on the guide rail based on a slider, the electronic device sends a distance adjustment instruction to the motor driving device based on the difference, and the motor is driven to operate, so as to control the target camera module or the test object to move forward or backward along the guide rail, thereby adjusting the test distance, and making the difference between the test distance and the preset distance within a preset range.
For another example, the movement control apparatus may be an automatic travel apparatus capable of receiving the distance adjustment instruction and moving along a specified route in accordance with the distance adjustment instruction, and the target camera module or the test object may be set on the automatic travel apparatus. And the electronic equipment sends a distance adjusting instruction to the automatic driving equipment based on the difference, controls the automatic driving equipment to move according to the specified route, and realizes the adjustment of the testing distance so that the difference between the testing distance and the preset distance is in a preset range.
In summary, in the module test distance detection method provided in this embodiment, the first marker and the second marker are set on the test object in advance, so that the test distance of the target camera module, that is, the distance between the target camera module and the test object, is determined based on the actual distance between the first marker and the second marker on the test object and the distance in the image. Therefore, the testing distance of the camera module in the quality testing process can be timely mastered, so that the camera module can be timely corrected when the testing distance goes wrong, the reliability of a quality testing result is improved, and the rework of a product is reduced.
In a second aspect, based on the same inventive concept, an embodiment of the present invention further provides a module testing distance detecting apparatus, as shown in fig. 3, where the module testing distance detecting apparatus 30 includes:
the image acquisition module 301 is configured to acquire an image of a test object acquired by a target camera module, where the test object is provided with a first marker and a second marker;
a first distance determining module 302, configured to determine a distance between the first identifier and the second identifier in the image;
a second distance determining module 303, configured to determine a test distance of the target image capturing module based on the imaging parameter of the target image capturing module, the distance between the first identifier and the second identifier on the test object, and the distance in the image, where the test distance is the distance between the target image capturing module and the test object.
Further, the second distance determining module 303 is configured to obtain a distance between the first marker and the second marker on the test object and a focal length of the target camera module; and determining the testing distance of the target camera module on the basis of the focal distance, the distance of the first marker and the second marker on the testing object and the distance in the image.
Further, the module test distance detection device 30 further includes: and the anomaly detection module 304 is configured to stop the test on the target camera module and display an error prompt message to a user if the difference between the test distance and the preset distance exceeds a preset range.
Further, the anomaly detection module 304 is configured to: and sending the error prompt information to a target mobile terminal.
Further, the module test distance detection device 30 further includes: an adjusting module 305, configured to adjust a distance between the target camera module and the test object based on a difference between the test distance and a preset distance, so that the difference between the test distance of the target camera module and the preset distance is within the preset range.
Further, the first distance determining module 302 is configured to: carrying out binarization processing on the image; determining respective central coordinates of the first marker and the second marker by a centroid method based on the binarized image, and determining a pixel distance between the central coordinate of the first marker and the central coordinate of the second marker; and determining the distance between the first marker and the second marker in the image based on the imaging resolution of the target camera module, the physical size of each pixel and the pixel distance.
The modules may be implemented by software codes, or may be implemented by hardware, for example, an integrated circuit chip.
It should be further noted that, for the specific process of implementing the respective function by each module, please refer to the specific content described in the foregoing method embodiments, which is not described herein again.
In a third aspect, based on the same inventive concept, an embodiment of the present invention further provides a module testing system, as shown in fig. 4, where the module testing system 40 includes: an electronic device 401, a target camera module 402, a test object 403, and a movement control device (not shown in the figure).
Wherein the test object 403 is provided with a first identifier 4031 and a second identifier 4032. The specific setting manner may refer to the related description in the method embodiment provided by the first aspect, and is not described herein again.
The target camera module 402 and the mobile control device are connected to the electronic device 401. The target camera module 402 is a camera module that needs to perform an image capturing quality test and is used for capturing an image of a test object.
The electronic device 401 is configured to acquire an image of the test object 403 acquired by the target camera module 402, and determine a distance between the first identifier 4031 and the second identifier 4032 in the image; determining the testing distance of the target camera module 402 based on the imaging parameters of the target camera module 402, the distance between the first identifier 4031 and the second identifier 4032 on the test object 403 and the distance in the image, and if the difference between the testing distance and the preset distance exceeds a preset range, sending a distance adjusting instruction to the mobile control device. For a specific implementation process, reference may be made to the related description in the method embodiment provided in the first aspect, and details are not described here again. For example, the electronic device 401 may be a Personal Computer (PC), a notebook computer, a tablet computer, a palm computer, or other devices with data processing functions.
The mobile control device is used for adjusting the distance between the target camera module 402 and the test object 403 based on the distance adjusting instruction, so that the difference value between the test distance of the target camera module 402 and the preset distance is within the preset range. For a specific implementation process, reference may be made to the related description in the method embodiment provided in the first aspect, and details are not described here again.
The module test system that this embodiment provided, whether there is the anomaly through electronic equipment detection test distance and monitoring test distance, and through setting up the automatic adjustment test distance of mobile control equipment when there is the anomaly in test distance, can be wrong when test distance on the one hand, in time accomplish the automatic correction, guarantee the reliability of quality test result, and reduce user operation, reduce the human resource cost, on the other hand, also can be through setting up preset distance, realize the module quality test of making a video recording under multiple different test distances, be favorable to improving efficiency of software testing.
In a fourth aspect, based on the same inventive concept, embodiments of the present specification further provide an electronic device, which can be connected to the target camera module, and for example, the electronic device may be a terminal device or may also be a server. As shown in fig. 5, the electronic device comprises a memory 504, one or more processors 502 and a computer program stored on the memory 504 and executable on the processors 502, wherein the processor 502 executes the program to implement the steps of any of the embodiments of the module test distance detection method provided in the first aspect.
Where in fig. 5 a bus architecture (represented by bus 500) is shown, bus 500 may include any number of interconnected buses and bridges, and bus 500 links together various circuits including one or more processors, represented by processor 502, and memory, represented by memory 504. The bus 500 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 505 provides an interface between the bus 500 and the receiver 501 and transmitter 503. The receiver 501 and the transmitter 503 may be the same element, i.e. a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 502 is responsible for managing the bus 500 and general processing, and the memory 504 may be used for storing data used by the processor 502 in performing operations.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative and that embodiments of the present invention may provide electronic devices that include more or fewer components than shown in fig. 5, or that have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
In a fifth aspect, based on the same inventive concept, embodiments of the present specification further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any embodiment of the module test distance detection method provided in the first aspect.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus, systems, and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The term "plurality" means more than two, including two or more.
While preferred embodiments of the present specification have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all changes and modifications that fall within the scope of the specification.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present specification without departing from the spirit and scope of the specification. Thus, if such modifications and variations of the present specification fall within the scope of the claims of the present specification and their equivalents, the specification is intended to include such modifications and variations.

Claims (10)

1. A method for detecting a module test distance, the method comprising:
acquiring an image of a test object acquired by a target camera module, wherein a first marker and a second marker are arranged on the test object;
determining the distance between the first marker and the second marker in the image;
and determining the testing distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the testing object and the distance in the image, wherein the testing distance is the distance between the target camera module and the testing object.
2. The method according to claim 1, wherein determining the test distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first and second markers on the test object, and the distance in the image comprises:
acquiring the distance between the first marker and the second marker on the test object and the focal length of the target camera module;
and determining the testing distance of the target camera module on the basis of the focal distance, the distance of the first marker and the second marker on the testing object and the distance in the image.
3. The method according to claim 1, wherein after determining the testing distance of the target camera module, the method further comprises:
and if the difference value between the test distance and the preset distance exceeds a preset range, stopping the test of the target camera module and displaying error prompt information to a user.
4. The method of claim 3, wherein presenting the error prompt to the user comprises:
and sending the error prompt information to a target mobile terminal.
5. The method of claim 3, further comprising:
and adjusting the distance between the target camera module and the test object based on the difference between the test distance and the preset distance so that the difference between the test distance of the target camera module and the preset distance is within the preset range.
6. The method of claim 1, wherein determining the distance between the first and second identifiers in the image comprises:
carrying out binarization processing on the image;
determining respective central coordinates of the first marker and the second marker by a centroid method based on the binarized image, and determining a pixel distance between the central coordinate of the first marker and the central coordinate of the second marker;
and determining the distance between the first marker and the second marker in the image based on the imaging resolution of the target camera module, the physical size of each pixel and the pixel distance.
7. The utility model provides a module test distance detection device which characterized in that, the device includes:
the image acquisition module is used for acquiring an image of a test object acquired by the target camera module, wherein a first marker and a second marker are arranged on the test object;
the first distance determination module is used for determining the distance between the first marker and the second marker in the image;
and the second distance determining module is used for determining the testing distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the testing object and the distance in the image, wherein the testing distance is the distance between the target camera module and the testing object.
8. A modular testing system, the system comprising: electronic equipment, a target camera module, a test object and mobile control equipment, wherein,
the target shooting module and the mobile control equipment are connected with the electronic equipment;
the target camera module is used for acquiring the image of the test object;
the electronic equipment is used for acquiring an image of a test object acquired by a target camera module and determining the distance between the first marker and the second marker in the image; determining the testing distance of the target camera module based on the imaging parameters of the target camera module, the distance between the first marker and the second marker on the testing object and the distance in the image, and sending a distance adjusting instruction to the mobile control equipment if the difference value between the testing distance and the preset distance exceeds a preset range;
the mobile control equipment is used for adjusting the distance between the target camera module and the test object based on the distance adjusting instruction, so that the difference value between the test distance of the target camera module and the preset distance is within the preset range.
9. An electronic device, comprising: a processor, a memory and a computer program stored on the memory, wherein the steps of the method of any of claims 1-6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202110849249.XA 2021-07-27 2021-07-27 Module testing distance detection method, device, system, electronic device and medium Pending CN113724198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110849249.XA CN113724198A (en) 2021-07-27 2021-07-27 Module testing distance detection method, device, system, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110849249.XA CN113724198A (en) 2021-07-27 2021-07-27 Module testing distance detection method, device, system, electronic device and medium

Publications (1)

Publication Number Publication Date
CN113724198A true CN113724198A (en) 2021-11-30

Family

ID=78674049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110849249.XA Pending CN113724198A (en) 2021-07-27 2021-07-27 Module testing distance detection method, device, system, electronic device and medium

Country Status (1)

Country Link
CN (1) CN113724198A (en)

Similar Documents

Publication Publication Date Title
CN109165162B (en) Test method and related equipment for vehicle-mounted system
CN102901473B (en) Measure coordinates correction system and method
CN109166156B (en) Camera calibration image generation method, mobile terminal and storage medium
US20100083729A1 (en) System and method for testing a multimerter
US10684321B2 (en) Printed circuit board inspecting apparatus, method for detecting anomaly in solder paste and computer readable recording medium
CN113607742A (en) Battery cell tab detection method and device, electronic equipment and storage medium
CN113418543A (en) Method and device for detecting automatic driving sensor, electronic equipment and storage medium
CN109859216B (en) Distance measurement method, device and equipment based on deep learning and storage medium
CN108871185B (en) Method, device and equipment for detecting parts and computer readable storage medium
CN103180690A (en) Pattern measuring method, pattern measuring apparatus, and program using same
CN113030990A (en) Fusion ranging method and device for vehicle, ranging equipment and medium
CN113793429A (en) Target inspection method and device
CN111461014A (en) Antenna attitude parameter detection method and device based on deep learning and storage medium
CN109903308B (en) Method and device for acquiring information
US20210033682A1 (en) Test System and Method for Charging Device
CN112418590B (en) Printed circuit board component detection method and system
CN114584836B (en) Method, device, system and medium for detecting using behavior of electronic product
CN113724198A (en) Module testing distance detection method, device, system, electronic device and medium
CN112557416A (en) System and method for detecting whether welding spots are bridged or not by using deep learning model
JPWO2020003764A1 (en) Image processors, mobile devices, and methods, and programs
CN110953989B (en) Method, device, equipment and medium for measuring product mark position deviation
CN115327480A (en) Sound source positioning method and system
CN114170319A (en) Method and device for adjusting test target
CN110099440B (en) Positioning delay calibration method and device
CN109214242A (en) Sensing data acquisition methods, device, system 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