CN104284184A - Method for automatically checking image or video effect - Google Patents

Method for automatically checking image or video effect Download PDF

Info

Publication number
CN104284184A
CN104284184A CN201410548450.4A CN201410548450A CN104284184A CN 104284184 A CN104284184 A CN 104284184A CN 201410548450 A CN201410548450 A CN 201410548450A CN 104284184 A CN104284184 A CN 104284184A
Authority
CN
China
Prior art keywords
effect
file
test
hardware
video
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
Application number
CN201410548450.4A
Other languages
Chinese (zh)
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.)
Xiamen Meitu Technology Co Ltd
Original Assignee
Xiamen Meitu 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 Xiamen Meitu Technology Co Ltd filed Critical Xiamen Meitu Technology Co Ltd
Priority to CN201410548450.4A priority Critical patent/CN104284184A/en
Publication of CN104284184A publication Critical patent/CN104284184A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for automatically checking an image or video effect. An original effect file is obtained by carrying out effect processing on a test file of an image or a video, and a test program is installed on hardware to be tested to carry out effect processing on the test file so that a hardware effect file can be obtained; secondly, the original effect file and the hardware effect file are compared, and the purpose of automatically checking the image or video effect can be achieved according to the error obtained through calculation, the judgment testing result and an output testing report. A large amount of time and vigor of developers is saved, and the development cost of the image or the video is greatly reduced.

Description

A kind of method of automatic Verification image or video effect
Technical field
The present invention relates to the method for testing of a kind of image or video, particularly a kind of method of automatic Verification image or video effect.
Background technology
In the process of actual development image or video effect, when after having developed when carrying out hardware testing, due to the difference of hardware, cause requiring a great deal of time on different hardware to image or video effect carry out test with check, waste a large amount of time and efforts, development cost is remained high.
Summary of the invention
The present invention, for solving the problem, provides a kind of method of automatic Verification image or video effect, can provide test result intuitively, greatly reduce development cost for developer.
For achieving the above object, the technical solution used in the present invention is:
A method for automatic Verification image or video effect, is characterized in that, comprises the following steps:
10. the test file of set-up dirgram picture or video, and effect process is carried out to test file, obtain original effect file;
20. install a test program on hardware to be tested;
30. load described test file in test program, and carry out effect process to this test file, obtain hardware effect files;
Described original effect file and described hardware effect files are compared by 40., and calculate error and;
50. according to the error that calculates with judge test result, and exports test report.
Preferably, described step 10 obtains original effect file and mainly utilizes test program in specific hardware and system, to carry out effect process to described test file, thus obtains original effect file.
Preferably, in described step 40, described original effect file and described hardware effect files are compared, mainly when test file is video file, the color value of corresponding pixel points in the same frame of original effect file and hardware effect files is carried out subtraction, obtain color difference, the color difference of all corresponding pixel points is carried out additional calculation, namely obtain error and.
Preferably, in described step 40, described original effect file and described hardware effect files are compared, mainly when test file is image file, the color value of the corresponding pixel points of original effect file and hardware effect files is carried out subtraction, obtain color difference, the color difference of all corresponding pixel points is carried out additional calculation, namely obtain error and.
Preferably, according to the error that calculates with judge test result in described step 50, mainly error in judgement and whether in preset range, if, then described image or video effect is on the hardware satisfactory, if error and exceed preset range, then described image or video effect is on the hardware undesirable.
Preferably, described test program is mainly by being put in its program by test file and original effect file, when the program is started, test file described in automatic loading, and the effect process identical with original effect file is carried out to this test file, then result and original effect file are carried out effect comparison.
The invention has the beneficial effects as follows:
The method of a kind of automatic Verification image of the present invention or video effect, it is by carrying out effect process to the test file of image or video, obtain original effect file, and a test program is installed on hardware to be tested effect process is carried out to described test file, obtain hardware effect files, then described original effect file and described hardware effect files are compared, and according to the error calculated and judge test result and output test report, thus realize the object of image or video effect being carried out to automatic Verification, save the time and efforts that developer is a large amount of, greatly reduce the development cost of image or video.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the general flow chart of the method for a kind of automatic Verification image of the present invention or video effect.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, the method for a kind of automatic Verification image of the present invention or video effect, it comprises the following steps:
10. the test file of set-up dirgram picture or video, and effect process is carried out to test file, obtain original effect file;
20. install a test program on hardware to be tested;
30. load described test file in test program, and carry out effect process to this test file, obtain hardware effect files;
Described original effect file and described hardware effect files are compared by 40., and calculate error and;
50. according to the error that calculates with judge test result, and exports test report.
Wherein, described step 10 obtains original effect file and mainly utilizes test program in specific hardware and system, to carry out effect process to described test file, thus obtains original effect file.Described test program is mainly by being put in its program by test file and original effect file, when the program is started, test file described in automatic loading, and the effect process identical with original effect file is carried out to this test file, then result and original effect file are carried out effect comparison.
Described original effect file and described hardware effect files are compared, mainly by comparing the color value of the corresponding pixel points of the two, and calculate error and, specific as follows:
When test file is video file, in described step 40, described original effect file and described hardware effect files are compared, mainly the color value of corresponding pixel points in the same frame of original effect file and hardware effect files is carried out subtraction, obtain color difference, the color difference of all corresponding pixel points is carried out additional calculation, namely obtain error and.
When test file is image file, in described step 40, described original effect file and described hardware effect files are compared, mainly the color value of the corresponding pixel points of original effect file and hardware effect files is carried out subtraction, obtain color difference, the color difference of all corresponding pixel points is carried out additional calculation, namely obtain error and.
According to the error that calculates with judge test result in described step 50, mainly error in judgement and whether in preset range, if, then described image or video effect is on the hardware satisfactory, if error and exceed preset range, then described image or video effect is on the hardware undesirable.Such as, for image effect error and, its preset range is that the value error of average each pixel is between 0-5; For video effect error and, its preset range is that the value error of average each pixel is between 0-10.
Because each effect can cause larger aberration on different hardware devices, seriously also screen can be spent, thus cause developer to need to carry out large-scale test and validation, the present invention by installing a test program on hardware to be tested, its can calculate voluntarily and compare original effect file and hardware effect files error and, and according to the error calculated and judge test result and output test report, realize the object of image or video effect being carried out to automatic Verification, save the time and efforts that developer is a large amount of, greatly reduce the development cost of image or video.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection range of claims of the present invention.

