Esempio n. 1
0
        void AddPlateTabToDiagPage(PLATE_INFO pi)
        {
            TabPage page = new TabPage();

            LPRInteractiveEditUC.LPRInteractiveEditUC LPRDiagDisplay;
            LPRDiagDisplay          = new LPRInteractiveEditUC.LPRInteractiveEditUC(m_AppData);
            LPRDiagDisplay.Location = new Point(10, 10);
            page.Controls.Add(LPRDiagDisplay);
            page.Text = (pi.plateNumber == null)? " ": pi.plateNumber;

            tabControlDiagdisplay.TabPages.Add(page);

            m_TabPageLPRDiagnosticsTable.Add(page, LPRDiagDisplay);

            Bitmap BinarizedPlateImage = CreateTestBinarizedImage(pi);

            // the binarized from the test method in this C# program:
            //     LPRDiagDisplay.PostPicture(BinarizedPlateImage, (pi.plateNumber == null) ? " " : pi.plateNumber);

            LPRDiagDisplay.PostPicture(pi.plateImage, (pi.plateNumber == null)? " ": pi.plateNumber);


            LPRDiagDisplay.PostHistogram(pi.histoBmp, pi.histString);

            for (int c = 0; c < pi.charImages.Count(); c++)
            {
                LPRDiagDisplay.PostCharImage(pi.charImages[c], c, " ");
            }
        }
Esempio n. 2
0
        private void buttonStoreResults_Click(object sender, EventArgs e)
        {
            // pick up string changes the user may have made

            for (int t = 0; t < tabControlLPRResults.TabCount; t++)
            {
                LPRInteractiveEditUC.LPRInteractiveEditUC lprEditor = (LPRInteractiveEditUC.LPRInteractiveEditUC)m_TabPageLPREditorTable[tabControlLPRResults.TabPages[t]];
                m_CurrentImageResult[t].plateNumber = lprEditor.GetCurrentPlateString();
            }

            StoreResult();
            m_HaveNewDataToStore       = false;
            buttonStoreResults.Enabled = false;// gets re-enbalbed by the CheckRepositoryLoop() based on the HaveDataToStore flag
        }
Esempio n. 3
0
        void AddPlateTabToEditPage(PLATE_INFO pi)
        {
            TabPage page = new TabPage();

            LPRInteractiveEditUC.LPRInteractiveEditUC LPREditor;
            LPREditor          = new LPRInteractiveEditUC.LPRInteractiveEditUC(m_AppData);
            LPREditor.Location = new Point(10, 10);
            page.Controls.Add(LPREditor);
            page.Text = pi.plateNumber;

            tabControlLPRResults.TabPages.Add(page);

            m_TabPageLPREditorTable.Add(page, LPREditor);

            LPREditor.PostPicture(pi.plateImage, pi.plateNumber);
            char[] plateCharsArray = pi.plateNumber.ToCharArray();
            for (int c = 0; c < pi.numChars; c++)
            {
                LPREditor.PostCharImage(pi.charImages[c], c, plateCharsArray[c].ToString());
            }
        }
Esempio n. 4
0
        void AddPlateTabToDiagPage(PLATE_INFO pi)
        {
            TabPage page = new TabPage();

            LPRInteractiveEditUC.LPRInteractiveEditUC LPRDiagDisplay;
            LPRDiagDisplay = new LPRInteractiveEditUC.LPRInteractiveEditUC(m_AppData);
            LPRDiagDisplay.Location = new Point(10, 10);
            page.Controls.Add(LPRDiagDisplay);
            page.Text = (pi.plateNumber == null )? " ": pi.plateNumber;

            tabControlDiagdisplay.TabPages.Add(page);

            m_TabPageLPRDiagnosticsTable.Add(page, LPRDiagDisplay);

            Bitmap BinarizedPlateImage = CreateTestBinarizedImage(pi);

            // the binarized from the test method in this C# program:
               //     LPRDiagDisplay.PostPicture(BinarizedPlateImage, (pi.plateNumber == null) ? " " : pi.plateNumber);

              LPRDiagDisplay.PostPicture(pi.plateImage, (pi.plateNumber == null )? " ": pi.plateNumber);

            LPRDiagDisplay.PostHistogram(pi.histoBmp, pi.histString);

            for (int c= 0; c < pi.charImages.Count(); c++)
            {
                LPRDiagDisplay.PostCharImage(pi.charImages[c], c, " ");
            }
        }
Esempio n. 5
0
        void AddPlateTabToEditPage(PLATE_INFO pi)
        {
            TabPage page = new TabPage();

            LPRInteractiveEditUC.LPRInteractiveEditUC LPREditor;
            LPREditor = new LPRInteractiveEditUC.LPRInteractiveEditUC(m_AppData);
            LPREditor.Location = new Point(10, 10);
            page.Controls.Add(LPREditor);
            page.Text = pi.plateNumber;

            tabControlLPRResults.TabPages.Add(page);

            m_TabPageLPREditorTable.Add(page, LPREditor);

            LPREditor.PostPicture(pi.plateImage, pi.plateNumber);
            char[] plateCharsArray = pi.plateNumber.ToCharArray();
            for (int c = 0; c < pi.numChars; c++)
            {
                LPREditor.PostCharImage(pi.charImages[c], c, plateCharsArray[c].ToString());
            }
        }