Hello Aspose,
We would like to know if it is possible to add a dynamic barcode or QR code element that allows us to place a barcode or QR code onto an exam paper, while ensuring that the created .omr file can still recognize it. We’re looking for a way to dynamically insert barcodes or QR codes into exam sheets, so that each code can be scanned and read by your OMR engine as part of the recognition process.
Could you advise if this feature is supported, or if there are any recommended approaches or tools within Aspose OMR for .NET that could help achieve this functionality?
Thank you for your assistance.
@STI_MISDev
Yes, it is possible to dynamically add barcodes or QR codes to your exam papers using Aspose.OMR for .NET. This feature allows you to generate personalized exam sheets where each barcode or QR code can be scanned and recognized by the OMR engine.
To implement this, you can use the BarcodeConfig
class to define the barcode or QR code in your OMR template. The barcode element is specified using the ?barcode=[name]
syntax, where [name]
serves as an identifier for the element in the recognition results. You can set various attributes for the barcode, including the value that you want to encode.
Here’s a basic example of how to define a QR code in your OMR template:
?barcode=StudentID
value=123456789
barcode_type=qr
qr_version=1
x=2000
y=120
height=360
In this example:
StudentID
is the identifier for the barcode.
value
is the data encoded in the QR code (e.g., a student ID).
barcode_type
specifies the type of barcode (in this case, a QR code).
x
, y
, and height
define the position and size of the barcode on the exam paper.
During the recognition process, the OMR engine will decode the information from the barcode, allowing you to capture dynamic data associated with each exam sheet.
For further details, you can refer to the Aspose documentation on barcodes and QR codes, which provides comprehensive information on how to implement this feature effectively [1][2].
If you have any specific requirements or need further assistance, feel free to ask!
Sources:
[1]: Barcodes and QR codes - Aspose Documentation
[2]: Barcodes and QR codes - Aspose Documentation
I mean, in a single .omr file, is it possible to recognize barcodes or QR codes with different values? Currently, we are generating a template with a fixed value, correct? Similar to your example, where the fixed value is 123456789.
Hello, @STI_MISDev
Yes, it is possible. In provided above example, template image will be generated with a specific QR code with value “123456789”.
But for recognition we will only use a relative position, size and type of QR code. The value is not stored in .omr file and will be retrieved from each provided image individually.
We also have a feature to generate template images with a dynamic content - Batch processing.
Examples.
Thank you for the clarification! We tested the recognition with different QR codes, and it is working as expected.