Summary of the invention
In order to solve the problem that can not process sequential frame image data in prior art, the embodiment of the present invention provides a kind of method and device of authentication image acquisition process.Described technical scheme is as follows:
On the one hand, provide a kind of method of authentication image acquisition process, described method comprises:
Produce to control affairs, according to the frame number of the current control affairs of the content obtaining of described control affairs view data to be processed 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, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result, and judge whether to also have untreated described view data according to described frame number variable, to continue to call described program module to process output the first data result, until handle the view data of all frames;
After described view data being processed to output the first data result, surveillance map is as the second data result of the respective frame of acquisition processing module output, and described the second data result of exporting according to described the first data result authentication image acquisition processing module.
In conjunction with first aspect, under the possible execution mode of the first of first aspect, described calling program module, according to the described configuration information of present frame and image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result, specifically comprises:
According to described configuration information, judge whether the image acquisition and processing function of present frame needs to upgrade,
If need to upgrade, according to described configuration information, determine the image acquisition and processing function that need to upgrade, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter and replace, and according to the image acquisition and processing function after upgrading, view data is processed to output the first data result;
If do not need to upgrade, according to the described image acquisition and processing function of previous frame setting, described view data is processed to output the first data result.
In conjunction with first aspect, under the possible execution mode of the second of first aspect, describedly according to described frame number variable, judge whether to also have untreated described view data, to continue to call described program module to process output the first data result, until handle the view data of all frames, specifically comprise:
Described frame number variable is subtracted to an operation, whether the value that judges described frame number variable is 0, to finish to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result.
In conjunction with first aspect, under the third possible execution mode of first aspect, described method also comprises:
Call described program module, according to described configuration information and described image acquisition and processing functional parameter, generate control documents, and be transferred to image acquisition and processing module, so that image acquisition and processing module is processed view data according to control documents;
After being changed, described view data is transferred to image acquisition and processing module, so that image acquisition and processing module generates the second data result to described processing.
Second aspect, the invention provides a kind of device of authentication image acquisition process, and described device comprises:
Acquisition module, for generation of controlling affairs, according to the frame number of the current control affairs of the content obtaining of described control affairs view data to be processed and frame number variable is set, obtains the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data;
Processing module, for calling program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result, and judge whether to also have untreated described view data according to described frame number variable, to continue to call described program module to process output the first data result, until handle the view data of all frames;
Monitoring authentication module, for after described view data being processed to output the first data result, surveillance map is as the second data result of the respective frame of acquisition processing module output, and described the second data result of exporting according to described the first data result authentication image acquisition processing module.
In conjunction with second aspect, under the possible execution mode of the first of second aspect, described processing module is specifically for judging according to described configuration information whether the image acquisition and processing function of present frame needs to upgrade,
If need to upgrade, according to described configuration information, determine the image acquisition and processing function that need to upgrade, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter and replace, and according to the image acquisition and processing function after upgrading, view data is processed to output the first data result;
If do not need to upgrade, according to the described image acquisition and processing function of previous frame setting, described view data is processed to output the first data result.
In conjunction with second aspect, under the possible execution mode of the second of second aspect, described processing module is also specifically for subtracting an operation by described frame number variable, whether the value that judges described frame number variable is 0, to finish to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result.
In conjunction with second aspect, under the third possible execution mode of second aspect, described device is also for calling described program module, according to described configuration information and described image acquisition and processing functional parameter, generate control documents, and be transferred to image acquisition and processing module, so that image acquisition and processing module is processed view data according to control documents; After being changed, described view data is transferred to image acquisition and processing module, so that image acquisition and processing module generates the second data result to described processing.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: the present invention, by method and the device of authentication image acquisition process, has solved the processing validation problem of sequential frame image data, and owing to increasing Reconfigurations information, has improved the efficiency of checking.
Embodiment
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 mono-
The embodiment of the present invention one provides a kind of method of authentication image acquisition process, and referring to Fig. 1, method flow comprises:
101: produce to control affairs, according to the frame number of the current control affairs of the content obtaining of described control affairs view data to be processed 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 that produced by test cases generation device, comprise: the contents such as the frame number of view data, view data, image acquisition and processing functional parameter, configuration information; Described image acquisition and processing parameter function parameter comprises the parameter of image collecting function, such as data format, image size etc., also comprises the parameter of image processing function, such as whether carrying out data transaction, whether carrying out cutting etc.; Described configuration information is for controlling the renewal of image acquisition and processing functional parameter; View data refers to the analogue data of the pictorial information that camera collection arrives;
In addition, described control affairs are predefined according to picture requirement, comprise the relevant information of the view data processing of successive frame and single frames.
102: calling program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result.
Particularly, referring to Fig. 2, above-mentioned steps 102 specifically comprises:
102S1: according to described configuration information, judge whether the image acquisition and processing function of present frame needs to upgrade, and is to perform step 102S2, otherwise execution step 102S4;
102S2: determine the image acquisition and processing function that need to upgrade according to described configuration information, obtain corresponding parameter and replace from the described image acquisition and processing functional parameter of present frame;
102S3: view data is processed to output the first data result according to the image acquisition and processing function after upgrading;
102S4: described view data is processed to output the first data result according to the described image acquisition and processing function of previous frame setting;
In addition, above-mentioned steps 102 also comprises:
Call described program module, according to described configuration information and described image acquisition and processing functional parameter, generate control documents, and be transferred to image acquisition and processing module, so that image acquisition and processing module is processed view data according to control documents; After being changed, described view data is transferred to image acquisition and processing module, so that image acquisition and processing module generates the second data result to described processing.
103: upgrading described frame number variable, according to described frame number variable, judge whether to also have untreated described view data, is to continue to call described program module to process output the first data result, until handle the view data of all frames.
The concrete mode of above-mentioned steps 103 includes but not limited to:
Described frame number variable is subtracted to an operation, whether the value that judges described frame number variable is 0, to finish to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result.
104: after described view data being processed to output the first data result, surveillance map is as the second data result of the respective frame of acquisition processing module output, and described the second data result of exporting according to described the first data result authentication image acquisition processing module.
Wherein, above-mentioned steps 104 is specially: the second data result generating by monitor monitors image acquisition and processing module, and the second monitored data result is passed to comparative device, the second data result that the first data result that described comparative device is exported caller and monitor monitors arrive, and compare, if identical, presentation video acquisition processing module is processed successfully; Otherwise, represent to process unsuccessful.
It should be noted that, above-described embodiment is based on the English spelling of VMM(: Verification methodologymanual, Chinese name: verification method handbook) verification platform, set up the verification environment to image acquisition and processing module, realize the correctness of checking acquisition processing module result.
The present embodiment, by VMM verification platform, is generated and is controlled affairs by test cases generation device, obtains configuration information and arranges by the renewal to every frame data, has solved the processing validation problem of sequential frame image data, has improved the efficiency of checking.
Embodiment bis-
The embodiment of the present invention provides a kind of method of authentication image acquisition process, in conjunction with above-described embodiment one, to obtain control affairs, after image processing function parameter and Reconfigurations being arranged according to described control affairs, and view data is processed and obtained result, by surveillance map, as the result of acquisition processing module the process verified, be that example is described in detail, referring to Fig. 3, method flow comprises:
301: produce to control affairs, according to the frame number of the current control affairs of the content obtaining of described control affairs view data to be processed and frame number variable is set.
Wherein, described control affairs refer to the affairs that produced by test cases generation device, comprise: the contents such as the frame number of view data, view data, image acquisition and processing functional parameter, configuration information;
Described frame number variable is for representing the frame number of untreated view data; For example, controlling and needing the frame number of processed continuously view data in affairs is 10 frames, and the initial value of frame number variable is set to 10.
302: will obtain the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data.
Wherein, while obtaining for the first time the corresponding configuration information of 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 comprises the parameter of image collecting function, such as data format, image size etc., also comprises the parameter of image processing function, such as whether carrying out data transaction, whether carrying out cutting etc.; Described configuration information is for controlling the renewal of image acquisition and processing functional parameter; View data refers to the analogue data of the pictorial information that camera collection arrives.
303: calling program module, according to configuration information, judge whether the image acquisition and processing function of present frame needs to upgrade, be to perform step 304; Otherwise execution step 305;
Preferably, in the present embodiment, according to configuration information, judge whether the image acquisition and processing function of present frame needs to upgrade to be specifically as follows: from configuration information, obtain configuration information sign, the configuration information sign of obtaining is judged, when configuration information is masked as the first sign, expression need to be upgraded, and when configuration information is masked as the second sign, representing does not need to upgrade.
304: according to configuration information, determine the image acquisition and processing function that need to upgrade, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter and replace.
It should be noted that, the image acquisition and processing functional parameter of present frame only comprises the data that needs upgrade; If do not need, do not upgrade, according to the functional parameter of previous frame setting, carry out image acquisition and processing.
305: according to current image acquisition and processing function, view data is processed and exported the first data result, according to described configuration information and described image acquisition and processing functional parameter, generate control documents and be transferred to image acquisition and processing module.
Above-mentioned steps also comprises, after view data is changed, is transferred to image acquisition and processing module; Wherein, image acquisition and processing module is for the view data collecting is carried out to acquisition process, and its outside connects specifically referring to Fig. 4,
Image acquisition and processing module-external has 3 groups of group lines, is specially: the control register bus being connected with CPU, the flow process of control acquisition process; The IMAQ bus being connected with camera, the view data collecting for acquisition camera and coherent signal; The ACCESS bus being connected with memory, for uploading view data after acquisition process image.
306: when view data is exported after the first data result when view data is processed, use the second data result of the respective frame of monitor monitors image acquisition and processing module output, and according to the second data result of described the first data result authentication image acquisition processing module output;
307: upgrade frame number variable, whether the value of judgment frame number variable is 0, is to finish calling program module; Otherwise return to step 303.
It should be noted that, step 306 and step 307 are without time sequencing.
The present embodiment, by obtain configuration information from control affairs, the data of concrete frame are upgraded to setting, realized the acquisition process checking of sequential frame image data, and by software simulation image acquisition and processing module, the view data of simulation is processed according to the function of the setting of control information, surveillance map, as the result of acquisition processing module, can effectively be verified the processing of image acquisition and processing module, has improved the efficiency of checking acquisition process.
Embodiment tri-
Referring to Fig. 5, the embodiment of the present invention provides a kind of device of authentication image acquisition process, and this device comprises:
Acquisition module 501, for generation of controlling affairs, according to the frame number of the current control affairs of the content obtaining of described control affairs view data to be processed and frame number variable is set, obtain the corresponding configuration information of present frame, image acquisition and processing functional parameter and view data;
Processing module 502, for calling program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result, and judge whether to also have untreated described view data according to described frame number variable, to continue to call described program module to process output the first data result, until handle the view data of all frames;
Monitoring authentication module 503, for after described view data being processed to output the first data result, surveillance map is as the second data result of the respective frame of acquisition processing module output, and described the second data result of exporting according to described the first data result authentication image acquisition processing module.
Second data result of monitoring authentication module 503 specifically for generating by monitor monitors image acquisition and processing module, and monitored result data is passed to comparative device, the second result data that the first result data of exporting after described comparative device reception working procedure and monitor detect, and compare, if identical, presentation video acquisition processing module is processed successfully; Otherwise, represent to process unsuccessful.
Wherein, described in this device, control affairs and refer to the affairs that produced by test cases generation device, for the function of image collecting function, image processing function and Reconfigurations is set.
The image acquisition and processing module being connected with this device is for carrying out acquisition process to the view data collecting, and its outside has three groups of group lines to be attached thereto, and is specially: the control register bus being connected with CPU, the flow process of control acquisition process; The IMAQ bus being connected with camera, the view data collecting for acquisition camera and coherent signal; The ACCESS bus being connected with memory, for uploading view data after acquisition process image.
In conjunction with said apparatus, processing module 502 is specifically for judging according to described configuration information whether the image acquisition and processing function of present frame needs to upgrade,
If need to upgrade, according to described configuration information, determine the image acquisition and processing function that need to upgrade, from the described image acquisition and processing functional parameter of present frame, obtain corresponding parameter and replace, and according to the image acquisition and processing function after upgrading, view data is processed to output the first data result;
If do not need to upgrade, according to the described image acquisition and processing function of previous frame setting, described view data is processed to output the first data result;
Also specifically for described frame number variable is subtracted to an operation, whether the value that judges described frame number variable is 0, to finish to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result;
In addition, processing module 502 can also be for subtracting an operation by described frame number variable, whether the value that judges described frame number variable is 0, to finish to call, otherwise obtain corresponding configuration information, image acquisition and processing functional parameter and view data, call described program module, according to the described configuration information of present frame and described image acquisition and processing functional parameter, image acquisition and processing function is arranged, described view data is processed to output the first data result.
In sum, the device by realizing in this enforcement, can solve the processing validation problem of sequential frame image data, and can effectively improve the efficiency of checking.
It should be noted that: the device of the authentication image acquisition process that above-described embodiment provides is when authentication image acquisition process, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to authentication image acquisition processing device is divided into different functional modules, to complete all or part of function described above.In addition, the authentication image acquisition processing device that above-described embodiment provides and the embodiment of the method for authentication image acquisition process belong to same design, and its specific implementation process 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 that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.