Summary of the invention
The invention provides the method and the device of detected image treatment system function, to improve the detection efficiency of image processing system function.
Technical scheme of the present invention is achieved in that
A kind of method of detected image treatment system function comprises:
To test character and be mixed on the input picture, with the functional module of mixed image input picture treatment system;
Character on the arbitration functions module output image whether with the test character match, if determine that the functional module of image processing system is normal.
Whether the character on the described arbitration functions module output image comprises with the test character match:
The character of identification on the output image compares character and each the test character that identifies one by one, judge whether all identical, if, judge whether the position of the character on the output image all correct, as if all correct, then the functional module of definite image processing system is normal.
Whether the character on the described arbitration functions module output image comprises with the test character match:
According to the test position of character on input picture and the function of functional module, determine the position of each character on output image, identification character on each position, if it is identical with each test character respectively all to identify character and each character on each position, determine that then the functional module of image processing system is normal.
Set in advance detection number of times to functional module,
And, whether the character on the described arbitration functions module output image further comprises with the test character match afterwards: judge that whether the detection number of times that has carried out is less than the detection number of times that sets in advance, if less than, return execution and will test character and be mixed into action on the input picture.
Describedly determine that the detection number of times carried out is not less than after the detection number of times that sets in advance, returns execution and will test the action that character is mixed on the input picture and further comprise before:
Change test character, and/or the size of change test character, and/or change test character is mixed into the position on the input picture.
Whether the character on the described arbitration functions module output image further comprises with the test character match afterwards:
The all functions module that judges whether image processing system has all detected and has finished, if not, to test character is mixed on the input picture, with next functional module of mixed image input picture treatment system, return the character carried out on the arbitration functions module output image whether with the action of test character match.
A kind of device of detected image treatment system function comprises:
Character is provided with module, test character, character boundary and character is set is mixed into position on the input picture;
Mixing module receives input picture, according to character the test character information that module is provided with is set, and will test character and be mixed on the input picture, with the functional module of mixed image input picture treatment system;
Detection module receives the image of the functional module output of image processing system, judges that character on the output image and character are provided with the test character that is provided with in the module and whether mate, if the functional module of output image treatment system is normally indicated.
Described detection module comprises:
Character recognition module receives the image of the functional module output of image processing system, and identification character on output image sends the character that identifies and the positional information on output image thereof;
The character comparison module, character that the reception character recognition module is sent and the positional information on output image thereof, the character of respectively testing that each character and character is provided with the module setting compares one by one, judge whether all identical, if the character of respectively testing that the module setting is set according to character is mixed into position on the input picture, judges whether the position of each character on output image be all correct, if all correct, the functional module of output image treatment system is normally indicated.
Described detection module comprises:
The character position determination module, respectively test the function that character is mixed into the functional module of position on the input picture and image processing system according to what character was provided with the module setting, determine the position of each character on output image, determined positional information is sent;
The character recognition comparison module, receive the image of the functional module output of image processing system, the positional information of each character on output image that the receiving character position determination module is sent, identification character on each position of output image, judge whether on all positions, all to identify character and character that all identify and character be provided with the module setting respectively to test character all identical, if the functional module of output image treatment system is normally indicated.
Compared with prior art, the present invention is mixed on the input picture by testing character, with the functional module of mixed image input picture treatment system; Character on the arbitration functions module output image whether with the test character match, if, determine that the functional module of image processing system is normal, realized the automatic detection of the function of image processing system has been improved detection efficiency, guaranteed the accuracy of checking; And, reduced workload.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
The flow chart of the detected image treatment system function that Fig. 1 provides for the embodiment of the invention one, as shown in Figure 1, its concrete steps are as follows:
Step 101: set in advance detection number of times to each functional module of image processing system.
Step 102: select the test character, determine that character boundary and character are mixed into the position on the input picture.
The test character can be selected arbitrarily, and the number of character can be one, also can be more than two, and the size of each test character can be identical, also can be different, and each test character is positioned on the diverse location of input picture.
Step 103: will test character and be mixed on the input picture.
The form of input picture can be Bayer, YUV, RGB etc., and this step can adopt existing techniques in realizing.
Step 104: with the functional module of mixed image input picture treatment system, functional module is handled input picture according to the function of self.
Step 105: receive the output image after the functional module of image processing system is handled, identification character on output image.
Identification character can adopt existing optical character identification (OCR, Optical CharacterRecognition) algorithm.
Step 106: that selects in each character that will identify and the step 102 respectively tests character sequence relatively, judge whether all identical, if, execution in step 107; Otherwise, execution in step 109.
Step 107: whether the position of judging the character that identifies is all correct, if, execution in step 108; Otherwise, execution in step 109.
Difference in functionality according to functional module, the test character in the position on the output image may with different on input picture as: function is that image amplifies or dwindles, at this moment, need the position on input picture according to this function and test character earlier, calculate the position of test character on output image.
Step 108: this testing result of determining the current functional module of image processing system is normal, and testing result is shown to the user, goes to step 110.
Step 109: this testing result of determining the current functional module of image processing system is unusual, testing result is shown to the user, execution in step 110.
To be shown to the user to each testing result of each functional module, so that the user safeguards functional module.
Step 110: judge and whether detected number of times less than the default number of times that detects, if return step 102; Otherwise, execution in step 111.
Step 111: begin to detect next functional module.
Testing process to each functional module is identical.
In actual applications, image is continuous input picture treatment system normally, at this moment, character can be mixed into successively on each continuous input picture, then with the functional module of the continuous input picture treatment system of image of mixing.
For the same functional module of image processing system, detect the position that employed character, input picture, character boundary, character be mixed on the input picture can be identical at every turn, also can be different.
In the embodiment shown in fig. 1, be to behind the default detection of the same functional module cycle detection number of times, begin testing process again to next functional module; In actual applications, also all functions module can be carried out cycle detection as a detected object, that is: detected once successively to all functions module after, repeat this process again, reach the default number of times that detects until detecting number of times.
The flow chart of the detected image treatment system function that Fig. 2 provides for the embodiment of the invention two, as shown in Figure 2, its concrete steps are as follows:
Step 201~204 are identical with step 101~104.
Step 205: receive the output image after the functional module of image processing system is handled.
Step 206: determine the position of test character on output image, identification character on determined each position.
Step 207: judge whether on all positions, all to identify character, if, execution in step 208; Otherwise, execution in step 210.
Step 208: the test character sequence of selecting in all characters that will identify and the step 202 relatively, judge whether all identical, if, execution in step 209; Otherwise, execution in step 210.
Step 209: this testing result of determining the current functional module of image processing system is normal, and testing result is shown to the user, goes to step 211.
Step 210: this testing result of determining the current functional module of image processing system is unusual, testing result is shown to the user, execution in step 211.
Step 211: judge whether detected number of times equals the default number of times that detects, if, execution in step 212; Otherwise, return step 202.
Step 212: begin to detect next functional module.
The checkout gear composition diagram of the image processing system function that Fig. 3 provides for the embodiment of the invention, as shown in Figure 3, it mainly comprises: character is provided with module 31, mixing module 32 and detection module 33, wherein:
Character is provided with module 31: test character, character boundary and character are set are mixed into position on the input picture.
Mixing module 32: receive input picture, according to character the test character, character boundary, the character that are provided with are set in the module 31 and are mixed into position on the input picture, to test character and be mixed on the input picture, mixed image will be input to the functional module of image processing system.
Detection module 33: the image that receives output after the functional module of image processing system is handled, judge that character on the output image and character are provided with the test character that is provided with in the module 31 and whether mate, if the current functional module of output image treatment system is normally indicated; Otherwise the current functional module of output image treatment system is indicated unusually.
As shown in Figure 4, detection module 33 can comprise: character recognition module 3311 and character comparison module 3312, wherein:
Character recognition module 3311: receive the image of the functional module output of image processing system, identification character on output image sends to character comparison module 3312 with character and the positional information on output image thereof that identifies.
Character comparison module 3312: character that reception character recognition module 3311 is sent and the positional information on output image thereof, respectively test character sequence relatively with what this each character and character were provided with that module 31 is provided with, judge whether all identical, if, the character of respectively testing that is provided with according to character that module 31 is provided with is mixed into position on the input picture, judge whether the position of each character on output image be all correct, if all correct, the current functional module of output image treatment system is normally indicated; Otherwise the current functional module of output image treatment system is indicated unusually.
Perhaps, as shown in Figure 5, detection module 33 also can comprise: character position determination module 3321 and character recognition comparison module 3322, wherein:
Character position determination module 3321: respectively test the function that character is mixed into the functional module of position on the input picture and image processing system according to what character was provided with that module 31 is provided with, determine the position of character on output image, determined positional information is sent to character recognition comparison module 3322.
Character recognition comparison module 3322: the image that receives the functional module output of image processing system, the positional information of the character that receiving character position determination module 3321 is sent on output image, identification character on each position of output image, judge whether on all positions, all to identify that character and character that all identify and character be provided with that module 31 is provided with that respectively to test character all identical, if the current functional module of output image treatment system is normally indicated; Otherwise the current functional module of output image treatment system is indicated unusually.
The above only is process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.