CN111932521B - Image quality testing method and device, server and computer readable storage medium - Google Patents

Image quality testing method and device, server and computer readable storage medium Download PDF

Info

Publication number
CN111932521B
CN111932521B CN202010814353.0A CN202010814353A CN111932521B CN 111932521 B CN111932521 B CN 111932521B CN 202010814353 A CN202010814353 A CN 202010814353A CN 111932521 B CN111932521 B CN 111932521B
Authority
CN
China
Prior art keywords
image
tested
color
quality
image quality
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
Application number
CN202010814353.0A
Other languages
Chinese (zh)
Other versions
CN111932521A (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010814353.0A priority Critical patent/CN111932521B/en
Publication of CN111932521A publication Critical patent/CN111932521A/en
Application granted granted Critical
Publication of CN111932521B publication Critical patent/CN111932521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Abstract

The application relates to an image quality testing method and device, a server and a computer readable storage medium, which are used for acquiring images to be tested generated by photographing different testing scenes by a camera and calculating image quality parameters of the images to be tested. And comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result. The traditional mode of judging through human eyes is realized, the image quality parameters of the image to be tested are calculated, and then the image quality parameters of the image to be tested are compared with the preset image quality standard of the test scene corresponding to the image to be tested to quantize, so that the unification of the judgment standard is realized. Furthermore, the accuracy of the image quality test result is improved.

Description

Image quality testing method and device, server and computer readable storage medium
Technical Field
The present application relates to the field of intelligent terminal technologies, and in particular, to a method and an apparatus for testing image quality, a server, and a computer-readable storage medium.
Background
With the development of mobile technology, camera photographing technology has also been rapidly developed. In the traditional technology, in the test of the imaging quality of a camera, after a tester shoots a test scene, the tester subjectively judges whether the shot image meets the requirements or not through human eyes. Obviously, the subjectivity is too strong through the way of human eye judgment, and the unified standard is difficult to realize. Therefore, the test results of the imaging quality of the camera are uneven, and the accuracy of the test results is reduced.
Disclosure of Invention
The embodiment of the application provides an image quality testing method and device, a server and a computer readable storage medium, which can improve the accuracy of a testing result.
A method of image quality testing, the method comprising:
acquiring images to be tested, which are generated by photographing different test scenes by a camera;
calculating the image quality parameter of the image to be tested;
and comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result.
An image quality testing apparatus, the apparatus comprising:
the system comprises a to-be-tested image acquisition module, a to-be-tested image acquisition module and a to-be-tested image acquisition module, wherein the to-be-tested image acquisition module is used for acquiring to-be-tested images generated by photographing different test scenes by a camera;
the image quality parameter calculation module is used for calculating the image quality parameters of the image to be tested;
and the quality test result generation module is used for comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result.
A server comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the image quality testing method as described above.
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 image quality testing method as described above.
The image quality testing method and device, the server and the computer readable storage medium are used for acquiring images to be tested generated by photographing different testing scenes by the camera and calculating the image quality parameters of the images to be tested. And comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result. The traditional mode of judging through human eyes is realized, the image quality parameters of the image to be tested are calculated, and then the image quality parameters of the image to be tested are compared with the preset image quality standard of the test scene corresponding to the image to be tested to carry out quantification, so that the unification of the judgment standard is realized. Furthermore, the accuracy of the image quality test result is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary embodiment of a method for testing image quality;
FIG. 2 is a flow diagram of a method for image quality testing in one embodiment;
FIG. 3 is a flowchart of a method for calculating image quality parameters of an image to be tested when performing a quality test on exposure of the image to be tested in FIG. 2;
FIG. 4 is a flow chart of a method for image quality testing in another embodiment;
FIG. 5 is a flowchart of a method for image quality testing in yet another embodiment;
FIG. 6 is a flowchart of an image quality testing method in yet another embodiment;
FIG. 7 is a block diagram showing the construction of an image quality measuring apparatus according to an embodiment;
FIG. 8 is a block diagram showing the construction of an image quality testing apparatus according to another embodiment;
fig. 9 is a schematic diagram of an internal configuration of a server in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
Fig. 1 is a diagram illustrating an application scenario of the image quality testing method according to an embodiment. As shown in fig. 1, the application environment includes an electronic device 120 and a server 140. By the image quality testing method in the present application, the server 140 obtains the to-be-tested image generated by photographing different testing scenes by the camera on the electronic device 120, and calculates the image quality parameter of the to-be-tested image. And comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result. Here, the electronic device 120 has a camera thereon, and the electronic device 120 may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a wearable device, and the like.
FIG. 2 is a flow diagram of a method for image quality testing in one embodiment. The image quality testing method in this embodiment is described by taking the server 140 in fig. 1 as an example. As shown in fig. 2, the image quality testing method includes steps 220 to 260. Wherein the content of the first and second substances,
step 220, acquiring an image to be tested generated by photographing different test scenes by the camera.
In the test of the imaging quality of the camera, different test scenes are photographed by the camera to generate an image to be tested. The different test scenes include a backlight scene, a high dynamic scene, a point light source scene, a human face scene, a night scene, a landscape scene, and the like, which are not limited in the present application. Corresponding shooting parameters are configured in advance for each scene in the camera. And for each test scene, photographing by adopting the photographing parameters corresponding to the scene to generate an image to be tested. And then, the server acquires images to be tested, which are generated by photographing different test scenes by the camera, from the camera.
And 240, calculating the image quality parameter of the image to be tested.
Then, the server calculates an image quality parameter of the image to be tested. The image quality parameters may include exposure, color, definition, and the like of an image, and certainly, may also include other parameters capable of reflecting image quality, which is not limited in this application.
And step 260, comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested, and generating a quality test result.
The server stores preset image quality standards of different test scenes in advance. The image to be tested generated by photographing different test scenes by the camera is obtained through the steps, and the image quality parameter of the image to be tested is calculated. Then, a preset image quality standard of a test scene corresponding to the image to be tested is obtained, and the image quality parameter of the image to be tested is compared with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result.
In the embodiment of the application, the to-be-tested images generated by photographing different test scenes by the camera are obtained, and the image quality parameters of the to-be-tested images are calculated. And comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result. The traditional mode of judging through human eyes is realized, the image quality parameters of the image to be tested are calculated, and then the image quality parameters of the image to be tested are compared with the preset image quality standard of the test scene corresponding to the image to be tested to carry out quantification, so that the unification of the judgment standard is realized. Furthermore, the accuracy of the image quality test result is improved.
In one embodiment, there is provided an image quality testing method, further comprising:
different films and backlight panels are controlled to move by the film moving controller to realize the switching of test scenes.
Specifically, in the test of the imaging quality of the camera, the camera needs to photograph different test scenes, and quality tests are performed on images photographed in different test scenes. In the traditional method, a tester generally goes outdoors to restore a test scene for shooting. In this case, the test scenario is often influenced by various other factors such as weather conditions during the process of restoring the test scenario, so that the test scenario cannot be restored well.
Therefore, when the test scene is restored, the test scene can be restored by combining different films and backlight panels. Among these, films used for printing plate making are called film, which is equivalent to the negative of a photograph. Different films are obtained by respectively shooting different test scenes. The backlight panel is a light source device for emitting light, and a uniform backlight panel can be used to emit uniform light. The test scene can be restored uniformly through the film and the backlight panel. And different films and backlight panels can be controlled by the film moving controller to move so as to automatically switch test scenes. Therefore, the camera is used for shooting the test scene to generate an image to be tested.
In the embodiment of the application, the traditional method is to restore the test scene outdoors for shooting by testers, and the test scene cannot be restored well due to the influence of various other factors such as weather conditions and the like in the process of restoring the test scene. In the embodiment of the application, different films and backlight panels are controlled to move by the film moving controller, and the test scenes are automatically switched. The test scene can be uniformly restored based on the film and the backlight panel, and the automatic switching of the test scene is realized through the film moving controller, so that the accuracy of the image quality test result is improved through the standard of the uniform test scene.
In one embodiment, as shown in fig. 3, when performing a quality test on the exposure of the image to be tested, step 240, calculating an image quality parameter of the image to be tested includes:
step 242, obtaining color components of the image to be tested in the first color space;
step 244, converting the color component of the image to be tested in the first color space into the color component of the image to be tested in the second color space;
step 246, calculating the average value and histogram of the color components of the image to be tested in the second color space.
Specifically, images are generally captured by a camera, and the captured images are RGB images. The RGB color scheme is a color standard in the industry, and obtains various colors by changing three color channels of red (R), green (G) and blue (B) and superimposing the three color channels, wherein RGB represents the three color channels of red, green and blue.
When the exposure of the image to be tested is tested, because the exposure of the image to be tested is mainly analyzed, the RGB image mainly reflects the three-primary-color information of the image, and the YUV image mainly reflects the luminance and chrominance information, the RGB image needs to be converted into the YUV image in view of the strong correlation between the exposure and the luminance. Firstly, acquiring color components of an image to be tested in a first color space (RGB); secondly, converting the color components of the first color space (RGB) into color components of a second color space (YUV); finally, the image to be tested expressed by the YUV color components is obtained.
Then, the average value and the histogram of the color components of the image to be tested in the second color space are calculated. Specifically, the average value and the histogram of the YUV color components of the image to be tested may be calculated, respectively. For example, the average value and histogram of the Y color component of the image to be tested are calculated, the average value and histogram of the U color component of the image to be tested are calculated, and the average value and histogram of the V color component of the image to be tested are calculated. The histogram of the color components can represent the distribution of the color components.
In the embodiment of the application, when the exposure of the image to be tested is tested, the color component of the image to be tested in the first color space is obtained, the color component of the image to be tested in the first color space (RGB) is converted into the color component of the image to be tested in the second color space, and then the average value and the histogram of the color component of the image to be tested in the second color space (YUV) are calculated. The YUV image mainly reflects brightness and chrominance information, so that the average value and the histogram of the YUV color component of the image to be tested are calculated. And then, the exposure of the image to be tested is subjected to quality test through the average value and the histogram of the YUV color components of the image to be tested. Finally, the accuracy of the image quality test is improved.
In one embodiment, comparing the image quality parameter of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested to generate a quality test result, includes:
acquiring a preset image quality standard of a test scene corresponding to an image to be tested, wherein the preset image quality standard comprises an average value of color components of a second color space and a standard of a histogram;
and comparing the calculated average value and histogram of the color components of the image to be tested in the second color space with a preset image quality standard to generate a quality test result.
Specifically, the server stores preset image quality standards of a plurality of test scenes. Therefore, when the server compares the image quality parameter of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested, the server firstly obtains the preset image quality standard of the test scene corresponding to the image to be tested. The preset image quality standard comprises an average value of color components of the second color space and a standard of a histogram. Specifically, the average value of the color components of the second color space of the test scene corresponding to the image to be tested and the standard of the histogram are obtained from the server.
And comparing the calculated average value and histogram of the color components of the image to be tested in the second color space with the average value and histogram standard of the color components of the second color space of the test scene corresponding to the image to be tested to generate a quality test result. For example, the average value standard of the color components may be a threshold interval, and if the calculated average value of the color components of the image to be tested in the second color space does not fall within the threshold interval, it may be determined that the average value of the color components of the image to be tested in the second color space does not meet the standard. At this time, the generated quality test result is failed.
If the calculated average value of the color components of the image to be tested in the second color space falls within the threshold interval, the average value of the color components of the image to be tested in the second color space can be obtained to meet the standard. At this time, the calculated histogram of the color component of the image to be tested in the second color space is further compared with the preset image quality standard.
The histogram standard of the color component may be a standard histogram of an image captured in a scene to be tested. Firstly, normalizing the calculated histogram of the color component of the image to be tested in the second color space, and then comparing the processed histogram with the standard histogram in the same test scene, specifically, calculating the similarity of the two histograms, and when the similarity is greater than a preset threshold, obtaining that the histogram of the color component of the image to be tested in the second color space meets the standard. At this time, under the condition that the average value and the histogram of the color components of the image to be tested in the second color space both meet the standard, the generated quality test result is qualified.
And when the similarity is smaller than or equal to a preset threshold value, obtaining that the histogram of the color component of the image to be tested in the second color space does not meet the standard. At this time, the generated quality test result is failed. Wherein, the similarity can be calculated by calculating Euclidean distance.
In the embodiment of the application, first, a preset image quality standard of a test scene corresponding to an image to be tested is obtained. And comparing the calculated average value and the histogram of the color components of the image to be tested in the second color space with the preset image quality standard to generate a quality test result. And testing the image quality from the average value and the histogram of the color components of the image to be tested in the second color space. The average value of the color components can represent the concentration trend of the color components, and the histogram of the color components can represent the distribution condition of the color components. Thus, the accuracy of the quality test result is improved from two dimensions.
In one embodiment, the first color space is an RGB color space and the second color space is a YUV color space; calculating an average and histogram of color components of the second color space, comprising:
and calculating the average value and the histogram of the Y color component of the image to be tested in the YUV color space.
Specifically, YUV is a color coding method, which is often used in various video processing components. Where "Y" represents brightness (Luma) or gray scale value, and "U" and "V" represent Chrominance (Chroma) for specifying the color of the pixel.
In the quality test of the exposure level of the image to be tested, in view of the strong correlation between the exposure level and the brightness, after the RGB image is converted into the YUV image, the average value and the histogram of the Y color component of the image to be tested in the YUV color space can be selected to be calculated. Without having to compute the mean and histogram of each color component of the YUV color space. Therefore, the accuracy of the image quality test is ensured, and meanwhile, the system resources are saved.
As shown in fig. 4, there is provided an image quality testing method, including the steps of:
step 402, in the test of the imaging quality of the camera, the camera is used for photographing different test scenes to generate an image to be tested;
step 404, converting the color component of the image to be tested in the first color space (RGB) into the color component of the image to be tested in the second color space (YUV);
step 406, calculating an average value and a histogram of a Y color component of the image to be tested in a YUV color space;
step 408, acquiring a preset exposure standard of a test scene corresponding to the image to be tested;
step 410, comparing the calculated average value and histogram of the color components of the image to be tested in the second color space with a preset exposure standard, and judging whether the preset exposure standard is met;
step 412, if the preset exposure level standard is met, displaying that the exposure level is passed;
in step 414, if the exposure level does not meet the preset exposure level standard, a specific comparison result is displayed, for example, a non-standard item is displayed.
In the embodiment of the application, when the exposure level of the image to be tested is subjected to quality test, in view of the strong correlation between the exposure level and the brightness, after the RGB image is converted into the YUV image, the average value and the histogram of the Y color component of the image to be tested in the YUV color space can be selected and calculated. Without the need to compute the mean and histogram of each color component of the YUV color space. Therefore, the accuracy of the image quality test is ensured, and meanwhile, the system resources are saved.
In one embodiment, when performing quality test on the color of the image to be tested, calculating an image quality parameter of the image to be tested, comprises:
acquiring a color component of an image to be tested in a first color space;
and converting the color component of the image to be tested in the first color space into the color component of the image to be tested in the third color space.
Specifically, the first color space is an RGB color space, and the third color space is an HSV color space. The way of HSV expressing color images consists of three parts: in this case, "H" represents Hue, S "represents Saturation, and" V "represents Value. What is used in image processing is the HSV color space, which is closer to the human perceptual experience of color than the RGB color space. The HSV color space can visually express the hue, brightness and brightness of colors, and is convenient for color contrast.
The image is typically captured by a camera, and the captured image is an RGB image. When the quality of the color of the image to be tested is tested, because the color of the image to be tested is mainly analyzed, the hue, the vividness and the brightness of the color can be very intuitively expressed in consideration of the HSV color space, and the color is convenient to compare. Therefore, it is necessary to convert the RGB image into the HSV image. Firstly, acquiring color components of an image to be tested in a first color space (RGB); secondly, converting the color component of the first color space (RGB) into a color component of a third color space (HSV); finally, the image to be tested, represented by HSV color components, is obtained.
In the embodiment of the application, when the quality of the color of the image to be tested is tested, the color component of the image to be tested in the first color space is obtained, and the color component of the image to be tested in the first color space is converted into the color component of the image to be tested in the third color space. Because when the quality test is carried out on the color of the image to be tested, the color of the image to be tested is mainly analyzed, and the hue, the vividness and the brightness of the color can be very intuitively expressed in consideration of the HSV color space, so that the color comparison is convenient to carry out. Therefore, the RGB image is converted into the HSV image, and the accuracy of the subsequent color quality test is improved.
In one embodiment, comparing the image quality parameter of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested to generate a quality test result, includes:
carrying out image segmentation on an image to be tested to obtain different image areas;
acquiring a preset color standard of an image area under a test scene corresponding to an image to be tested;
and comparing the color components of the different image areas in the third color space with the preset color standard of the image area to generate a quality test result.
Specifically, an image segmentation algorithm is adopted to perform image segmentation on the image to be tested to obtain different image areas. For example, for an image to be tested, such as a blue sky and a white cloud, the image is segmented to obtain an area corresponding to the blue sky and an area corresponding to the white cloud.
The preset color standard of the image area under the test scene corresponding to the image to be tested is obtained from the server, for example, the preset color standard (range of HSV color component) corresponding to the blue sky area under the test scene of the blue sky white cloud is obtained from the server, and the preset color standard (range of HSV color component) corresponding to the white cloud area under the test scene of the blue sky white cloud is obtained from the server.
And acquiring color components of different image areas in the third color space from the color components of the image to be tested in the third color space. And comparing the color components of the different image areas in the third color space with the preset color standard of the image area to generate a quality test result. For example, the color component of the blue sky area in the HSV image of the image to be tested is (H1, S1, V1), and the preset color standard of the blue sky area stored on the server is (H1, S1-S2, V1-V2). And comparing the two color components to obtain a quality test result. And if the color component of the blue-sky area in the HSV image of the image to be tested falls within the range of the preset color standard of the blue-sky area stored on the server, the generated quality test result is qualified. And if the color component of the blue-sky area in the HSV image of the image to be tested does not fall within the range of the preset color standard of the blue-sky area stored on the server, the generated quality test result is unqualified.
In the embodiment of the application, when the quality of the color of the image to be tested is tested, the image to be tested is segmented to obtain different image areas. Therefore, the quality test result is generated based on the comparison of the color components of the different image areas in the third color space and the preset color standard of the image areas. The image segmentation realizes independent tests on different image areas, and color components in the same image area obtained by image segmentation are closer to each other, while the color components in different image areas are farther from each other. Therefore, the color components of the image area in the third color space based on different image areas are compared with the preset color standard of the image area, so that the color quality test of the image area is realized.
In one embodiment, the third color space is an HSV color space.
As shown in fig. 5, there is provided an image quality testing method including:
step 502, in the test of the imaging quality of the camera, different test scenes are photographed by the camera to generate images to be tested;
step 504, converting the color component of the image to be tested in the first color space into the color component of the image to be tested in the third color space;
step 506, performing image segmentation on the image to be tested to obtain different image areas;
step 508, acquiring a preset color standard of an image area under a test scene corresponding to an image to be tested;
step 510, comparing color components of different image areas in a third color space with a preset color standard of the image area, and judging whether the preset color standard is met;
step 512, if the preset color standard is met, the display is passed;
in step 514, if the preset color standard is not satisfied, a specific comparison result is displayed, for example, an substandard item is displayed.
In the embodiment of the application, when the quality of the color of the image to be tested is tested, the image of the image to be tested is segmented to obtain different image areas. Therefore, the quality test result is generated based on the comparison between the color components of the different image areas in the third color space and the preset color standard of the image area. Because the color components in the same image region obtained by image segmentation are closer, and the color components in different image regions are farther. Therefore, the color components of the image area in the third color space based on different image areas are compared with the preset color standard of the image area, so that the color quality test of the image area is realized.
In one embodiment, as shown in fig. 6, when performing quality test on the definition of the image to be tested, calculating an image quality parameter of the image to be tested includes:
step 620, calculating the definition of the image to be tested;
comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result, wherein the quality test result comprises the following steps:
and 640, comparing the definition of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested, and generating a quality test result.
Specifically, as with the quality test of the exposure and color of the image to be tested, the definition of the image to be tested is calculated when the definition of the image to be tested is subjected to the quality test. Then, comparing the definition of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested, judging whether the preset image quality standard is met or not, and if the preset image quality standard is met, displaying the image to pass; if the preset color standard is not met, a specific comparison result is displayed, for example, an unqualified item is displayed.
In the embodiment of the application, the traditional mode of judging through human eyes is realized, the image quality parameters of the image to be tested are calculated, and then the image quality parameters of the image to be tested are compared with the preset image quality standard of the test scene corresponding to the image to be tested to quantify, so that the unification of the judgment standard is realized. Furthermore, the accuracy of the image quality test result is improved.
In one embodiment, there is provided an image quality testing method, further comprising:
and adjusting the photographing parameters in the test scene according to the quality test result.
In the embodiment of the application, firstly, images to be tested, which are generated by photographing different test scenes by a camera, are obtained; and secondly, calculating the image quality parameters of the image to be tested, and comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result. And finally, if the quality test result is unqualified, displaying the specific quality test result. And adjusting the photographing parameters in the test scene based on the quality test result. Therefore, the photographing parameters under the test scene are adjusted according to the quality test result, and the photographing parameters under the test scene are optimized.
It should be understood that, although the steps in the flowcharts in the above-described figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the above figures may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided an image quality testing apparatus 700, comprising:
the to-be-tested image acquisition module 720 is used for acquiring to-be-tested images generated by photographing different test scenes by the camera;
an image quality parameter calculation module 740, configured to calculate an image quality parameter of an image to be tested;
the quality test result generating module 760 is configured to compare the image quality parameter of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested, and generate a quality test result.
In one embodiment, as shown in fig. 8, there is also provided an image quality testing apparatus 700, further comprising:
and the test scene switching module 780 is configured to control different films and backlight panels to move through the film moving controller to switch test scenes.
In one embodiment, when performing the quality test on the exposure level of the image to be tested, the image quality parameter calculation module 740 is further configured to obtain a color component of the image to be tested in the first color space; converting the color component of the image to be tested in the first color space into the color component of the image to be tested in the second color space; and calculating the average value and the histogram of the color components of the image to be tested in the second color space.
In an embodiment, the quality test result generating module 760 is further configured to obtain a preset image quality standard of a test scene corresponding to the image to be tested, where the preset image quality standard includes an average value of color components of the second color space and a standard of a histogram; and comparing the calculated average value and histogram of the color components of the image to be tested in the second color space with a preset image quality standard to generate a quality test result.
In one embodiment, the first color space is an RGB color space and the second color space is a YUV color space; the image quality parameter calculating module 740 is further configured to calculate an average value and a histogram of a Y color component of the image to be tested in the YUV color space.
In one embodiment, when performing quality test on the color of the image to be tested, the image quality parameter calculation module 740 is further configured to obtain a color component of the image to be tested in the first color space; and converting the color component of the image to be tested in the first color space into the color component of the image to be tested in the third color space.
In one embodiment, the quality test result generating module 760 is further configured to perform image segmentation on the image to be tested to obtain different image regions; acquiring a preset color standard of an image area under a test scene corresponding to an image to be tested; and comparing the color components of the different image areas in the third color space with the preset color standard of the image area to generate a quality test result.
In one embodiment, the third color space is an HSV color space.
In one embodiment, the image quality parameter calculating module 740 is further configured to calculate the sharpness of the image to be tested when performing the quality test on the sharpness of the image to be tested;
the quality test result generating module 760 is further configured to compare the definition of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested, and generate a quality test result.
In one embodiment, there is also provided an image quality testing apparatus 700, further comprising:
and the photographing parameter adjusting module is used for adjusting the photographing parameters in the test scene according to the quality test result.
The division of each module in the image quality testing apparatus is only for illustration, and in other embodiments, the image quality testing apparatus may be divided into different modules as required to complete all or part of the functions of the image quality testing apparatus.
For the specific definition of the image quality testing apparatus, reference may be made to the above definition of the image quality testing method, which is not described herein again. All or part of each module in the image quality testing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a watch is further provided, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the image quality testing method provided in the above embodiments.
Fig. 9 is a schematic diagram of an internal configuration of a server in one embodiment. As shown in fig. 9, the server includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capacity and supporting the operation of the whole server. The memory may include non-volatile storage media and internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing an image quality testing method provided by the above embodiments. The internal memory provides a cached operating environment for operating system computer programs in the non-volatile storage medium. The server may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the image quality testing apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on an electronic device or a server. The program modules constituting the computer program may be stored on a memory of the electronic device or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the image quality testing method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform an image quality testing method.
Any reference to memory, storage, database, or other medium used by embodiments of the present application may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM).
The above examples of image quality testing only express several embodiments of the present application, and the description thereof is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (12)

