public void DidProcess(byte[] imageBuffer, int width, int height, IScanSession session)
        {
            foreach (TrackedBarcode code in session.TrackedCodes.Values)
            {
                if (code.Symbology == Barcode.SymbologyEan8)
                {
                    session.RejectTrackedCode(code);
                }
            }

            // If you want to implement your own visualization of the code tracking, you should update
            // it in this callback.
        }
Exemple #2
0
            public override void DidCaptureImage(BarcodePicker picker, CMSampleBuffer frame, IScanSession session)
            {
                if (session.TrackedCodes != null)
                {
                    // For each tracked codes in the last processed frame.
                    foreach (TrackedBarcode code in session.TrackedCodes.Values)
                    {
                        // As an example, let's visually reject all EAN8 codes.
                        if (code.Symbology == Symbology.EAN8)
                        {
                            session.RejectTrackedCode(code);
                        }
                    }

                    // If you want to implement your own visualization of the code matrix scan,
                    // you should update it in this callback.
                }

                frame.Dispose();
            }