CN107025076B - Automatic printing test method and device - Google Patents

Automatic printing test method and device Download PDF

Info

Publication number
CN107025076B
CN107025076B CN201610069847.4A CN201610069847A CN107025076B CN 107025076 B CN107025076 B CN 107025076B CN 201610069847 A CN201610069847 A CN 201610069847A CN 107025076 B CN107025076 B CN 107025076B
Authority
CN
China
Prior art keywords
picture
test
pixel point
boundary
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610069847.4A
Other languages
Chinese (zh)
Other versions
CN107025076A (en
Inventor
郑志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding 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 Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201610069847.4A priority Critical patent/CN107025076B/en
Publication of CN107025076A publication Critical patent/CN107025076A/en
Application granted granted Critical
Publication of CN107025076B publication Critical patent/CN107025076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/121Facilitating exception or error detection and recovery, e.g. fault, media or consumables depleted
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • G06T2207/10008Still image; Photographic image from scanner, fax or copier

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the disclosure discloses an automatic printing test method and device. The method comprises the following steps: establishing a basic database, wherein the basic database is used for storing printing test data; calling a tested printing program interface, reading printing test data in the basic database, and obtaining printing result data; comparing the fields in the printing result data with the fields in the corresponding basic database; judging whether the fields in the printing result data are different from the fields in the corresponding basic database; if the difference is different, the printing program interface has data reading error, and the error field is recorded to facilitate the user to check. The automatic printing test method provided by the embodiment of the disclosure does not depend on manual work, and the printing test is automatically completed by a program, so that the efficiency of the printing test is improved, and the accuracy of the printing test is greatly improved.

Description

Automatic printing test method and device
Technical Field
The invention relates to the technical field of software, in particular to an automatic printing test method and device.
Background
The main content of the printing test is to compare the difference between the actual printing result of the printer and the standard template,
to examine the printing system-related programs, such as printer backend data assembly, print control handler, or front-end handler, whether their settings are correct, or whether they are running properly. The items to be compared comprise the typesetting, layout, lines, bar codes, length-width ratio of the printed paper, folding or intercepting and the like of the printing result and the standard template; and checking the data of the actual printing result, namely comparing whether the content information of the actual printing field is consistent with the value of the corresponding field in the corresponding database table.
At present, printing test is mainly carried out manually, actual printing results and standard templates are compared by naked eyes of testers, fields in a data table are manually inquired, and the data of the actual printing results are compared, so that the mode is low in efficiency, and omission occurs in the test process easily.
Disclosure of Invention
In order to overcome the problem of low printing test efficiency in the related art, the present disclosure provides an automated printing test method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided an automated print testing method, including:
calling a tested printing program interface, reading printing test data in a basic database to obtain printing result data, wherein the basic database is used for storing the printing test data and is established in advance;
comparing the value of a first field with the value of a second field, wherein the first field is a field in the printing result data, the second field is a field in the basic database, and the first field corresponds to the second field;
judging whether the value of the first field is different from the value of the second field;
and recording the first field if the value of the first field is different from the value of the second field.
The basic database is established by extracting common data from the printing test document as basic data according to the test purpose in advance.
Optionally, the reading the printing test data in the basic database to obtain the printing result data includes:
taking the read printing test data as printing result data; or,
printing to obtain a printing result picture according to the printing test data;
and extracting printing result data according to the printing result picture.
Optionally, the automated printing test method further includes:
acquiring a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, wherein the standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database;
printing to obtain a printing result picture according to the printing test data;
determining the test range of the standard template picture according to the test range of the printing result picture;
if the testing range of the standard template picture is determined to be successful, traversing pixel points of the printing result picture within the testing range and pixel points of the standard template picture within the testing range, and comparing the RGB value of a first pixel point with the RGB value of a second pixel point, wherein the first pixel point is a pixel point of the printing result picture within the testing range, the second pixel point is a pixel point of the standard template picture within the testing range, and the second pixel point corresponds to the first pixel point;
judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and if the RGB value of the first pixel point is different from the RGB value of the second pixel point, marking the first pixel point on the printing result picture and/or marking the second pixel point on the standard template picture, and/or counting the number of the first pixel points.
Optionally, the determining the test range of the standard template picture according to the test range of the print result picture includes:
acquiring first boundary pixel points of a test range of the printing result picture, wherein the first boundary pixel points at least comprise all vertex pixel points of a first boundary, and the first boundary is the boundary of the test range of the printing result picture;
mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
acquiring second boundary pixel points, wherein the second boundary pixel points at least comprise all vertex pixel points of the mapping boundary, the second boundary pixel points correspond to the first boundary pixel points, and the number of the second boundary pixel points is equal to that of the first boundary pixel points;
comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and if the RGB values of the first boundary pixel points and the RGB values of the second boundary pixel points are all the same, determining that the test range of the standard template picture is successful, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
Optionally, in the automated printing test method, all the pixels of the printing result picture in the test range are taken as the first pixels, and all the pixels of the standard template picture in the test range are taken as the second pixels.
Optionally, the automatic printing test method uses the initial pixel point of each line of pixels of the printing result picture in the test range thereof as the first pixel point, and uses the initial pixel point of each line of pixels of the standard template picture in the test range thereof as the second pixel point.
According to a first aspect of the embodiments of the present disclosure, there is provided another automated print testing method, including:
calling a tested printing program interface, and reading printing test data in a basic database, wherein the basic database is used for storing the printing test data and is established in advance;
printing to obtain a printing result picture according to the printing test data;
acquiring a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, wherein the standard template picture in the standard template picture library is generated according to the data in the basic database and corresponds to the data in the basic database; and the number of the first and second groups,
and comparing the printing result picture with the standard template picture to obtain a printing test result.
The basic database is established by extracting common data from different types of printing test documents as basic data in advance according to test purposes.
Optionally, the comparing the print result picture with the standard template picture to obtain a print test result includes:
determining the test range of the standard template picture according to the test range of the printing result picture;
if the testing range of the standard template picture is determined to be successful, traversing pixel points of the printing result picture within the testing range and pixel points of the standard template picture within the testing range, and comparing the RGB value of a first pixel point with the RGB value of a second pixel point, wherein the first pixel point is a pixel point of the printing result picture within the testing range, the second pixel point is a pixel point of the standard template picture within the testing range, and the second pixel point corresponds to the first pixel point;
judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and if the RGB value of the first pixel point is different from the RGB value of the second pixel point, marking the first pixel point on the printing result picture and/or marking the second pixel point on the standard template picture, and/or counting the number of the first pixel points.
Optionally, the determining the test range of the standard template picture according to the test range of the print result picture includes:
acquiring first boundary pixel points of a test range of the printing result picture, wherein the first boundary pixel points at least comprise all vertex pixel points of a first boundary, and the first boundary is the boundary of the test range of the printing result picture;
mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
acquiring second boundary pixel points, wherein the second boundary pixel points at least comprise all vertex pixel points of the mapping boundary, the second boundary pixel points correspond to the first boundary pixel points, and the number of the second boundary pixel points is equal to that of the first boundary pixel points;
comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and if the RGB values of the first boundary pixel points and the RGB values of the second boundary pixel points are all the same, determining that the test range of the standard template picture is successful, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
Optionally, in the automated printing test method, all the pixels of the printing result picture in the test range are taken as the first pixels, and all the pixels of the standard template picture in the test range are taken as the second pixels.
Optionally, the automatic printing test method uses the initial pixel point of each line of pixels of the printing result picture in the test range thereof as the first pixel point, and uses the initial pixel point of each line of pixels of the standard template picture in the test range thereof as the second pixel point.
In accordance with a third aspect of the embodiments of the present disclosure, there is provided an automated print test apparatus corresponding to the first aspect of the embodiments of the present disclosure, including:
the printing result data acquisition unit is used for calling a tested printing program interface, reading printing test data in a basic database and obtaining printing result data, wherein the basic database is used for storing the printing test data and is established in advance;
a field comparison unit, configured to compare a value of a first field with a value of a second field, where the first field is a field in the print result data, the second field is a field in the basic database, and the first field corresponds to the second field;
a first judging unit, configured to judge whether a value of the first field is different from a value of the second field;
and the first test result processing unit is used for recording the first field if the value of the first field is different from the value of the second field.
The basic database is established by extracting common data from the printing test document as basic data according to the test purpose in advance.
Optionally, the print result data acquiring unit is specifically configured to:
taking the read printing test data as printing result data; or,
printing to obtain a printing result picture according to the printing test data;
and extracting printing result data according to the printing result picture.
Optionally, the automated printing test apparatus further includes:
a standard template picture acquiring unit, configured to acquire a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, where a standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database;
the printing unit is used for printing to obtain a printing result picture according to the printing test data;
the template test range determining unit is used for determining the test range of the standard template picture according to the test range of the printing result picture;
a pixel point comparison unit, configured to traverse pixel points of the print result picture within the test range of the print result picture and pixel points of the standard template picture within the test range of the print result picture if it is determined that the test range of the standard template picture is successful, and compare an RGB value of a first pixel point with an RGB value of a second pixel point, where the first pixel point is a pixel point of the print result picture within the test range of the print result picture, the second pixel point is a pixel point of the standard template picture within the test range of the standard template picture, and the second pixel point corresponds to the first pixel point;
the second judging unit is used for judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and the second test result processing unit is used for marking the first pixel points on the printing result picture and/or marking the second pixel points on the standard template picture and/or counting the number of the first pixel points if the RGB values of the first pixel points and the RGB values of the second pixel points are different.
Optionally, the template test range determining unit includes:
a first boundary pixel point obtaining subunit, configured to obtain a first boundary pixel point of a test range of the print result picture, where the first boundary pixel point at least includes all vertex pixel points of a first boundary, and the first boundary is a boundary of the test range of the print result picture;
a boundary mapping subunit, configured to map the first boundary to the standard template picture, so as to obtain a mapping boundary in the standard template picture;
a second boundary pixel point obtaining subunit, configured to obtain a second boundary pixel point, where the second boundary pixel point at least includes all vertex pixel points of the mapping boundary, the second boundary pixel point corresponds to the first boundary pixel point, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points;
the boundary pixel point comparison pair subunit is used for comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and the test range determining subunit is configured to determine that the test range of the standard template picture is successful if the RGB values of the first boundary pixel point and the RGB values of the second boundary pixel point are all the same, and determine that the test range of the standard template picture is failed if the range within the mapping boundary is the test range of the standard template picture.
Optionally, the pixel point comparison unit takes all pixel points of the printing result picture in the testing range thereof as the first pixel points, and takes all pixel points of the standard template picture in the testing range thereof as the second pixel points.
Optionally, the pixel point comparison unit takes the initial pixel point of each line of pixels of the printing result picture in the test range thereof as the first pixel point, and takes the initial pixel point of each line of pixels of the standard template picture in the test range thereof as the second pixel point. .
In accordance with a fourth aspect of the embodiments of the present disclosure, corresponding to the second aspect of the embodiments of the present disclosure, there is provided another automated print test apparatus including:
the printing result data acquisition unit is used for calling a tested printing program interface and reading printing test data in a basic database, and the basic database is used for storing the printing test data and is established in advance;
the printing unit is used for printing to obtain a printing result picture according to the printing test data;
a standard template picture acquiring unit, configured to acquire a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, where a standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database; and
and the comparison test unit is used for comparing the printing result picture with the standard template picture to obtain a printing test result.
The basic database is established by extracting common data from different types of printing test documents as basic data in advance according to test purposes.
Optionally, the comparison test unit includes:
the template test range determining module is used for determining the test range of the standard template picture according to the test range of the printing result picture;
a pixel point comparison module, configured to traverse pixel points of the print result picture within the test range of the print result picture and pixel points of the standard template picture within the test range of the print result picture if it is determined that the test range of the standard template picture is successful, and compare an RGB value of a first pixel point with an RGB value of a second pixel point, where the first pixel point is a pixel point of the print result picture within the test range of the print result picture, the second pixel point is a pixel point of the standard template picture within the test range of the standard template picture, and the second pixel point corresponds to the first pixel point;
the second judgment module is used for judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and the second test result processing module is used for marking the first pixel points on the printing result picture and/or marking the second pixel points on the standard template picture and/or counting the number of the first pixel points if the RGB values of the first pixel points and the RGB values of the second pixel points are different.
Optionally, the template test range determining module includes:
a first boundary pixel point obtaining submodule, configured to obtain a first boundary pixel point of a test range of the print result picture, where the first boundary pixel point at least includes all vertex pixel points of a first boundary, and the first boundary is a boundary of the test range of the print result picture;
the boundary mapping submodule is used for mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
a second boundary pixel point obtaining submodule, configured to obtain a second boundary pixel point, where the second boundary pixel point at least includes all vertex pixel points of the mapping boundary, the second boundary pixel point corresponds to the first boundary pixel point, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points;
the boundary pixel point comparison submodule is used for comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and the test range determining submodule is used for determining that the test range of the standard template picture is successful if the RGB values of the first boundary pixel points and the RGB values of the second boundary pixel points are all the same, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
Optionally, the pixel point comparison module takes all pixel points of the printing result picture in the testing range thereof as the first pixel points, and takes all pixel points of the standard template picture in the testing range thereof as the second pixel points.
Optionally, the pixel point comparison module uses the initial pixel point of each line of pixels of the printing result picture in the test range thereof as the first pixel point, and uses the initial pixel point of each line of pixels of the standard template picture in the test range thereof as the second pixel point.
According to the technical scheme provided by the embodiment of the disclosure, a basic database is established firstly, and the basic database is used for storing printing test data; then calling a tested printing program interface, reading printing test data in the basic database, and obtaining printing result data; comparing the fields in the printing result data with the fields in the corresponding basic database; judging whether the fields in the printing result data are different from the fields in the corresponding basic database; if the difference is different, the data reading error exists in the printing program interface, and the field with the error is recorded, so that a user can know the error. And in addition, a standard template picture is made according to the data in the basic database, the standard template picture corresponds to the data in the basic database, a standard template picture library is established according to the standard template picture, then a printing result picture is obtained by printing according to the printing test data, and the corresponding standard template picture is obtained according to the printing result picture. And after the testing range of the standard template picture is successfully determined according to the testing range of the printing result picture, traversing pixel points of the printing result picture within the testing range and pixel points of the standard template picture within the testing range, and judging the difference between the printing result picture and the standard template picture by comparing the RGB value of a first pixel point and the RGB value of a corresponding second pixel point, wherein the first pixel point is the pixel point of the printing result picture within the testing range, and the second pixel point is the pixel point of the standard template picture within the testing range. If the RGB value of the first pixel point is different from the RGB value of the second pixel point, the printing result picture and the standard template picture have difference, the first pixel point can be marked on the printing result picture and/or the second pixel point can be marked on the standard template picture so as to visually observe different places of the specific printing result picture and the standard template picture, and the number of the first pixel points can be counted so as to know how much difference exists between the printing result picture and the standard template picture. The technical scheme provided by the embodiment of the disclosure does not depend on manual work, can automatically complete the printing test by a program, not only improves the efficiency of the printing test, but also greatly reduces the test omission of the printing test in a pixel-by-pixel comparison mode and high accuracy of program automation.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart diagram illustrating an automated print testing method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a schematic flow chart diagram illustrating another method for automated print testing according to an exemplary embodiment of the present disclosure.
Fig. 3 is a schematic flow chart diagram illustrating yet another method for automated print testing according to an exemplary embodiment of the present disclosure.
Fig. 4 is a diagram illustrating an example of a print test result flag.
FIG. 5 is a block diagram of an automated print test apparatus according to an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram of another automated print test apparatus according to an exemplary embodiment of the present disclosure.
Fig. 7 is a block diagram of yet another automated print test apparatus according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the disclosure, but it will be appreciated by those skilled in the art that the disclosure may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the embodiments.
Fig. 1 is a schematic flow chart of an automated printing test method according to an exemplary embodiment of the disclosure, as shown in fig. 1, the method includes:
step S101, calling a tested printing program interface, reading printing test data in a basic database to obtain printing result data, wherein the basic database is used for storing the printing test data and is established in advance;
step S102, comparing the value of a first field with the value of a second field, wherein the first field is the field in the printing result data, the second field is the field in the basic database,
and the first field corresponds to the second field;
step S103, judging whether the value of the first field is different from the value of the second field;
and step S104, if the value of the first field is different from the value of the second field, recording the first field.
The printing test is mainly to examine whether the printing program interface under test is normal. There is a case where a printing program runs: the printing test data has two fields with different attributes, but the values of the two fields are exactly the same under certain conditions, for example, a 'total price of goods' field and a 'unit price of goods' field, the value is the same when one product is used, but the values are different when a plurality of products are used, when the printing program interface reads the printing data, the value of an error field is read, for example, the value of the 'unit price of goods' field is read at the position of the 'total price of goods' field, because the values of the two fields are the same when one product is used, the printed result picture and the reference picture are still the same and can not reflect errors, and whether the printing program interface reads the data is wrong or not is checked.
Before printing test, according to the test purpose, preparing different types of printing test documents, extracting the common data of the printing test documents as basic data, and storing the basic data into a basic database. And during printing test, calling a tested printing program interface, reading the printing test data in the basic database, and obtaining printing result data. In one embodiment, the read printing test data is directly used as printing result data, that is, the data returned by the printing program interface is directly used as the printing result data; in another embodiment, the printing result picture is obtained by printing according to the printing test data, and then the printing result data is extracted according to the printing result picture, that is, the printing test data in the basic database is read and is used as the input of the tested printing program for printing, the printing is virtual printing, for example, the ADOBE virtual printing technology is used for printing, so that the printing result picture is obtained and stored, the printing result picture can be in pdf format or can be converted into other picture formats such as jpg, the printing result data of the printing result picture is extracted and is printed by the ADOBE virtual printing technology, so that the printing result picture is obtained, and then the printing result picture is converted into data file formats such as TXT format, so that the printing result data is obtained. In the latter embodiment, the print result data is extracted after the print result picture is obtained, and although there are more links than in the former embodiment, the print result data can reflect the actual print result more directly.
After the printing result data is obtained, if the format of the printing result data is the same as that of the data in the basic database, the format conversion of the printing result data is not needed, and if the format of the printing result data is different from that of the data in the basic database, the format conversion of the printing result data is carried out. The format of the printing result data and the data in the basic database is usually in a jason format, and the data in the jason format can be converted into a jason object for comparison. And then comparing the value of the first field with the value of a second field corresponding to the first field by taking a field in the printing result data as the first field and taking a field in the standard template picture data as the second field, wherein the first field and the second field are corresponding to the same field name (or identification) of the first field and the second field.
And comparing the value of the first field with the value of the second field, judging whether the value of the first field is different from the value of the second field, and recording the first field if the value of the first field is different from the value of the second field. And finally, the recorded first field is used as a data checking result, so that a user can know which fields are read by the back-end interface of the printing program and have errors in values. And if the value of the first field is the same as the value of the second field, the data read by the back-end interface of the printing program is correct, and no problem exists.
Fig. 2 is a schematic flow chart illustrating another automated print testing method according to an exemplary embodiment of the disclosure, as shown in fig. 2, the method includes:
step S201, calling a tested printing program interface, reading printing test data in a basic database to obtain printing result data, wherein the basic database is used for storing the printing test data and is established in advance;
step S202, comparing a value of a first field with a value of a second field, wherein the first field is a field in the printing result data, the second field is a field in the basic database, and the first field corresponds to the second field;
step S203, judging whether the value of the first field is different from the value of the second field;
step S204, if the value of the first field is different from the value of the second field, recording the first field.
Wherein steps S201 to S204 are the same as steps S101 to S104, respectively.
Step S205, according to the printing test data in the basic database, acquiring a corresponding standard template picture from a standard template picture library, wherein the standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database.
And step S206, printing to obtain a printing result picture according to the printing test data. And printing the printing test data as the input of the tested printing program, wherein the printing is virtual printing, for example, the printing is performed by using an ADOBE virtual printing technology, and a printing result picture is obtained and stored.
The sequence of step S205 and step S206 may be exchanged, or a print result picture may be obtained by printing according to the print test data, and then a corresponding standard template picture may be obtained from a standard template picture library according to the print test data in the basic database.
And the standard template picture is made according to the data in the basic database, corresponds to the data in the basic database and is stored in the standard template picture library. Each standard template picture in the standard template picture library has a unique identifier, the identifier can be a character string of 'document type + template name', and the document type is a document type corresponding to the template. And during testing, finding the corresponding standard template picture in a standard template picture library according to the printing test data. The standard template picture and the print result picture can be in pdf format, and can also be converted into other picture formats such as jpg.
And step S207, determining the test range of the standard template picture according to the test range of the printing result picture.
The test range of the print result picture is determined by a tester in advance, and can be the whole print result picture, or the range of the print result picture without white edges, or a local area of the print result picture defined according to test requirements, for example, the print result picture is an express document, and only a LOGO (LOGO) area and a bar code area of the document are used as the test range. The test range of the print result picture is expressed using a pixel coordinate matrix or a pixel coordinate function. All vertex pixel coordinates of the boundary of the test range including at least the print result picture in the pixel coordinate matrix representing the test range. For a rectangular test range, a pixel coordinate matrix may be constructed using the four vertex pixel coordinates of the rectangular test range boundary (i.e., the four corner pixel coordinates of the rectangular test range) to represent the test range, for example, test range M ═ 100,100 (100,1010); (1010,100) (1010 ) ], where (100 ) is the upper left vertex pixel coordinate, (100,1010) is the upper right vertex pixel coordinate, (1010,100) is the lower left vertex pixel coordinate, and (1010 ) is the lower right vertex pixel coordinate, and the determined boundary is the rectangle defined by the four pixel vertices. If the testing range is in an irregular shape, the boundary of the testing range is described by using a pixel coordinate function taking the vertex pixel coordinate as a characteristic point, and the shape of the testing range is different and the pixel coordinate function is also different. Compared with a rectangular test range, the boundary description of the irregular-shaped test range is complex, the irregular-shaped test range can be covered by the rectangular test range, and in addition, the conventional printing documents are all formed by rectangular areas, so the test range is preferably the rectangular test range with a simple description mode. It should be noted that the description of the test range can be regarded as the description of the boundary of the test range.
And the testing personnel predetermine the testing range of the printing result picture. The determining the test range of the standard template picture according to the test range of the print result picture based on the predetermined test range of the print result picture may include:
step a1, obtaining first boundary pixel points of the test range of the printing result picture, where the first boundary pixel points at least include all vertex pixel points of a first boundary, and the first boundary is the boundary of the test range of the printing result picture.
The first boundary pixel point may be obtained from description of a test range of the print result picture, such as a pixel point coordinate matrix or a pixel point coordinate function. The first boundary pixel points can be directly input into a test program through an input interface by a tester, and accordingly the test program obtains the first boundary pixel points from the input interface. The first boundary pixel points can also be stored in the database, and an identifier corresponding to the printing result picture is set, for example, the identifier includes a name of the printing result picture, and the test program reads the corresponding first boundary pixel points from the database according to the name of the printing result picture. The shape of the boundary of the test range is determined by the vertex of the boundary, so the vertex of the boundary is the characteristic point of the boundary, and for the first boundary, the first boundary pixel points at least comprise all the vertex pixel points of the first boundary. It should be noted that, if the boundary of the test range of the print result picture is circular, that is, the first boundary is circular, a plurality of points on the first boundary that are symmetrical with respect to the circle center, for example, four or six points that are symmetrical with respect to the circle center, may be used as vertex pixels of the first boundary, that is, as first boundary pixels, because the first boundary pixels and the second boundary pixels are used to compare to verify whether the mapping boundary of the standard template picture is correct, rather than using the first boundary pixels and the second boundary pixels to describe the boundary, the points that are partially featured on the first boundary and the second boundary are taken, the circular boundary has symmetry, and the plurality of points on which the circle center is symmetrical may be used to verify whether the mapping boundary of the circle is correct. For a circular boundary, the central point of the circular boundary and a plurality of symmetrical points on the circular boundary may also be combined to verify the circular mapping boundary, and the central point of the circular boundary may also be obtained from the pixel point function description of the test range.
Step a2, mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture.
The first boundary is mapped to the standard template picture, and the description of the boundary of the test range of the print result picture can be mapped to the description of the boundary of the standard template picture by using a preset mapping function, so that the mapping boundary is obtained. The mapping function may be a proportional function 1, that is, a description of the standard template picture using the same boundary of the test range as the print result picture, for example, the same pixel coordinate matrix description or the same pixel function description, specifically, for example, the description of the boundary of the test range of the print result picture is B1 ═ 100,100 (100,1010); (1010,100) (1010 ) ], the description of the boundary of the test range of the standard template picture, i.e. the description of the mapping boundary, is B2 ═ B1 × 1 ═ [ (100 ) (100,1010); (1010,100) (1010 ) ], where (100 ) is the boundary upper left vertex pixel coordinate, (100,1010) is the boundary upper right vertex pixel coordinate, (1010,100) is the boundary lower left vertex pixel coordinate, and (1010 ) is the boundary lower right vertex pixel coordinate, that is, the mapping boundary of the standard template picture is the rectangle determined by the four pixel vertices. The mapping function may also be set as a translation function according to the printing margin or the inherent error of the printer, for example, in order to facilitate binding, the printing margin is 100 pixels apart from the left, that is, the printing content integrally translates to the right by 100 pixels in the standard template picture compared to the printing result picture, or the inherent error of the printer may cause the printing content to integrally translate to the right by 100 pixels in the standard template picture compared to the printing result picture, and correspondingly, the mapping function is to translate 100 pixels to the left the pixel coordinate matrix or the pixel point function of the test range boundary of the printing result picture, so as to obtain the description of the test range boundary of the standard template picture, thereby obtaining the mapping boundary.
Mapping the first boundary to the standard template picture, and projecting the test range boundary of the printing result picture to the standard template picture by using an image processing program, namely converting pixel point coordinates in the description of the test range boundary of the printing result picture into pixel point coordinates in the standard template picture, so as to obtain the description of the mapping boundary, namely obtaining the mapping boundary.
Step a3, obtaining second boundary pixel points, where the second boundary pixel points at least include all vertex pixel points of the mapping boundary, the second boundary pixel points correspond to the first boundary pixel points, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points.
After a mapping boundary of a test range of a standard template picture is obtained, second boundary pixel points corresponding to the first boundary pixel points are obtained, wherein the second boundary pixel points are pixel points on the mapping boundary and at least comprise all vertex pixel points of the mapping boundary. Obtaining the coordinates of the corresponding second boundary pixel points in the standard template picture according to the coordinates of the first boundary pixel points, so as to obtain the second boundary pixel points, specifically, if a mapping function is used for mapping the first boundary to the standard template picture, if the mapping function is 1, the coordinates of the second boundary pixel points are the same as the coordinates of the first boundary pixel points, and if the mapping function is a translation function, the coordinates of the first boundary pixel points are translated by the same translation amount to obtain the coordinates of the second boundary pixel points; and if the test range boundary of the printing result graph is projected into the standard template picture, transforming the coordinates of the second boundary pixel points by using a coordinate transformation mode during projection to obtain the coordinates of the first boundary pixel points. The coordinates of the second boundary pixel points are determined by the coordinates of the first boundary pixel points, and the coordinates are corresponding to each other and equal in number. Another method for obtaining second boundary pixel points is to traverse the pixel points of the standard template picture according to the number of the first boundary pixel points and a set arrangement sequence of the first boundary pixel points (for example, a rectangular test range boundary, clockwise arrangement from an upper left vertex to a lower left vertex), in the same sequence as the arrangement sequence of the first boundary pixel points, and extract the pixel points in the mapping boundary, which are the same as the characteristics (for example, vertex or symmetric point) of the first boundary pixel points, according to the description of the mapping boundary, to obtain the second boundary pixel points, but this method has lower precision compared with the aforementioned method.
A4, comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
step a5, if the RGB values of the first boundary pixel point and the RGB values of the second boundary pixel point are all the same, determining that the test range of the standard template picture is successful, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed, and ending the printing test.
After the first boundary pixel point and the second boundary pixel point are obtained, comparing RGB values of the first boundary pixel point and the second boundary pixel point, if the RGB values of the first boundary pixel point and the second boundary pixel point are all the same, the second boundary pixel point and the first boundary pixel point are completely coincided, the obtained mapping boundary of the standard template picture is correct, namely the testing range of the standard template picture is determined to be successful, and the range within the mapping boundary is taken as the testing range of the standard template picture. If a pixel point with different RGB values exists between the second boundary pixel point and the first boundary pixel point, the second boundary pixel point is not matched with the first boundary pixel point, and the obtained mapping boundary of the standard template picture is wrong
That is, determining the test range of the standard template picture fails.
Step S208, if the testing range of the standard template picture is determined to be successful, traversing pixel points of the printing result picture within the testing range and pixel points of the standard template picture within the testing range, and comparing the RGB value of a first pixel point with the RGB value of a second pixel point, wherein the first pixel point is a pixel point of the printing result picture within the testing range, the second pixel point is a pixel point of the standard template picture within the testing range, and the second pixel point corresponds to the first pixel point;
step S209, determine whether the RGB values of the first pixel point and the second pixel point are different.
After the testing range of the standard template picture is determined to be successful, traversing pixel points of the printing result picture within the testing range and pixel points of the standard template picture within the testing range, taking the pixel points of the printing result picture within the testing range as first pixel points, taking the pixel points of the standard template picture within the testing range as second pixel points, comparing the RGB value of the first pixel points with the RGB value of the second pixel points, and judging whether the RGB value of the first pixel points is different from the RGB value of the second pixel points. In the method, since each pixel point in the test range is compared, the precision is high, but the workload is large, the time is consumed, and the resource occupation is large. The initial pixel point of each line of pixels in the test range of the printing result picture can be taken as a first pixel point, the initial pixel point of each line of pixels in the test range of the standard template picture can be taken as a second pixel point, the initial pixel points (namely the first pixel point and the second pixel point) of each line of pixels in the printing result picture and the marking template picture can be traversed in a row unit, and the RGB value of the first pixel point of each line and the RGB value of the second pixel point can be compared row by row.
Step S2010, if the RGB values of the first pixel point and the second pixel point are different, marking the first pixel point on the print result picture and/or marking the second pixel point on the standard template picture, and/or counting the number of the first pixel point.
If the RGB values of the first pixel point and the second pixel point are all the same, the printing result picture and the standard template picture are matched in the test range, and the printing program is normal. And if the comparison is positive, the RGB value of the first pixel point is different from the RGB value of the second pixel point, namely, a pixel point with different RGB values exists between the second pixel point and the first pixel point, and the printing result picture is not consistent with the standard template picture. In order to mark which parts in the printing result picture are different from the standard template picture, if the RGB value of the first pixel point is different from the RGB value of the second pixel point in the comparison, the first pixel point can be marked on the printing result picture, so that a user can conveniently check the positions, different from the standard template picture, in the printing result picture; the second pixel point can be marked on the standard template picture at the same time, so that a user can clearly check the difference between the printing result picture and the standard template picture; the second pixel point can also be marked on the standard template picture, so that the user needs to approximately find out which parts have problems on the printing result picture according to different positions on the standard template picture and the printing result picture. It should be noted that, since the mark is usually small, in order to make the mark visible, the mark is not only marked on the first pixel or the second pixel, but also can be a mark covering the first pixel or the second pixel.
FIG. 3 is a diagram illustrating an exemplary print test result flag. In fig. 3, taking an express document as an example, the left side is a standard template picture, the right side is a printing result picture, and an ellipse is used as a mark to mark a difference between the standard template picture and the printing result picture after the printing test, the first difference is that the printing result picture lacks an area name in the receiving address information, and the second difference is that the receiving payment does not have a decimal in the printing result picture. And printing the difference between the standard template picture and the printing result picture after the test, namely the second pixel point and the first pixel point with different RGB values.
Besides marking the pixels with different RGB values in the printing result picture and the standard template picture, the method can also count the first pixels with different RGB values in the printing result picture and the corresponding RGB values of the second pixels in the standard template picture, and a user can know how much difference exists between the printing result picture and the standard template picture through the counting condition of the first pixels. If the user only needs to know how much difference exists between the printing result picture and the standard template picture, the user does not mark the pixels with different RGB values in the printing result picture and the standard template picture, and only counts the first pixels with different RGB values in the printing result picture and the corresponding second pixels in the standard template picture.
The data verification is performed in the steps S201 to S204, the style verification is performed in the steps S205 to S2010, and whether the printing program itself is normal is checked by comparing the printing result picture with the standard template picture. It should be noted that, as a whole, steps S201 to S204 and steps S205 to S2010 may be executed in parallel or sequentially, and a sequential execution relationship between the two whole steps, that is, a sequential execution relationship between the data verification step and the pattern verification step, is represented by a dotted line in fig. 2 to indicate that the sequential execution relationship is not unique.
The automatic printing test method provided by the embodiments of the present disclosure calls a tested printing program interface, reads printing test data in the basic database to obtain printing result data, compares fields in the printing result data with fields in the basic database, performs data verification, if a value of a field in the printing result data is different from a value of a field in the basic database, indicates that the printing program interface has a data reading error, and records the field in which the error occurs, so as to facilitate user troubleshooting. In addition to data verification, the embodiment of the disclosure further provides a style verification method, which includes firstly preparing a standard template picture according to data in the basic database, establishing a standard template picture library, then printing according to the printing test data to obtain a printing result picture, and obtaining a corresponding standard template picture according to the printing result picture. And then, after the testing range of the standard template picture is determined to be successful, traversing and comparing the RGB values of the pixel points of the printing result picture within the testing range and the RGB values of the pixel points of the standard template picture within the testing range to judge the difference between the printing result picture and the standard template picture. If the printing result picture has pixels with different RGB values within the testing range of the printing result picture and the pixels with different RGB values within the testing range of the standard template picture, the printing result picture is not matched with the standard template picture, the printing program has problems, the pixels which correspond to each other but have different RGB values can be marked on the printing result picture and/or the standard template picture, a user can conveniently and visually observe different places of the printing result picture and the standard template picture, the number of the pixels with different RGB values in the printing result picture and the standard template picture can be counted, and the user can conveniently know how much different the printing result picture and the standard template picture. The automatic printing test method provided by the embodiment of the disclosure does not depend on manual work, and the printing test is automatically completed by a program, so that the efficiency of the printing test is improved, and the accuracy of the printing test is greatly improved.
Through the above description of the embodiments of the method, those skilled in the art will clearly understand that the present disclosure may be implemented by software, or by software plus a necessary general hardware platform, and certainly may be implemented by hardware, but in many cases, the former is a better implementation method. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of software products, and stored in a storage medium, and include instructions for causing a smart device to perform all or part of the steps of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media that can store data and program codes, such as Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
Fig. 4 is a schematic flow chart illustrating another method for automated print testing according to an exemplary embodiment of the disclosure, as shown in fig. 4, the method includes:
step S401, calling a tested printing program interface, reading printing test data in a basic database to obtain printing result data, wherein the basic database is used for storing the printing test data and is established in advance;
step S402, printing to obtain a printing result picture according to the printing test data;
step S403, acquiring a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, wherein the standard template picture in the standard template picture library is generated according to the data in the basic database and corresponds to the data in the basic database;
and S404, comparing the printing result picture with the standard template picture to obtain a printing test result.
Step S401 is the same as step S101 and step S201, step S402 is the same as step S206, and step S403 is the same as step S205.
Step S404 may include:
b1, determining the test range of the standard template picture according to the test range of the printing result picture;
b2, if the test range of the standard template picture is determined to be successful, traversing pixel points of the printing result picture within the test range and pixel points of the standard template picture within the test range, and comparing the RGB value of a first pixel point with the RGB value of a second pixel point, wherein the first pixel point is a pixel point of the printing result picture within the test range, the second pixel point is a pixel point of the standard template picture within the test range, and the second pixel point corresponds to the first pixel point;
b3, judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
b4, if the RGB value of the first pixel point is different from the RGB value of the second pixel point, marking the first pixel point on the printing result picture and/or marking the second pixel point on the standard template picture, and/or counting the number of the first pixel points.
Steps b1 to b4 may refer to steps S207 to S2010. Wherein, in the step b1, the determining the test range of the standard template picture according to the test range of the print result picture may include:
step c1, obtaining first boundary pixel points of the test range of the printing result picture, wherein the first boundary pixel points at least comprise all vertex pixel points of a first boundary, and the first boundary is the boundary of the test range of the printing result picture;
step c2, mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
step c3, obtaining second boundary pixel points, where the second boundary pixel points at least include all vertex pixel points of the mapping boundary, the second boundary pixel points correspond to the first boundary pixel points, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points;
step c4, comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
step c5, if the RGB values of the first boundary pixel point and the second boundary pixel point are all the same, determining that the test range of the standard template picture is successful, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
Wherein, the steps c1 to c5 can refer to the steps a1 to a 5.
All pixel points of the printing result picture in the testing range can be used as the first pixel points, all pixel points of the standard template picture in the testing range can be used as the second pixel points, the initial pixel points of each line of pixels of the printing result picture in the testing range can also be used as the first pixel points, and the initial pixel points of each line of pixels of the standard template picture in the testing range can be used as the second pixel points.
Step S404 may also be performed manually, but the manual mode is inefficient and prone to error, and the automatic testing mode provided by the embodiment of the present invention is not only efficient, but also can effectively prevent accuracy from being reduced due to overlooking and overlooking.
Fig. 5 is a block diagram of an automatic print test apparatus according to an exemplary embodiment of the present disclosure.
As shown in fig. 5, the apparatus includes:
a printing result data obtaining unit U501, configured to call a tested printing program interface, read printing test data in the basic database, and obtain printing result data, where the basic database is used to store the printing test data and is pre-established;
a field comparison unit U502, configured to compare a value of a first field with a value of a second field, where the first field is a field in the print result data, the second field is a field in the basic database, and the first field corresponds to the second field;
a first determining unit U503, configured to determine whether a value of the first field is different from a value of the second field;
a first test result processing unit U504, configured to record the first field if the value of the first field is different from the value of the second field.
In one embodiment, the print result data obtaining unit U501 may directly use the read print test data as the print result data, that is, directly obtain the data returned when the printer interface reads the basic library. In another embodiment, the print result data acquiring unit may be specifically configured to:
printing to obtain a printing result picture according to the printing test data;
and extracting printing result data according to the printing result picture.
The print data obtaining unit U501 may extract print result data according to the print result picture, and may convert the print result picture into data formats such as TXT, so as to obtain the print result data.
After the print data obtaining unit U501 obtains print result data, the field comparison unit U502 compares a value of a first field with a value of a second field corresponding to the first field, where the first field and the second field correspond to the same field name (or identifier) of the first field and the second field, with a field in the print result data as the first field and a field in the standard template picture data as the second field.
Through the comparison of the field comparison unit U502, the first determination unit U503 determines whether the value of the first field is different from the value of the second field, and if the value of the first field is different from the value of the second field, the first test result processing unit U504 records the first field, and uses the recorded first field as a data verification result, so as to facilitate a user to know which fields are wrongly read by the print program backend interface. And if the value of the first field is the same as the value of the second field, the data read by the back-end interface of the printing program is correct.
Fig. 6 is a block diagram illustrating another automatic print test apparatus according to an exemplary embodiment of the present disclosure.
As shown in fig. 6, the apparatus includes:
a printing result data obtaining unit U601, configured to call a tested printing program interface, read printing test data in the basic database, and obtain printing result data, where the basic database is used to store the printing test data and is pre-established;
a field comparison unit U602, configured to compare a value of a first field with a value of a second field, where the first field is a field in the print result data, the second field is a field in the basic database, and the first field corresponds to the second field;
a first determining unit U603, configured to determine whether a value of the first field is different from a value of the second field;
a first test result processing unit U604, configured to record the first field if the value of the first field is different from the value of the second field.
Here, U601 to U604 are used to perform data verification, and are the same as U501 to U504.
A standard template picture obtaining unit U605, configured to obtain a corresponding standard template picture from a standard template picture library according to the print test data in the basic database, where a standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database;
and the printing unit U606 is used for printing to obtain a printing result picture according to the printing test data.
The connection order of the standard template picture acquisition unit U605 and the printing unit U606 can be interchanged.
The template test range determining unit U607 is used for determining the test range of the standard template picture according to the test range of the printing result picture;
a pixel point comparison unit U608, configured to traverse pixel points of the print result picture within the test range of the print result picture and pixel points of the standard template picture within the test range of the standard template picture if it is determined that the test range of the standard template picture is successful, and compare RGB values of first pixel points and RGB values of second pixel points, where the first pixel points are pixel points of the print result picture within the test range of the print result picture, the second pixel points are pixel points of the standard template picture within the test range of the standard template picture, and the second pixel points correspond to the first pixel points;
a second determining unit U609, configured to determine whether the RGB values of the first pixel point and the second pixel point are different;
and the second test result processing unit U6010 is configured to mark the first pixel point on the print result picture, and/or mark the second pixel point on the standard template picture, and/or count the number of the first pixel points if the RGB values of the first pixel point and the RGB values of the second pixel point are different.
Among them, U605 to U6010 are used to perform pattern inspection.
The template test range determining unit U607 may include:
a first boundary pixel point obtaining subunit, configured to obtain a first boundary pixel point of a test range of the print result picture, where the first boundary pixel point at least includes all vertex pixel points of a first boundary, and the first boundary is a boundary of the test range of the print result picture;
a boundary mapping subunit, configured to map the first boundary to the standard template picture, so as to obtain a mapping boundary in the standard template picture;
a second boundary pixel point obtaining subunit, configured to obtain a second boundary pixel point, where the second boundary pixel point at least includes all vertex pixel points of the mapping boundary, the second boundary pixel point corresponds to the first boundary pixel point, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points;
the boundary pixel point comparison pair subunit is used for comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and the test range determining subunit is configured to determine that the test range of the standard template picture is successful if the RGB values of the first boundary pixel point and the RGB values of the second boundary pixel point are all the same, and determine that the test range of the standard template picture is failed if the range within the mapping boundary is the test range of the standard template picture.
In an embodiment, the pixel point comparing unit U608 uses all pixel points of the printing result picture in the testing range as the first pixel points, and uses all pixel points of the standard template picture in the testing range as the second pixel points. In another embodiment, the pixel point comparing unit U608 uses an initial pixel point of each line of pixels of the print result picture in the test range thereof as the first pixel point, and uses an initial pixel point of each line of pixels of the standard template picture in the test range thereof as the second pixel point.
The second determining unit U609 determines whether the RGB value of the first pixel is different from the RGB value of the second pixel by comparing the pixel with the pixel comparing unit U608. If the judged result is that the RGB values of the first pixel point and the second pixel point are all the same, the printing result picture and the standard template picture are matched in the test range, and the printing program is normal. And if the judged result is that the RGB value of the first pixel point is different from the RGB value of the second pixel point, the printing result picture is not consistent with the standard template picture, and a place with printing errors exists. If the RGB values of the first pixel point and the second pixel point are different, the second test result processing unit U6010 may mark the first pixel point on the print result picture, so that the user can view the place in the print result picture different from the standard template picture; the second pixel point can be marked on the standard template picture at the same time, so that a user can clearly check the difference between the printing result picture and the standard template picture; or only the second pixel point can be marked on the standard template picture, and the user can approximately find out which parts have problems on the printing result picture according to the different positions on the standard template picture and the printing result picture.
The second test result processing unit U6010 may, in addition to marking the pixels with different RGB values in the print result picture and the standard template picture, also count the first pixels with different RGB values in the print result picture and the corresponding second pixels in the standard template picture, which is convenient for the user to directly check how much difference the print result picture and the standard template picture are. If the user only needs to know how much difference exists between the printing result picture and the standard template picture, only the first pixel points with different RGB values in the printing result picture and the corresponding second pixel points in the standard template picture can be counted.
The above units U601 to U604 are data verification execution parts, the units U605 to U6010 are pattern verification execution parts, the units U601 to U604 as an overall execution part and the units U605 to U6010 as an overall execution part may be executed in parallel or sequentially, a dotted line in fig. 6 represents a sequential connection relationship between the data verification execution part and the pattern verification execution part to represent that the sequential connection relationship is not unique, and the two execution parts may also be parallel.
Fig. 7 is a block diagram illustrating yet another automatic print test apparatus according to an exemplary embodiment of the present disclosure.
As shown in fig. 7, the apparatus includes:
a printing result data obtaining unit U701, configured to call a tested printing program interface, read printing test data in the basic database, and obtain printing result data, where the basic database is used to store the printing test data and is pre-established;
the printing unit U702 is used for printing to obtain a printing result picture according to the printing test data;
a standard template picture obtaining unit U703, configured to obtain, according to the print test data in the basic database, a corresponding standard template picture from a standard template picture library, where the standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database;
and the comparison test unit U704 is used for comparing the printing result picture with the standard template picture to obtain a printing test result.
Wherein, the comparison test unit may include:
the template test range determining module is used for determining the test range of the standard template picture according to the test range of the printing result picture;
a pixel point comparison module, configured to traverse pixel points of the print result picture within the test range of the print result picture and pixel points of the standard template picture within the test range of the print result picture if it is determined that the test range of the standard template picture is successful, and compare an RGB value of a first pixel point with an RGB value of a second pixel point, where the first pixel point is a pixel point of the print result picture within the test range of the print result picture, the second pixel point is a pixel point of the standard template picture within the test range of the standard template picture, and the second pixel point corresponds to the first pixel point;
the second judgment module is used for judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and the second test result processing module is used for marking the first pixel points on the printing result picture and/or marking the second pixel points on the standard template picture and/or counting the number of the first pixel points if the RGB values of the first pixel points and the RGB values of the second pixel points are different.
The template test range determining module may include:
a first boundary pixel point obtaining submodule, configured to obtain a first boundary pixel point of a test range of the print result picture, where the first boundary pixel point at least includes all vertex pixel points of a first boundary, and the first boundary is a boundary of the test range of the print result picture;
the boundary mapping submodule is used for mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
a second boundary pixel point obtaining submodule, configured to obtain a second boundary pixel point, where the second boundary pixel point at least includes all vertex pixel points of the mapping boundary, the second boundary pixel point corresponds to the first boundary pixel point, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points;
the boundary pixel point comparison submodule is used for comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and the test range determining submodule is used for determining that the test range of the standard template picture is successful if the RGB values of the first boundary pixel points and the RGB values of the second boundary pixel points are all the same, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
In one embodiment, the pixel point comparison module uses all pixel points of the printing result picture in the testing range as the first pixel points, and uses all pixel points of the standard template picture in the testing range as the second pixel points. In another embodiment, the pixel point comparing module uses the initial pixel point of each line of pixels of the printing result picture in the testing range thereof as the first pixel point, and uses the initial pixel point of each line of pixels of the standard template picture in the testing range thereof as the second pixel point.
The second judging module judges whether the RGB value of the first pixel point is different from the RGB value of the second pixel point through comparison of the pixel point comparing module. If the judged result is that the RGB values of the first pixel point and the second pixel point are all the same, the printing result picture and the standard template picture are matched in the test range, and the printing program is normal. And if the judged result is that the RGB value of the first pixel point is different from the RGB value of the second pixel point, the printing result picture is not consistent with the standard template picture, and a place with printing errors exists. If the RGB value of the first pixel point is different from the RGB value of the second pixel point, the second test result processing module can mark the first pixel point on the printing result picture, so that a user can conveniently check the position, which is different from the standard template picture, in the printing result picture; the second pixel point can be marked on the standard template picture at the same time, so that a user can clearly check the difference between the printing result picture and the standard template picture; or only the second pixel point can be marked on the standard template picture, and the user can approximately find out which parts have problems on the printing result picture according to the different positions on the standard template picture and the printing result picture.
The second test result processing module can mark pixels with different RGB values in the printing result picture and the standard template picture, and can count first pixels with different RGB values in the printing result picture and corresponding second pixels in the standard template picture, so that a user can conveniently and directly check how many differences exist between the printing result picture and the standard template picture. If the user only needs to know how much difference exists between the printing result picture and the standard template picture, only the first pixel points with different RGB values in the printing result picture and the corresponding second pixel points in the standard template picture can be counted.
For convenience of description, the above devices are described as being divided into various units or modules by function, respectively. Of course, the functionality of the various elements or modules may be implemented in the same one or more software and/or hardware implementations of the present disclosure.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units or modules may or may not be physical units or modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units or modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, or device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, apparatus, or device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, apparatus or device that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (26)