Claims (6)

1. a method for automatic Verification image or video effect, is characterized in that, comprises the following steps:
10. the test file of set-up dirgram picture or video, and effect process is carried out to test file, obtain original effect file;
20. install a test program on hardware to be tested;
30. load described test file in test program, and carry out effect process to this test file, obtain hardware effect files;
Described original effect file and described hardware effect files are compared by 40., and calculate error and;
50. according to the error that calculates with judge test result, and exports test report.
2. the method for a kind of automatic Verification image according to claim 1 or video effect, it is characterized in that: described step 10 obtains original effect file and mainly utilizes test program in specific hardware and system, to carry out effect process to described test file, thus obtains original effect file.
3. the method for a kind of automatic Verification image according to claim 1 or video effect, it is characterized in that: in described step 40, described original effect file and described hardware effect files are compared, mainly when test file is video file, the color value of corresponding pixel points in the same frame of original effect file and hardware effect files is carried out subtraction, obtain color difference, the color difference of all corresponding pixel points is carried out additional calculation, namely obtain error and.
4. the method for a kind of automatic Verification image according to claim 1 or video effect, it is characterized in that: in described step 40, described original effect file and described hardware effect files are compared, mainly when test file is image file, the color value of the corresponding pixel points of original effect file and hardware effect files is carried out subtraction, obtain color difference, the color difference of all corresponding pixel points is carried out additional calculation, namely obtain error and.
5. the method for a kind of automatic Verification image according to claim 1 or video effect, it is characterized in that: according to the error that calculates with judge test result in described step 50, mainly error in judgement and whether in preset range, if, then described image or video effect is on the hardware satisfactory, if error and exceed preset range, then described image or video effect is on the hardware undesirable.
6. the method for a kind of automatic Verification image according to claim 1 or video effect, it is characterized in that: described test program is mainly by being put in its program by test file and original effect file, when the program is started, test file described in automatic loading, and the effect process identical with original effect file is carried out to this test file, then result and original effect file are carried out effect comparison.
CN201410548450.4A 2014-10-16 2014-10-16 Method for automatically checking image or video effect Pending CN104284184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410548450.4A CN104284184A (en) 2014-10-16 2014-10-16 Method for automatically checking image or video effect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410548450.4A CN104284184A (en) 2014-10-16 2014-10-16 Method for automatically checking image or video effect

Publications (1)

Publication Number Publication Date
CN104284184A true CN104284184A (en) 2015-01-14

Family

ID=52258594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410548450.4A Pending CN104284184A (en) 2014-10-16 2014-10-16 Method for automatically checking image or video effect

