Skip to content

Commit f55dc91

Browse files
committed
Consistent var naming
1 parent 6eb289c commit f55dc91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/py/label_dir.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from os import listdir
44
from os.path import isfile, join
55

6-
var_path = '/toScan'
6+
src_dir = '/toScan'
77
dest_dir = '/scanned'
8-
img_files = [f for f in listdir(var_path) if isfile(join(var_path, f))]
8+
img_files = [f for f in listdir(src_dir) if isfile(join(src_dir, f))]
99

1010
# Loads label file, strips off carriage return
1111
label_lines = [line.rstrip() for line
@@ -22,7 +22,7 @@
2222
softmax_tensor = sess.graph.get_tensor_by_name('final_result:0')
2323

2424
for image_file in img_files:
25-
src_image_path = join(var_path, image_file)
25+
src_image_path = join(src_dir, image_file)
2626
image_data = tf.gfile.FastGFile(src_image_path, 'rb').read()
2727

2828
print src_image_path

0 commit comments

Comments
 (0)