1. An automated print testing method, comprising:
calling a tested printing program interface, reading printing test data in a basic database to obtain printing result data, wherein the basic database is used for storing the printing test data and is established in advance;
comparing the value of a first field with the value of a second field, wherein the first field is a field in the printing result data, the second field is a field in the basic database, and the first field corresponds to the second field;
judging whether the value of the first field is different from the value of the second field;
and recording the first field if the value of the first field is different from the value of the second field.
2. The automated print test method according to claim 1, wherein the basic database is created by extracting common data from the print test document as basic data in advance according to a test purpose.
3. The automated print test method of claim 1, wherein said reading print test data in the underlying database to obtain print result data comprises:
taking the read printing test data as printing result data; or,
printing to obtain a printing result picture according to the printing test data;
and extracting printing result data according to the printing result picture.
4. The automated print test method of any of claims 1 to 3, further comprising:
acquiring a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, wherein the standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database;
printing to obtain a printing result picture according to the printing test data;
determining the test range of the standard template picture according to the test range of the printing result picture;
if the testing range of the standard template picture is determined to be successful, traversing pixel points of the printing result picture within the testing range and pixel points of the standard template picture within the testing range, and comparing the RGB value of a first pixel point with the RGB value of a second pixel point, wherein the first pixel point is a pixel point of the printing result picture within the testing range, the second pixel point is a pixel point of the standard template picture within the testing range, and the second pixel point corresponds to the first pixel point;
judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and if the RGB value of the first pixel point is different from the RGB value of the second pixel point, marking the first pixel point on the printing result picture and/or marking the second pixel point on the standard template picture, and/or counting the number of the first pixel points.
5. The automated print testing method of claim 4, wherein said determining a test range of the standard template picture according to a test range of the print result picture comprises:
acquiring first boundary pixel points of a test range of the printing result picture, wherein the first boundary pixel points at least comprise all vertex pixel points of a first boundary, and the first boundary is the boundary of the test range of the printing result picture;
mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
acquiring second boundary pixel points, wherein the second boundary pixel points at least comprise all vertex pixel points of the mapping boundary, the second boundary pixel points correspond to the first boundary pixel points, and the number of the second boundary pixel points is equal to that of the first boundary pixel points;
comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and if the RGB values of the first boundary pixel points and the RGB values of the second boundary pixel points are all the same, determining that the test range of the standard template picture is successful, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
6. The automated print test method of claim 4, wherein all pixels of the print result picture within its test range are taken as the first pixels, and all pixels of the standard template picture within its test range are taken as the second pixels.
7. The automated print test method of claim 4, wherein the first pixel point is the initial pixel point of each line of pixels of the print result picture in the test range of the print result picture, and the second pixel point is the initial pixel point of each line of pixels of the standard template picture in the test range of the standard template picture.
8. An automated print testing method, comprising:
calling a tested printing program interface, and reading printing test data in a basic database, wherein the basic database is used for storing the printing test data and is established in advance;
printing to obtain a printing result picture according to the printing test data;
acquiring a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, wherein the standard template picture in the standard template picture library is generated according to the data in the basic database and corresponds to the data in the basic database; and the number of the first and second groups,
and comparing the printing result picture with the standard template picture to obtain a printing test result.
9. The automated print test method according to claim 8, wherein the basic database is created by extracting common data from print test documents of different types as basic data in advance according to a test purpose.
10. The automated print test method of claim 8, wherein said comparing said print result picture with said standard template picture to obtain a print test result comprises:
determining the test range of the standard template picture according to the test range of the printing result picture;
if the testing range of the standard template picture is determined to be successful, traversing pixel points of the printing result picture within the testing range and pixel points of the standard template picture within the testing range, and comparing the RGB value of a first pixel point with the RGB value of a second pixel point, wherein the first pixel point is a pixel point of the printing result picture within the testing range, the second pixel point is a pixel point of the standard template picture within the testing range, and the second pixel point corresponds to the first pixel point;
judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and if the RGB value of the first pixel point is different from the RGB value of the second pixel point, marking the first pixel point on the printing result picture and/or marking the second pixel point on the standard template picture, and/or counting the number of the first pixel points.
11. The automated print testing method of claim 10, wherein said determining a test range of the standard template picture according to a test range of the print result picture comprises:
acquiring first boundary pixel points of a test range of the printing result picture, wherein the first boundary pixel points at least comprise all vertex pixel points of a first boundary, and the first boundary is the boundary of the test range of the printing result picture;
mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
acquiring second boundary pixel points, wherein the second boundary pixel points at least comprise all vertex pixel points of the mapping boundary, the second boundary pixel points correspond to the first boundary pixel points, and the number of the second boundary pixel points is equal to that of the first boundary pixel points;
comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and if the RGB values of the first boundary pixel points and the RGB values of the second boundary pixel points are all the same, determining that the test range of the standard template picture is successful, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
12. The automated print test method of claim 10, wherein all pixels of the print result picture within its test range are taken as the first pixels, and all pixels of the standard template picture within its test range are taken as the second pixels.
13. The automated print test method of claim 10, wherein the first pixel point is the initial pixel point of each line of pixels of the print result picture in the test range of the print result picture, and the second pixel point is the initial pixel point of each line of pixels of the standard template picture in the test range of the standard template picture.
14. An automated print test apparatus, comprising:
the printing result data acquisition unit is used for calling a tested printing program interface, reading printing test data in a basic database and obtaining printing result data, wherein the basic database is used for storing the printing test data and is established in advance;
a field comparison unit, configured to compare a value of a first field with a value of a second field, where the first field is a field in the print result data, the second field is a field in the basic database, and the first field corresponds to the second field;
a first judging unit, configured to judge whether a value of the first field is different from a value of the second field;
and the first test result processing unit is used for recording the first field if the value of the first field is different from the value of the second field.
15. The automated print test apparatus of claim 14, wherein the basic database is created by extracting common data from the print test document as basic data in advance according to a test purpose.
16. The automated print test apparatus of claim 14, wherein the print result data acquisition unit is specifically configured to:
taking the read printing test data as printing result data; or,
printing to obtain a printing result picture according to the printing test data;
and extracting printing result data according to the printing result picture.
17. The automated print test apparatus of any of claims 14 to 16, further comprising:
a standard template picture acquiring unit, configured to acquire a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, where a standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database;
the printing unit is used for printing to obtain a printing result picture according to the printing test data;
the template test range determining unit is used for determining the test range of the standard template picture according to the test range of the printing result picture;
a pixel point comparison unit, configured to traverse pixel points of the print result picture within the test range of the print result picture and pixel points of the standard template picture within the test range of the print result picture if it is determined that the test range of the standard template picture is successful, and compare an RGB value of a first pixel point with an RGB value of a second pixel point, where the first pixel point is a pixel point of the print result picture within the test range of the print result picture, the second pixel point is a pixel point of the standard template picture within the test range of the standard template picture, and the second pixel point corresponds to the first pixel point;
the second judging unit is used for judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and the second test result processing unit is used for marking the first pixel points on the printing result picture and/or marking the second pixel points on the standard template picture and/or counting the number of the first pixel points if the RGB values of the first pixel points and the RGB values of the second pixel points are different.
18. The automated print test apparatus of claim 17, wherein the template test range determination unit comprises:
a first boundary pixel point obtaining subunit, configured to obtain a first boundary pixel point of a test range of the print result picture, where the first boundary pixel point at least includes all vertex pixel points of a first boundary, and the first boundary is a boundary of the test range of the print result picture;
a boundary mapping subunit, configured to map the first boundary to the standard template picture, so as to obtain a mapping boundary in the standard template picture;
a second boundary pixel point obtaining subunit, configured to obtain a second boundary pixel point, where the second boundary pixel point at least includes all vertex pixel points of the mapping boundary, the second boundary pixel point corresponds to the first boundary pixel point, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points;
the boundary pixel point comparison pair subunit is used for comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and the test range determining subunit is configured to determine that the test range of the standard template picture is successful if the RGB values of the first boundary pixel point and the RGB values of the second boundary pixel point are all the same, and determine that the test range of the standard template picture is failed if the range within the mapping boundary is the test range of the standard template picture.
19. The automated print test apparatus of claim 17, wherein the pixel point comparing unit uses all pixel points of the print result picture in the test range thereof as the first pixel points, and uses all pixel points of the standard template picture in the test range thereof as the second pixel points.
20. The automated print test apparatus of claim 17, wherein the pixel point comparing unit uses the initial pixel point of each line of pixels of the print result picture in the test range as the first pixel point, and uses the initial pixel point of each line of pixels of the standard template picture in the test range as the second pixel point.
21. An automated print test apparatus comprising:
the printing result data acquisition unit is used for calling a tested printing program interface and reading printing test data in a basic database, and the basic database is used for storing the printing test data and is established in advance;
the printing unit is used for printing to obtain a printing result picture according to the printing test data;
a standard template picture acquiring unit, configured to acquire a corresponding standard template picture from a standard template picture library according to the printing test data in the basic database, where a standard template picture in the standard template picture library is generated according to the data in the basic database, and the standard template picture corresponds to the data in the basic database; and
and the comparison test unit is used for comparing the printing result picture with the standard template picture to obtain a printing test result.
22. The automated print test apparatus of claim 21, wherein the basic database is created by extracting common data from different types of print test documents as basic data in advance according to a test purpose.
23. The automated print test apparatus of claim 21, wherein the alignment test unit comprises:
the template test range determining module is used for determining the test range of the standard template picture according to the test range of the printing result picture;
a pixel point comparison module, configured to traverse pixel points of the print result picture within the test range of the print result picture and pixel points of the standard template picture within the test range of the print result picture if it is determined that the test range of the standard template picture is successful, and compare an RGB value of a first pixel point with an RGB value of a second pixel point, where the first pixel point is a pixel point of the print result picture within the test range of the print result picture, the second pixel point is a pixel point of the standard template picture within the test range of the standard template picture, and the second pixel point corresponds to the first pixel point;
the second judgment module is used for judging whether the RGB value of the first pixel point is different from the RGB value of the second pixel point;
and the second test result processing module is used for marking the first pixel points on the printing result picture and/or marking the second pixel points on the standard template picture and/or counting the number of the first pixel points if the RGB values of the first pixel points and the RGB values of the second pixel points are different.
24. The automated print test apparatus of claim 23, wherein the template test scope determination module comprises:
a first boundary pixel point obtaining submodule, configured to obtain a first boundary pixel point of a test range of the print result picture, where the first boundary pixel point at least includes all vertex pixel points of a first boundary, and the first boundary is a boundary of the test range of the print result picture;
the boundary mapping submodule is used for mapping the first boundary to the standard template picture to obtain a mapping boundary of the standard template picture;
a second boundary pixel point obtaining submodule, configured to obtain a second boundary pixel point, where the second boundary pixel point at least includes all vertex pixel points of the mapping boundary, the second boundary pixel point corresponds to the first boundary pixel point, and the number of the second boundary pixel points is equal to the number of the first boundary pixel points;
the boundary pixel point comparison submodule is used for comparing the RGB value of the first boundary pixel point with the RGB value of the second boundary pixel point;
and the test range determining submodule is used for determining that the test range of the standard template picture is successful if the RGB values of the first boundary pixel points and the RGB values of the second boundary pixel points are all the same, and taking the range within the mapping boundary as the test range of the standard template picture, otherwise, determining that the test range of the standard template picture is failed.
25. The automated print test apparatus of claim 23, wherein the pixel comparison module uses all pixels of the print result picture within the test range thereof as the first pixels, and uses all pixels of the standard template picture within the test range thereof as the second pixels.
26. The automated print test apparatus of claim 23, wherein the pixel comparison module uses the initial pixel of each line of pixels of the print result image in the test range as the first pixel, and uses the initial pixel of each line of pixels of the standard template image in the test range as the second pixel.
CN201610069847.4A 2016-02-01 2016-02-01 Automatic printing test method and device Active CN107025076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610069847.4A CN107025076B (en) 2016-02-01 2016-02-01 Automatic printing test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610069847.4A CN107025076B (en) 2016-02-01 2016-02-01 Automatic printing test method and device

