libs/configmanager.py
def Ocr_Tool_Init_Setting(self):
		'''
		Init the value for OCR TOOL
		'''
		Section = 'OCR_TOOL'

		config_path = self.Ocr_Tool_Config_Path

		if not os.path.isfile(config_path):
			config = configparser.ConfigParser()
			config.add_section('OCR_TOOL')

			with open(config_path, 'w') as configfile:
				config.write(configfile)

		
		config = configparser.ConfigParser()
		config.read(config_path)
		
		self.Init_Config_Option(config, Section, 'db_file', '', True)
		self.Init_Config_Option(config, Section, 'tess_path', '', True)
		self.Init_Config_Option(config, Section, 'tess_data', '', True)
		self.Init_Config_Option(config, Section, 'db_path', '', True)
		self.Init_Config_Option(config, Section, 'browsetype', 1)
		self.Init_Config_Option(config, Section, 'scan_lang', 'eng')
		self.Init_Config_Option(config, Section, 'app_lang', 'en')
		self.Init_Config_Option(config, Section, 'resolution', 720)
		self.Init_Config_Option(config, Section, 'scan_type', "Normal")
		


		with open(config_path, 'w') as configfile:
			config.write(configfile)

		Init the value for OCR TOOL
		
Init the value for OCR TOOL
Init the value for OCR TOOL
def Ocr_Tool_Init_Setting(self):
		Section = 'OCR_TOOL'
		config_path = self.Ocr_Tool_Config_Path
		if not os.path.isfile(config_path):
			config = configparser.ConfigParser()
			config.add_section('OCR_TOOL')
			with open(config_path, 'w') as configfile:
				config.write(configfile)
		config = configparser.ConfigParser()
		config.read(config_path)
		self.Init_Config_Option(config, Section, 'db_file', '', True)
		self.Init_Config_Option(config, Section, 'tess_path', '', True)
		self.Init_Config_Option(config, Section, 'tess_data', '', True)
		self.Init_Config_Option(config, Section, 'db_path', '', True)
		self.Init_Config_Option(config, Section, 'browsetype', 1)
		self.Init_Config_Option(config, Section, 'scan_lang', 'eng')
		self.Init_Config_Option(config, Section, 'app_lang', 'en')
		self.Init_Config_Option(config, Section, 'resolution', 720)
		self.Init_Config_Option(config, Section, 'scan_type', "Normal")
		with open(config_path, 'w') as configfile:
			config.write(configfile)
def Ocr_Tool_Init_Setting ( self ) : Section = 'OCR_TOOL' config_path = self . Ocr_Tool_Config_Path if not os . path . isfile ( config_path ) : config = configparser . ConfigParser ( ) config . add_section ( 'OCR_TOOL' ) with open ( config_path , 'w' ) as configfile : config . write ( configfile ) config = configparser . ConfigParser ( ) config . read ( config_path ) self . Init_Config_Option ( config , Section , 'db_file' , '' , True ) self . Init_Config_Option ( config , Section , 'tess_path' , '' , True ) self . Init_Config_Option ( config , Section , 'tess_data' , '' , True ) self . Init_Config_Option ( config , Section , 'db_path' , '' , True ) self . Init_Config_Option ( config , Section , 'browsetype' , 1 ) self . Init_Config_Option ( config , Section , 'scan_lang' , 'eng' ) self . Init_Config_Option ( config , Section , 'app_lang' , 'en' ) self . Init_Config_Option ( config , Section , 'resolution' , 720 ) self . Init_Config_Option ( config , Section , 'scan_type' , "Normal" ) with open ( config_path , 'w' ) as configfile : config . write ( configfile )
Init the value for OCR TOOL
Init the value for OCR TOOL
'''
		Init the value for OCR TOOL
		'''
self