1. An image quality testing method, characterized in that the method comprises:
different films and backlight panels are controlled to move by the film moving controller to realize the switching of test scenes;
acquiring images to be tested, which are generated by photographing different test scenes by a camera;
calculating an image quality parameter of the image to be tested; the image quality parameter comprises any one parameter of exposure, color and definition of the image;
and comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result.
2. The method of claim 1, wherein when performing a quality test on the exposure of the image to be tested, the calculating an image quality parameter of the image to be tested comprises:
acquiring a color component of the image to be tested in a first color space;
converting the color component of the image to be tested in the first color space into the color component of the image to be tested in the second color space;
and calculating the average value and the histogram of the color components of the image to be tested in the second color space.
3. The method of claim 2, wherein comparing the image quality parameter of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested to generate a quality test result comprises:
acquiring a preset image quality standard of a test scene corresponding to the image to be tested, wherein the preset image quality standard comprises an average value of color components of a second color space and a standard of a histogram;
and comparing the calculated average value and the histogram of the color components of the image to be tested in the second color space with the preset image quality standard to generate a quality test result.
4. The method of claim 3, wherein the first color space is an RGB color space and the second color space is a YUV color space; the calculating the average and histogram of the color components of the second color space includes:
and calculating the average value and the histogram of the Y color component of the image to be tested in the YUV color space.
5. The method of claim 1, wherein when performing a quality test on the color of the image to be tested, the calculating the image quality parameter of the image to be tested comprises:
acquiring a color component of the image to be tested in a first color space;
and converting the color component of the image to be tested in the first color space into the color component of the image to be tested in the third color space.
6. The method of claim 5, wherein comparing the image quality parameter of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result comprises:
carrying out image segmentation on the image to be tested to obtain different image areas;
acquiring a preset color standard of the image area under a test scene corresponding to the image to be tested;
and comparing the color components of the different image areas in a third color space with the preset color standard of the image area to generate a quality test result.
7. The method of claim 6, wherein the third color space is an HSV color space.
8. The method of claim 1, wherein when performing a quality test on the sharpness of the image to be tested, the calculating an image quality parameter of the image to be tested comprises:
calculating the definition of the image to be tested;
the comparing the image quality parameter of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result, comprising:
and comparing the definition of the image to be tested with a preset image quality standard of a test scene corresponding to the image to be tested to generate a quality test result.
9. The method of claim 1, further comprising:
and adjusting the photographing parameters in the test scene according to the quality test result.
10. An image quality testing apparatus, characterized in that the apparatus comprises:
the image acquisition module to be tested is used for controlling different films and backlight panels to move through the film movement controller so as to realize the switching of test scenes; acquiring images to be tested, which are generated by photographing different test scenes by a camera;
the image quality parameter calculation module is used for calculating the image quality parameters of the image to be tested; the image quality parameter comprises any one of exposure, color and definition of the image;
and the quality test result generation module is used for comparing the image quality parameters of the image to be tested with the preset image quality standard of the test scene corresponding to the image to be tested to generate a quality test result.
11. A server, comprising a memory and a processor, the memory having a computer program stored thereon, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the image quality testing method according to any one of claims 1 to 9.
12. 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 image quality testing method according to any one of claims 1 to 9.
CN202010814353.0A 2020-08-13 2020-08-13 Image quality testing method and device, server and computer readable storage medium Active CN111932521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010814353.0A CN111932521B (en) 2020-08-13 2020-08-13 Image quality testing method and device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010814353.0A CN111932521B (en) 2020-08-13 2020-08-13 Image quality testing method and device, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111932521A CN111932521A (en) 2020-11-13
CN111932521B true CN111932521B (en) 2023-01-03

Family

ID=73311875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010814353.0A Active CN111932521B (en) 2020-08-13 2020-08-13 Image quality testing method and device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111932521B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113340569A (en) * 2021-05-17 2021-09-03 浪潮金融信息技术有限公司 Method, system and medium for detecting quality of high-speed photographing instrument
CN113438469B (en) * 2021-05-31 2022-03-15 深圳市大工创新技术有限公司 Automatic testing method and system for security camera
CN116055712B (en) * 2022-08-16 2024-04-05 荣耀终端有限公司 Method, device, chip, electronic equipment and medium for determining film forming rate

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03160309A (en) * 1989-11-20 1991-07-10 Fujitsu Ltd Image quality testing apparatus
JP2002163637A (en) * 2000-11-27 2002-06-07 Omron Corp Device and method for examining image
JP2006140873A (en) * 2004-11-15 2006-06-01 Konica Minolta Holdings Inc Device and method for evaluating image quality
JP2011058925A (en) * 2009-09-09 2011-03-24 Ricoh Elemex Corp Method and device for inspecting image
CN104282019A (en) * 2014-09-16 2015-01-14 电子科技大学 Blind image quality evaluation method based on natural scene statistics and perceived quality propagation
EP2889833A1 (en) * 2013-12-26 2015-07-01 Thomson Licensing Method and apparatus for image quality assessment
CN105447878A (en) * 2015-12-14 2016-03-30 深圳市高斯贝尔家居智能电子有限公司 Image quality test analysis method and system
CN108335293A (en) * 2018-01-31 2018-07-27 泰康保险集团股份有限公司 The determination method and device of picture quality

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4468442B2 (en) * 2004-03-31 2010-05-26 キヤノン株式会社 Imaging system performance measurement
JP5719123B2 (en) * 2010-05-24 2015-05-13 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP5910097B2 (en) * 2011-01-27 2016-04-27 株式会社リコー Image inspection apparatus, image forming apparatus, and image inspection program
JP5514344B2 (en) * 2012-05-15 2014-06-04 シャープ株式会社 Video processing device, video processing method, television receiver, program, and recording medium
CN105450923A (en) * 2014-09-25 2016-03-30 索尼公司 Image processing method, image processing device and electronic device
CN109618149B (en) * 2018-12-10 2021-01-12 北京旷视科技有限公司 Method and device for testing imaging quality of equipment and intelligent equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03160309A (en) * 1989-11-20 1991-07-10 Fujitsu Ltd Image quality testing apparatus
JP2002163637A (en) * 2000-11-27 2002-06-07 Omron Corp Device and method for examining image
JP2006140873A (en) * 2004-11-15 2006-06-01 Konica Minolta Holdings Inc Device and method for evaluating image quality
JP2011058925A (en) * 2009-09-09 2011-03-24 Ricoh Elemex Corp Method and device for inspecting image
EP2889833A1 (en) * 2013-12-26 2015-07-01 Thomson Licensing Method and apparatus for image quality assessment
CN104282019A (en) * 2014-09-16 2015-01-14 电子科技大学 Blind image quality evaluation method based on natural scene statistics and perceived quality propagation
CN105447878A (en) * 2015-12-14 2016-03-30 深圳市高斯贝尔家居智能电子有限公司 Image quality test analysis method and system
CN108335293A (en) * 2018-01-31 2018-07-27 泰康保险集团股份有限公司 The determination method and device of picture quality