Publications (2)

Publication Number Publication Date
CN107025076A CN107025076A (en) 2017-08-08
CN107025076B true CN107025076B (en) 2020-04-28

Family

ID=59524219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610069847.4A Active CN107025076B (en) 2016-02-01 2016-02-01 Automatic printing test method and device

Country Status (1)

Country Link
CN (1) CN107025076B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943436B (en) * 2017-12-05 2020-12-01 浪潮金融信息技术有限公司 Expense list printing method and device, computer readable storage medium and terminal
JP2019171830A (en) * 2018-03-29 2019-10-10 株式会社リコー Image formation apparatus, control method, program and printing system
CN110618795A (en) * 2018-06-19 2019-12-27 阿里巴巴集团控股有限公司 Printing processing method and device and electronic equipment
CN109685626A (en) * 2018-12-27 2019-04-26 北京顺丰同城科技有限公司 A kind of lower single test method and device
CN110363241A (en) * 2019-07-11 2019-10-22 合肥联宝信息技术有限公司 A kind of picture comparative approach and device
CN111399786B (en) * 2020-02-28 2024-03-08 中国平安人寿保险股份有限公司 Method and device for generating print file, terminal equipment and storage medium
CN116662087A (en) * 2023-05-12 2023-08-29 深圳市威立印技术有限公司 Printer software testing system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5838465A (en) * 1994-12-02 1998-11-17 Hitachi, Ltd. Color compensating method of color image and color image generating apparatus
DE10361936A1 (en) * 2003-12-29 2005-07-28 Lpcon Gmbh Error detection device for detection of errors in color print images during printing comprises a comparison module for comparing selected areas in an image of an actual print with a reference print
CN101807140A (en) * 2010-01-29 2010-08-18 山东新北洋信息技术股份有限公司 Printing control method and system
CN101839865A (en) * 2010-04-13 2010-09-22 富美科技有限公司 Automatic distinguishing method of printing effect
CN102107561A (en) * 2009-12-25 2011-06-29 江门市得实计算机外部设备有限公司 Printing quality intelligent monitoring method, and printer and printing system employing same
CN102739889A (en) * 2011-04-07 2012-10-17 鸿富锦精密工业(深圳)有限公司 Printing configuration method of multifunctional machine
CN103034460A (en) * 2011-09-30 2013-04-10 北大方正集团有限公司 Method and device for testing printer driver

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5838465A (en) * 1994-12-02 1998-11-17 Hitachi, Ltd. Color compensating method of color image and color image generating apparatus
DE10361936A1 (en) * 2003-12-29 2005-07-28 Lpcon Gmbh Error detection device for detection of errors in color print images during printing comprises a comparison module for comparing selected areas in an image of an actual print with a reference print
CN102107561A (en) * 2009-12-25 2011-06-29 江门市得实计算机外部设备有限公司 Printing quality intelligent monitoring method, and printer and printing system employing same
CN101807140A (en) * 2010-01-29 2010-08-18 山东新北洋信息技术股份有限公司 Printing control method and system
CN101839865A (en) * 2010-04-13 2010-09-22 富美科技有限公司 Automatic distinguishing method of printing effect
CN102739889A (en) * 2011-04-07 2012-10-17 鸿富锦精密工业(深圳)有限公司 Printing configuration method of multifunctional machine
CN103034460A (en) * 2011-09-30 2013-04-10 北大方正集团有限公司 Method and device for testing printer driver

