Summary of the invention
The object of this invention is to provide a kind of answer sheet picture interpretation statistical analysis system and solve the examination for less scale, under guaranteeing that answer sheet can be by the prerequisite of interpretation accurately and effectively, the cost control that how to make interpretation and analyze answer sheet is at reduced levels, to improve the problem of utilization benefit.
Technical solution of the present invention is:
An interpretation statistical analysis system, comprises picture acquisition module, answer sheet reading module, database, database manipulation module and graphic result output module,
Picture acquisition module: obtain the picture of answer sheet by image acquisition equipment, and gained answer sheet picture is sent to answer sheet reading module;
Answer sheet reading module: receive the answer sheet picture that picture acquisition module transmits, by interpretation unit, read the full-filling information of examinee in answer sheet picture, answering information in the full-filling information reading and the model answer of input system are contrasted, thereby obtain the total marks of the examination of this answering information, usage data storehouse operational module is stored in total marks of the examination in database;
Database: the total marks of the examination that storage answer sheet reading module draws, and the total marks of the examination of storage are offered to database manipulation module carry out analytic statistics use;
Database manipulation module: carry out score inquiry, answer status inquiry, draw data inquiry, and the total marks of the examination of analytic statistics and answer situation, the total marks of the examination of analytic statistics and answer situation are sent to graphic result output module;
Graphic result output module: according to total marks of the examination and the answer situation of database manipulation module analysis statistics, draw histogram, pie chart, broken line graph or achievement analysis chart, the total marks of the examination of database operational module analytic statistics and answer situation are shown.
Further improve and be: described interpretation unit is realized by following steps:
A. according to importing parameter initialization X coordinate and Y coordinate into, determine the start-stop position in interpretation region;
B. read N pixel in the shared cell of the definite option of X coordinate and Y coordinate, the rgb value of each pixel is judged, rgb value is less than and sets correlative value is black pixel, and records the total n of black pixel;
C. in the cell of this option, black pixel percentage is greater than 67%, be n/N>67%, by the position at this option place of judgement, determine by the option of full-filling, to be A, B, C or D and option result is stored, in definite interpretation region, when X coordinate does not reach the terminal of interpretation region row, read successively next option, X coordinate reaches the terminal of interpretation region row, and X coordinate carries out initialization and Y coordinate and skips to next topic institute and be expert at;
When black pixel percentage is not more than 67%, n/N≤67%, when X coordinate does not reach the terminal of interpretation region row, reads next option successively, and X coordinate reaches the terminal of interpretation region row, and X coordinate carries out initialization and Y coordinate and skips to next topic institute and be expert at;
D. circulation step b, step c successively, when Y coordinate reaches the terminal of interpretation region row, interpretation finishes.
Further improving and be: in described step b, the rgb value of each pixel is by the Pixels[x in the Canvas attribute of Bitmap class] [y] method and GetRValue function, GerGValue function, GetBValue function obtain respectively R, G, the B value of this pixel.
Further improve and be: the setting correlative value in described step c is 590-620.
Further improve and be: described full-filling information comprises admission card for entrance examination number, test subject, answering information.
Further improve and be: described image acquisition equipment is scanner, digital camera, camera.
Further improve and be: described answer sheet reading module, database manipulation module and graphic result output module are all realized on computers.
Further improve and be: be also provided with total marks of the examination and answer situation that printout end carries out the analytic statistics of output database operational module.
A kind of answer sheet picture interpretation of the present invention statistical analysis system, by image acquisition equipment, as scanner, digital camera, camera, obtains the picture of answer sheet, and gained answer sheet picture is sent to answer sheet reading module; Answer sheet reading module receives the answer sheet picture that picture acquisition module transmits, by interpretation unit, read the full-filling information of examinee in answer sheet picture, full-filling information comprises admission card for entrance examination number, test subject, answering information, the model answer of the answering information reading and input system is contrasted, thereby obtain the total marks of the examination of this answering information, usage data storehouse operational module is stored in total marks of the examination in database; Database offers database manipulation module by the total marks of the examination of storage and carries out analytic statistics use; Database manipulation module is carried out score inquiry, answer status inquiry, draw data inquiry, and the total marks of the examination of analytic statistics and answer situation, and the total marks of the examination of analytic statistics and answer situation are sent to graphic result output module; Graphic result output module is according to total marks of the examination and the answer situation of database manipulation module analysis statistics, draw histogram, pie chart, broken line graph or achievement analysis chart, the total marks of the examination of database operational module analytic statistics and answer situation are shown, also can print by printout end total marks of the examination and the answer situation of the analytic statistics of output database operational module.
Full-filling information above answer sheet picture has admission card for entrance examination number, test subject, answering information.Therefore, answer sheet picture is divided into three bulk regions and carries out interpretation, be respectively: admission card for entrance examination number interpretation region, test subject interpretation region and answering information interpretation region: wherein answer situation interpretation district is divided into again four regions, i.e. four answer regions from left to right.
For interpretation is carried out in said three bulk regions above, use respectively interpretation unit to carry out interpretation.To the interpretation in some answers region, be that example is elaborated below.
First, according to importing parameter initialization X coordinate and Y coordinate into, determine the start-stop position in interpretation region.Read N pixel in the shared cell of the definite option of X coordinate and Y coordinate, option on conventional answer sheet is all by 16*6,96 pixels form, so take to get successively with two-layer circulation the size that these 96 pixels judge its rgb value, through a large amount of tests, decide when the rgb value of a pixel is more than or equal to 600 in advance, just can think that this point is white, not by full-filling, if instead rgb value is less than 600, think that this point is for black, by full-filling.When the rgb value of capture vegetarian refreshments, use be the Pixels[x in the Canvas attribute of Bitmap class] [y] method and Windows api function GetRValue, GerGValue, GetBValue obtain respectively R, G, B value.Rgb value to each pixel judges, rgb value is less than and sets correlative value is black pixel, and records the total n of black pixel.
Secondly, in the cell of this option, black pixel percentage is greater than 67%, i.e. n/N>67%, by the position at this option place of judgement, determine and by the option of full-filling, to be A, B, C or D and option result is stored, in definite interpretation region, when X coordinate does not reach the terminal of interpretation region row, read successively next option, X coordinate reaches the terminal of interpretation region row, and X coordinate carries out initialization and Y coordinate and skips to next topic institute and be expert at; When black pixel percentage is not more than 67%, n/N≤67%, when X coordinate does not reach the terminal of interpretation region row, reads next option successively, and X coordinate reaches the terminal of interpretation region row, and X coordinate carries out initialization and Y coordinate and skips to next topic institute and be expert at.The above-mentioned interpretation step that circulates in interpretation region, until when Y coordinate reaches the terminal of interpretation region row, interpretation finishes.
The function of a kind of answer sheet picture interpretation of the present invention statistical analysis system has: realize obtaining answer sheet picture; The accurate interpretation of realization to the option content of full-filling above answer sheet picture, and can make statistics and analysis to sentence read result, analysis result can by different diagrammatic representations out, be convenient to the analysis of examination side to examination effect; The printout of realization to sentence read result; Realization is to operations such as the storage of sentence read result, access, inquiries.
The invention has the beneficial effects as follows: a kind of answer sheet picture interpretation of the present invention statistical analysis system, based on rapid images such as scanner, digital camera, mobile phones, obtain quite universal situation of equipment and PC, with software mode, realize paper interpretation fast and accurately, not only provide cost savings greatly, and applicable surface more extensively, more convenient, a computer adds a mobile phone just can quick and precisely go over examination papers under prerequisite cheaply, and operational effect is good.In addition, the present invention carries out statistical study to examination situation, with graphic form, shows, more directly perceived, understandable; Can also preserve and manage examination record, be convenient to check and comparative analysis in the future.
Embodiment
Below in conjunction with accompanying drawing, describe the preferred embodiments of the present invention in detail.
As shown in Figure 1, the present embodiment provides a kind of answer sheet picture interpretation statistical analysis system, comprise picture acquisition module 1, answer sheet reading module 2, database 3, database manipulation module 4 and graphic result output module 5, in picture acquisition module 1, by image acquisition equipment, obtain the picture of answer sheet, and gained answer sheet picture is sent to answer sheet reading module 2; Answer sheet reading module 2 receives the answer sheet picture that picture acquisition module 1 transmits, by interpretation unit, read the full-filling information of examinee in answer sheet picture, full-filling information comprises admission card for entrance examination number, test subject, answering information, the model answer of the answering information reading and input system is contrasted, thereby obtain the total marks of the examination of this answering information, usage data storehouse operational module 4 is stored in total marks of the examination in database 3; The total marks of the examination that database 3 storage answer sheet reading module 2 draw, and the total marks of the examination of storage are offered to database manipulation module 4 carry out analytic statistics use; Database manipulation module 4 is carried out score inquiry, answer status inquiry, draw data inquiry, and the total marks of the examination of analytic statistics and answer situation, and the total marks of the examination of analytic statistics and answer situation are sent to graphic result output module 5; Graphic result output module 5, according to total marks of the examination and the answer situation of 4 analytic statisticss of database manipulation module, is drawn histogram, and the total marks of the examination of database operational module 4 analytic statisticss and answer situation are shown.Described image acquisition equipment is digital camera.Described answer sheet reading module 2, database manipulation module 4 and graphic result output module 5 are all realized on computers.Also be provided with total marks of the examination and answer situation that output terminal prints 4 analytic statisticss of output database operational module.
Wherein, as shown in Figure 2, interpretation unit is the interpretation realizing by the following method the full-filling information of answer sheet:
First, according to importing parameter initialization X coordinate and Y coordinate into, determine the start-stop position in interpretation region.Read N pixel in the shared cell of the definite option of X coordinate and Y coordinate, option on conventional answer sheet is all by 16*6,96 pixels form, so take to get successively with two-layer circulation the size that these 96 pixels judge its rgb value, through a large amount of tests, decide when the rgb value of a pixel is more than or equal to 600 in advance, just can think that this point is white, not by full-filling, if instead rgb value is less than 600, think that this point is for black, by full-filling.When the rgb value of capture vegetarian refreshments, use be the Pixels[x in the Canvas attribute of Bitmap class] [y] method and Windows api function GetRValue, GerGValue, GetBValue obtain respectively R, G, B value.Rgb value to each pixel judges, rgb value is less than and sets correlative value is black pixel, and records the total n of black pixel.
Secondly, in the cell of this option, black pixel percentage is greater than 67%, i.e. n/N>67%, by the position at this option place of judgement, determine and by the option of full-filling, to be A, B, C or D and option result is stored, in definite interpretation region, when X coordinate does not reach the terminal of interpretation region row, read successively next option, X coordinate reaches the terminal of interpretation region row, and X coordinate carries out initialization and Y coordinate and skips to next topic institute and be expert at; When black pixel percentage is not more than 67%, n/N≤67%, when X coordinate does not reach the terminal of interpretation region row, reads next option successively, and X coordinate reaches the terminal of interpretation region row, and X coordinate carries out initialization and Y coordinate and skips to next topic institute and be expert at.The above-mentioned interpretation step that circulates in interpretation region, until when Y coordinate reaches the terminal of interpretation region row, interpretation finishes.
The beneficial effect of the present embodiment is: a kind of answer sheet picture interpretation of the present embodiment statistical analysis system, can realize obtaining answer sheet picture; The accurate interpretation of realization to the option content of full-filling above answer sheet picture, and can make statistics and analysis to sentence read result, analysis result can by different diagrammatic representations out, be convenient to the analysis of examination side to examination effect; The printout of realization to sentence read result; Realization is to operations such as the storage of sentence read result, access, inquiries.Based on rapid images such as scanner, digital camera, mobile phones, obtain quite universal situation of equipment and PC, with software mode, realize paper interpretation fast and accurately, not only provide cost savings greatly, and applicable surface more extensively, more convenient, a computer adds a mobile phone just can quick and precisely go over examination papers under prerequisite cheaply, and operational effect is good.In addition, the present invention carries out statistical study to examination situation, with graphic form, shows, more directly perceived, understandable; Can also preserve and manage examination record, be convenient to check and comparative analysis in the future.