C# Class IBE.Ocr.tabOCR

显示文件 Open project: Duke-Jones/ED-IBE

Public Properties

Property Type Description
_parent Form1
pbOriginalImage System.Windows.Forms.PictureBox

Public Methods

Method Description
CommoditiesText ( string s ) : string
DisplayCommodityResults ( string s, Bitmap originalBitmaps, float originalBitmapConfidences, string rowIds, string screenshotName ) : void
DisplayResults ( string s ) : void
GenericSingleParameterMessage ( Object o, AppDelegateType a ) : void
GetOcrValueForWeb ( ) : string[]
ImportCurrentOcrData ( ) : void
Init ( ) : void

initialization of the whole log

ReturnOcrMonitoringStatus ( ) : bool
ReturnTrimmedImage ( ) : Bitmap
ScreenshotsQueued ( string s ) : void
SetOcrValueFromWeb ( string s ) : void
SetStationAndSystem ( string s, string t ) : void
UpdateCurrentImage ( Bitmap b ) : void
UpdateOriginalImage ( Bitmap b ) : Point[]
UpdateTrimmedImage ( Bitmap b, Bitmap bHeader ) : void
clearOcrOutput ( ) : void
setControlText ( Control CtrlObject, string newText ) : void
startOcrOnload ( bool doStart ) : void
tabOCR ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Acquisition ( bool noAutoImport = false ) : void
BeginCorrectingScreenshot ( string s, Bitmap originalBitmaps, float originalBitmapConfidences, string rowIds, string screenshotName ) : void
CheckOcrBuffer ( object sender ) : void
ContinueDisplayingResults ( ) : void
ImportFinalOcrOutput ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ScreenshotCreated ( object sender, FileSystemEventArgs fileSystemEventArgs ) : void
StripPunctuationFromScannedText ( string input ) : string
bClearOcrOutput_Click ( object sender, EventArgs e ) : void
bContinueOcr_Click ( object sender, EventArgs e ) : void
bEditResults_Click ( object sender, EventArgs e ) : void
button1_Click ( object sender, EventArgs e ) : void
button7_Click ( object sender, EventArgs e ) : void
cbAutoImport_CheckedChanged ( object sender, EventArgs e ) : void
cbDeleteScreenshotOnImport_CheckedChanged ( object sender, EventArgs e ) : void
cbStartOCROnLoad_CheckedChanged ( object sender, EventArgs e ) : void

selects, which ID to use for sending to EDDNCommunicator

cmdHint_Click ( object sender, EventArgs e ) : void
cmdIgnore_Click ( object sender, EventArgs e ) : void

Perform an "ignoring" of the current value (it's cosier)

removeClones ( string p ) : string
tbCommoditiesOcrOutput_Keypress ( object sender, KeyPressEventArgs e ) : void

direct submitting of the commodities with "Enter" if changed

tbOcrStationName_TextChanged ( object sender, EventArgs e ) : void
tbOcrSystemName_TextChanged ( object sender, EventArgs e ) : void

Method Details

CommoditiesText() public method

public CommoditiesText ( string s ) : string
s string
return string

DisplayCommodityResults() public method

public DisplayCommodityResults ( string s, Bitmap originalBitmaps, float originalBitmapConfidences, string rowIds, string screenshotName ) : void
s string
originalBitmaps Bitmap
originalBitmapConfidences float
rowIds string
screenshotName string
return void

DisplayResults() public method

public DisplayResults ( string s ) : void
s string
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GenericSingleParameterMessage() public method

public GenericSingleParameterMessage ( Object o, AppDelegateType a ) : void
o Object
a AppDelegateType
return void

GetOcrValueForWeb() public method

public GetOcrValueForWeb ( ) : string[]
return string[]

ImportCurrentOcrData() public method

public ImportCurrentOcrData ( ) : void
return void

Init() public method

initialization of the whole log
public Init ( ) : void
return void

ReturnOcrMonitoringStatus() public method

public ReturnOcrMonitoringStatus ( ) : bool
return bool

ReturnTrimmedImage() public method

public ReturnTrimmedImage ( ) : Bitmap
return Bitmap

ScreenshotsQueued() public method

public ScreenshotsQueued ( string s ) : void
s string
return void

SetOcrValueFromWeb() public method

public SetOcrValueFromWeb ( string s ) : void
s string
return void

SetStationAndSystem() public method

public SetStationAndSystem ( string s, string t ) : void
s string
t string
return void

UpdateCurrentImage() public method

public UpdateCurrentImage ( Bitmap b ) : void
b Bitmap
return void

UpdateOriginalImage() public method

public UpdateOriginalImage ( Bitmap b ) : Point[]
b Bitmap
return Point[]

UpdateTrimmedImage() public method

public UpdateTrimmedImage ( Bitmap b, Bitmap bHeader ) : void
b Bitmap
bHeader Bitmap
return void

clearOcrOutput() public method

public clearOcrOutput ( ) : void
return void

setControlText() public method

public setControlText ( Control CtrlObject, string newText ) : void
CtrlObject Control
newText string
return void

startOcrOnload() public method

public startOcrOnload ( bool doStart ) : void
doStart bool
return void

tabOCR() public method

public tabOCR ( ) : System
return System

Property Details

_parent public_oe property

public Form1 _parent
return Form1

pbOriginalImage public_oe property

public System.Windows.Forms.PictureBox pbOriginalImage
return System.Windows.Forms.PictureBox