CN-122027783-A - Analytical force test method, electronic device and computer readable storage medium
Abstract
The application discloses an analytical force testing method, electronic equipment and a computer readable storage medium. The analytical force testing method is applied to electronic equipment, and the electronic equipment comprises at least three cameras. The resolution test method comprises the steps of starting at least three cameras to shoot when an resolution test request is acquired, acquiring shooting flows respectively corresponding to the at least three cameras, processing the shooting flows respectively corresponding to the at least three cameras to obtain pictures respectively corresponding to the at least three cameras, and testing the resolution of each camera according to the pictures corresponding to each camera to obtain a resolution test result. According to the analytical force testing method provided by the application, in the testing process, the photographing flow is simultaneously acquired by controlling at least three cameras of the electronic equipment, namely, the at least three cameras photograph in parallel, so that the analytical force testing time can be shortened, and the analytical force testing efficiency can be improved.
Inventors
- HUANG ZHEN
- LI QINGSHI
- LI YUE
Assignees
- 荣耀终端股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241112
Claims (12)
- 1. An analytical force test method applied to electronic equipment, wherein the electronic equipment comprises at least three cameras, and the method comprises the following steps: When an analytic force test request is obtained, the at least three cameras are started to shoot at the same time; simultaneously acquiring photographing flows respectively corresponding to the at least three cameras; processing photographing streams corresponding to the at least three cameras respectively to obtain pictures corresponding to the at least three cameras respectively; and testing the resolving power of each camera according to the picture corresponding to each camera to obtain a resolving power test result.
- 2. The method for testing resolution of claim 1, wherein the processing the photographing streams corresponding to the at least three cameras to obtain the pictures corresponding to the at least three cameras comprises: Performing color space conversion on the photographing stream corresponding to each camera to obtain a first picture corresponding to each camera; Compressing the first picture corresponding to each camera to obtain a second picture corresponding to each camera; the analyzing force of each camera is tested according to the corresponding picture of each camera, and the analyzing force testing method comprises the following steps: And testing the resolving power of each camera according to the second picture corresponding to each camera.
- 3. The method for testing resolution of claim 2, wherein the performing color space conversion on the photographed stream corresponding to each camera to obtain the first picture corresponding to each camera comprises: Sequentially performing color space conversion on photographing streams corresponding to the at least three cameras to obtain at least three first pictures corresponding to the at least three cameras respectively; The compressing the first picture corresponding to each camera to obtain a second picture corresponding to each camera includes: After at least three first pictures corresponding to the at least three cameras are obtained, compressing the at least three first pictures corresponding to the at least three cameras in sequence to obtain at least three second pictures corresponding to the at least three cameras.
- 4. The resolution testing method according to claim 1, wherein the resolution testing request includes a preview request, and wherein before the capturing of the photographing streams corresponding to the at least three cameras at the same time, the method further comprises: acquiring a preview flow corresponding to at least one camera of the at least three cameras; Processing the preview flow corresponding to the at least one camera to obtain a preview image corresponding to the at least one camera; the step of simultaneously acquiring photographing flows corresponding to the at least three cameras comprises the following steps: And when the preview image corresponding to the at least one camera meets the preset condition, acquiring photographing flows corresponding to the at least three cameras at the same time.
- 5. The method for testing resolution of claim 4, wherein the obtaining the preview stream corresponding to at least one of the at least three cameras comprises: Simultaneously acquiring preview streams corresponding to the at least three cameras; The processing the preview stream corresponding to the at least one camera to obtain a preview image corresponding to the at least one camera includes: And processing the preview streams corresponding to the at least three cameras to obtain at least three preview images corresponding to the at least three cameras respectively.
- 6. The method for testing resolution of claim 4, wherein the processing the preview stream corresponding to the at least one camera to obtain the preview image corresponding to the at least one camera comprises: performing color space conversion on the preview stream corresponding to each camera to obtain a first preview image corresponding to each camera; and compressing the first preview image corresponding to each camera to obtain a second preview image corresponding to each camera.
- 7. The analytical force test method of claim 1, wherein the method further comprises: acquiring a historical analytic force test result, wherein the historical analytic force test result comprises analytic force test results of at least three cameras of the same type of electronic equipment before the current test; determining the processing priority order of photographing flows corresponding to the at least three cameras according to the historical analytic force test result; processing the photographing streams corresponding to the at least three cameras to obtain pictures corresponding to the at least three cameras, including: And processing the photographing streams corresponding to the at least three cameras in sequence according to the determined processing priority order to obtain pictures corresponding to the at least three cameras.
- 8. The method of claim 7, wherein determining the processing priority order of the photographing flows corresponding to the at least three cameras according to the historical parsing force test result comprises: determining the qualification rate of the at least three cameras according to the historical analytic force test result; and determining the processing priority order of the photographing flows corresponding to the at least three cameras according to the qualification rate of the at least three cameras, wherein the processing priority of the photographing flows corresponding to cameras with lower qualification rate is higher.
- 9. The analytical force test method of claim 1, wherein the method further comprises: determining whether each camera needs retesting according to the analysis force test result of each camera; when a certain camera needs to be duplicated, adjusting working parameters of the camera and acquiring photographing flows corresponding to the camera again; Processing the re-acquired photographing flow corresponding to the camera to obtain a retest picture corresponding to the camera; and testing the resolving power of the camera again according to the retest picture corresponding to the camera so as to obtain a resolving power retest result.
- 10. The method of claim 9, wherein determining whether each camera requires retesting according to the analysis force test result of each camera comprises: and when the analysis force test result of a certain camera is unqualified, determining that the camera needs retesting.
- 11. An electronic device comprising at least three cameras, one or more processors, one or more memories, wherein the one or more memories are coupled to the one or more processors, the one or more memories are configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the analytical force testing method of any of claims 1-10.
- 12. A computer readable storage medium comprising computer instructions, characterized in that the computer storage medium stores a computer program comprising program instructions that, when run on an electronic device, cause the electronic device to perform the analytical force test method according to any of claims 1-10.
Description
Analytical force test method, electronic device and computer readable storage medium Technical Field The present application relates to the field of electronic devices, and in particular, to a method for testing resolution, an electronic device, and a computer readable storage medium. Background Cameras of electronic devices often require analytical force detection to assess the performance of the camera. At present, when the analysis force is detected, the cameras are controlled to be photographed one by one in series, and the analysis force is detected on the photographed pictures respectively, so that the problems of long test time, low test efficiency and the like exist in the analysis force test of the cameras of the electronic equipment. Disclosure of Invention In order to solve the technical problems, the application provides an analytical force testing method, electronic equipment and a computer readable storage medium, which can shorten the testing time and improve the testing efficiency. The first aspect of the application provides an analytical force testing method which is applied to electronic equipment, wherein the electronic equipment comprises at least three cameras. The resolution test method comprises the steps of starting at least three cameras to shoot when a resolution test request is obtained, obtaining shooting flows respectively corresponding to the at least three cameras, processing the shooting flows respectively corresponding to the at least three cameras to obtain pictures respectively corresponding to the at least three cameras, and testing the resolution of each camera according to the pictures corresponding to each camera to obtain a resolution test result. According to the analytical force testing method provided by the application, in the testing process, the photographing flow is simultaneously acquired by controlling at least three cameras of the electronic equipment, namely, the at least three cameras photograph in parallel, so that the analytical force testing time can be shortened, and the analytical force testing efficiency can be improved. In one possible implementation manner, the processing the photographing streams corresponding to the at least three cameras to obtain the pictures corresponding to the at least three cameras includes performing color space conversion on the photographing streams corresponding to each camera to obtain first pictures corresponding to each camera, and performing compression processing on the first pictures corresponding to each camera to obtain second pictures corresponding to each camera. The method for testing the resolving power of each camera according to the pictures corresponding to each camera comprises the step of testing the resolving power of each camera according to the second pictures corresponding to each camera. Since the sensitivity of human eyes to luminance is far higher than that to chromaticity, the luminance information and the chromaticity information are separated by performing color space conversion, so that the luminance information and the chromaticity information can be respectively compressed or only the chromaticity information can be compressed when the subsequent compression processing is performed, and the visual effect of the second picture obtained by compression cannot be influenced. In addition, the second picture is obtained by compressing the first picture, so that the size of the picture data is obviously reduced, and further the storage and the transmission of the picture data are facilitated. The compressed picture, namely the second picture, is used for carrying out the analytical force test, so that the data volume required to be processed in the test process can be reduced, and the test speed is increased. In addition, the compressed picture still retains sufficient image detail for evaluating the resolution of the camera. In one possible implementation manner, the performing color space conversion on the photographing streams corresponding to each camera to obtain first pictures corresponding to each camera includes performing color space conversion on the photographing streams corresponding to the at least three cameras in sequence to obtain at least three first pictures corresponding to the at least three cameras respectively, and performing compression processing on the first pictures corresponding to each camera to obtain second pictures corresponding to each camera includes performing compression processing on the at least three first pictures corresponding to the at least three cameras in sequence to obtain at least three second pictures corresponding to the at least three cameras respectively after obtaining the at least three first pictures corresponding to the at least three cameras respectively. When the color space conversion is carried out, the photographing flow corresponding to each camera is processed in sequence, so that each color space conversion step can be ensured to be fo