Steps to validate beads
The following steps provide a basic methodology for using the Aurora Imaging Library Bead module:
- Allocate a bead context to hold your bead templates, using
MbeadAlloc. - Allocate a bead result buffer to hold the results of the verification operation, using
MbeadAllocResult. - Add a bead template to the bead context, using
MbeadTemplate. You can repeat this step to add multiple templates. - Specify training settings, using
MbeadControl. - Train the templates, using
MbeadTrain. If necessary, you can perform certain drawing operations based on the trained templates, usingMbeadDraw. - Verify the training status of the templates in the context, using
MbeadInquirewithM_STATUS. If the templates are not completely trained, you can useMbeadTemplateandMbeadControlto modify the templates and then re-callMbeadTrain. - Specify verification settings, using
MbeadControl. - Verify beads in a target image against the bead templates, using
MbeadVerify. If necessary, you can perform certain drawing operations based on bead results, usingMbeadDraw. - Retrieve the required bead results from the result buffer, using
MbeadGetResult. If necessary, you can useMbeadControlto modify verification settings and then re-callMbeadVerify. - If necessary, save your bead context, using
MbeadSaveorMbeadStream. Once you save a bead context, you can later restore it, usingMbeadRestoreorMbeadStream. Restoring a bead context instead of creating it again can be more efficient, especially if the restored context requires no further modifications. You can save or restore a bead context to/from a file or memory stream. - Free all your allocated bead objects, using
MbeadFree, unlessM_UNIQUE_IDwas specified during allocation.