Also Published As

Publication number Publication date
CN107025076A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN107025076B (en) Automatic printing test method and device
US11321598B2 (en) Multicolor barcode and color calibration method thereof
CN108446394B (en) File difference comparison method and device
CN110908890A (en) Automatic test method and device for interface
JP2015191382A (en) Image data processing device, method, and program
CN108734849B (en) Automatic invoice true-checking method and system
CN112199268A (en) Software compatibility testing method and electronic equipment
CN109003257A (en) A kind of optical character verification method
CN110991150A (en) Data format conversion method and device and account reporting system
CN104408403A (en) Arbitration method and apparatus for inconsistent phenomenon of two pieces of entry information
Karunanayake OMR sheet evaluation by web camera using template matching approach
CN116798061A (en) Bill auditing and identifying method, device, terminal and storage medium
CN115374517A (en) Testing method and device for wiring software, electronic equipment and storage medium
US20240104185A1 (en) Device registration methods and apparatuses, electronic devices and storage media
CN112561793B (en) Planar design space conversion method and system
CN114373188A (en) Drawing identification method and device, electronic equipment and storage medium
CN114493159A (en) Node position checking method and device based on MES system
CN113344084A (en) Jewelry quality identification method and device based on image recognition
CN107992417B (en) Test method, device and equipment, readable storage medium storing program for executing based on storing process
CN105844255A (en) Subjective question marking method and subjective question marking device
CN113516131A (en) Image processing method, device, equipment and storage medium
CN113536868A (en) Circuit board fault identification method and related equipment
CN103870793A (en) Method and device for monitoring paper media advertisements
CN115631358A (en) Automatic detection method, device and computer readable storage medium
CN111932491B (en) Component detection method, device and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20180416

Address after: Four story 847 mailbox of the capital mansion of Cayman Islands, Cayman Islands, Cayman

Applicant after: CAINIAO SMART LOGISTICS HOLDING Ltd.

Address before: Grand Cayman, Cayman Islands

Applicant before: ALIBABA GROUP HOLDING Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant