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, " "); } }
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 }
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()); } }
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, " "); } }