CN112954306A - Image processing performance testing method and device - Google Patents

Image processing performance testing method and device Download PDF

Info

Publication number
CN112954306A
CN112954306A CN202110117696.6A CN202110117696A CN112954306A CN 112954306 A CN112954306 A CN 112954306A CN 202110117696 A CN202110117696 A CN 202110117696A CN 112954306 A CN112954306 A CN 112954306A
Authority
CN
China
Prior art keywords
image
sample
processing
image processing
sample image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110117696.6A
Other languages
Chinese (zh)
Other versions
CN112954306B (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.)
Beijing Antutu Technology Co ltd
Original Assignee
Beijing Antutu 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 Beijing Antutu Technology Co ltd filed Critical Beijing Antutu Technology Co ltd
Priority to CN202110117696.6A priority Critical patent/CN112954306B/en
Publication of CN112954306A publication Critical patent/CN112954306A/en
Application granted granted Critical
Publication of CN112954306B publication Critical patent/CN112954306B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Facsimiles In General (AREA)

Abstract

The embodiment of the invention provides a method and a device for testing image processing performance, which relate to the technical field of electronic equipment testing, wherein the method comprises the following steps: and carrying out image processing on the sample image to obtain a current processing result. And under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if so, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the step of carrying out image processing on the sample image. And under the condition that the accumulated time for carrying out image processing on the sample image is not less than the preset time, obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times for carrying out image processing on the sample image. By applying the scheme provided by the embodiment of the invention, the accuracy of the test result of the image processing performance can be improved.

Description

