The method and device of authentication image acquisition process
Technical field
The present invention relates to field of computer technology, particularly to the method and device of a kind of authentication image acquisition process.
Background technology
Multimedia application is more and more extensive, and the especially application of shooting technology becomes the very important part of multimedia technology.Owing to being affected by several factors such as light, temperature and the inherent characters of self during camera collection image, so after needing to carry out the view data collected processing checking, just can obtain the image that image that human eye seen is identical, so it is critically important technology that image acquisition and processing module verification processes image.
In the prior art, it is unit that the method for authentication image acquisition processing module process image is mainly a frame image data, is configured image processing function and processes single-frame images and verify.
During realizing the present invention, inventor finds that prior art at least there is problems in that process and authentication image are all in units of a frame image data, need to reconfigure the functional parameter of graphics process when every frame image data is processed, and difference can be produced with actual motion environment when successive frame is processed.
Summary of the invention
In order to solve prior art can not process the problem of sequential frame image data, embodiments provide the method and device of a kind of authentication image acquisition process.Described technical scheme is as follows:
On the one hand, it is provided that a kind of method of authentication image acquisition process, described method includes:
Produce and control affairs, currently control the frame number of affairs view data to be processed according to the content obtaining of described control affairs and frame number variable is set, obtain the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data;
Calling program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carry out described view data processing output the first data result, and judge whether the most untreated described view data according to described frame number variable, it is to continue to call described program module and carry out processing output the first data result, until having processed the view data of all frames;
After carrying out described view data processing output the first data result, the second data result of the respective frame of monitoring image acquisition and processing module output, and according to described second data result of described first data result authentication image acquisition processing module output.
In conjunction with first aspect, under the first possible embodiment of first aspect, described calling program module, image acquisition and processing function is configured by described configuration information and image acquisition and processing functional parameter according to present frame, carry out described view data processing output the first data result, specifically include:
According to described configuration information judge the image acquisition and processing function of present frame the need of being updated,
If needing to be updated, the image acquisition and processing function needing to be updated then is determined according to described configuration information, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter be replaced, and carry out processing output the first data result to view data according to the image acquisition and processing function after updating;
If being made without updating, then described view data is carried out processing output the first data result by the described image acquisition and processing function arranged according to previous frame.
In conjunction with first aspect, under the embodiment that the second of first aspect is possible, described judge whether the most untreated described view data according to described frame number variable, it is to continue to call described program module and carry out processing output the first data result, until having processed the view data of all frames, specifically include:
Described frame number variable is carried out subtracting one operation, whether the value judging described frame number variable is 0, it is to terminate to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carries out described view data processing output the first data result.
In conjunction with first aspect, under the third possible embodiment of first aspect, described method also includes:
Call described program module, generate according to described configuration information and described image acquisition and processing functional parameter and control file, and be transferred to image acquisition and processing module, so that view data is processed according to controlling file by image acquisition and processing module;
Image acquisition and processing module it is transferred to, so that image acquisition and processing module processes generation the second data result to described carrying out after described view data being changed.
Second aspect, the invention provides the device of a kind of authentication image acquisition process, and described device includes:
Acquisition module, is used for producing control affairs, currently controls the frame number of affairs view data to be processed according to the content obtaining of described control affairs and arranges frame number variable, obtains the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data;
Processing module, for calling program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carry out described view data processing output the first data result, and judge whether the most untreated described view data according to described frame number variable, it is to continue to call described program module and carry out processing output the first data result, until having processed the view data of all frames;
Monitoring authentication module, for after carrying out described view data processing output the first data result, second data result of the respective frame of monitoring image acquisition and processing module output, and according to described second data result of described first data result authentication image acquisition processing module output.
In conjunction with second aspect, under the first possible embodiment of second aspect, described processing module specifically for judge according to described configuration information the image acquisition and processing function of present frame the need of being updated,
If needing to be updated, the image acquisition and processing function needing to be updated then is determined according to described configuration information, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter be replaced, and carry out processing output the first data result to view data according to the image acquisition and processing function after updating;
If being made without updating, then described view data is carried out processing output the first data result by the described image acquisition and processing function arranged according to previous frame.
In conjunction with second aspect, under the embodiment that the second of second aspect is possible, described processing module is also particularly useful for described frame number variable is carried out subtract one operation, whether the value judging described frame number variable is 0, it is to terminate to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carries out described view data processing output the first data result.
In conjunction with second aspect, under the third possible embodiment of second aspect, described device is additionally operable to call described program module, generate according to described configuration information and described image acquisition and processing functional parameter and control file, and be transferred to image acquisition and processing module, so that view data is processed by image acquisition and processing module according to controlling file;Image acquisition and processing module it is transferred to, so that image acquisition and processing module processes generation the second data result to described carrying out after described view data being changed.
The technical scheme that the embodiment of the present invention provides has the benefit that the present invention passes through the method and device of authentication image acquisition process, solves the process validation problem of sequential frame image data, and updates configuration information owing to increasing, improves the efficiency of checking.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in describing embodiment below, the required accompanying drawing used is briefly described, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of authentication image acquisition process that the embodiment of the present invention one provides;
Fig. 2 is the detail flowchart of step 102 in the embodiment of the present invention one;
Fig. 3 is the method flow diagram of a kind of authentication image acquisition process that the embodiment of the present invention two provides;
Fig. 4 is the external connection schematic diagram of image acquisition and processing module;
Fig. 5 is the apparatus structure schematic diagram of a kind of authentication image acquisition process that the embodiment of the present invention three provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
The embodiment of the present invention one provides a kind of method of authentication image acquisition process, sees Fig. 1, and method flow includes:
101: produce and control affairs, currently control the frame number of affairs view data to be processed according to the content obtaining of described control affairs and frame number variable is set, obtain the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data.
Wherein, described control affairs refer to the affairs produced by test case generator, comprise: the contents such as view data, the frame number of view data, image acquisition and processing functional parameter, configuration information;Described image acquisition and processing parameter function parameter includes the parameter of image collecting function, and such as data form, image size etc., also include the parameter of image processing function, and ratio is such as whether carry out data conversion, whether carry out cutting etc.;Described configuration information is for controlling the renewal of image acquisition and processing functional parameter;View data refers to the analog data of the pictorial information that camera collection arrives;
It addition, described control affairs are predefined according to picture requirement, including successive frame and the relevant information of the image real time transfer of single frames.
102: calling program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carries out described view data processing output the first data result.
Specifically, seeing Fig. 2, above-mentioned steps 102 specifically includes:
102S1: judge that the image acquisition and processing function of present frame, the need of being updated, is then to perform step 102S2, otherwise performs step 102S4 according to described configuration information;
102S2: determine the image acquisition and processing function needing to be updated according to described configuration information, obtain corresponding parameter from the described image acquisition and processing functional parameter of present frame and be replaced;
102S3: carry out processing output the first data result to view data according to the image acquisition and processing function after updating;
102S4: described view data is carried out processing output the first data result by the described image acquisition and processing function arranged according to previous frame;
It addition, above-mentioned steps 102 also includes:
Call described program module, generate according to described configuration information and described image acquisition and processing functional parameter and control file, and be transferred to image acquisition and processing module, so that view data is processed according to controlling file by image acquisition and processing module;Image acquisition and processing module it is transferred to, so that image acquisition and processing module processes generation the second data result to described carrying out after described view data being changed.
103: update described frame number variable, judge whether the most untreated described view data according to described frame number variable, be, continue to call described program module and carry out processing output the first data result, until having processed the view data of all frames.
The concrete mode of above-mentioned steps 103 includes but not limited to:
Described frame number variable is carried out subtracting one operation, whether the value judging described frame number variable is 0, it is to terminate to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carries out described view data processing output the first data result.
104: after carrying out described view data processing output the first data result, the second data result of the respective frame of monitoring image acquisition and processing module output, and according to described second data result of described first data result authentication image acquisition processing module output.
Wherein, above-mentioned steps 104 is particularly as follows: monitor, by monitor, the second data result that image acquisition and processing module generates, and the second data result monitored is passed to comparative device, the first data result that caller is exported by described comparative device and the second data result that monitor monitors, and compare, if it is identical, then it represents that the success of image acquisition and processing resume module;Otherwise, expression processes unsuccessful.
It should be noted that, above-described embodiment is based on VMM(English spelling: Verificationmethodologymanual, Chinese name: verification method handbook) verification platform, set up the verification environment to image acquisition and processing module, it is achieved the correctness of checking acquisition processing module result.
The present embodiment passes through VMM verification platform, is generated by test case generator and controls affairs, obtains configuration information and by arranging the renewal of every frame data, solves the process validation problem of sequential frame image data, improve the efficiency of checking.
Embodiment two
A kind of method embodiments providing authentication image acquisition process, in conjunction with above-described embodiment one, affairs are controlled to obtain, according to described control affairs to image processing function parameter and more newly configured be configured after, and view data is carried out process obtain result, being described in detail by as a example by the process that the result carrying out of monitoring image acquisition and processing module is verified, see Fig. 3, method flow includes:
301: produce and control affairs, currently control the frame number of affairs view data to be processed according to the content obtaining of described control affairs and frame number variable is set.
Wherein, described control affairs refer to the affairs produced by test case generator, comprise: the contents such as view data, the frame number of view data, image acquisition and processing functional parameter, configuration information;
Described frame number variable is for representing the frame number of untreated view data;Such as, the frame number controlling to need in affairs the view data of continuous processing is 10 frames, and the initial value of frame number variable is set to 10.
302: the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data will be obtained.
Wherein, for the first time when the corresponding configuration information of getting frame, image acquisition and processing functional parameter and view data, using the first frame as present frame;
Described configuration information is for controlling the renewal of image acquisition and processing functional parameter;Described image acquisition and processing functional parameter includes the parameter of image collecting function, and such as data form, image size etc., also include the parameter of image processing function, and ratio is such as whether carry out data conversion, whether carry out cutting etc.;Described configuration information is for controlling the renewal of image acquisition and processing functional parameter;View data refers to the analog data of the pictorial information that camera collection arrives.
303: calling program module, judge that the image acquisition and processing function of present frame, the need of being updated, is then to perform step 304 according to configuration information;Otherwise perform step 305;
Preferably, in the present embodiment, judge that the image acquisition and processing function of present frame is the need of being updated being specifically as follows according to configuration information: from configuration information, obtain configuration information mark, the configuration information mark obtained is judged, when configuration information is masked as the first mark, represent that needs are updated, when configuration information is masked as the second mark, represents and be made without updating.
304: determine the image acquisition and processing function needing to be updated according to configuration information, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter be replaced.
It should be noted that the image acquisition and processing functional parameter of present frame only comprises the data that needs update;If being made without updating, then the functional parameter arranged according to previous frame carries out image acquisition and processing.
305: according to current image acquisition and processing function view data processed and export the first data result, generate according to described configuration information and described image acquisition and processing functional parameter and control file and be transferred to image acquisition and processing module.
Above-mentioned steps also includes, is transferred to image acquisition and processing module after view data being changed;Wherein, image acquisition and processing module processes for being acquired the view data collected, its external connection referring specifically to Fig. 4,
Image acquisition and processing module-external has 3 groups of group lines, particularly as follows: the control register bus being connected with CPU, controls the flow process of acquisition process;The image acquisition bus being connected with photographic head, the view data collected for acquisition camera and coherent signal;The ACCESS bus being connected with memorizer, uploads view data after acquisition process image.
306: when to view data when view data is carried out process output the first data result after, use the second data result of the respective frame of monitor monitoring image acquisition and processing module output, and according to the second data result of described first data result authentication image acquisition processing module output;
307: update frame number variable, it is judged that whether the value of frame number variable is 0, is to terminate calling program module;Otherwise return step 303.
It should be noted that step 306 and step 307 are without time sequencing.
The present embodiment, by from controlling affairs obtain configuration information, it is updated arranging to the data of concrete frame, achieve the acquisition process checking of sequential frame image data, and by software analog image acquisition processing module, the view data of simulation is processed according to the function of the setting of the information of control, the result of monitoring image acquisition and processing module, effectively can verify, improve the efficiency verifying acquisition process in process to image acquisition and processing module.
Embodiment three
Seeing Fig. 5, embodiments provide the device of a kind of authentication image acquisition process, this device includes:
Acquisition module 501, for producing control affairs, content obtaining according to described control affairs currently controls the frame number of affairs view data to be processed and arranges frame number variable, obtains the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data;
Processing module 502, for calling program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carry out described view data processing output the first data result, and judge whether the most untreated described view data according to described frame number variable, it is to continue to call described program module and carry out processing output the first data result, until having processed the view data of all frames;
Monitoring authentication module 503, for after carrying out described view data processing output the first data result, second data result of the respective frame of monitoring image acquisition and processing module output, and according to described second data result of described first data result authentication image acquisition processing module output.
Monitoring authentication module 503 is specifically for the second data result generated by monitor monitoring image acquisition and processing module, and the result data monitored is passed to comparative device, the second result data that the first result data exported after described comparative device reception operation program and monitor detect, and compare, if it is identical, then it represents that the success of image acquisition and processing resume module;Otherwise, then it represents that process unsuccessful.
Wherein, the affairs that affairs refer to be produced by test case generator are controlled described in this device, for arranging image collecting function, image processing function and more newly configured function.
The image acquisition and processing module being connected with this device, for the view data collected is acquired process, has three groups of group lines to be attached thereto outside it, particularly as follows: the control register bus being connected with CPU, control the flow process of acquisition process;The image acquisition bus being connected with photographic head, the view data collected for acquisition camera and coherent signal;The ACCESS bus being connected with memorizer, uploads view data after acquisition process image.
In conjunction with said apparatus, processing module 502 specifically for judge according to described configuration information the image acquisition and processing function of present frame the need of being updated,
If needing to be updated, the image acquisition and processing function needing to be updated then is determined according to described configuration information, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter be replaced, and carry out processing output the first data result to view data according to the image acquisition and processing function after updating;
If being made without updating, then described view data is carried out processing output the first data result by the described image acquisition and processing function arranged according to previous frame;
Also particularly useful for described frame number variable is carried out subtracting one operation, whether the value judging described frame number variable is 0, it is to terminate to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carries out described view data processing output the first data result;
In addition, operation that processing module 502 can be also used for that described frame number variable is carried out subtract one, whether the value judging described frame number variable is 0, it is to terminate to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, calling described program module, image acquisition and processing function is configured by described configuration information and described image acquisition and processing functional parameter according to present frame, carries out described view data processing output the first data result.
In sum, by the device realized in this enforcement, the process validation problem of sequential frame image data can be solved, and can effectively improve the efficiency of checking.
It should be understood that the device of the authentication image acquisition process of above-described embodiment offer is when authentication image acquisition process, only it is illustrated with the division of above-mentioned each functional module, in actual application, as desired above-mentioned functions distribution can be completed by different functional modules, the internal structure of authentication image acquisition processing device will be divided into different functional modules, to complete all or part of function described above.It addition, the embodiment of the method for the authentication image acquisition processing device of above-described embodiment offer and authentication image acquisition process belongs to same design, it implements process and refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be completed by hardware, relevant hardware can also be instructed by program to complete, described program can be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.