Also Published As

Publication number Publication date
CN111932521A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN111932521B (en) Image quality testing method and device, server and computer readable storage medium
US9916518B2 (en) Image processing apparatus, image processing method, program and imaging apparatus
EP3627440B1 (en) Image processing method and apparatus
US11431915B2 (en) Image acquisition method, electronic device, and non-transitory computer readable storage medium
CN107888840A (en) High-dynamic-range image acquisition method and device
US11539897B2 (en) Systems and methods for exposure control
CN105450932A (en) Backlight photographing method and device
CN113140197A (en) Display picture adjusting method and device, electronic equipment and readable storage medium
CN113411498A (en) Image shooting method, mobile terminal and storage medium
US10863103B2 (en) Setting apparatus, setting method, and storage medium
CN115460386A (en) Method and system for acquiring color image by using black and white camera
WO2020119454A1 (en) Method and apparatus for color reproduction of image
US20170099445A1 (en) Image processing apparatus, image processing method, and medium
WO2023151210A1 (en) Image processing method, electronic device and computer-readable storage medium
JP7277158B2 (en) Setting device and method, program, storage medium
US20150381870A1 (en) Dynamic Noise Reduction For High Dynamic Range In Digital Imaging
CN112734719A (en) Dead pixel detection method of image sensor, storage medium and shooting device
CN110378973A (en) Image information processing method, device and electronic equipment
CN112801932A (en) Image display method, image display device, electronic equipment and storage medium
CN116600137B (en) Video image compression storage or decompression method, device, equipment and medium
CN114630095B (en) Automatic white balance method and device for target scene image and terminal
KR100520970B1 (en) Method and apparatus for transforming a high dynamic range image into a low dynamic range image
WO2021159414A1 (en) White balance control method and apparatus, electronic device and computer-readable storage medium
CN113888455A (en) Image generation method and device, electronic equipment and computer-readable storage medium
CN114463219A (en) Image color adjusting method and device, computer readable storage medium and terminal

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