Image processing performance testing method and device
Technical Field
The invention relates to the technical field of electronic equipment testing, in particular to a method and a device for testing image processing performance.
Background
The electronic device may perform image processing on the image, e.g., encoding, decoding, etc. the image. When an image is displayed on a screen of an electronic device, the encoded image needs to be decoded to realize image display. In addition, in order to reduce the storage space occupied by the image, the image may be encoded, thereby compressing the image. The image processing performance of different electronic devices is different, so that the efficiency of image processing performed on images by the electronic devices is different. In order to determine the image processing performance of the electronic device, the image processing performance of the electronic device needs to be tested.
In the prior art, the image processing performance of the electronic device can be tested by determining the efficiency of the electronic device for performing image processing on the sample image. However, in the testing process, when the electronic device performs image processing on the sample image, the processing result output earlier may be directly output as the processing result of the subsequent image processing, and actually, the electronic device does not actually perform image processing in the subsequent image processing. Therefore, in the above situation, if the image processing performance of the electronic device is tested according to the processing result of the subsequent image processing, the test result of the image processing performance obtained by the test may be inaccurate.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for testing image processing performance, so as to improve the accuracy of a test result of the image processing performance. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an image processing performance testing method, where the method includes:
carrying out image processing on the sample image to obtain a current processing result;
under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if so, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the step of carrying out image processing on the sample image;
and under the condition that the accumulated time for carrying out image processing on the sample image is not less than the preset time, obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times for carrying out image processing on the sample image.
In an embodiment of the present invention, when there are images in multiple image formats in the sample image, the determining whether the processing result of the sample image is the same as the historical processing result when the accumulated time for performing image processing on the sample image is less than a preset time includes:
the sample image for each image format is processed as follows:
judging whether a first accumulated sub-time length for carrying out image processing on a sample image in an image format is less than a first preset sub-time length or not, wherein the sum of the first preset sub-time lengths corresponding to all the image formats is equal to the preset time length;
if so, determining whether the current processing result of the sample image in the image format is the same as the historical processing result of the sample image in the image format;
if not, returning to the step of processing the sample image, and processing the sample images in other image formats;
the obtaining of the test result of the image processing performance of the electronic device according to the accumulated time and the accumulated times of the image processing of the sample image includes:
for each image format, determining a test sub-result of the image processing sub-performance of the image processing on the image in the image format by the electronic equipment according to the first accumulated sub-duration and the first accumulated sub-times of the image processing on the sample image in the image format;
and determining the test result of the image processing performance of the electronic equipment according to each test sub-result.
In an embodiment of the present invention, the determining a test result of the image processing performance of the electronic device according to each test sub-result includes:
determining a test result of the image processing performance of the electronic equipment according to the following formula:
Figure BDA0002920952420000021
wherein G isnFor the test results, i is the index of the image format, n denotes the total number of image formats, fiWeight, x, corresponding to the ith image formatiAnd testing the sub-result corresponding to the ith image format.
In an embodiment of the present invention, in a case that the number of the sample images is greater than 1, and the determining whether the processing result of the sample image is the same as the historical processing result of the sample image in a case that the accumulated time length for performing the image processing on the sample image is less than a preset time length includes:
each sample image is processed as follows:
judging whether a second accumulated sub-time length for carrying out image processing on the sample images is less than a second preset sub-time length or not, wherein the sum of the second preset sub-time lengths corresponding to the sample images is equal to the preset time length;
if so, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image;
and if not, returning to the step of processing the sample image, and processing other sample images.
In an embodiment of the present invention, before performing image processing on the sample image to obtain a processing result, the method further includes:
reading the sample image into an internal memory in a binary stream mode;
the adjusting the pixel value of the target pixel point in the sample image includes:
and adjusting the value of the binary digit used for expressing the target pixel point in the binary digit stream corresponding to the sample image.
In one embodiment of the present invention, the image processing is: image decoding or image encoding.
In a second aspect, an embodiment of the present invention provides an image processing performance testing apparatus, where the apparatus includes:
the image processing module is used for carrying out image processing on the sample image to obtain a current processing result;
the pixel value adjusting module is used for determining whether the current processing result of the sample image is the same as the historical processing result of the sample image or not under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, if so, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the image processing module;
and the result obtaining module is used for obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times of image processing on the sample image under the condition that the accumulated time of image processing on the sample image is not less than the preset time.
In an embodiment of the invention, when there are images of multiple image formats in the sample image, the pixel value adjusting module includes:
processing the sample image of each image format through the following image processing sub-modules;
the image processing sub-module is specifically configured to:
judging whether a first accumulated sub-time length for carrying out image processing on a sample image in an image format is less than a first preset sub-time length or not, wherein the sum of the first preset sub-time lengths corresponding to all the image formats is equal to the preset time length;
if the current processing result of the sample image in the image format is smaller than the historical processing result of the sample image in the image format, determining whether the current processing result of the sample image in the image format is the same as the historical processing result of the sample image in the image format, if the current processing result of the sample image in the image format is different from the historical processing result of the sample image in the image format, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image;
if not, returning to execute the image processing module to process the sample images in other image formats;
the result obtaining module comprises:
the sub-result determining sub-module is used for determining a test sub-result of the image processing sub-performance of the image processing of the image in the image format by the electronic equipment according to the first accumulated sub-time and the first accumulated sub-times of the image processing of the sample image in the image format aiming at each image format under the condition that the accumulated time for the image processing of the sample image is not less than the preset time;
and the result determining submodule is used for determining the test result of the image processing performance of the electronic equipment according to each test sub-result.
In an embodiment of the present invention, the result determination submodule is specifically configured to:
determining a test result of the image processing performance of the electronic equipment according to the following formula:
Figure BDA0002920952420000051
wherein G isnFor the test results, i is the index of the image format, n denotes the total number of image formats, fiWeight, x, corresponding to the ith image formatiAnd testing the sub-result corresponding to the ith image format.
In an embodiment of the present invention, when the number of the sample images is greater than 1, the pixel value adjusting module is specifically configured to:
each sample image is processed as follows:
judging whether a second accumulated sub-time length for carrying out image processing on the sample images is less than a second preset sub-time length or not, wherein the sum of the second preset sub-time lengths corresponding to the sample images is equal to the preset time length;
if the current processing result of the sample image is smaller than the historical processing result of the sample image, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if the current processing result of the sample image is not the same as the historical processing result of the sample image, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the image processing module;
and if not, returning to execute the image processing module and processing other sample images.
In one embodiment of the present invention, the apparatus further comprises:
the image reading module is used for reading the sample image into the memory in a binary stream mode;
the pixel value adjusting module is specifically configured to:
and under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if so, adjusting the value of a binary bit used for representing the target pixel point in a binary stream corresponding to the sample image, and returning to execute the image processing module.
In one embodiment of the present invention, the image processing is: image decoding or image encoding.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the first aspect.
In a fifth aspect, embodiments of the present invention also provide a computer program product comprising instructions, which when run on a computer, cause the computer to perform the method steps of any of the first aspects described above.
The embodiment of the invention has the following beneficial effects:
when the scheme provided by the embodiment of the invention is applied to testing the image processing performance of the electronic equipment, the sample image is subjected to image processing to obtain a processing result, whether the current processing result of the sample image is the same as the historical processing result of the sample image is determined under the condition that the accumulated time for carrying out the image processing on the sample image is less than the preset time, if the current processing result of the sample image is different from the historical processing result of the sample image, the pixel value of a target pixel point in the sample image is adjusted to obtain a new sample image, and the step of carrying out the image processing on the sample image is returned. And under the condition that the accumulated time for carrying out image processing on the sample image is not less than the preset time, obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times for carrying out image processing on the sample image.
As can be seen from the above, since each pair of sample images is subjected to image processing, the pixel values of the target pixel points in the sample images are subjected to primary transformation, so as to generate new sample images. Therefore, the sample images are different in each image processing process of the electronic device, and therefore if the electronic device normally performs image processing on the sample images, the current processing results obtained in each image processing process are different. Therefore, if it can be determined that the current processing result of the sample image is different from the historical processing result, it can be considered that the electronic device normally performs image processing in the process of testing the image processing performance of the electronic device. Otherwise, it may be considered that the electronic device directly reads the processing result generated earlier as the processing result generated later, and does not substantially perform image processing, and the test result of testing the image processing is invalid. Therefore, the scheme provided by the embodiment of the invention can improve the accuracy of the test result. In addition, the new sample image is obtained by adjusting the pixel value of the target pixel point in the original sample image, so that a plurality of different new sample images can be obtained on the basis of one sample image under the condition of not increasing the occupied space of the sample image, and the electronic equipment can be subjected to image processing performance test, thereby saving the storage space of the electronic equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first method for testing image processing performance according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a second image processing performance testing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a third method for testing image processing performance according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a fourth method for testing image processing performance according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a first image processing performance testing apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a second apparatus for testing image processing performance according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived from the embodiments given herein by one of ordinary skill in the art, are within the scope of the invention.
Because the problem of inaccurate test result of the image processing performance exists in the prior art, the embodiment of the invention provides a method and a device for testing the image processing performance in order to improve the accuracy of the test result of the image processing performance.
In an embodiment of the present invention, there is provided an image processing performance testing method, including:
carrying out image processing on the sample image to obtain a current processing result;
under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if so, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the step of carrying out image processing on the sample image;
and under the condition that the accumulated time for carrying out image processing on the sample image is not less than the preset time, obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times for carrying out image processing on the sample image.
As can be seen from the above, since each pair of sample images is subjected to image processing, the pixel values of the target pixel points in the sample images are subjected to primary transformation, so as to generate new sample images. Therefore, the sample images are different in each image processing process of the electronic device, and therefore if the electronic device normally performs image processing on the sample images, the current processing results obtained in each image processing process are different. Therefore, if it can be determined that the current processing result of the sample image is different from the historical processing result, it can be considered that the electronic device normally performs image processing in the process of testing the image processing performance of the electronic device. Otherwise, it may be considered that the electronic device directly reads the processing result generated earlier as the processing result generated later, and does not substantially perform image processing, and the test result of testing the image processing is invalid. Therefore, the scheme provided by the embodiment of the invention can improve the accuracy of the test result. In addition, the new sample image is obtained by adjusting the pixel value of the target pixel point in the original sample image, so that a plurality of different new sample images can be obtained on the basis of one sample image under the condition of not increasing the occupied space of the sample image, and the electronic equipment can be subjected to image processing performance test, thereby saving the storage space of the electronic equipment.
The following describes the method and apparatus for testing image processing performance according to the embodiments of the present invention with specific embodiments.
Referring to fig. 1, an embodiment of the present invention provides a flowchart of a first method for testing image processing performance, which may be implemented by the following steps S101 to S104.
S101: and carrying out image processing on the sample image to obtain a current processing result.
Specifically, the sample Image may be processed by a CPU (Central Processing Unit) installed in the electronic device, or may be processed by an Image Processing Unit installed in the electronic device, such as a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), an ISP (Image Signal Processor), an FPGA (Field Programmable Gate Array), an ASIC (Application Specific Integrated Circuit), or the like.
The number of sample images may be 1 or more, and when the number of sample images is plural, image processing may be sequentially performed on each sample image. The sample images may be images in the same image format or images in different image formats. For example, JPEG format, PNG format, WEPB format, HEIF format, and the like. The image content of the sample image may be any content, which is not limited in the embodiment of the present invention, for example, the image content may be a person, an animal, a plant, and the like.
The image processing may be image decoding or image encoding, or may be other image processing such as image recognition, image stitching, or image feature extraction. When the image processing is image decoding, the image decoding process may be completed in a bitmap factory manner, and a current processing result obtained after the image decoding is a bitmap.
S102: and under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image.
Specifically, the history processing result is: a processing result of the sample image obtained before the current processing result is obtained.
The accumulated time length is as follows: the cumulative total time length for image processing of all the sample images subjected to image processing, for example, if the time length for image processing of the sample image M is 2 seconds, and the time length for image processing of the sample image N is 3 seconds, the cumulative time length is 5 seconds.
In an embodiment of the present invention, if the current processing result is the same as the historical processing result, it indicates that the electronic device may directly read the previously generated historical processing result, and as the current processing result obtained by the current image processing, the electronic device does not actually perform image processing on the sample image, which may affect the accuracy of the test result of the image processing performance.
When the current processing result is different from the historical processing result, it is considered that the electronic device normally performs the image processing until now, and the accuracy of the test result of the image processing performance is not affected, so that the flow of the image processing performance test can be continued, and step S103 can be executed.
In addition, the time length required for the process of determining whether the current processing result of the sample image is the same as the historical processing result of the sample image is not counted in the accumulated time length, and whether the current processing result is the same as the historical processing result may be determined by a thread other than a thread executing image processing, so as to prevent the process of determining whether the current processing result is the same as the historical processing result from affecting the image processing process of the sample image.
S103: and adjusting the pixel value of the target pixel point in the sample image to obtain a new sample image.
Specifically, the target pixel point may be any pixel point in the randomly determined sample image, or may be a pixel point at a preset position. The number of target pixel points in the sample image can be any random number or a preset number.
Since a new sample image is obtained and the cumulative duration of image processing on the sample image is less than the preset duration, that is, the process of the image processing performance test is not yet ended, the process of the image processing performance test needs to be continuously executed, and the process returns to the step S101 to be continuously executed.
S104: and under the condition that the accumulated time for carrying out image processing on the sample image is not less than the preset time, obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times for carrying out image processing on the sample image.
Specifically, the accumulated time for performing image processing on the sample image is not less than the preset time, which indicates that the time for performing the image processing performance test on the electronic device has reached the preset time.
In an embodiment of the present invention, the accumulated number of times may be divided by the accumulated time duration, the calculation result may represent the number of sample images that can be processed by the electronic device in a unit time duration, and the calculation result may be used as a test result. However, since the value of the calculation result may be small, and the calculation result is directly used as the test result, the difference between the test results of different electronic devices may be small, and it is difficult to reflect the difference between the image processing performances of different electronic devices, so that in order to intuitively represent the image processing performance of the electronic devices, the calculation result may be multiplied by a first preset coefficient to be used as the test result. For example, the first predetermined coefficient may be 100, 1000, or the like.
As can be seen from the above, since each pair of sample images is subjected to image processing, the pixel values of the target pixel points in the sample images are subjected to primary transformation, so as to generate new sample images. Therefore, the sample images are different in each image processing process of the electronic device, and therefore if the electronic device normally performs image processing on the sample images, the current processing results obtained in each image processing process are different. Therefore, if it can be determined that the current processing result of the sample image is different from the historical processing result, it can be considered that the electronic device normally performs image processing in the process of testing the image processing performance of the electronic device. Otherwise, it may be considered that the electronic device directly reads the processing result generated earlier as the processing result generated later, and does not substantially perform image processing, and the test result of testing the image processing is invalid. Therefore, the scheme provided by the embodiment of the invention can improve the accuracy of the test result. In addition, the new sample image is obtained by adjusting the pixel value of the target pixel point in the original sample image, so that a plurality of different new sample images can be obtained on the basis of one sample image under the condition of not increasing the occupied space of the sample image, and the electronic equipment can be subjected to image processing performance test, thereby saving the storage space of the electronic equipment.
Referring to fig. 2, an embodiment of the present invention provides a flowchart of a second method for testing image processing performance, where, when there are images in multiple image formats in the sample image, the step S102 may be implemented in the following manner, compared with the embodiment shown in fig. 1.
The sample images for each image format are processed as follows S102A-S102B:
S102A: and under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, judging whether a first accumulated sub-time for carrying out image processing on the sample image in an image format is less than a first preset sub-time.
And the sum of the first preset sub-time lengths corresponding to the image formats is equal to the preset time length.
Specifically, the first preset sub-durations corresponding to different image formats may be the same or different, and since the sum of the first preset sub-durations corresponding to different image formats is equal to the preset duration, the total accumulated duration of image processing on the sample image is equal to or greater than the preset duration under the condition that the first accumulated sub-duration of image processing on the sample image of each image format is not less than the first preset sub-duration.
In addition, the number of sample images per image format may be 1, that is, there are a plurality of different image formats for the sample images, and the number of sample images per image format is 1. The number of sample images in each image format may be multiple, that is, there are multiple different image formats for the sample images, and the number of sample images in each image format is multiple. The number of sample images of different image formats may be the same or different.
If the first cumulative sub-duration is less than the first preset sub-duration, the duration of image processing on the sample image in the image format has not reached the first preset sub-duration, and it is necessary to continue image processing on the sample image in the image format, and step S102B is executed.
And under the condition that the first accumulated sub-time length is not less than the first preset sub-time length, the time length for carrying out image processing on the sample image in the image format reaches the first preset sub-time length, the sample image in the image format does not need to be continuously subjected to image processing, and the step S101 is returned to, and the sample images in other image formats are processed.
In an embodiment of the present invention, image processing may be preferentially performed on a sample image in an image format, and when a first accumulated sub-time length for performing image processing on the sample image in the image format is not less than a first preset sub-time length, image processing may be performed on a sample image in a next image format. Only the first accumulated sub-period of image processing for the sample image of one image format needs to be timed at the same time during the process of performing the image processing performance test.
The image processing may be performed on each sample image in a sequential loop, and the sequence may be any sequence, i.e., the sequence is independent of the image format of the sample image. That is, when the first accumulated sub-time length of the image processing on the sample image of one image format is smaller than the first preset sub-time length, the image processing on the sample image of another image format is started, and after the image processing on each sample image is completed once, the next round of image processing on each sample image is started. The first accumulated sub-durations of the respective image formats need to be clocked separately at the same time.
S102B: it is determined whether a current processing result of the sample image in the image format is the same as a historical processing result of the sample image in the image format.
In an embodiment of the present invention, if the current processing result of the sample image in the image format is the same as the historical processing result, it indicates that the electronic device may directly read the historical processing result of the previously generated sample image in the image format, and as the current processing result obtained by the current image processing, the electronic device does not actually perform image processing on the sample image in the image format, which may affect the accuracy of the test result of the image processing performance.
If the current processing result of the sample image in the image format is different from the historical processing result, it is considered that the electronic device normally performs the image processing on the sample image in the image format until now, and the accuracy of the test result of the image processing performance is not affected, so that the flow of the image processing performance test can be continued, and step S103 is executed.
Compared to the previous embodiment shown in FIG. 1, step S104 can be implemented by the following steps S104A-S104B.
S104A: and determining a test sub-result of the image processing sub-performance of the image processing of the image in the image format by the electronic equipment according to the first accumulative sub-time and the first accumulative sub-times of the image processing of the sample image in the image format for each image format.
Specifically, for each image format, the first accumulated sub-number of times of the image format may be divided by the first accumulated sub-duration, the calculation result may represent the number of sample images of the image format that can be processed by the electronic device in a unit duration, and the calculation result may be used as a test sub-result. However, since the value of the calculation result may be small, and the calculation result is directly used as the test sub-result, the difference between the test sub-results of different electronic devices may be small, and it is difficult to reflect the difference between the image processing performances of different electronic devices, so that in order to intuitively represent the image processing performance of the electronic devices, the calculation result may be multiplied by a second preset coefficient to be used as the test result.
Specifically, since the calculation result is multiplied by the second preset coefficient only to increase the size of the calculation result, the size ratio relationship between the calculation results corresponding to different image formats cannot be changed, and thus the second preset coefficient is the same for different image formats. For example, the second preset coefficient may be 100, 1000, or the like.
S104B: and determining the test result of the image processing performance of the electronic equipment according to each test sub-result.
Specifically, the statistical results such as the sum, the weighted sum, the average, and the weighted average of the respective test sub-results may be used as the test results of the image processing performance.
In addition, the test result of the image processing performance of the electronic device can also be determined according to the following formula:
Figure BDA0002920952420000131
wherein G isnFor the above test results, i is the index of the image format, n represents the total number of image formats, fiWeight, x, corresponding to the ith image formatiAnd testing the sub-result corresponding to the ith image format.
In particular, the test result calculated according to the above formula may be referred to as a weighted geometric mean of the test sub-results.
As can be seen from the above, because the sample images in different image formats include different information, and the same electronic device performs different image processing performances on the sample images in different image formats, when the sample images include images in different image formats, the test sub-results of the electronic device performing image processing on the sample images in different image formats are respectively calculated, and then the test results are obtained according to the test sub-results, so that the calculated test results can reflect the image processing performances of the electronic device performing image processing on the sample images in different image formats, and the determined image processing performances are more accurate.
Referring to fig. 3, a flowchart of a third method for testing image processing performance is provided in the embodiment of the present invention, and in the case that the number of the sample images is greater than 1, compared with the embodiment shown in fig. 1, the step S102 may be implemented in the following manner.
Each sample image is processed as per the following steps S102C-S102D.
S102C: and under the condition that the accumulated time length for carrying out the image processing on the sample image is less than the preset time length, judging whether a second accumulated sub-time length for carrying out the image processing on the sample image is less than a second preset sub-time length.
And the sum of the second preset sub-time lengths corresponding to the sample images is equal to the preset time length.
Specifically, the second preset sub-durations corresponding to different sample images may be the same or different, and since the sum of the second preset sub-durations corresponding to different sample images is equal to the preset duration, the total accumulated duration of the image processing on the sample images is greater than or equal to the preset duration under the condition that the second accumulated sub-duration of the image processing on each sample image is not less than the second preset sub-duration.
In addition, the image formats of different sample images may be the same, that is, there is one image format of the sample images, and the number of the sample images in the image format is multiple. The image formats of different sample images may be different, that is, there are multiple different image formats for the sample images, and the number of the sample images in each image format may be one or multiple.
If the second accumulated sub-duration is less than the second preset sub-duration, the duration of image processing on the sample image has not reached the second preset sub-duration, and image processing needs to be continued on the sample image, and step S102D is executed.
And under the condition that the second accumulated sub-time length is not less than the second preset sub-time length, the time length for carrying out the image processing on the sample image reaches the second preset sub-time length, the sample image does not need to be continuously subjected to the image processing, and the step S101 is returned to, and other sample images are processed.
In an embodiment of the present invention, image processing may be preferentially performed on one sample image, and when the second accumulated sub-time length for performing image processing on the sample image is not less than the second preset sub-time length, image processing may be performed on the next sample image. In the process of performing the image processing performance test, the second accumulated sub-durations of only one sample image need to be respectively timed.
The image processing may also be performed on each sample image in a sequential and cyclic manner, that is, when the second accumulated sub-time length for performing the image processing on one sample image is less than the second preset sub-time length, the image processing on the next sample image is started, and after the image processing on each sample image is completed once, the next round of image processing on each sample image is started again. The second accumulated sub-durations for the respective sample images need to be clocked simultaneously.
S102D: it is determined whether the current processing result of the sample image is the same as the historical processing result of the sample image.
In an embodiment of the present invention, if the current processing result of the sample image is the same as the historical processing result, it indicates that the electronic device may directly read the historical processing result of the previously generated sample image, and as the current processing result obtained by the current image processing, the electronic device does not actually perform image processing on the sample image, which may affect the accuracy of the test result of the image processing performance.
When the current processing result of the sample image is different from the historical processing result, it is considered that the electronic device normally performs the image processing on the sample image until now, and the accuracy of the test result of the image processing performance is not affected, so that the flow of the image processing performance test can be continued.
In addition, under the condition that the second accumulated time length for carrying out image processing on each sample image is not less than the second preset time length, the sum of the second accumulated sub-time lengths of each sample image is the accumulated time length, and the sum of the second accumulated sub-times for carrying out image processing on each sample image is the accumulated times.
As can be seen from the above, in the embodiment provided by the present invention, a plurality of sample images are provided for testing the image processing performance of the electronic device, and because the image complexity of different sample images is often different, the time required for the electronic device to perform image processing on different images is different. The test of the image processing performance by adopting a plurality of sample images can enable the test result obtained by the test to reflect the image processing performance of the electronic equipment for processing the sample images with different image complexity, so that the determined image processing performance is more accurate.
Referring to fig. 4, a flowchart of a fourth method for testing image processing performance according to an embodiment of the present invention further includes the following step S105 before the step S101, compared to the embodiment shown in fig. 1.
S105: and reading the sample image into the memory in a binary stream mode.
Specifically, in the process of image processing of the sample image by the electronic device, the sample image is read from the memory for image processing.
The binary stream includes binary numbers representing different sample images, and the binary numbers corresponding to the same sample image are adjacent to each other in the binary stream. Different pixel points in the sample image correspond to different binary numbers.
Compared to the aforementioned embodiment shown in fig. 1, the above step S103 can be implemented by the following step S103A.
S103A: and adjusting the value of the binary digit used for expressing the target pixel point in the binary digit stream corresponding to the sample image.
Specifically, since the binary stream only includes two numbers, i.e., 1 and 0, the value of the binary digit used for representing the target pixel point can be adjusted from 1 to 0, or from 0 to 1, so as to adjust the value of the binary digit used for representing the target pixel point.
In an embodiment of the present invention, each binary digit used for representing the target pixel point may be adjusted, and values of a part of binary digits used for representing the target pixel point may also be randomly adjusted.
As can be seen from the above, since the sample image is read into the memory in the form of a binary stream before the sample image is subjected to image processing, the electronic device can directly obtain the sample image from the memory for image processing when the sample image needs to be subjected to image processing. Therefore, the counted accumulated time for processing the sample image does not include the time required for reading the sample image into the memory, so that the accuracy of the counted accumulated time is improved, and the accuracy of the image processing performance determined according to the accumulated time is improved.
Corresponding to the foregoing method for testing processor performance, referring to fig. 5, an embodiment of the present invention further provides a schematic structural diagram of a first apparatus for testing image processing performance, where the apparatus includes:
the image processing module 501 is configured to perform image processing on the sample image to obtain a current processing result;
a pixel value adjusting module 502, configured to determine whether a current processing result of the sample image is the same as a historical processing result of the sample image when an accumulated time for performing image processing on the sample image is less than a preset time, and if the current processing result is different from the historical processing result of the sample image, adjust a pixel value of a target pixel point in the sample image to obtain a new sample image, and return to the image processing module 501;
a result obtaining module 503, configured to obtain a test result of the image processing performance of the electronic device according to the cumulative duration and the cumulative number of times of image processing performed on the sample image, when the cumulative duration of image processing performed on the sample image is not less than a preset duration.
As can be seen from the above, since each pair of sample images is subjected to image processing, the pixel values of the target pixel points in the sample images are subjected to primary transformation, so as to generate new sample images. Therefore, the sample images are different in each image processing process of the electronic device, and therefore if the electronic device normally performs image processing on the sample images, the current processing results obtained in each image processing process are different. Therefore, if it can be determined that the current processing result of the sample image is different from the historical processing result, it can be considered that the electronic device normally performs image processing in the process of testing the image processing performance of the electronic device. Otherwise, it may be considered that the electronic device directly reads the processing result generated earlier as the processing result generated later, and does not substantially perform image processing, and the test result of testing the image processing is invalid. Therefore, the scheme provided by the embodiment of the invention can improve the accuracy of the test result. In addition, the new sample image is obtained by adjusting the pixel value of the target pixel point in the original sample image, so that a plurality of different new sample images can be obtained on the basis of one sample image under the condition of not increasing the occupied space of the sample image, and the electronic equipment can be subjected to image processing performance test, thereby saving the storage space of the electronic equipment.
Referring to fig. 6, a schematic structural diagram of a second image processing performance testing apparatus according to an embodiment of the present invention is provided, where when images in multiple image formats exist in the sample image, compared with the embodiment shown in fig. 5, the pixel value adjusting module 502 includes:
the sample image of each image format is processed by the following image processing submodule 502A;
the image processing sub-module 502A is specifically configured to:
judging whether a first accumulated sub-time length for carrying out image processing on a sample image in an image format is less than a first preset sub-time length or not, wherein the sum of the first preset sub-time lengths corresponding to all the image formats is equal to the preset time length;
if the current processing result of the sample image in the image format is smaller than the historical processing result of the sample image in the image format, determining whether the current processing result of the sample image in the image format is the same as the historical processing result of the sample image in the image format, if the current processing result of the sample image in the image format is different from the historical processing result of the sample image in the image format, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and;
if not, returning to execute the image processing module 501 to process sample images in other image formats;
the result obtaining module 503 includes:
the sub-result determining sub-module 503A is configured to determine, for each image format, a sub-result of testing the image processing sub-performance of the image processing performed on the image in the image format by the electronic device according to a first accumulated sub-time and a first accumulated sub-time for performing the image processing on the sample image in the image format under the condition that the accumulated time for performing the image processing on the sample image is not less than a preset time;
the result determining sub-module 503B is configured to determine a test result of the image processing performance of the electronic device according to each test sub-result.
As can be seen from the above, because the sample images in different image formats include different information, and the same electronic device performs different image processing performances on the sample images in different image formats, when the sample images include images in different image formats, the test sub-results of the electronic device performing image processing on the sample images in different image formats are respectively calculated, and then the test results are obtained according to the test sub-results, so that the calculated test results can reflect the image processing performances of the electronic device performing image processing on the sample images in different image formats, and the determined image processing performances are more accurate.
In an embodiment of the present invention, the result determining sub-module 503B is specifically configured to:
determining a test result of the image processing performance of the electronic equipment according to the following formula:
Figure BDA0002920952420000181
wherein G isnFor the test results, i is the index of the image format, n denotes the total number of image formats, fiWeight, x, corresponding to the ith image formatiAnd testing the sub-result corresponding to the ith image format.
In an embodiment of the present invention, when the number of the sample images is greater than 1, the pixel value adjusting module 502 is specifically configured to:
each sample image is processed as follows:
judging whether a second accumulated sub-time length for carrying out image processing on the sample images is less than a second preset sub-time length or not, wherein the sum of the second preset sub-time lengths corresponding to the sample images is equal to the preset time length;
if the current processing result of the sample image is smaller than the historical processing result of the sample image, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if the current processing result of the sample image is not the same as the historical processing result of the sample image, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the image processing module;
if not, the image processing module 501 is returned to be executed to process other sample images.
As can be seen from the above, in the embodiment provided by the present invention, a plurality of sample images are provided for testing the image processing performance of the electronic device, and because the image complexity of different sample images is often different, the time required for the electronic device to perform image processing on different images is different. The test of the image processing performance by adopting a plurality of sample images can enable the test result obtained by the test to reflect the image processing performance of the electronic equipment for processing the sample images with different image complexity, so that the determined image processing performance is more accurate.
In an embodiment of the present invention, the apparatus further includes:
the image reading module is used for reading the sample image into the memory in a binary stream mode;
the pixel value adjusting module 502 is specifically configured to:
and under the condition that the accumulated time for performing image processing on the sample image is less than the preset time, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if so, adjusting the value of the binary bit used for representing the target pixel point in the binary stream corresponding to the sample image, and returning to execute the image processing module 501.
In one embodiment of the present invention, the image processing is: image decoding or image encoding.
As can be seen from the above, since the sample image is read into the memory in the form of a binary stream before the sample image is subjected to image processing, the electronic device can directly obtain the sample image from the memory for image processing when the sample image needs to be subjected to image processing. Therefore, the counted accumulated time for processing the sample image does not include the time required for reading the sample image into the memory, so that the accuracy of the counted accumulated time is improved, and the accuracy of the image processing performance determined according to the accumulated time is improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement any of the method steps of the image processing performance testing method described above when executing the program stored in the memory 703.
When the electronic equipment provided by the embodiment of the invention is applied to testing the image processing performance, because each pair of sample images is subjected to image processing once, the pixel values of target pixel points in the sample images are subjected to one-time conversion, and a new sample image is generated. Therefore, the sample images are different in each image processing process of the electronic device, and therefore if the electronic device normally performs image processing on the sample images, the current processing results obtained in each image processing process are different. Therefore, if it can be determined that the current processing result of the sample image is different from the historical processing result, it can be considered that the electronic device normally performs image processing in the process of testing the image processing performance of the electronic device. Otherwise, it may be considered that the electronic device directly reads the processing result generated earlier as the processing result generated later, and does not substantially perform image processing, and the test result of testing the image processing is invalid. Therefore, the scheme provided by the embodiment of the invention can improve the accuracy of the test result. In addition, the new sample image is obtained by adjusting the pixel value of the target pixel point in the original sample image, so that a plurality of different new sample images can be obtained on the basis of one sample image under the condition of not increasing the occupied space of the sample image, and the electronic equipment can be subjected to image processing performance test, thereby saving the storage space of the electronic equipment.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, which, when being executed by a processor, implements the method steps of any of the above-mentioned image processing performance testing methods.
When the computer program stored in the computer-readable storage medium provided in this embodiment is used to test the image processing performance, since each pair of sample images is subjected to image processing once, the pixel values of the target pixel points in the sample images are subjected to a conversion once, so as to generate new sample images. Therefore, the sample images are different in each image processing process of the electronic device, and therefore if the electronic device normally performs image processing on the sample images, the current processing results obtained in each image processing process are different. Therefore, if it can be determined that the current processing result of the sample image is different from the historical processing result, it can be considered that the electronic device normally performs image processing in the process of testing the image processing performance of the electronic device. Otherwise, it may be considered that the electronic device directly reads the processing result generated earlier as the processing result generated later, and does not substantially perform image processing, and the test result of testing the image processing is invalid. Therefore, the scheme provided by the embodiment of the invention can improve the accuracy of the test result. In addition, the new sample image is obtained by adjusting the pixel value of the target pixel point in the original sample image, so that a plurality of different new sample images can be obtained on the basis of one sample image under the condition of not increasing the occupied space of the sample image, and the electronic equipment can be subjected to image processing performance test, thereby saving the storage space of the electronic equipment.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method steps of any of the above-described image processing performance testing methods.
When the computer program product provided by this embodiment is executed to test the image processing performance, since each pair of sample images is subjected to image processing once, the pixel values of the target pixel points in the sample images are transformed once, and a new sample image is generated. Therefore, the sample images are different in each image processing process of the electronic device, and therefore if the electronic device normally performs image processing on the sample images, the current processing results obtained in each image processing process are different. Therefore, if it can be determined that the current processing result of the sample image is different from the historical processing result, it can be considered that the electronic device normally performs image processing in the process of testing the image processing performance of the electronic device. Otherwise, it may be considered that the electronic device directly reads the processing result generated earlier as the processing result generated later, and does not substantially perform image processing, and the test result of testing the image processing is invalid. Therefore, the scheme provided by the embodiment of the invention can improve the accuracy of the test result. In addition, the new sample image is obtained by adjusting the pixel value of the target pixel point in the original sample image, so that a plurality of different new sample images can be obtained on the basis of one sample image under the condition of not increasing the occupied space of the sample image, and the electronic equipment can be subjected to image processing performance test, thereby saving the storage space of the electronic equipment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device, the computer-readable storage medium and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to them, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. An image processing performance testing method, characterized in that the method comprises:
carrying out image processing on the sample image to obtain a current processing result;
under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image, if so, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the step of carrying out image processing on the sample image;
and under the condition that the accumulated time for carrying out image processing on the sample image is not less than the preset time, obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times for carrying out image processing on the sample image.
2. The method according to claim 1, wherein when there are images of a plurality of image formats in the sample image, the determining whether the processing result of the sample image is the same as a historical processing result in the case that an accumulated time length for image processing on the sample image is less than a preset time length comprises:
the sample image for each image format is processed as follows:
judging whether a first accumulated sub-time length for carrying out image processing on a sample image in an image format is less than a first preset sub-time length or not, wherein the sum of the first preset sub-time lengths corresponding to all the image formats is equal to the preset time length;
if so, determining whether the current processing result of the sample image in the image format is the same as the historical processing result of the sample image in the image format;
if not, returning to the step of processing the sample image, and processing the sample images in other image formats;
the obtaining of the test result of the image processing performance of the electronic device according to the accumulated time and the accumulated times of the image processing of the sample image includes:
for each image format, determining a test sub-result of the image processing sub-performance of the image processing on the image in the image format by the electronic equipment according to the first accumulated sub-duration and the first accumulated sub-times of the image processing on the sample image in the image format;
and determining the test result of the image processing performance of the electronic equipment according to each test sub-result.
3. The method of claim 2, wherein determining the test result of the image processing performance of the electronic device according to the respective test sub-results comprises:
determining a test result of the image processing performance of the electronic equipment according to the following formula:
Figure FDA0002920952410000021
wherein G isnFor the test results, i is the index of the image format, n denotes the total number of image formats, fiWeight, x, corresponding to the ith image formatiAnd testing the sub-result corresponding to the ith image format.
4. The method according to claim 1, wherein in the case that the number of the sample images is greater than 1, the determining whether the processing result of the sample image is the same as the historical processing result of the sample image in the case that the accumulated time length for image processing on the sample image is less than a preset time length comprises:
each sample image is processed as follows:
judging whether a second accumulated sub-time length for carrying out image processing on the sample images is less than a second preset sub-time length or not, wherein the sum of the second preset sub-time lengths corresponding to the sample images is equal to the preset time length;
if so, determining whether the current processing result of the sample image is the same as the historical processing result of the sample image;
and if not, returning to the step of processing the sample image, and processing other sample images.
5. The method of claim 1, wherein before the image processing the sample image to obtain the processing result, further comprising:
reading the sample image into an internal memory in a binary stream mode;
the adjusting the pixel value of the target pixel point in the sample image includes:
and adjusting the value of the binary digit used for expressing the target pixel point in the binary digit stream corresponding to the sample image.
6. The method according to any of claims 1-5, wherein the image processing is: image decoding or image encoding.
7. An image processing performance testing apparatus, characterized in that the apparatus comprises:
the image processing module is used for carrying out image processing on the sample image to obtain a current processing result;
the pixel value adjusting module is used for determining whether the current processing result of the sample image is the same as the historical processing result of the sample image or not under the condition that the accumulated time for carrying out image processing on the sample image is less than the preset time, if so, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image, and returning to the image processing module;
and the result obtaining module is used for obtaining a test result of the image processing performance of the electronic equipment according to the accumulated time and the accumulated times of image processing on the sample image under the condition that the accumulated time of image processing on the sample image is not less than the preset time.
8. The apparatus of claim 7, wherein the pixel value adjustment module, when there are images of multiple image formats in the sample image, comprises:
processing the sample image of each image format through the following image processing sub-modules;
the image processing sub-module is specifically configured to:
judging whether a first accumulated sub-time length for carrying out image processing on a sample image in an image format is less than a first preset sub-time length or not, wherein the sum of the first preset sub-time lengths corresponding to all the image formats is equal to the preset time length;
if the current processing result of the sample image in the image format is smaller than the historical processing result of the sample image in the image format, determining whether the current processing result of the sample image in the image format is the same as the historical processing result of the sample image in the image format, if the current processing result of the sample image in the image format is different from the historical processing result of the sample image in the image format, adjusting the pixel value of a target pixel point in the sample image to obtain a new sample image;
if not, returning to execute the image processing module to process the sample images in other image formats;
the result obtaining module comprises:
the sub-result determining sub-module is used for determining a test sub-result of the image processing sub-performance of the image processing of the image in the image format by the electronic equipment according to the first accumulated sub-time and the first accumulated sub-times of the image processing of the sample image in the image format aiming at each image format under the condition that the accumulated time for the image processing of the sample image is not less than the preset time;
and the result determining submodule is used for determining the test result of the image processing performance of the electronic equipment according to each test sub-result.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202110117696.6A 2021-01-28 2021-01-28 Image processing performance testing method and device Active CN112954306B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110117696.6A CN112954306B (en) 2021-01-28 2021-01-28 Image processing performance testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110117696.6A CN112954306B (en) 2021-01-28 2021-01-28 Image processing performance testing method and device

Publications (2)

Publication Number Publication Date
CN112954306A true CN112954306A (en) 2021-06-11
CN112954306B CN112954306B (en) 2022-10-25

Family

ID=76238629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110117696.6A Active CN112954306B (en) 2021-01-28 2021-01-28 Image processing performance testing method and device

Country Status (1)

Country Link
CN (1) CN112954306B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000306093A (en) * 1999-04-16 2000-11-02 Tokyo Denki Gijutsu Kogyo Kk Method and device for examining appearance
KR20090040515A (en) * 2007-10-22 2009-04-27 삼성전자주식회사 Apparatus and method for image space based shadowing with adaptive traversal scheme
US20160314064A1 (en) * 2015-04-21 2016-10-27 Cloudy Days Inc. Dba Nouvola Systems and methods to identify and classify performance bottlenecks in cloud based applications
CN109446095A (en) * 2018-11-07 2019-03-08 北京奇艺世纪科技有限公司 A kind of test method, device and the electronic equipment of page presentation speed
CN109492523A (en) * 2018-09-17 2019-03-19 深圳壹账通智能科技有限公司 Face identification system performance test methods, device, equipment and storage medium
US20190147225A1 (en) * 2016-05-19 2019-05-16 Visiana Aps Image processing apparatus and method
CN111611144A (en) * 2020-05-27 2020-09-01 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for processing performance test data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000306093A (en) * 1999-04-16 2000-11-02 Tokyo Denki Gijutsu Kogyo Kk Method and device for examining appearance
KR20090040515A (en) * 2007-10-22 2009-04-27 삼성전자주식회사 Apparatus and method for image space based shadowing with adaptive traversal scheme
US20160314064A1 (en) * 2015-04-21 2016-10-27 Cloudy Days Inc. Dba Nouvola Systems and methods to identify and classify performance bottlenecks in cloud based applications
US20190147225A1 (en) * 2016-05-19 2019-05-16 Visiana Aps Image processing apparatus and method
CN109492523A (en) * 2018-09-17 2019-03-19 深圳壹账通智能科技有限公司 Face identification system performance test methods, device, equipment and storage medium
CN109446095A (en) * 2018-11-07 2019-03-08 北京奇艺世纪科技有限公司 A kind of test method, device and the electronic equipment of page presentation speed
CN111611144A (en) * 2020-05-27 2020-09-01 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for processing performance test data

