CN104598702A - Method and system for generating test report - Google Patents
Method and system for generating test report Download PDFInfo
- Publication number
- CN104598702A CN104598702A CN201310528368.0A CN201310528368A CN104598702A CN 104598702 A CN104598702 A CN 104598702A CN 201310528368 A CN201310528368 A CN 201310528368A CN 104598702 A CN104598702 A CN 104598702A
- Authority
- CN
- China
- Prior art keywords
- character
- image
- test report
- area
- interest
- 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
Landscapes
- Character Input (AREA)
Abstract
The invention discloses a method for generating a test report. The method comprises the following steps: collecting a test result image generated by a test instrument; reading the coordinate of a region of interest from a memory; intercepting an image, which corresponds to the coordinate of the region of interest, of the region of interest from a test result; identifying a character in the image of the region of interest; and filling the identified character into a corresponding field of the test report. The invention also discloses a system for generating the test report.
Description
Technical field
The present invention relates to field tests, particularly relate to a kind of test report and generate method and system.
Background technology
The various electronic products such as such as computing machine, smart mobile phone, televisor, game machine, no matter it is at Design Stage or in the product manufacturing stage, all will through a large amount of tests.For test organization, not only need the test to electronic product, also needed to form a complete and errorless test report after testing is complete.But, along with the complexity of electronic product is more and more higher, test event also gets more and more, and a complete test report can comprise the content of dozens or even hundreds of page, tester has to pay a large amount of time and efforts to do test report, but is difficult to the accuracy ensureing test report.
Summary of the invention
In view of above content, be necessary to provide a kind of test report to generate method and system, efficiently and accurately can generate test report.
A kind of test report generation method, described method comprises:
Collect the test result image that testing tool produces;
Area-of-interest coordinate is read from storer;
The region of interest area image that area-of-interest coordinate is corresponding is intercepted from test result image;
Identify the character in region of interest area image; And
The corresponding field to test report is filled in the character recognized.
Preferably, described step of being filled in by the character recognized to the corresponding field of test report comprises:
The character recognized is filled in transfer form; And
Transfer form is monitored, if find there is character in transfer form, then from transfer form, reads character, the corresponding field to test report is filled in the character read.
Preferably, described method also comprises: corresponding region test result image being inserted into test report.
Preferably, the step of the character in described identification region of interest area image comprises:
Area-of-interest Iamge Segmentation is become one or more image block, and each block image block comprises a character;
Binary conversion treatment is carried out to each image block, obtains binary image; And
Each binary image and character repertoire are compared, determines the character that this binary image is corresponding.
Preferably, described area-of-interest coordinate comprises two diagonal angle apex coordinates, in order to determine a rectangular area.
A kind of test report generation system, described system comprises:
Image collection module, for collecting the test result image that testing tool produces;
Coordinate read module, for reading area-of-interest coordinate from storer;
Image interception module, for intercepting region of interest area image corresponding to area-of-interest coordinate from test result image;
Character recognition module, for identifying the character in region of interest area image; And
Module filled in character, for the character recognized being filled in the corresponding field to test report.
Preferably, described character fills in module also for filling in the character recognized to transfer form, and monitors transfer form, if find there is character in transfer form, then from transfer form, read character, the corresponding field to test report is filled in the character read.
Preferably, described system also comprises image insert module, for test result image being inserted into the corresponding region of test report.
Preferably, described character recognition module is also for becoming one or more image block by area-of-interest Iamge Segmentation, each block image block comprises a character, binary conversion treatment is carried out to each image block, obtain binary image, each binary image and character repertoire are compared, determines the character that this binary image is corresponding.
Preferably, described area-of-interest coordinate comprises two the diagonal angle apex coordinates determining a rectangular area.
Compared with prior art, above-mentioned test report generation system and test report generation method, by intercepting region of interest area image corresponding to area-of-interest coordinate from test result image, identify the character in region of interest area image, again the corresponding field to test report is filled in the character recognized, achieve the character automatically captured from test result image in region of interest area image, and character is written in test report, improve the efficiency that test report generates on the one hand, even if the generation that on tens, the test report of louver also can be very fast, on the other hand, also improve the accuracy of test report content.
Accompanying drawing explanation
Fig. 1 is the block diagram of the electronic installation in a better embodiment of the present invention.
Fig. 2 is the functional block diagram of the test report generation system in a better embodiment of the present invention.
Fig. 3 is the schematic diagram of the test result image in a better embodiment of the present invention.
Fig. 4 is the process flow diagram of the test report generation method in a better embodiment of the present invention.
Main element symbol description
Electronic installation | 10 |
Central processing unit | 101 |
Storer | 102 |
Display | 103 |
Input equipment | 104 |
Test report generation system | 20 |
Image collection module | 201 |
Coordinate read module | 202 |
Image interception module | 203 |
Character recognition module | 204 |
Module filled in character | 205 |
Image insert module | 206 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
Refer to Fig. 1, in a better embodiment of the present invention, an electronic installation 10 comprises central processing unit 101, storer 102, display 103 and an input equipment 104.Described electronic installation 10 can be the electronic equipment possessing general-purpose computations ability of any type, such as but not limited to, server computer, desktop computer, panel computer, PDA(Personal Digital Assistant), smart mobile phone, or the portable or non-portable electronic equipment of any other type.
Described central processing unit 101, for the treatment of the repertoire assembly of electronic installation 10 described in data and control and management, comprises described storer 102, described display 103 and described input equipment 104.
Described storer 102, for storing data, can comprise random-access memory (ram), flash memory, disk, or other memory storages.
Described display 103 for providing user interface, to user's displaying contents.
Described input equipment 104 is for receiving the content of user's input, and described input equipment 104 can comprise keyboard, mouse, contact panel, or other can receive the equipment of user input content.
Described central processing unit 101, described storer 102, described display 103 and described input equipment 104 are linked together by the interconnect architecture of bus 105 or other adaptations.
Described electronic installation 10 can be used for deployment one test report generation system 20.
Refer to Fig. 2, in a better embodiment of the present invention, described test report generation system 20 comprises image collection module 201, coordinate read module 202, image interception module 203, character recognition module 204, character and fills in module 205 and an image insert module 206.
Described image collection module 201, for collecting the test result image that testing tool produces.In the process that a product is tested, often use multiple testing tool, such as environment temperature tester, Fan Rotational Velocity Tester, electromagnetic radiation tester etc., and these testing tools have mutually different test result display interface, in order to tackle the diversity at this test result interface, present embodiment is collected by the image of described image collection module 201 pairs of test results and is reached the unified object obtaining test result data from multiple testing tool.As shown in Figure 3, in one example, environment temperature tester generates the test result interface of " case environment Monitoring Data ", has two test data items in this interface.Described image collection module 201 can by taking pictures, the various ways such as screenshotss obtains the image of test result from testing tool.
Described coordinate read module 202, for reading area-of-interest (Region of Interest) coordinate from described storer 102, described area-of-interest coordinate is used to indicate the region at test data item place in test result image.In one embodiment, described area-of-interest coordinate comprises two diagonal angle apex coordinates, in order to determine a rectangular area.As shown in Figure 3, in one example, determine a rectangular area to the coordinate (50,50) of angular vertex A and the coordinate (100,75) of summit B, test data item " 51 DEG C " is arranged in this rectangular area.
Described image interception module 203, for intercepting region of interest area image corresponding to area-of-interest coordinate from test result image.As shown in Figure 3, in one example, described image interception module 203 intercept out described to the determined rectangular area of angular vertex A and B as region of interest area image.
Described character recognition module 204, for identifying the character in region of interest area image.Particularly, area-of-interest Iamge Segmentation is become one or more image block by described character recognition module 204, each block image block comprises a character, binary conversion treatment is carried out to each image block, after obtaining binary image, each binary image and character repertoire are compared, determines the character that this binary image is corresponding.Described character repertoire is a template base comprising all characters (numeral, letter, symbol etc.), binary image and these Character mother plates are compared, the character that matching degree exceedes pre-set threshold value is character corresponding to this binary image, is also the character in region of interest area image.
Module 205 filled in described character, for the character recognized being filled in the corresponding field to test report.As shown in Figure 3, in one example, described character is filled in module 205 and the test data item recognized " 51 DEG C " can be filled in in field corresponding to " in case medial temperature " in test report.In some embodiments, described character is filled in module 205 and is filled in the character recognized to transfer form, and monitors transfer form, if find there is character in transfer form, then from transfer form, read character, the corresponding field to test report is filled in the character read.
Described image insert module 206, for being inserted into the corresponding region of test report by test result image.As shown in Figure 3, in one example, described image insert module 206 can be inserted into whole for the test result image of " case environment Monitoring Data " in the corresponding region of test report.
Each functional module of the above test report generation system 20, can be realized by described central processing unit 101 computer instructions, also can be realized by the hardware unit of integrated instruction.It should be noted that the modules comprised in said apparatus embodiment is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized.In addition, the concrete title of each functional module, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Refer to Fig. 4, in figure, schematically illustrate the process flow diagram of the test report generation method according to one embodiment of the present invention.Said method comprising the steps of:
Step S401, described image collection module 201 collects the test result image that testing tool produces.In the process that a product is tested, often use multiple testing tool, such as environment temperature tester, Fan Rotational Velocity Tester, electromagnetic radiation tester etc., and these testing tools have mutually different test result display interface, in order to tackle the diversity at this test result interface, present embodiment is collected by the image of described image collection module 201 pairs of test results and is reached the unified object obtaining test result data from multiple testing tool.As shown in Figure 3, in one example, environment temperature tester generates the test result interface of " case environment Monitoring Data ", has two test data items in this interface.Described image collection module 201 can by taking pictures, the various ways such as screenshotss obtains the image of test result from testing tool.
Step S402, described coordinate read module 202 reads area-of-interest coordinate from described storer 102, and described area-of-interest coordinate is used to indicate the region at test data item place in test result image.In one embodiment, described area-of-interest coordinate comprises two diagonal angle apex coordinates, in order to determine a rectangular area.As shown in Figure 3, in one example, determine a rectangular area to the coordinate (50,50) of angular vertex A and the coordinate (100,75) of summit B, test data item " 51 DEG C " is arranged in this rectangular area.
Step S403, described image interception module 203 intercepts region of interest area image corresponding to area-of-interest coordinate from test result image.As shown in Figure 3, in one example, described image interception module 203 intercept out described to the determined rectangular area of angular vertex A and B as region of interest area image.
Step S404, described character recognition module 204 identifies the character in region of interest area image.Particularly, area-of-interest Iamge Segmentation is become one or more image block by described character recognition module 204, each block image block comprises a character, binary conversion treatment is carried out to each image block, after obtaining binary image, each binary image and character repertoire are compared, determines the character that this binary image is corresponding.
Step S405, described character is filled in module 205 and the character recognized is filled in corresponding field to test report.As shown in Figure 3, in one example, described character is filled in module 205 and the test data item recognized " 51 DEG C " can be filled in in field corresponding to " in case medial temperature " in test report.In some embodiments, described character is filled in module 205 and is filled in the character recognized to transfer form, and monitors transfer form, if find there is character in transfer form, then from transfer form, read character, the corresponding field to test report is filled in the character read.
Step S406, test result image is inserted into the corresponding region of test report by described image insert module 206.As shown in Figure 3, in one example, described image insert module 206 can be inserted into whole for the test result image of " case environment Monitoring Data " in the corresponding region of test report.
Compared with prior art, above-mentioned test report generation system 20 and test report generation method, by intercepting region of interest area image corresponding to area-of-interest coordinate from test result image, identify the character in region of interest area image, again the corresponding field to test report is filled in the character recognized, achieve the character automatically captured from test result image in region of interest area image, and character is written in test report, improve the efficiency that test report generates on the one hand, even if the generation that on tens, the test report of louver also can be very fast, on the other hand, also improve the accuracy of test report content.
To one skilled in the art, the actual needs can produced according to scheme of the invention of the present invention and inventive concept combination is made other and is changed accordingly or adjustment, and these changes and adjustment all should belong to the protection domain of the claims in the present invention.
Claims (10)
1. a test report generation method, is characterized in that: described method comprises:
Collect the test result image that testing tool produces;
Area-of-interest coordinate is read from storer;
The region of interest area image that area-of-interest coordinate is corresponding is intercepted from test result image;
Identify the character in region of interest area image; And
The corresponding field to test report is filled in the character recognized.
2. test report generation method as claimed in claim 1, is characterized in that: described step of being filled in by the character recognized to the corresponding field of test report comprises:
The character recognized is filled in transfer form; And
Transfer form is monitored, if find there is character in transfer form, then from transfer form, reads character, the corresponding field to test report is filled in the character read.
3. test report generation method as claimed in claim 1, is characterized in that: described method also comprises: corresponding region test result image being inserted into test report.
4. test report generation method as claimed in claim 1, is characterized in that: the step of the character in described identification region of interest area image comprises:
Area-of-interest Iamge Segmentation is become one or more image block, and each block image block comprises a character;
Binary conversion treatment is carried out to each image block, obtains binary image; And
Each binary image and character repertoire are compared, determines the character that this binary image is corresponding.
5. test report generation method as claimed in claim 1, is characterized in that: described area-of-interest coordinate comprises two diagonal angle apex coordinates, in order to determine a rectangular area.
6. a test report generation system, is characterized in that: described system comprises:
Image collection module, for collecting the test result image that testing tool produces;
Coordinate read module, for reading area-of-interest coordinate from storer;
Image interception module, for intercepting region of interest area image corresponding to area-of-interest coordinate from test result image;
Character recognition module, for identifying the character in region of interest area image; And
Module filled in character, for the character recognized being filled in the corresponding field to test report.
7. test report generation system as claimed in claim 6, it is characterized in that: described character fills in module also for filling in transfer form by the character recognized, and transfer form is monitored, if find there is character in transfer form, then from transfer form, read character, the corresponding field to test report is filled in the character read.
8. test report generation system as claimed in claim 6, is characterized in that: described system also comprises image insert module, for test result image being inserted into the corresponding region of test report.
9. test report generation system as claimed in claim 6, it is characterized in that: described character recognition module is also for becoming one or more image block by area-of-interest Iamge Segmentation, each block image block comprises a character, binary conversion treatment is carried out to each image block, obtain binary image, each binary image and character repertoire are compared, determines the character that this binary image is corresponding.
10. test report generation system as claimed in claim 6, is characterized in that: described area-of-interest coordinate comprises two the diagonal angle apex coordinates determining a rectangular area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310528368.0A CN104598702A (en) | 2013-10-31 | 2013-10-31 | Method and system for generating test report |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310528368.0A CN104598702A (en) | 2013-10-31 | 2013-10-31 | Method and system for generating test report |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104598702A true CN104598702A (en) | 2015-05-06 |
Family
ID=53124482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310528368.0A Pending CN104598702A (en) | 2013-10-31 | 2013-10-31 | Method and system for generating test report |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104598702A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463866A (en) * | 2016-06-06 | 2017-12-12 | 青岛大学 | A kind of method of the hand-written laboratory report of identification for performance evaluation |
CN107885180A (en) * | 2016-09-30 | 2018-04-06 | 西门子公司 | Test equipment and method of testing |
CN111627511A (en) * | 2020-05-29 | 2020-09-04 | 北京大恒普信医疗技术有限公司 | Ophthalmologic report content identification method and device and readable storage medium |
CN111782552A (en) * | 2020-08-07 | 2020-10-16 | 广州极点三维信息科技有限公司 | Automatic testing method and device based on region division |
CN112418230A (en) * | 2020-11-14 | 2021-02-26 | 武汉光庭信息技术股份有限公司 | Automatic testing method and system based on vehicle-mounted display |
-
2013
- 2013-10-31 CN CN201310528368.0A patent/CN104598702A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463866A (en) * | 2016-06-06 | 2017-12-12 | 青岛大学 | A kind of method of the hand-written laboratory report of identification for performance evaluation |
CN107885180A (en) * | 2016-09-30 | 2018-04-06 | 西门子公司 | Test equipment and method of testing |
CN107885180B (en) * | 2016-09-30 | 2021-03-16 | 西门子公司 | Test apparatus and test method |
CN111627511A (en) * | 2020-05-29 | 2020-09-04 | 北京大恒普信医疗技术有限公司 | Ophthalmologic report content identification method and device and readable storage medium |
CN111782552A (en) * | 2020-08-07 | 2020-10-16 | 广州极点三维信息科技有限公司 | Automatic testing method and device based on region division |
CN111782552B (en) * | 2020-08-07 | 2021-05-18 | 广州极点三维信息科技有限公司 | Automatic testing method and device based on region division |
CN112418230A (en) * | 2020-11-14 | 2021-02-26 | 武汉光庭信息技术股份有限公司 | Automatic testing method and system based on vehicle-mounted display |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104598702A (en) | Method and system for generating test report | |
US20110131551A1 (en) | Graphical user interface input element identification | |
EP2960797B1 (en) | Identification of software phases using machine learning | |
US10909115B2 (en) | System event search based on heterogeneous logs | |
CN110348412B (en) | Key point positioning method and device, electronic equipment and storage medium | |
CN111814910B (en) | Abnormality detection method, abnormality detection device, electronic device, and storage medium | |
CN110225453A (en) | Mobile terminal locating method, device, electronic equipment and storage medium | |
CN109933502B (en) | Electronic device, user operation record processing method and storage medium | |
CN114116013B (en) | Data processing method and device, electronic equipment and storage medium | |
Selay et al. | Adaptive random testing for image comparison in regression web testing | |
CN110597719B (en) | Image clustering method, device and medium for adaptation test | |
CN109213658A (en) | A kind of method for inspecting and device | |
CN104809063A (en) | Test method and device of distributed system | |
CN114049568A (en) | Object shape change detection method, device, equipment and medium based on image comparison | |
CN113434542A (en) | Data relation identification method and device, electronic equipment and storage medium | |
CN111738290B (en) | Image detection method, model construction and training method, device, equipment and medium | |
CN113591900A (en) | Identification method and device for high-demand response potential user and terminal equipment | |
US20170140080A1 (en) | Performing And Communicating Sheet Metal Simulations Employing A Combination Of Factors | |
CN116384148A (en) | Meta universe modeling system of radar countermeasure system | |
CN115757075A (en) | Task abnormity detection method and device, computer equipment and storage medium | |
Khokhlov et al. | Data security and quality evaluation framework: Implementation empirical study on android devices | |
CN108595325A (en) | Input method software testing method and device and electronic equipment | |
CN113570388A (en) | Remote anti-electricity-stealing checking method and device, computer equipment and storage medium | |
CN103502948A (en) | Timeframe based data analysis | |
Bouvett et al. | An FPGA embedded system architecture for handwritten symbol recognition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150506 |