CN112559341A - Picture testing method, device, equipment and storage medium - Google Patents
Picture testing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112559341A CN112559341A CN202011448262.6A CN202011448262A CN112559341A CN 112559341 A CN112559341 A CN 112559341A CN 202011448262 A CN202011448262 A CN 202011448262A CN 112559341 A CN112559341 A CN 112559341A
- Authority
- CN
- China
- Prior art keywords
- test
- picture
- image
- picture image
- application program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 329
- 238000000034 method Methods 0.000 claims abstract description 52
- 230000008569 process Effects 0.000 claims abstract description 34
- 239000013598 vector Substances 0.000 claims description 24
- 238000013142 basic testing Methods 0.000 claims description 9
- 238000013507 mapping Methods 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 7
- 238000010998 test method Methods 0.000 claims description 3
- 238000012937 correction Methods 0.000 abstract description 6
- 230000007547 defect Effects 0.000 abstract description 6
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 11
- 230000003287 optical effect Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 210000001525 retina Anatomy 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The embodiment of the invention discloses a picture testing method, a device, equipment and a storage medium. The method comprises the following steps: acquiring at least one test picture image displayed by an application program in a test process; carrying out similarity matching on the standard picture images respectively corresponding to the test picture images and the test picture images to obtain matching results; and generating a picture test report corresponding to the application program based on the matching result, and outputting the picture test report. According to the embodiment of the invention, the similarity matching is carried out on the test picture image displayed in the test process and the standard picture image, and the picture test report is generated based on the matching result, so that the problem that the traditional automatic test system does not have the picture abnormity test function is solved, and the test data about the displayed picture is obtained after the automatic test is finished, thereby being beneficial to guiding the subsequent correction work and reducing the probability of picture defects after the application program is put into use.
Description
Technical Field
The embodiment of the invention relates to the technical field of game testing, in particular to a picture testing method, a device, equipment and a storage medium.
Background
The traditional automatic test system is based on a code interface and an intrusive design, the actual returned result obtained by the test of the automatic test system is a returned value generated by an application program, and a user of the application program only cares about an output result after input operation.
In the actual testing process of the conventional automatic testing system, the result that the automatic return value is correct often appears, and the conclusion that the program runs normally is obtained, but the display picture seen by the user at the output end has obvious defects or errors, such as missing or undisplayed objects in the display picture, and the like. Therefore, the conventional automatic test system has the problem that the abnormal picture display of the application program in the running process cannot be accurately tested.
Disclosure of Invention
The embodiment of the invention provides a picture testing method, a picture testing device, picture testing equipment and a storage medium, which are used for solving the problem that a traditional automatic testing system does not have a picture abnormity testing function and reducing the probability of picture determination after an application program is put into use.
In a first aspect, an embodiment of the present invention provides a picture testing method, where the method includes:
acquiring at least one test picture image displayed by an application program in a test process;
carrying out similarity matching on the standard picture images respectively corresponding to the test picture images and the test picture images to obtain matching results;
and generating a picture test report corresponding to the application program based on the matching result, and outputting the picture test report.
In a second aspect, an embodiment of the present invention further provides an image testing apparatus, where the apparatus includes:
the test picture image acquisition module is used for acquiring at least one test picture image displayed by the application program in the test process;
the similarity matching module is used for performing similarity matching on the standard picture images respectively corresponding to the test picture images and the test picture images to obtain matching results;
and the picture test report generating module is used for generating a picture test report corresponding to the application program based on the matching result and outputting the picture test report.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the screen testing methods referred to above.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform any one of the above-mentioned screen testing methods.
According to the embodiment of the invention, the similarity matching is carried out on the test picture image displayed in the test process and the standard picture image, and the picture test report is generated based on the matching result, so that the problem that the traditional automatic test system does not have the picture abnormity test function is solved, and the test data about the displayed picture is obtained after the automatic test is finished, thereby being beneficial to guiding the subsequent correction work and reducing the probability of picture defects after the application program is put into use.
Drawings
Fig. 1 is a flowchart of a picture testing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a picture testing method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a specific example of a screen testing method according to a second embodiment of the present invention.
Fig. 4 is a schematic diagram of a screen testing apparatus according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a picture testing method according to an embodiment of the present invention, where the present embodiment is applicable to a case of testing a display picture in an application testing process, and the method may be executed by a picture testing apparatus, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a terminal device. The method specifically comprises the following steps:
and S110, acquiring at least one test picture image displayed by the application program in the test process.
An application is a computer program that may be used to perform one or more specific tasks, with a visual user interface for interaction with a user. The application program is not limited herein. In one embodiment, the application program is optionally game software.
Specifically, in the process of testing the application program based on the traditional test system, a test picture image displayed by the application program in the test process is acquired. In an embodiment, optionally, acquiring at least one test screen image displayed by the application program during the test process includes: in the testing process of the application program, at least one test picture image displayed by the application program and collected by the shooting equipment is obtained. In an exemplary embodiment, when an application program runs in a terminal device for testing, a shooting device is aligned to a display screen of the terminal device to acquire a test picture image. The terminal device may be a mobile terminal, a computer or a game machine, for example, and the specific terminal device for testing the application program is not limited herein.
In another embodiment, optionally, the acquiring at least one test screen image displayed by the application program in the test process includes: in the testing process of the application program, a recorded video of a test picture displayed by the application program generated by the shooting equipment is obtained, and at least one test picture image is determined based on the recorded video. Specifically, the shooting device is a video shooting device, and the shooting device generates a recorded video based on a test picture displayed by an application picture.
In one embodiment, optionally, determining at least one test picture image based on the recorded video comprises: and taking each video frame in the recorded video as a test picture image.
In another embodiment, optionally, determining at least one test picture image based on the recorded video comprises: and acquiring a test picture image in the recorded video based on a preset acquisition frequency. In an exemplary embodiment, the preset capture frequency is every other video frame, and when the recorded video includes video frame 1, video frame 2, video frame 3, video frame 4, and video frame 5, video frame 1, video frame 3, and video frame 5 are used as the test picture image.
In another embodiment, optionally, determining at least one test picture image based on the recorded video comprises: and acquiring a test picture image corresponding to a preset time period in the recorded video. Specifically, the preset time period may be one or more. Illustratively, the preset time periods include 0 second to 5 seconds and 10 seconds to 20 seconds, and then video frames within 0 seconds to 5 seconds and video frames within 10 seconds to 20 seconds in the recorded video are taken as the test picture images.
Of course, besides the above selection manners, the embodiments of the present invention may also protect any other feasible selection manners, and the specific selection manner of the test picture image is not limited in the present embodiment.
In one embodiment, optionally, a white balance card is disposed in the test environment where the shooting device is located. The white balance is an index describing the accuracy of white color generated by mixing three primary colors of red, green and blue in the shooting equipment. The test picture image collected by the shooting equipment is easy to have color cast under the influence of the light source, and the white balance card is arranged in the test environment to calibrate the color cast caused by the light source, so that the color difference between the collected test picture image and a real display picture is reduced, and the accuracy of the result of the subsequent step is improved.
And S120, performing similarity matching on the standard picture images respectively corresponding to the test picture images and the test picture images to obtain matching results.
Specifically, the standard screen image is an image for similarity matching, which is preset and corresponds to each test screen image.
In one embodiment, the optional similarity matching method includes, but is not limited to, a perceptual hash algorithm, a convolutional neural network model, a scale invariant feature transformation algorithm, a euclidean distance-based similarity matching algorithm, a manhattan distance-based similarity matching algorithm, a hamming distance-based similarity matching algorithm, or a pearson correlation coefficient-based similarity matching algorithm.
And S130, generating a picture test report corresponding to the application program based on the matching result, and outputting the picture test report.
Specifically, a preset matching degree threshold value is preset, and the matching result includes a comparison result of the matching degree between the test picture image and the standard picture image, which is obtained based on the similarity matching algorithm, and the preset matching degree threshold value. Illustratively, if the matching degree is greater than or equal to a preset matching degree threshold, a picture test report of the qualified test information corresponding to the test picture image is generated, and if the matching degree is less than the preset matching degree threshold, a picture test report of the unqualified test information corresponding to the test picture image is generated.
On the basis of the foregoing embodiment, optionally, after generating a screen test report corresponding to the application program based on the matching result, the method further includes: intercepting the recorded video to obtain a target picture image according to the unqualified test information in the picture test report; the test failure information is used for representing the test information of the test picture image which is failed in the test; generating a target test report based on the target picture image, the picture test report and the basic test report; wherein the basic test report is generated based on program feedback data generated by the application program in the test process.
Specifically, based on the unqualified test information, the unqualified test picture image in the recorded video is captured to obtain the target picture image. Illustratively, the recorded video includes a test picture image 1, a test picture image 2, a test picture image 3, a test picture image 4, and a test picture image 5, wherein the test failure information includes information on failure states of the test picture image 4 and the test picture image 5, and the test picture image 4 and the test picture image 5 are respectively used as target picture images.
In an exemplary embodiment, an application test is tested based on a conventional test system, and a basic test report is generated based on program feedback data generated by an application program in the test process. Specifically, a target test report including a target screen image, a screen test report, and a basic test report is output, so that a developer performs subsequent correction work on an application program based on the target test report.
According to the technical scheme, the similarity matching is carried out on the test picture image displayed in the test process and the standard picture image, and the picture test report is generated based on the matching result, so that the problem that a traditional automatic test system does not have a picture abnormity test function is solved, test data about the displayed picture is obtained after the automatic test is finished, and therefore subsequent correction work can be guided, and the probability of picture defects after an application program is put into use is reduced.
Example two
Fig. 2 is a flowchart of a picture testing method provided in the second embodiment of the present invention, and the technical solution of the present embodiment is further detailed based on the above-mentioned embodiments. Optionally, the performing similarity matching between the standard picture image corresponding to each of the test picture images and each of the test picture images to obtain a matching result includes: respectively extracting the features of the test picture image and the standard picture image based on a scale-invariant feature transformation algorithm aiming at each test picture image to obtain a test feature vector corresponding to the test picture image and a standard feature vector corresponding to the standard picture image; and performing similarity matching on the test picture image and the standard picture image based on the test feature vector and the standard feature vector to obtain a matching result.
The specific implementation steps of this embodiment include:
s210, at least one test picture image displayed by the application program in the test process is acquired.
S220, respectively extracting the features of the test picture image and the standard picture image based on a scale invariant feature transformation algorithm aiming at each test picture image to obtain a test feature vector corresponding to the test picture image and a standard feature vector corresponding to the standard picture image.
The Scale-Invariant Feature Transform (SIFT) is an algorithm based on computer vision, and is used for detecting and describing local features in an image. The SIFT algorithm is characterized in that: the image local feature description operator extracted by the SIFT algorithm keeps invariance to rotation, scale scaling and brightness change, and also keeps certain stability to view angle change, affine transformation and noise; the uniqueness is high, the SIFT algorithm is rich in information quantity, and the method is suitable for quick and accurate matching in a massive feature database; the multiplicity, even if the image contains few objects, can generate a large number of SIFT feature vectors; high speed, the optimized SIFT matching algorithm can even meet the real-time requirement; and the expandability can be conveniently combined with the feature vectors in other forms.
Specifically, the specific steps of extracting the features of the SIFT algorithm to obtain the feature vector mainly include: detecting extreme points in a multi-scale space, accurately positioning key points, calculating the main direction of the key points and constructing a descriptor. The extreme point detection method comprises the steps that a plurality of scale space extreme points are detected, specifically, scales are used for accurately describing the size of an object, the same object is observed at different distances and has different sizes, the natural scales are different, and the scale space can simulate the change process of imaging of a target on a retina when the distance from the target to the target is from near to far. And constructing a plurality of scale spaces, wherein in different scale spaces, the blurring degree of the image is increased along with the increase of the scale, and carrying out extreme point detection in the scale spaces. Specifically, the extreme point is a point that does not disappear due to a change in illumination, and the corner point, the edge point, the bright point in the dark area, and the dark point in the bright area are all points that meet the requirement of the extreme point. Specifically, after extreme points are obtained based on Difference of Gaussian (DoG) operation, because a DoG operator generates a strong edge response, curve fitting needs to be performed on a DoG function in order to enhance matching stability and improve anti-noise capability, so as to accurately determine the positions and dimensions of the key points, and simultaneously remove low-contrast key points and unstable edge responses. Specifically, in order to prevent the key points from changing with the rotation of the image, a direction parameter needs to be specified for each key point, that is, a reference direction is assigned to each key point. Specifically, the position, scale and direction information of each key point is obtained through the steps and corresponds to the inconvenience of translation, scaling and rotation, but the key points exist independently at the moment, the relationship between the key points and surrounding pixel points is not considered, the descriptor is built by selecting the key points and pixels in the neighborhood of the key points, and the key points are described by using a group of feature vectors.
And S230, carrying out similarity matching on the test picture image and the standard picture image based on the test feature vector and the standard feature vector to obtain a matching result.
Specifically, the test feature vector is a descriptor constructed based on the test picture image by adopting an SIFT algorithm, and the standard feature vector is a descriptor constructed based on the standard picture image by adopting the SIFT algorithm. In one embodiment, optionally, the degree of matching of the test picture image and the standard picture image is determined based on the euclidean distance between the test feature vector and the standard feature vector. Specifically, for any key point in the test picture image, the first two key points in the standard picture image, which are closest to the euclidean distance of the key point, are determined, and if the ratio of the closest euclidean distance to the next closest euclidean distance is smaller than a preset proportion threshold, the key point in the test picture image and the key point in the standard picture image, which is closest to the key point in the euclidean distance, are used together as a pair of matching points. Illustratively, the ratio between the logarithm of the matching points and the total number of keypoints in the test screen image is taken as the degree of matching between the test screen image and the standard screen image.
And S240, generating a picture test report corresponding to the application program based on the matching result, and outputting the picture test report.
In an embodiment, optionally, the standard screen image includes a first map image not including a purple block map and/or a second map image including a purple block map, and accordingly, based on the matching result, generating a screen test report corresponding to the application program includes: when the standard picture image comprises a first map image, if the matching result is that the matching degree between the test picture image and the first map image is smaller than a preset matching degree threshold value, generating a first picture test report containing test unqualified information corresponding to the test picture image; and/or when the standard picture image comprises a second mapping image, if the matching result is that the matching degree between the test picture image and the second mapping image is greater than or equal to a preset matching degree threshold value, generating a second picture test report containing the test failure information corresponding to the test picture image.
The purple block map can represent the display map in abnormal states such as damage or loss of the map in the game engine and the like, and is used for prompting that the map display is abnormal. Note that the purple block map is merely a map display abnormality, and the color, form, and the like of the display map in the abnormal state are not limited, and the display map in the abnormal state may be red, for example.
Fig. 3 is a flowchart of a specific example of a screen testing method according to a second embodiment of the present invention. As shown in fig. 3, starting a test, reading a preset standard picture image, starting a test device to test an application program, judging whether the test process is completed, if not, capturing a key frame in the recorded video as a test picture image, matching the similarity of the test picture image and the standard picture image by adopting an SIFT algorithm, and if so, respectively generating a first picture test report, a basic test report and a second picture test report. The first picture test report is a picture test report obtained by carrying out similarity matching on the basis of a first map image which does not contain the purple block map, and the second picture test report is a picture test report obtained by carrying out similarity matching on the basis of a second map image which contains the purple block map. And intercepting key frames, namely testing picture images, in the recorded video, wherein the key frames are lower than the matching degree threshold value based on the unqualified testing information in the first picture testing report. And intercepting a key frame containing the purple block mapping in the recorded video, namely a test picture image, based on the unqualified test information in the second picture test report, generating a target test report based on the key frame lower than the matching degree threshold, the key frame containing the purple block mapping and the basic test report, and ending the test.
According to the technical scheme of the embodiment, the similarity matching is carried out on the test picture image and the standard picture image based on the scale invariant feature transformation algorithm, so that the problem that the similarity matching algorithm is prone to interference is solved, the similarity matching process of the test picture image and the standard picture image is not affected by rotation, scaling and brightness change, the similarity matching accuracy is improved, and meanwhile, the operation of strictly controlling the environment and imaging parameters for ensuring the consistency of the test picture image and the standard picture image is avoided, so that the technical scheme simultaneously reduces the difficulty of similarity matching and improves the picture testing efficiency.
EXAMPLE III
Fig. 4 is a schematic diagram of a screen testing apparatus according to a third embodiment of the present invention. The embodiment can be applied to the case of testing the display screen in the application program testing process, the device can be realized in a software and/or hardware mode, and the device can be configured in the terminal equipment. The picture test device includes: a test screen image acquisition module 310, a similarity matching module 320, and a screen test report generation module 330.
The test picture image acquiring module 310 is configured to acquire at least one test picture image displayed by an application program in a test process;
the similarity matching module 320 is used for performing similarity matching on the standard picture images and the test picture images respectively corresponding to the test picture images to obtain matching results;
and the screen test report generating module 330 is configured to generate a screen test report corresponding to the application program based on the matching result, and output the screen test report.
According to the technical scheme, the similarity matching is carried out on the test picture image displayed in the test process and the standard picture image, and the picture test report is generated based on the matching result, so that the problem that a traditional automatic test system does not have a picture abnormity test function is solved, test data about the displayed picture is obtained after the automatic test is finished, and therefore subsequent correction work can be guided, and the probability of picture defects after an application program is put into use is reduced.
On the basis of the above technical solution, optionally, the similarity matching module 320 is specifically configured to:
respectively extracting the features of the test picture image and the standard picture image based on a scale-invariant feature transformation algorithm aiming at each test picture image to obtain a test feature vector corresponding to the test picture image and a standard feature vector corresponding to the standard picture image;
and performing similarity matching on the test picture image and the standard picture image based on the test feature vector and the standard feature vector to obtain a matching result.
On the basis of the above technical solution, optionally, the standard screen image includes a first map image not including the purple block map and/or a second map image including the purple block map, and the screen test report generating module 330 includes:
the first picture test report generating unit is used for generating a first picture test report containing test unqualified information corresponding to the test picture image if the matching result is that the matching degree between the test picture image and the first map image is smaller than a preset matching degree threshold value when the standard picture image comprises the first map image; and/or the presence of a gas in the gas,
and the second picture test report generating unit is used for generating a second picture test report containing the test unqualified information corresponding to the test picture image if the matching result is that the matching degree between the test picture image and the second mapping image is greater than or equal to a preset matching degree threshold value when the standard picture image comprises the second mapping image.
On the basis of the above technical solution, optionally, the test picture image obtaining module 310 includes:
and the recorded video acquisition unit is used for acquiring a recorded video of a test picture displayed by the application program generated by the shooting equipment in the test process of the application program and determining at least one test picture image based on the recorded video.
On the basis of the above technical solution, optionally, the apparatus further includes:
the target picture image determining module is used for intercepting the recorded video according to the unqualified test information in the picture test report to obtain a target picture image; the test failure information is used for representing the test information of the test picture image which is failed in the test;
the target test report generation module is used for generating a target test report based on the target picture image, the picture test report and the basic test report; wherein the basic test report is generated based on program feedback data generated by the application program in the test process.
On the basis of the above technical solution, optionally, the test picture image obtaining module 310 includes:
and the test picture image acquisition unit is used for acquiring at least one test picture image displayed by the application program and acquired by the shooting equipment in the test process of the application program.
On the basis of the technical scheme, optionally, a white balance card is arranged in the test environment where the shooting equipment is located.
The picture testing device provided by the embodiment of the invention can be used for executing the picture testing method provided by the embodiment of the invention, and has corresponding functions and beneficial effects of the executing method.
It should be noted that, in the embodiment of the screen test apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, where the embodiment of the present invention provides a service for implementing the screen test method according to the foregoing embodiment of the present invention, and the screen test apparatus according to the foregoing embodiment may be configured. FIG. 5 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 5, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a picture test method provided by an embodiment of the present invention, by running a program stored in the system memory 28.
By the electronic equipment, the problem that a traditional automatic test system does not have a picture abnormity test function is solved, test data about a display picture is obtained after the automatic test is finished, and therefore subsequent correction work is guided, and the probability of picture defects after an application program is put into use is reduced.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a picture testing method, and the method includes:
acquiring at least one test picture image displayed by an application program in a test process;
carrying out similarity matching on the standard picture images respectively corresponding to the test picture images and the test picture images to obtain matching results;
and generating a picture test report corresponding to the application program based on the matching result, and outputting the picture test report.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the screen testing method provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A picture test method is characterized by comprising the following steps:
acquiring at least one test picture image displayed by an application program in a test process;
carrying out similarity matching on the standard picture images respectively corresponding to the test picture images and the test picture images to obtain matching results;
and generating a picture test report corresponding to the application program based on the matching result, and outputting the picture test report.
2. The method according to claim 1, wherein the performing similarity matching between the standard picture image respectively corresponding to each of the test picture images and each of the test picture images to obtain a matching result comprises:
respectively extracting the features of the test picture image and the standard picture image based on a scale-invariant feature transformation algorithm aiming at each test picture image to obtain a test feature vector corresponding to the test picture image and a standard feature vector corresponding to the standard picture image;
and performing similarity matching on the test picture image and the standard picture image based on the test feature vector and the standard feature vector to obtain a matching result.
3. The method according to claim 1, wherein the standard screen image comprises a first map image containing no purple block map and/or a second map image containing a purple block map, and accordingly, the generating of the screen test report corresponding to the application program based on the matching result comprises:
when the standard picture image comprises the first map image, if the matching result is that the matching degree between the test picture image and the first map image is smaller than a preset matching degree threshold value, generating a first picture test report containing test failure information corresponding to the test picture image; and/or the presence of a gas in the gas,
and when the standard picture image comprises the second mapping image, if the matching result is that the matching degree between the test picture image and the second mapping image is greater than or equal to a preset matching degree threshold value, generating a second picture test report containing the test failure information corresponding to the test picture image.
4. The method of claim 1, wherein obtaining at least one test screen image displayed by the application during the test comprises:
and in the testing process of the application program, acquiring a recorded video of a test picture displayed by the application program and generated by a shooting device, and determining at least one test picture image based on the recorded video.
5. The method of claim 4, wherein after generating a screen test report corresponding to the application based on the matching result, the method further comprises:
intercepting the recorded video to obtain a target picture image according to the unqualified test information in the picture test report; the test failure information is used for representing the test information of the test picture image which is failed in the test;
generating a target test report based on the target picture image, the picture test report and a basic test report; wherein the base test report is generated based on program feedback data generated by the application program during the testing process.
6. The method of claim 1, wherein obtaining at least one test screen image displayed by the application during the test comprises:
and acquiring at least one test picture image displayed by the application program and acquired by shooting equipment in the test process of the application program.
7. The method according to claim 4 or 6, characterized in that a white balance card is arranged in the test environment of the shooting equipment.
8. A screen test apparatus, comprising:
the test picture image acquisition module is used for acquiring at least one test picture image displayed by the application program in the test process;
the similarity matching module is used for performing similarity matching on the standard picture images respectively corresponding to the test picture images and the test picture images to obtain matching results;
and the picture test report generating module is used for generating a picture test report corresponding to the application program based on the matching result and outputting the picture test report.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the picture testing method as claimed in any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the picture testing method of any one of claims 1-7 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011448262.6A CN112559341A (en) | 2020-12-09 | 2020-12-09 | Picture testing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011448262.6A CN112559341A (en) | 2020-12-09 | 2020-12-09 | Picture testing method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112559341A true CN112559341A (en) | 2021-03-26 |
Family
ID=75061832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011448262.6A Pending CN112559341A (en) | 2020-12-09 | 2020-12-09 | Picture testing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112559341A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923450A (en) * | 2021-10-09 | 2022-01-11 | 深圳创维-Rgb电子有限公司 | Automatic image detection method, device, equipment and storage medium |
CN114721968A (en) * | 2022-06-02 | 2022-07-08 | 龙旗电子(惠州)有限公司 | Test method, test device and storage medium |
CN114816961A (en) * | 2022-05-16 | 2022-07-29 | 宝德计算机系统股份有限公司 | Server pressure testing method and device and computer storage medium |
CN114820608A (en) * | 2022-06-28 | 2022-07-29 | 泽景(西安)汽车电子有限责任公司 | Imaging effect detection method and device, vehicle and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108038514A (en) * | 2017-12-27 | 2018-05-15 | 北京奇虎科技有限公司 | A kind of method, equipment and computer program product for being used to identify image |
CN108566550A (en) * | 2018-07-03 | 2018-09-21 | 广州视源电子科技股份有限公司 | Aging test method and device and electronic equipment |
CN109815150A (en) * | 2019-01-29 | 2019-05-28 | 腾讯科技(深圳)有限公司 | Application testing method, device, electronic equipment and storage medium |
CN109856824A (en) * | 2018-12-21 | 2019-06-07 | 惠科股份有限公司 | Display picture detection method and detection system thereof |
US10346717B1 (en) * | 2017-04-19 | 2019-07-09 | The United States Of America As Represented By The Secretary Of The Navy | System and method for thresholding of local image descriptors |
CN111813689A (en) * | 2020-07-22 | 2020-10-23 | 腾讯科技(深圳)有限公司 | Game testing method, apparatus and medium |
-
2020
- 2020-12-09 CN CN202011448262.6A patent/CN112559341A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10346717B1 (en) * | 2017-04-19 | 2019-07-09 | The United States Of America As Represented By The Secretary Of The Navy | System and method for thresholding of local image descriptors |
CN108038514A (en) * | 2017-12-27 | 2018-05-15 | 北京奇虎科技有限公司 | A kind of method, equipment and computer program product for being used to identify image |
CN108566550A (en) * | 2018-07-03 | 2018-09-21 | 广州视源电子科技股份有限公司 | Aging test method and device and electronic equipment |
CN109856824A (en) * | 2018-12-21 | 2019-06-07 | 惠科股份有限公司 | Display picture detection method and detection system thereof |
CN109815150A (en) * | 2019-01-29 | 2019-05-28 | 腾讯科技(深圳)有限公司 | Application testing method, device, electronic equipment and storage medium |
CN111813689A (en) * | 2020-07-22 | 2020-10-23 | 腾讯科技(深圳)有限公司 | Game testing method, apparatus and medium |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923450A (en) * | 2021-10-09 | 2022-01-11 | 深圳创维-Rgb电子有限公司 | Automatic image detection method, device, equipment and storage medium |
CN114816961A (en) * | 2022-05-16 | 2022-07-29 | 宝德计算机系统股份有限公司 | Server pressure testing method and device and computer storage medium |
CN114721968A (en) * | 2022-06-02 | 2022-07-08 | 龙旗电子(惠州)有限公司 | Test method, test device and storage medium |
CN114721968B (en) * | 2022-06-02 | 2022-09-02 | 龙旗电子(惠州)有限公司 | Test method, test device and storage medium |
CN114820608A (en) * | 2022-06-28 | 2022-07-29 | 泽景(西安)汽车电子有限责任公司 | Imaging effect detection method and device, vehicle and storage medium |
CN114820608B (en) * | 2022-06-28 | 2022-10-21 | 泽景(西安)汽车电子有限责任公司 | Imaging effect detection method and device, vehicle and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11587219B2 (en) | Method and apparatus for detecting pixel defect of optical module, and device | |
US10769487B2 (en) | Method and device for extracting information from pie chart | |
CN112559341A (en) | Picture testing method, device, equipment and storage medium | |
EP2660753B1 (en) | Image processing method and apparatus | |
US20120320223A1 (en) | Computing device, storage medium and method for identifying differences between two images | |
US20230214989A1 (en) | Defect detection method, electronic device and readable storage medium | |
CN110826646A (en) | Robot vision testing method and device, storage medium and terminal equipment | |
CN113255516A (en) | Living body detection method and device and electronic equipment | |
CN113763466A (en) | Loop detection method and device, electronic equipment and storage medium | |
CN109840212B (en) | Function test method, device and equipment of application program and readable storage medium | |
CN110298302A (en) | A kind of human body target detection method and relevant device | |
CN114359160A (en) | Screen detection method and device, electronic equipment and storage medium | |
JP2022009474A (en) | System and method for detecting lines in vision system | |
CN115546219B (en) | Detection plate type generation method, plate card defect detection method, device and product | |
CN117253022A (en) | Object identification method, device and inspection equipment | |
CN112559340A (en) | Picture testing method, device, equipment and storage medium | |
CN116993654B (en) | Camera module defect detection method, device, equipment, storage medium and product | |
WO2023053830A1 (en) | Image processing device, image processing method, and recording medium | |
CN112559342A (en) | Method, device and equipment for acquiring picture test image and storage medium | |
CN117033309A (en) | Data conversion method and device, electronic equipment and readable storage medium | |
CN116524477A (en) | Method and system for identifying detection result of detection box | |
CN111124862B (en) | Intelligent device performance testing method and device and intelligent device | |
CN108447107B (en) | Method and apparatus for generating video | |
CN118393327B (en) | Component missing detection method, electronic equipment and readable storage medium | |
CN113117341B (en) | Picture processing method and device, computer readable storage medium 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210326 |
|
RJ01 | Rejection of invention patent application after publication |