Also Published As

Publication number Publication date
CN112954306B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN110544214A (en) Image restoration method and device and electronic equipment
CN112765402A (en) Sensitive information identification method, device, equipment and storage medium
JP2011192103A (en) Evaluation device, method, and program
CN114511358A (en) Engineering construction material price estimation method, engineering construction material price estimation device, electronic equipment and storage medium
CN112954306B (en) Image processing performance testing method and device
CN111079061A (en) Data processing method and electronic equipment
CN113505765B (en) Age prediction method and device based on user head portrait and electronic equipment
CN113434436B (en) Test case generation method and device, electronic equipment and storage medium
CN111582456B (en) Method, apparatus, device and medium for generating network model information
CN113157987A (en) Data preprocessing method for machine learning algorithm and related equipment
CN113794906A (en) Video recommendation method and device and cloud video server
CN113139563A (en) Optimization method and device of image classification model
CN112434717A (en) Model training method and device
CN113766333B (en) Method and device for determining video heat value, electronic equipment and storage medium
CN114266300B (en) Feature prediction model training method and device and core network service anomaly detection method and device
CN116611497B (en) Click rate estimation model training method and device
CN114648646B (en) Image classification method and device
CN115482422B (en) Training method of deep learning model, image processing method and device
CN116361154A (en) Test sample generation method, electronic equipment and storage medium
CN112381408B (en) Quality inspection method and device and electronic equipment
CN112329925B (en) Model generation method, feature extraction method, device and electronic equipment
CN111352825B (en) Data interface testing method and device and server
CN113033919A (en) Method and device for determining occurrence probability of target event
CN116932908A (en) Product recommendation model training method, product recommendation method, device and storage medium
CN115103200A (en) Feature map compression method and device applied to DMA (direct memory access) and electronic equipment

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