This repository was archived by the owner on Dec 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1- # import keras
1+ import keras
22from tensorflow .keras .models import load_model
33import tensorflow as tf
44from PIL import Image
@@ -16,17 +16,16 @@ def __init__(self):
1616 config = configparser .ConfigParser ()
1717 config .read ('./config/config.ini' )
1818
19+ self .log_Image = ''
20+ self .LogNames = ''
21+
1922 if config .has_option ('Analog_Counter' , 'LogImageLocation' ):
2023 self .log_Image = config ['Analog_Counter' ]['LogImageLocation' ]
2124 if config .has_option ('Analog_Counter' , 'LogNames' ):
2225 zw_LogNames = config .get ('Analog_Counter' , 'LogNames' ).split (',' )
2326 self .LogNames = []
2427 for nm in zw_LogNames :
2528 self .LogNames .append (nm .strip ())
26- else :
27- self .LogNames = ''
28- else :
29- self .log_Image = ''
3029
3130 self .model_file = config ['Analog_Counter' ]['Modelfile' ]
3231
Original file line number Diff line number Diff line change 1- # import keras
1+ import keras
22from tensorflow .keras .models import load_model
33
44import tensorflow as tf
@@ -17,6 +17,9 @@ def __init__(self):
1717 config = configparser .ConfigParser ()
1818 config .read ('./config/config.ini' )
1919
20+ self .log_Image = ''
21+ self .LogNames = ''
22+
2023 self .model_file = config ['Digital_Digit' ]['Modelfile' ]
2124 if config .has_option ('Digital_Digit' , 'LogImageLocation' ):
2225 self .log_Image = config ['Digital_Digit' ]['LogImageLocation' ]
@@ -37,10 +40,6 @@ def __init__(self):
3740 self .LogNames = []
3841 for nm in zw_LogNames :
3942 self .LogNames .append (nm .strip ())
40- else :
41- self .LogNames = ''
42- else :
43- self .log_Image = ''
4443
4544 self .model_file = config ['Digital_Digit' ]['Modelfile' ]
4645 self .model = load_model (self .model_file )
You can’t perform that action at this time.
0 commit comments