tce__functions__omr_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_functions_omr.php File Reference

Namespaces

 com\tecnick\tcexam\shared
 TCExam Shared Area.
 

Functions

 F_encodeOMRTestData ($data)
 
 F_decodeOMRTestData ($str)
 
 F_decodeOMRTestDataQRCode ($image)
 
 F_decodeOMRPage ($image)
 
 F_importOMRTestData ($user_id, $date, $omr_testdata, $omr_answers, $overwrite=false)
 

Detailed Description

Functions to import test data from scanned OMR (Optical Mark Recognition) sheets.

Function Documentation

F_decodeOMRPage (   $image)

Decode a single OMR Page and return data array. This function requires ImageMagick library and zbarimg (http://zbar.sourceforge.net/).

Parameters
$image(string) image file to be decoded (scanned OMR page at 200 DPI with full color range).
Returns
array of answers data or false in case of error.

F_decodeOMRTestData (   $str)

Decode OMR test data string (read from QR-Code) as array.

Parameters
$str(string) string to be decoded.
Returns
array with test data (0 => test_id, n => array(0 => question_n_ID, 1 => array(answers_IDs)), or false in case of error.

F_decodeOMRTestDataQRCode (   $image)

Read QR-Code from OMR page and return Test data. This function uses the external application zbarimg (http://zbar.sourceforge.net/).

Parameters
$image(string) image file to be decoded (scanned OMR page).
Returns
array with test data or false in case o error

F_encodeOMRTestData (   $data)

Encode OMR test data array as a string to be printed on QR-Code.

Parameters
$data(array) array to be encoded
Returns
encoded string.

F_importOMRTestData (   $user_id,
  $date,
  $omr_testdata,
  $omr_answers,
  $overwrite = false 
)

Import user’s test data from OMR.

Parameters
$user_id(int) user ID.
$date(string) date-time field.
$omr_testdata(array) Array containing test data.
$omr_answers(array) Array containing test answers (from OMR).
$overwrite(boolean) If true overwrites the previous answers on non-repeatable tests.
Returns
boolean TRUE in case of success, FALSE otherwise.

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy