We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb289c commit f55dc91Copy full SHA for f55dc91
src/py/label_dir.py
@@ -3,9 +3,9 @@
3
from os import listdir
4
from os.path import isfile, join
5
6
-var_path = '/toScan'
+src_dir = '/toScan'
7
dest_dir = '/scanned'
8
-img_files = [f for f in listdir(var_path) if isfile(join(var_path, f))]
+img_files = [f for f in listdir(src_dir) if isfile(join(src_dir, f))]
9
10
# Loads label file, strips off carriage return
11
label_lines = [line.rstrip() for line
@@ -22,7 +22,7 @@
22
softmax_tensor = sess.graph.get_tensor_by_name('final_result:0')
23
24
for image_file in img_files:
25
- src_image_path = join(var_path, image_file)
+ src_image_path = join(src_dir, image_file)
26
image_data = tf.gfile.FastGFile(src_image_path, 'rb').read()
27
28
print src_image_path
0 commit comments