Country Status (1)

Country Link
CN (1) CN104284184A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657994A (en) * 2015-02-13 2015-05-27 厦门美图之家科技有限公司 Image consistency judging method and system based on optical flow method
CN112752098A (en) * 2021-04-06 2021-05-04 腾讯科技(深圳)有限公司 Video editing effect verification method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063641A (en) * 2006-04-28 2007-10-31 孙盈军 Method for testing digital products and special equipment thereof
CN101521834A (en) * 2009-04-02 2009-09-02 深圳市茁壮网络技术有限公司 Automatic testing method, device and system
CN101594551A (en) * 2008-05-26 2009-12-02 鸿富锦精密工业(深圳)有限公司 Image display testing method
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
CN102375677A (en) * 2010-08-11 2012-03-14 乐金显示有限公司 Method for simulating image quality improvement of image display device and device therefor
CN102421009A (en) * 2011-12-07 2012-04-18 中国航空无线电电子研究所 Automatic video signal testing method
CN103365768A (en) * 2012-04-01 2013-10-23 腾讯科技(深圳)有限公司 Program testing method and controller
CN103414810A (en) * 2013-07-29 2013-11-27 王曙光 Method for detecting response image based on mobile terminal, mobile terminal and detection carrier

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063641A (en) * 2006-04-28 2007-10-31 孙盈军 Method for testing digital products and special equipment thereof
CN100554916C (en) * 2006-04-28 2009-10-28 孙盈军 A kind of method of testing of digital product and isolated plant thereof
CN101594551A (en) * 2008-05-26 2009-12-02 鸿富锦精密工业(深圳)有限公司 Image display testing method
CN101521834A (en) * 2009-04-02 2009-09-02 深圳市茁壮网络技术有限公司 Automatic testing method, device and system
CN102375677A (en) * 2010-08-11 2012-03-14 乐金显示有限公司 Method for simulating image quality improvement of image display device and device therefor
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
CN102421009A (en) * 2011-12-07 2012-04-18 中国航空无线电电子研究所 Automatic video signal testing method
CN103365768A (en) * 2012-04-01 2013-10-23 腾讯科技(深圳)有限公司 Program testing method and controller
CN103414810A (en) * 2013-07-29 2013-11-27 王曙光 Method for detecting response image based on mobile terminal, mobile terminal and detection carrier

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657994A (en) * 2015-02-13 2015-05-27 厦门美图之家科技有限公司 Image consistency judging method and system based on optical flow method
CN104657994B (en) * 2015-02-13 2017-12-19 厦门美图之家科技有限公司 A kind of method and system that image consistency is judged based on optical flow method
CN112752098A (en) * 2021-04-06 2021-05-04 腾讯科技(深圳)有限公司 Video editing effect verification method and device
CN112752098B (en) * 2021-04-06 2021-06-04 腾讯科技(深圳)有限公司 Video editing effect verification method and device

Similar Documents

Publication Publication Date Title
CN105955884B (en) App page white screen inspection method and device
CN105912340A (en) Primary device, remote control and overhead upgrading method of remote control
CN108874678B (en) Automatic testing method and device for intelligent program
CN107015902B (en) Test method and test equipment
CN109324962B (en) Method and equipment for testing application program based on cloud Internet of things technology
CN103077059A (en) Method for judging whether application is matched or not
CN102868699A (en) Method and tool for vulnerability detection of server providing data interaction services
CN101989208A (en) Software updating method
CN104284184A (en) Method for automatically checking image or video effect
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
US20210326228A1 (en) System testing method and system test kit
CN111158995B (en) Method and system for realizing cross-system log tracking query based on skywalk and ELK platform
CN105025365A (en) Intelligent television platform offline download method and system
CN107577466A (en) A kind of RPM software kits Compilation Method and system based on linux system
CN104182689A (en) Method and device for repairing and protecting system
CN103198250B (en) The checking method of intelligent television application program
CN112306529A (en) System upgrading method, device, equipment and storage medium
CN105227353A (en) A kind of MYSQL cluster implementation method and system
CN101470855A (en) Automatic early-warning method for overdue supplier
CN107844395B (en) Reboot test control method and system
CN108197025B (en) Instrument pressure testing system and instrument pressure testing method
CN103902445A (en) Regression test object determination method and device
CN107622013B (en) Distributed system testing method and device
CN106528248B (en) Downloading method and system of mobile terminal based on software integrity
CN105260227A (en) Data correction method and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150114

WD01 Invention patent application deemed withdrawn after publication