CN116886889B - Camera focusing detection device - Google Patents
Camera focusing detection device Download PDFInfo
- Publication number
- CN116886889B CN116886889B CN202310956901.7A CN202310956901A CN116886889B CN 116886889 B CN116886889 B CN 116886889B CN 202310956901 A CN202310956901 A CN 202310956901A CN 116886889 B CN116886889 B CN 116886889B
- Authority
- CN
- China
- Prior art keywords
- detection
- test
- scheme
- focusing
- camera
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 321
- 238000012360 testing method Methods 0.000 claims abstract description 186
- NJPPVKZQTLUDBO-UHFFFAOYSA-N novaluron Chemical compound C1=C(Cl)C(OC(F)(F)C(OC(F)(F)F)F)=CC=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F NJPPVKZQTLUDBO-UHFFFAOYSA-N 0.000 claims abstract description 21
- 238000004364 calculation method Methods 0.000 claims description 15
- 238000000034 method Methods 0.000 claims description 14
- 238000004422 calculation algorithm Methods 0.000 claims description 7
- 238000012163 sequencing technique Methods 0.000 claims description 6
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 238000010801 machine learning Methods 0.000 claims description 3
- 238000004088 simulation Methods 0.000 claims description 3
- 238000012549 training Methods 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 3
- 210000001550 testis Anatomy 0.000 claims 1
- 238000009434 installation Methods 0.000 abstract description 9
- 238000003709 image segmentation Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 8
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 239000000463 material Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000010420 art technique Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 208000015181 infectious disease Diseases 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The application relates to a camera detection device that focuses, it includes: the top of the test table is provided with a circular installation table top; the mounting pedestal is mounted in the middle of the circular mounting table top; the tested table seats are uniformly distributed on the circular mounting table top along the circumferential direction of the mounting table seat, face the mounting table seat and can slide along the radial direction of the circular mounting table; the test execution assembly is arranged on the mounting pedestal and is used for driving the camera to be detected to rotate and shake to perform focusing detection; and the test planning module is used for generating a test scheme according to the test requirement of a user to control the tested platform, the test execution assembly and the camera to be tested to perform focusing detection. The focusing detection efficiency and the detection precision can be effectively improved.
Description
Technical Field
The present application relates to the field of focus detection, and in particular, to a camera focus detection device.
Background
A CAMERA (CAMERA or WEBCAM) is also called a computer CAMERA, a computer eye, an electronic eye, etc., and is a video input device widely used in video conference, telemedicine, real-time monitoring, etc. The focal length of the lenses in the camera can be selected differently according to the requirement, and the focal length accuracy of the lenses is high, otherwise, the definition of the camera is affected.
The traditional camera focusing detection method is to manually move the camera by a tester, manually trigger focusing (namely, manually control the terminal to execute the movement of the camera motor), and visually observe whether the picture shot by the camera after focusing is clear or not, so as to judge whether the focusing of the camera is normal or not.
However, manual detection consumes a lot of manpower, which results in reduced production efficiency, and is also prone to error in test results caused by substandard operation of testers.
Disclosure of Invention
In order to solve the problem that a large amount of manpower can be consumed in current manual detection, leads to production efficiency to reduce, still appears easily leading to the test result to have the error because of the test personnel operation is not up to standard, this application provides a camera detection device that focuses.
In a first aspect, the present application provides a camera focusing detection device, which adopts the following technical scheme:
a camera focus detection apparatus, comprising:
the top of the test table is provided with a circular installation table top;
the mounting pedestal is mounted in the middle of the circular mounting table top;
the tested table seats are uniformly distributed on the circular mounting table top along the circumferential direction of the mounting table seat, face the mounting table seat and can slide along the radial direction of the circular mounting table;
the test execution assembly is arranged on the mounting pedestal and is used for driving the camera to be detected to rotate and shake to perform focusing detection; and
and the test planning module is used for generating a test scheme according to the test requirement of the user to control the tested platform, the test execution assembly and the camera to be tested to perform focusing detection.
Preferably, the mounting pedestal is arranged at the center of a circular mounting table surface, and a plurality of linear guide rails for driving the tested table seat to slide along the radial direction of the circular mounting table surface are arranged on the circular mounting table surface.
Preferably, the test execution assembly comprises an electric rotating base and a multi-shaft vibration platform for driving the camera to be detected to shake, wherein the electric rotating base is arranged on the mounting pedestal, and the multi-shaft vibration platform is arranged at the rotating end of the electric rotating base; the vibration end of the multi-axis vibration platform is provided with a mounting plate for fixing the camera to be detected.
Preferably, the test planning module generates a test scheme according to a user test requirement to control the tested platform, the test execution assembly and the camera to be tested to perform focusing detection, and specifically comprises the following steps:
the test planning module obtains test requirement information input by a user to generate a test requirement instruction, wherein the test requirement instruction comprises one or more of short-distance focusing detection, long-distance focusing detection, rotation focusing detection, shaking focusing detection, dynamic movement focusing detection and scene focusing detection;
the test planning module generates a focusing detection scheme according to the focusing detection instruction matching, wherein the focusing detection scheme comprises equipment control parameters and test flow information;
the test planning module is used for setting parameters of the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform according to a focusing detection scheme;
the test planning module generates a control instruction according to the test flow information, and sends the control instruction to the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform so as to control the tested platform seat, the test execution assembly and the camera to be detected to perform focusing detection according to the test flow;
and the test planning module collects the detection data, packages the detection data, generates a detection report and sends the detection report to a manager.
Preferably, the test planning module generates a focus detection scheme according to the focus detection instruction matching, and specifically includes the following steps:
the test planning module plans to generate a plurality of detection planning schemes meeting the test requirements of users through a preset scheme planning model according to the focusing detection instruction; the scheme planning model is formed by training a machine learning model through historical data;
verifying the detection time sequence of each detection planning scheme, and calculating the score of each detection planning scheme through a preset scheme score calculation formula;
and sequencing the detection planning schemes based on the scores, and selecting the detection planning scheme with the highest score as a focusing detection scheme.
Preferably, the step of verifying the detection time sequence of each detection planning scheme, and calculating the score of each detection planning scheme through a preset scheme score calculation formula specifically includes the following steps:
determining the interference coefficient of each focusing detection item to the next focusing detection item in each detection planning scheme through a preset test item interference comparison table, and further determining the total interference coefficient of each detection planning scheme under the detection time sequence; the test item interference comparison table comprises various focusing detection items in the test requirement instruction and corresponding interference coefficients thereof;
performing simulation on each detection planning scheme to obtain the predicted detection duration;
sequencing each detection planning scheme based on the total interference coefficient and the detection duration to generate an interference sequence and a duration sequence, wherein the higher the total interference coefficient is, the lower the ranking in the interference sequence is, and the longer the detection duration is, the lower the ranking in the duration sequence is;
determining interference scores and duration scores of all detection planning schemes through a preset sequence ranking comparison table, and calculating the scores of all detection planning schemes through a preset scheme score calculation formula; the scheme scoring calculation formula specifically comprises the following steps: y is Y i =X 1 *G i +X 2 *S i The method comprises the steps of carrying out a first treatment on the surface of the Wherein Y is i Scoring the ith test plan; g i Scoring interference for the ith detection plan; s is S i Scoring the length of time of the ith detection plan; x is X 1 Is a detection precision coefficient; x is X 2 Is the detection efficiency coefficient, and X 1 、X 2 Are set by the manager.
Preferably, the parameter setting of the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform by the test planning module according to the focusing detection scheme specifically comprises the following steps:
after the test planning module is connected with the camera to be detected, which is arranged on the mounting plate, the camera to be detected is controlled to start;
the test planning module controls the tested pedestal, the test execution assembly and the camera to be tested to reset;
and the test planning module carries out parameter setting on the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform according to equipment control parameters in the focusing detection scheme, and controls the linear guide rail to drive the tested seat to a specified position.
Preferably, the parameter setting of the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform by the test planning module according to the focusing detection scheme specifically comprises the following steps:
after the test planning module is connected with the camera to be detected, which is arranged on the mounting plate, the camera to be detected is controlled to start;
the test planning module controls the tested pedestal, the test execution assembly and the camera to be tested to reset;
and the test planning module carries out parameter setting on the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform according to equipment control parameters in the focusing detection scheme, and controls the linear guide rail to drive the tested seat to a specified position.
Preferably, the test planning module collects the detection data, packages the detection data to generate a detection report, and sends the detection report to a manager, and the method specifically comprises the following steps:
the test planning module acquires image information shot by a camera to be detected in each focusing detection in a test requirement instruction;
performing definition detection on image information of each item of focus detection in the test demand instruction, and outputting a focus detection result based on the definition result;
marking various detection items in the test demand instruction on a preset performance ring uniformly, drawing a multi-side focusing performance graph in the performance ring based on various focusing detection results to generate a focusing detection multi-dimensional graph, wherein the vertexes of the multi-side focusing performance graph point to the various focusing detection items marked on the performance ring respectively;
and packaging the focusing detection result and the focusing detection multidimensional graph to generate a detection report, and sending the detection report to a manager.
Preferably, the detecting the definition of the image information of each item of focus detection in the test requirement instruction specifically includes the following steps:
dividing the image into a plurality of image areas according to an image division algorithm;
obtaining mosaic color blocks from the plurality of image areas according to preset position information;
and obtaining a definition result corresponding to the image through calculating the number of the pixel points of the designated color in the mosaic color block.
In summary, the present application includes at least one of the following beneficial technical effects:
1. through the arrangement of the test planning module, a detection scheme is intelligently generated according to the test requirements of a user, automatic parameter setting is further realized on a tested pedestal, a test execution assembly and a camera to be detected, and each item of focusing detection is sequentially carried out on the tested pedestal, the test execution assembly and the camera to be detected according to the detection scheme, so that the focusing detection precision and the detection efficiency are improved, manpower and material resources are saved, the phenomenon that errors exist in a test result due to the fact that the operation of a tester is not up to standard is avoided, and the effect of accurately and efficiently carrying out focusing detection on the camera is achieved;
2. by carrying out time sequence authentication on each detection planning scheme, acquiring the interference of the operation time sequence on the next operation, and further calculating the score of each detection planning scheme, the method realizes the selection of the scheme with low interference and short detection time, namely, the detection planning scheme with high detection precision and high detection efficiency is selected as a focusing detection scheme, so that the effects of effectively improving the detection efficiency and the detection precision are achieved;
3. and each item of focusing detection data carried out by the camera is intuitively displayed by drawing a focusing detection multidimensional graph, so that production personnel can intuitively know each item of focusing capability of the camera, reading preview and reading guidance can be provided for the camera, and the reading performance of a detection report can be improved.
Drawings
Fig. 1 is a schematic structural diagram of a camera focusing detection device in an embodiment of the present application;
fig. 2 is a schematic top view of a camera focusing detection device according to an embodiment of the present application;
FIG. 3 is a system block diagram of a camera focus detection apparatus in an embodiment of the present application;
FIG. 4 is a flowchart of a method for focus detection by a test plan module in an embodiment of the present application;
FIG. 5 is a flow chart of a method for matching a generated focus detection scheme in an embodiment of the present application;
FIG. 6 is a flow chart of a method of calculating scores for individual test plans in an embodiment of the application;
FIG. 7 is a flowchart of a method for setting parameters of a camera focus detection apparatus according to an embodiment of the present application;
FIG. 8 is a flow chart of a method of packaging to generate a detection report in an embodiment of the present application;
fig. 9 is a flowchart of a method for detecting sharpness of image information captured by a camera in an embodiment of the present application.
Reference numerals illustrate: 1. a test bench; 11. a circular mounting table top; 2. a mounting pedestal; 3. a test stand; 31. a linear guide rail; 4. a test execution component; 41. an electric rotating base; 42. a multi-axis vibration platform; 43. a mounting plate; 5. and a test planning module.
Detailed Description
The present application is described in further detail below in conjunction with figures 1-9.
The embodiment of the application discloses a camera focusing detection device. Referring to fig. 1-3, a camera focusing detection device includes a test bench 1, a mounting bench 2, a plurality of tested benches, a test execution assembly 4, and a test planning module 5. Wherein test bench 1, mounting bench 2, a plurality of benches under test and test execution assembly 4 are all connected with test planning module 5. The top of the test bench 1 is provided with a circular installation table top 11, and the installation pedestal 2 is installed in the middle of the circular installation table top 11. The plurality of tested seats are uniformly distributed on the circular installation table-board 11 along the circumferential direction of the installation table-base 2, and all face the installation table-base 2. And a plurality of tested pedestals can slide along the radial direction of the circular mounting table. The test execution assembly 4 is installed on the installation pedestal 2 and is used for driving the camera to be detected to rotate and shake for focusing detection. The test planning module 5 is used for generating a test scheme according to the test requirement of the user to control the tested platform, the test execution assembly 4 and the camera to be tested to perform focusing detection. Through setting up of test planning module 5, according to user's test demand intelligence generation detection scheme, and then to being surveyed pedestal, test execution assembly 4 and wait to detect the camera and realize automatic parameter setting to control to be surveyed pedestal, test execution assembly 4 and wait to detect the camera and carry out each item according to detection scheme in proper order and focus the detection, help improving detection accuracy and detection efficiency of focusing, practice thrift manpower and materials, avoid appearing leading to the phenomenon that the test result exists error because of the tester operation is not up to standard, reach accurate high-efficient effect of focusing the detection to the camera.
Referring to fig. 1-3, the mounting base 2 is disposed at the center of a circular mounting table 11. The circular mounting table 11 is provided with a plurality of linear guide rails 31 for driving the tested table to slide along the radial direction thereof. The test execution assembly 4 comprises an electric rotating base 41 and a multi-axis vibration platform 42 for driving the camera to be detected to shake. The multi-axis vibration table 42 can simulate the shake of a human hand when the camera is used, and is helpful for accurately detecting the actual focusing capability of the camera. The electric rotating base 41 is mounted on the mounting base 2, and the multi-axis vibration table 42 is mounted at the rotating end of the electric rotating base 41. The vibration end of the multi-axis vibration table 42 is mounted with a mounting plate 43 for fixing the camera to be detected. The mounting plate 43 may mount a jig or a fixture according to the type of the test camera to fix the camera to be detected. Through the setting of linear guide 31, be convenient for adjust each measured bench distance mount pad 2's position to drive the measured bench and remove according to the test demand and realize treating the camera of detecting and carry out the dynamic focus detection. By the arrangement of the multi-axis vibration platform 42, the shaking scenes simulating the use of hands can be applied to the camera, so that the reality of diagonal detection data is improved, and the actual focusing capability of the camera is accurately detected. In addition, the multi-axis vibration platform 42 simulates hand shake, which is a conventional technology, and the specific structure thereof is not described herein, and in this embodiment, the multi-axis vibration platform 42 adopts a two-axis vibration platform.
Referring to fig. 4, the test planning module 5 generates a test scheme according to a user test requirement to control the tested platform, the test execution assembly 4 and the camera to be tested to perform focusing detection specifically includes the following steps:
a1, generating a test demand instruction: the test planning module 5 obtains test requirement information input by a user to generate a test requirement instruction, wherein the test requirement instruction comprises one or more of short-distance focusing detection, long-distance focusing detection, rotation focusing detection, jitter focusing detection, dynamic movement focusing detection and scene focusing detection;
a2, generating a focusing detection scheme: the test planning module 5 generates a focusing detection scheme according to the focusing detection instruction matching, wherein the focusing detection scheme comprises equipment control parameters and test flow information;
a3, parameter setting: the test planning module 5 performs parameter setting on the camera to be detected, the linear guide rail 31, the electric rotating seat and the multi-axis vibration platform 42 according to a focusing detection scheme;
a4, generating a control instruction to perform focusing detection: the test planning module 5 generates a control instruction according to the test flow information, and sends the control instruction to the camera to be detected, the linear guide rail 31, the electric rotating seat and the multi-axis vibration platform 42 to control the tested seat, the test execution assembly 4 and the camera to be detected to perform focusing detection according to the test flow;
a5, generating a detection report: and the test planning module 5 collects the detection data, packages the detection data, generates a detection report and sends the detection report to a manager. Through setting up of the test planning module 5, the test requirements of the user are obtained in real time, the corresponding focusing detection scheme generated based on the test requirements of the user is used for realizing automatic parameter setting on the test equipment, the test flow is generated based on the test requirements of the user to control the test equipment to perform various focusing detection on the camera in order, the phenomenon that errors exist in the test result due to the fact that the operation of the tester is not up to standard is avoided while manpower and material resources are saved, and the effects of effectively improving the focusing detection efficiency and the detection precision are achieved.
Referring to fig. 5, the test planning module 5 generates a focus detection scheme according to the focus detection instruction matching, specifically including the following steps:
b1, generating a plurality of detection planning schemes: the test planning module 5 plans to generate a plurality of detection planning schemes meeting the test requirements of users through a preset scheme planning model according to the focusing detection instruction; the scheme planning model is formed by training a machine learning model through historical data;
b2, calculating scores for each detection planning scheme: verifying the detection time sequence of each detection planning scheme, and calculating the score of each detection planning scheme through a preset scheme score calculation formula;
b3, selecting a focusing detection scheme: and sequencing the detection planning schemes based on the scores, and selecting the detection planning scheme with the highest score as a focusing detection scheme. By performing time sequence authentication on each detection planning scheme, the interference of the operation time sequence to the next operation is obtained, and then the score of each detection planning scheme is calculated, so that the scheme with low interference and short detection time is selected, namely the detection planning scheme with high detection precision and high detection efficiency is selected as a focusing detection scheme, and the effects of effectively improving the detection efficiency and the detection precision are achieved.
Referring to fig. 6, the step of verifying the detection time sequence of each detection plan, and calculating the score of each detection plan according to a preset plan score calculation formula specifically includes the following steps:
and C1, determining the total interference coefficient of each detection planning scheme: determining the interference coefficient of each focusing detection item to the next focusing detection item in each detection planning scheme through a preset test item interference comparison table, and further determining the total interference coefficient of each detection planning scheme under the detection time sequence; the test item interference comparison table comprises various focusing detection items in the test requirement instruction and corresponding interference coefficients thereof;
and C2, acquiring the predicted detection duration of each detection planning scheme: performing simulation on each detection planning scheme to obtain the predicted detection duration;
and C3, generating an interference sequence and a duration sequence: sequencing each detection planning scheme based on the total interference coefficient and the detection duration to generate an interference sequence and a duration sequence, wherein the higher the total interference coefficient is, the lower the ranking in the interference sequence is, and the longer the detection duration is, the lower the ranking in the duration sequence is;
and C4, calculating the score of each detection planning scheme: determining interference scores and duration scores of all detection planning schemes through a preset sequence ranking comparison table, and calculating all detection planning schemes through a preset scheme score calculation formulaDetecting a score of the planning scheme; the scheme scoring calculation formula specifically comprises the following steps: y is Y i =X 1 *G i +X 2 *S i The method comprises the steps of carrying out a first treatment on the surface of the Wherein Y is i Scoring the ith test plan; g i Scoring interference for the ith detection plan; s is S i Scoring the length of time of the ith detection plan; x is X 1 Is a detection precision coefficient; x is X 2 Is the detection efficiency coefficient, and X 1 、X 2 Are set by the manager. By acquiring the infection influence of each test time sequence on the next test operation, if shake focusing detection is performed first and then static far-distance and near-distance focusing detection is performed, shake generated in the shake focusing detection step can interfere the focusing capacity of the camera and is easy to inherit to the next test link, long test interval waiting time is often required to be set, and the phenomenon that interference cannot be completely eliminated easily occurs. Therefore, each detection planning scheme is ranked and scored from two dimensions of each test time sequence interference and the whole test time length, and the method is beneficial to improving the scoring rationality of alternative detection schemes and the accuracy of scheme selection on the basis of considering the detection precision and the detection efficiency, so that the effects of effectively improving the focusing detection precision and the detection efficiency are achieved.
Before the detection time sequence verification is carried out on each detection planning scheme, firstly acquiring focusing detection preference items of a user, selecting the detection planning scheme which does not receive interference from the focusing detection preference items as an alternative scheme based on the focusing detection preference items, carrying out the detection time sequence verification on each alternative scheme, and calculating the score of each detection planning scheme through a preset scheme score calculation formula. Based on the purpose of focusing detection of the user, each detection planning scheme is initially screened, and on the basis of considering detection precision and detection efficiency, the method meets the requirements of the user and improves the satisfaction of the user.
Referring to fig. 7, the parameter setting of the test planning module 5 according to the focusing detection scheme for the camera to be detected, the linear guide rail 31, the electric rotating seat and the multi-axis vibration platform 42 specifically includes the following steps:
d1, starting up a camera to be detected: after the test planning module 5 is connected with the camera to be detected, which is arranged on the mounting plate 43, the camera to be detected is controlled to start;
d2, resetting: the test planning module 5 controls the tested bench, the test execution assembly 4 and the camera to be tested to reset;
d3, parameter setting: the test planning module 5 sets parameters of the camera to be detected, the linear guide rail 31, the electric rotating seat and the multi-axis vibration platform 42 according to the equipment control parameters in the focusing detection scheme, and controls the linear guide rail 31 to drive the tested seat to a specified position. The test planning module 5 controls the test equipment to reset and parameter setting of the camera to be detected based on the focusing detection scheme, and initializes the test table 1, thereby being beneficial to efficiently detecting the focusing, saving manpower and material resources and achieving the effect of effectively improving the focusing detection precision and the detection efficiency.
Referring to fig. 8, the test planning module 5 collects the test data, packages the test data to generate a test report, and sends the test report to the manager, which specifically includes the following steps:
e1, acquiring image information: the test planning module 5 acquires image information shot by a camera to be detected in each focusing detection in the test requirement instruction;
and E2, performing definition detection: performing definition detection on image information of each item of focus detection in the test demand instruction, and outputting a focus detection result based on the definition result;
e3, drawing a focusing detection multidimensional graph: marking various detection items in the test demand instruction on a preset performance ring uniformly, drawing a multi-side focusing performance graph in the performance ring based on various focusing detection results to generate a focusing detection multi-dimensional graph, wherein the vertexes of the multi-side focusing performance graph point to the various focusing detection items marked on the performance ring respectively;
and E4, generating a detection report: and packaging the focusing detection result and the focusing detection multidimensional graph to generate a detection report, and sending the detection report to a manager. And each item of focusing detection data carried out by the camera is intuitively displayed by drawing a focusing detection multidimensional graph, so that production personnel can intuitively know each item of focusing capability of the camera, reading preview and reading guidance can be provided for the camera, and the reading performance of a detection report can be improved.
Referring to fig. 9, the above-mentioned sharpness detection for each item of focus detection image information in the test requirement instruction specifically includes the following steps:
f1, image segmentation: dividing the image into a plurality of image areas according to an image division algorithm;
f2, obtaining mosaic color blocks: obtaining mosaic color blocks from the plurality of image areas according to preset position information;
if the lower right corner of a certain image area is set as the mosaic color block, the preset position information corresponds to the lower right corner, and the extraction of the mosaic color block can be realized more quickly through the preset position information
F3, obtaining a definition result corresponding to the image: and obtaining a definition result corresponding to the image through calculating the number of the pixel points of the designated color in the mosaic color block. In the application, the designated colors in the mosaic color block are black and white, if the picture is clear, the black pixel point and the white pixel point are obviously distinguished, otherwise, the picture blurring can make the black pixel point and the white pixel point difficult to distinguish. Therefore, the definition result can be further obtained by calculating the number of the pixel points with the designated color, for example, if the number of the pixel points with the black color is close to 0, the definition result indicates that the close-range picture is not clear, and the close-range focusing detection of the camera is abnormal.
There are many prior art techniques available for performing sharpness recognition on pictures taken by cameras. The image segmentation algorithm is adopted to segment the image into a plurality of image areas, and the tested target image comprises four color blocks, namely a red block R, a blue block B, a green block G and a black and white mosaic color block M, wherein the red block R, the blue block B and the green block G are used for color cast analysis, and the mosaic color block M is used for focusing detection. Therefore, before the camera focus detection is performed, the mosaic color blocks M need to be acquired from the picture taken and output by the camera. The image segmentation algorithm is adopted to segment the picture, so that a plurality of image areas are formed, color patches contained in different image areas are different, for example, the image areas where the mosaic color patches are located contain the mosaic color patches. The image segmentation algorithm includes threshold-based image segmentation, region-based image segmentation, edge-based image segmentation. Selecting different image segmentation algorithms according to different application scenarios will be beneficial for improving the detection efficiency, for example, the application scenario based on a picture with a significant difference between background and foreground, and the picture segmentation is applicable to the threshold-based image segmentation, so the present exemplary embodiment is not limited thereto.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the scope of the present invention. It will be apparent that the described embodiments are merely some, but not all, embodiments of the invention. Based on these embodiments, all other embodiments that may be obtained by one of ordinary skill in the art without inventive effort are within the scope of the invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art may still combine, add or delete features of the embodiments of the present invention or make other adjustments according to circumstances without any conflict, so as to obtain different technical solutions without substantially departing from the spirit of the present invention, which also falls within the scope of the present invention.
Claims (5)
1. A camera focus detection apparatus, comprising:
the test bench comprises a test bench (1), wherein a circular mounting table top (11) is arranged at the top of the test bench (1);
the mounting pedestal (2) is mounted in the middle of the circular mounting table top (11);
the tested stand seats are uniformly distributed on the circular mounting table top (11) along the circumferential direction of the mounting stand seat (2), are arranged towards the mounting stand seat (2) and can slide along the radial direction of the circular mounting stand seat;
the test execution assembly (4) is arranged on the mounting pedestal (2) and is used for driving the camera to be detected to rotate and shake for focusing detection; and
the test planning module (5) is used for generating a test scheme according to the test requirement of a user to control the tested platform, the test execution assembly (4) and the camera to be detected to perform focusing detection;
the mounting table seat (2) is arranged at the center of a circular mounting table surface (11), and a plurality of linear guide rails (31) for driving the tested table seat to slide along the radial direction of the circular mounting table surface (11) are arranged on the circular mounting table surface;
the test execution assembly (4) comprises an electric rotating base (41) and a multi-axis vibration platform (42) for driving a camera to be detected to shake, the electric rotating base (41) is arranged on the mounting pedestal (2), and the multi-axis vibration platform (42) is arranged at the rotating end of the electric rotating base (41); the vibration end of the multi-axis vibration platform (42) is provided with a mounting plate (43) for fixing a camera to be detected;
the test planning module generates a test scheme according to the test requirement of a user to control the tested platform, the test execution assembly and the camera to be tested to perform focusing detection, and specifically comprises the following steps:
the test planning module obtains test requirement information input by a user to generate a test requirement instruction, wherein the test requirement instruction comprises one or more of short-distance focusing detection, long-distance focusing detection, rotation focusing detection, shaking focusing detection, dynamic movement focusing detection and scene focusing detection;
the test planning module generates a focusing detection scheme according to the focusing detection instruction matching, wherein the focusing detection scheme comprises equipment control parameters and test flow information;
the test planning module is used for setting parameters of the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform according to a focusing detection scheme;
the test planning module generates a control instruction according to the test flow information, and sends the control instruction to the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform so as to control the tested platform seat, the test execution assembly and the camera to be detected to perform focusing detection according to the test flow;
the test planning module collects detection data, packages the detection data to generate a detection report and sends the detection report to a manager;
the test planning module generates a focusing detection scheme according to the focusing detection instruction matching, and specifically comprises the following steps:
the test planning module plans to generate a plurality of detection planning schemes meeting the test requirements of users through a preset scheme planning model according to the focusing detection instruction; the scheme planning model is formed by training a machine learning model through historical data;
verifying the detection time sequence of each detection planning scheme, and calculating the score of each detection planning scheme through a preset scheme score calculation formula;
sequencing all the detection planning schemes based on the scores, and selecting the detection planning scheme with the highest score as a focusing detection scheme;
the step of verifying the detection time sequence of each detection planning scheme, and calculating the score of each detection planning scheme through a preset scheme score calculation formula specifically comprises the following steps:
determining the interference coefficient of each focusing detection item to the next focusing detection item in each detection planning scheme through a preset test item interference comparison table, and further determining the total interference coefficient of each detection planning scheme under the detection time sequence; the test item interference comparison table comprises various focusing detection items in the test requirement instruction and corresponding interference coefficients thereof;
performing simulation on each detection planning scheme to obtain the predicted detection duration;
sequencing each detection planning scheme based on the total interference coefficient and the detection duration to generate an interference sequence and a duration sequence, wherein the higher the total interference coefficient is, the lower the ranking in the interference sequence is, and the longer the detection duration is, the lower the ranking in the duration sequence is;
determining interference scores and duration scores of all detection planning schemes through a preset sequence ranking comparison table, and calculating the scores of all detection planning schemes through a preset scheme score calculation formula; the scheme scoring calculation formula specifically comprises the following steps: y is Y i =X 1 *G i +X 2 *X i The method comprises the steps of carrying out a first treatment on the surface of the Wherein Y is i Scoring the ith test plan; g i Planning scheme for ith testIs a disturbance score of (2); s is S i Scoring the length of time of the ith detection plan; x is X 1 Is a detection precision coefficient; x is X 2 Is the detection efficiency coefficient, and X 1 、X 2 Are set by the manager.
2. The camera focus detection apparatus according to claim 1, wherein: the step of verifying the detection time sequence of each detection planning scheme, and the step of calculating the score of each detection planning scheme through a preset scheme score calculation formula further comprises the following steps: acquiring focusing detection preference items of users, selecting detection planning schemes which do not receive interference from the focusing detection preference items as alternative schemes based on the focusing detection preference items, performing detection time sequence verification on each alternative scheme, and calculating the scores of each detection planning scheme through a preset scheme score calculation formula.
3. The camera focus detection apparatus according to claim 1, wherein: the test planning module carries out parameter setting on the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform according to a focusing detection scheme, and specifically comprises the following steps of:
after the test planning module is connected with the camera to be detected, which is arranged on the mounting plate, the camera to be detected is controlled to start;
the test planning module controls the tested pedestal, the test execution assembly and the camera to be tested to reset;
and the test planning module carries out parameter setting on the camera to be detected, the linear guide rail, the electric rotating seat and the multi-axis vibration platform according to equipment control parameters in the focusing detection scheme, and controls the linear guide rail to drive the tested seat to a specified position.
4. The camera focus detection apparatus according to claim 1, wherein: the test planning module collects the detection data, packages the detection data to generate a detection report, and sends the detection report to a manager, and the method specifically comprises the following steps of:
the test planning module acquires image information shot by a camera to be detected in each focusing detection in a test requirement instruction;
performing definition detection on image information of each item of focus detection in the test demand instruction, and outputting a focus detection result based on the definition result;
marking various detection items in the test demand instruction on a preset performance ring uniformly, drawing a multi-side focusing performance graph in the performance ring based on various focusing detection results to generate a focusing detection multi-dimensional graph, wherein the vertexes of the multi-side focusing performance graph point to the various focusing detection items marked on the performance ring respectively;
and packaging the focusing detection result and the focusing detection multidimensional graph to generate a detection report, and sending the detection report to a manager.
5. The camera focusing detection apparatus according to claim 4, wherein the sharpness detection for the image information of each focusing detection in the test requirement instruction specifically includes the steps of:
dividing the image into a plurality of image areas according to an image division algorithm;
obtaining mosaic color blocks from the plurality of image areas according to preset position information;
and obtaining a definition result corresponding to the image through calculating the number of the pixel points of the designated color in the mosaic color block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310956901.7A CN116886889B (en) | 2023-08-01 | 2023-08-01 | Camera focusing detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310956901.7A CN116886889B (en) | 2023-08-01 | 2023-08-01 | Camera focusing detection device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116886889A CN116886889A (en) | 2023-10-13 |
CN116886889B true CN116886889B (en) | 2024-03-15 |
Family
ID=88271354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310956901.7A Active CN116886889B (en) | 2023-08-01 | 2023-08-01 | Camera focusing detection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116886889B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005011518A (en) * | 1997-11-26 | 2005-01-13 | Matsushita Electric Ind Co Ltd | Focusing position adjusting method, and recording and reproducing device |
JP2009145852A (en) * | 2007-11-22 | 2009-07-02 | Fujifilm Corp | Automatic focusing device, camera, automatic focusing method |
CN104301716A (en) * | 2014-10-23 | 2015-01-21 | 广州市光机电技术研究院 | High definition camera overall characteristic detecting device and method |
JP2016018116A (en) * | 2014-07-09 | 2016-02-01 | キヤノン株式会社 | Focus adjustment device, focus adjustment method and program, and imaging apparatus |
CN205725976U (en) * | 2016-04-21 | 2016-11-23 | 深圳市马太智能科技有限公司 | For testing the test equipment of camera of electronic equipment |
CN207460395U (en) * | 2017-11-13 | 2018-06-05 | 惠州汉尼博精密科技有限公司 | Double lane linear runnings equipment of camera automatic focusing |
CN113784112A (en) * | 2021-08-26 | 2021-12-10 | 昆山丘钛微电子科技股份有限公司 | Camera module testing method and device, test chart board and system |
CN216700187U (en) * | 2022-01-13 | 2022-06-07 | 苏州华星光电技术有限公司 | Camera detection device |
CN115118954A (en) * | 2022-05-06 | 2022-09-27 | 浪潮金融信息技术有限公司 | Camera effect testing system, method and medium for camera |
CN115753027A (en) * | 2022-12-05 | 2023-03-07 | 重庆大学 | Automatic performance detection system and method for small medical optical product |
WO2023072088A1 (en) * | 2021-10-28 | 2023-05-04 | 维沃移动通信有限公司 | Focusing method and apparatus |
CN116320387A (en) * | 2023-04-06 | 2023-06-23 | 深圳博时特科技有限公司 | Camera module detection system and detection method |
CN116347060A (en) * | 2021-12-24 | 2023-06-27 | 北京小米移动软件有限公司 | Camera performance evaluation method, device, readable storage medium and system |
-
2023
- 2023-08-01 CN CN202310956901.7A patent/CN116886889B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005011518A (en) * | 1997-11-26 | 2005-01-13 | Matsushita Electric Ind Co Ltd | Focusing position adjusting method, and recording and reproducing device |
JP2009145852A (en) * | 2007-11-22 | 2009-07-02 | Fujifilm Corp | Automatic focusing device, camera, automatic focusing method |
JP2016018116A (en) * | 2014-07-09 | 2016-02-01 | キヤノン株式会社 | Focus adjustment device, focus adjustment method and program, and imaging apparatus |
CN104301716A (en) * | 2014-10-23 | 2015-01-21 | 广州市光机电技术研究院 | High definition camera overall characteristic detecting device and method |
CN205725976U (en) * | 2016-04-21 | 2016-11-23 | 深圳市马太智能科技有限公司 | For testing the test equipment of camera of electronic equipment |
CN207460395U (en) * | 2017-11-13 | 2018-06-05 | 惠州汉尼博精密科技有限公司 | Double lane linear runnings equipment of camera automatic focusing |
CN113784112A (en) * | 2021-08-26 | 2021-12-10 | 昆山丘钛微电子科技股份有限公司 | Camera module testing method and device, test chart board and system |
WO2023072088A1 (en) * | 2021-10-28 | 2023-05-04 | 维沃移动通信有限公司 | Focusing method and apparatus |
CN116347060A (en) * | 2021-12-24 | 2023-06-27 | 北京小米移动软件有限公司 | Camera performance evaluation method, device, readable storage medium and system |
CN216700187U (en) * | 2022-01-13 | 2022-06-07 | 苏州华星光电技术有限公司 | Camera detection device |
CN115118954A (en) * | 2022-05-06 | 2022-09-27 | 浪潮金融信息技术有限公司 | Camera effect testing system, method and medium for camera |
CN115753027A (en) * | 2022-12-05 | 2023-03-07 | 重庆大学 | Automatic performance detection system and method for small medical optical product |
CN116320387A (en) * | 2023-04-06 | 2023-06-23 | 深圳博时特科技有限公司 | Camera module detection system and detection method |
Also Published As
Publication number | Publication date |
---|---|
CN116886889A (en) | 2023-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170061209A1 (en) | Object processing method, reference image generating method, reference image generating apparatus, object processing apparatus, and recording medium | |
CN105302413B (en) | UI (user interface) testing method and system for control | |
CN109142380A (en) | Fault detection method, device and system of circuit board | |
KR102179598B1 (en) | Apparatus and method for learning facilities using video file | |
CN116256908B (en) | Calibration method based on miniLED backlight module | |
CN111947894A (en) | Measuring method, system, device and terminal equipment | |
CN110418124A (en) | Projected image detection method, device, equipment and computer readable storage medium | |
US8390731B2 (en) | System and method for measuring a border of an image of an object | |
CN112333443A (en) | Lens performance detection system and method | |
CN104990689A (en) | Positioning method and positioning device in optical test | |
CN116886889B (en) | Camera focusing detection device | |
US20220183197A1 (en) | System and methods for assisting with manual assembly and testing of printed circuit boards | |
CN110719452B (en) | Color coordinate measuring method, measuring device, computer equipment and storage medium | |
CN108426702B (en) | Dispersion measurement device and method of augmented reality equipment | |
US20210235047A1 (en) | Method and apparatus for correcting color convergence error | |
CN113810673B (en) | Projector uniformity testing method and device and computer readable storage medium | |
CN105007481A (en) | Method and device for generating test card | |
CN106846302B (en) | Detection method for correctly taking tool and examination table based on method | |
CN106774884B (en) | Method and device for measuring lens parameters | |
US11397417B2 (en) | Hybrid wide field of view target system | |
CN114449084A (en) | Camera anti-shake testing method and related device | |
CN113850795A (en) | Test triggering method, device to be tested and computer readable storage medium | |
CN113790874A (en) | Lens test system | |
CN113887566A (en) | AR test method, AR test device and computer-readable storage medium | |
CN110827289B (en) | Method and device for extracting target image in projector definition test |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A camera focusing detection device Granted publication date: 20240315 Pledgee: Bank of Suzhou Limited by Share Ltd. Wuxi branch Pledgor: WUXI WEKAY TECHNOLOGY CO.,LTD. Registration number: Y2024980024894 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |