Difference between revisions of "OMR templates"

From OpenKM Documentation
Jump to: navigation, search
(Step 5 - check template)
m (Step 1 - Create template)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{TOCright}} __TOC__
 +
 
OpenKM integrates OMR ( Optical Mark Recognition ) that has been written by Aaditeshwar Seth from the Udai Waterloo chapter, at the University of Waterloo. Udai is a volunteer student organization at the University of Waterloo in Canada and the University of California at San Diego. For more information about it see [http://www.cse.iitd.ernet.in/~aseth/udai/OMRProj/README.html OMRProj website].
 
OpenKM integrates OMR ( Optical Mark Recognition ) that has been written by Aaditeshwar Seth from the Udai Waterloo chapter, at the University of Waterloo. Udai is a volunteer student organization at the University of Waterloo in Canada and the University of California at San Diego. For more information about it see [http://www.cse.iitd.ernet.in/~aseth/udai/OMRProj/README.html OMRProj website].
  
 
OMR ( Optical Mark Recognition ) engines is especially suited for extracting data from forms that have been photo-copied and then scanned; hence, the resultant images are likely to suffer from rotations, smudge marks, and random lines here and there. Examples of a few forms that the tool is able to handle with 100% accuracy are shown here.  
 
OMR ( Optical Mark Recognition ) engines is especially suited for extracting data from forms that have been photo-copied and then scanned; hence, the resultant images are likely to suffer from rotations, smudge marks, and random lines here and there. Examples of a few forms that the tool is able to handle with 100% accuracy are shown here.  
  
[[File:2circle-2-small.gif|center]]
 
  
[[file:2circle-3-small.gif|center]]
+
{| align="center"
 +
|[[File:2circle-2-small.gif|center|459px]]
 +
|[[File:2circle-3-small.gif|center‎|459px]]
 +
|}
  
 
== Step 1 - Create template ==
 
== Step 1 - Create template ==
* First make a form in powerpoint using the template [[File:Omr_patterns.zip]]. Make sure that you do not move the two concentric circles in the top-left and bottom-right corners of the template. These are used by the software to determine the angle of rotation of the form.
+
* First make a form in PowerPoint using the template [[File:Omr_patterns.zip]]. Make sure that you do not move the two concentric circles in the top-left and bottom-right corners of the template. These are used by the software to determine the angle of rotation of the form.
 
* Take a printout and make as many photocopies of the form as you want.
 
* Take a printout and make as many photocopies of the form as you want.
 
* On the original printout, color all the marks with a black pen, and scan this marked up printout. Please be as careful as you can to align the printout so that there is no rotation. Some amount of error is fine, but not too much! This scanned image will be the template.  
 
* On the original printout, color all the marks with a black pen, and scan this marked up printout. Please be as careful as you can to align the printout so that there is no rotation. Some amount of error is fine, but not too much! This scanned image will be the template.  
  
[[File:2circle-org-colored-whole.png|400px]]
+
[[File:2circle-org-colored-whole.png|400px|center]]
  
 
== Step 2 - Upload template ==
 
== Step 2 - Upload template ==
 
'''Click add icon''' [[File:Add.png]]
 
'''Click add icon''' [[File:Add.png]]
  
[[File:Okm_user_guide_421.png|center]]
+
 
 +
[[File:Okm_user_guide_421.png|center|850px]]
  
 
[[File:Okm_user_guide_422.png|center]]
 
[[File:Okm_user_guide_422.png|center]]
 +
  
 
The training process will generate two files .asc and .config
 
The training process will generate two files .asc and .config
 +
  
 
[[file:Okm_user_guide_423.png|center]]
 
[[file:Okm_user_guide_423.png|center]]
Line 106: Line 113:
 
----------------------------------------------------------------------------------------------
 
----------------------------------------------------------------------------------------------
 
----------------------------------------------------------------------------------------------</pre>
 
----------------------------------------------------------------------------------------------</pre>
 
  
 
Some of the marks may not be exactly aligned, but don't worry. Now, very carefully, label the marks with single characters, by setting all the marks in the same group with the same character. This is shown below. In case you run out of alphabets, you can use numerals or any other character such as - + ? . etc. Make sure that you do not alter the position of any mark! This is agreably hard to do, but we chose this method to avoid the need for making a graphical frontend.  
 
Some of the marks may not be exactly aligned, but don't worry. Now, very carefully, label the marks with single characters, by setting all the marks in the same group with the same character. This is shown below. In case you run out of alphabets, you can use numerals or any other character such as - + ? . etc. Make sure that you do not alter the position of any mark! This is agreably hard to do, but we chose this method to avoid the need for making a graphical frontend.  
Line 190: Line 196:
  
 
'''Click edit''' icon [[File:Edit.png]]:
 
'''Click edit''' icon [[File:Edit.png]]:
 +
  
 
[[File:Okm_user_guide_426.png|center]]
 
[[File:Okm_user_guide_426.png|center]]
 +
  
 
'''Click edit asc''' file icon [[File:Edit.png]]:
 
'''Click edit asc''' file icon [[File:Edit.png]]:
 +
  
 
[[File:Okm_user_guide_427.png|center]]
 
[[File:Okm_user_guide_427.png|center]]
 +
  
 
Select asc file and '''click send button'''.
 
Select asc file and '''click send button'''.
 +
  
 
[[File:Okm_user_guide_428.png|center]]
 
[[File:Okm_user_guide_428.png|center]]
Line 218: Line 229:
  
 
'''Click edit icon''' [[File:Edit.png]]:
 
'''Click edit icon''' [[File:Edit.png]]:
 +
  
 
[[File:Okm_user_guide_426.png|center]]
 
[[File:Okm_user_guide_426.png|center]]
 +
  
 
'''Click edit fields icon''' [[File:Edit.png]]:
 
'''Click edit fields icon''' [[File:Edit.png]]:
 +
  
 
[[File:Okm_user_guide_430.png|center]]
 
[[File:Okm_user_guide_430.png|center]]
 +
  
 
Select fields file and '''click send button'''.
 
Select fields file and '''click send button'''.
 +
  
 
[[File:Okm_user_guide_431.png|center]]
 
[[File:Okm_user_guide_431.png|center]]
Line 231: Line 247:
 
== Step 5 - check template ==
 
== Step 5 - check template ==
 
'''Click check icon''' [[File:check.png]]:
 
'''Click check icon''' [[File:check.png]]:
 +
  
 
[[File:Okm_user_guide_432.png|center]]
 
[[File:Okm_user_guide_432.png|center]]
 +
  
 
Upload some file to recognise values:
 
Upload some file to recognise values:
 +
  
 
[[File:Okm_user_guide_433.png|center]]
 
[[File:Okm_user_guide_433.png|center]]
  
 
[[File:Omrrecognision.png|center]]
 
[[File:Omrrecognision.png|center]]
 +
  
 
And you'll get the results:
 
And you'll get the results:
 +
  
 
[[File:Okm_user_guide_434.png|center]]
 
[[File:Okm_user_guide_434.png|center]]
 +
 +
== Full example ==
 +
 +
Can download [[File:Omr_example.zip]] full example
  
 
[[Category: Administration Guide]]
 
[[Category: Administration Guide]]

Latest revision as of 11:19, 13 February 2014

OpenKM integrates OMR ( Optical Mark Recognition ) that has been written by Aaditeshwar Seth from the Udai Waterloo chapter, at the University of Waterloo. Udai is a volunteer student organization at the University of Waterloo in Canada and the University of California at San Diego. For more information about it see OMRProj website.

OMR ( Optical Mark Recognition ) engines is especially suited for extracting data from forms that have been photo-copied and then scanned; hence, the resultant images are likely to suffer from rotations, smudge marks, and random lines here and there. Examples of a few forms that the tool is able to handle with 100% accuracy are shown here.


2circle-2-small.gif
center‎

Step 1 - Create template

  • First make a form in PowerPoint using the template File:Omr patterns.zip. Make sure that you do not move the two concentric circles in the top-left and bottom-right corners of the template. These are used by the software to determine the angle of rotation of the form.
  • Take a printout and make as many photocopies of the form as you want.
  • On the original printout, color all the marks with a black pen, and scan this marked up printout. Please be as careful as you can to align the printout so that there is no rotation. Some amount of error is fine, but not too much! This scanned image will be the template.
2circle-org-colored-whole.png

Step 2 - Upload template

Click add icon Add.png


Okm user guide 421.png
Okm user guide 422.png


The training process will generate two files .asc and .config


Okm user guide 423.png

Step 3 - Update asc file

Download the .asc file and openkm with a standard text editor. This is actually an ascii representation of the template with all the marks marked with a '0', as shown below.

----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---0---------------------------------0----------------------------0---------------------------
----------------------------------------------------------------------------------------------
---0---------------------------------0----------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---0---------------------------------0----------------------------0---------------------------
----------------------------------------------------------------------------------------------
---0---------------------------------0----------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---0---------------------------------0----------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---0---------------------------------0----------------------------0---------------------------
----------------------------------------------------------------------------------------------
---0--------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------0---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------

Some of the marks may not be exactly aligned, but don't worry. Now, very carefully, label the marks with single characters, by setting all the marks in the same group with the same character. This is shown below. In case you run out of alphabets, you can use numerals or any other character such as - + ? . etc. Make sure that you do not alter the position of any mark! This is agreably hard to do, but we chose this method to avoid the need for making a graphical frontend.

----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---a---------------------------------b----------------------------c---------------------------
----------------------------------------------------------------------------------------------
---a---------------------------------b----------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---a---------------------------------b----------------------------c---------------------------
----------------------------------------------------------------------------------------------
---a---------------------------------b----------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---a---------------------------------b----------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
---a---------------------------------b----------------------------c---------------------------
----------------------------------------------------------------------------------------------
---a--------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
------------------------------------------------------------------c---------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------

Click edit icon Edit.png:


Okm user guide 426.png


Click edit asc file icon Edit.png:


Okm user guide 427.png


Select asc file and click send button.


Okm user guide 428.png

Step 4 - upload .fields file

You now need to make a [template-filename].fields file, which contains the details of the various form-fields, as follows.

The format of each line is: character type subtype name value1 value2....

  • Character: This is the same as the character you used in the .asc file
  • Type and Subtype: The types of fields supported are single and multiple choice lists, aligned row-wise (horizontally) or column-wise (vertically). And grids aligned horizontally or vertically. Each field is denoted by (i) row single or row multiple for a single or multiple selection field aligned row-wise, (ii) column single or column multiple for a single or mutiple selection field aligned column-wise, or (iii) grid row or grid column for a grid field aligned row-wise or column-wise respectively.
  • Field name: This can be any name you want to associate with the field.
  • Values: These are the field values, in order.

Nota clasica.png The values has a direct corresponde with metadata values (Property groups), first indicate the property name and others the values into

a column single okp:data.project alarmasCalleLarga alarmasRinconada alcantarilladosRinconada minaCaracoles colegioMetodista obrasAdicionalesMc villaLasRosas
b column single okp:data.year 2012 2013 2014 2015 2016 2017
c column single okp:data.type actas boletaCompra boletaHonorario boletaVenta comprobanteCompra comprobanteVenta contratosTrabajo contratosVenta documentacionContabilidad documentacionPropuesta documentacionLegal facturaCompra facturaVenta manuales oficios otrosDocumentos 

Click edit icon Edit.png:


Okm user guide 426.png


Click edit fields icon Edit.png:


Okm user guide 430.png


Select fields file and click send button.


Okm user guide 431.png

Step 5 - check template

Click check icon Check.png:


Okm user guide 432.png


Upload some file to recognise values:


Okm user guide 433.png
Omrrecognision.png


And you'll get the results:


Okm user guide 434.png

Full example

Can download File:Omr example.zip full example