Skip to content

Commit 35fc332

Browse files
committed
setting default cnn model to support find_class block
1 parent 555d37c commit 35fc332

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

camera.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ def __init__(self):
8484
self._photos.append({'name': filename})
8585
self.save_photo_metadata()
8686

87-
#self._cnn_classifiers = {}
88-
#cnn_model = config.Config.get().get("cnn_default_model", "")
89-
#if cnn_model != "":
90-
# self._cnn_classifiers[cnn_model] = CNNManager.get_instance().load_model(cnn_model)
91-
# self._cnn_classifier_default = self._cnn_classifiers[cnn_model]
87+
self._cnn_classifiers = {}
88+
cnn_model = config.Config.get().get("cnn_default_model", "")
89+
if cnn_model != "":
90+
self._cnn_classifiers[cnn_model] = CNNManager.get_instance().load_model(cnn_model)
91+
self._cnn_classifier_default = self._cnn_classifiers[cnn_model]
9292

9393
self._camera.grab_start()
9494
self._image_cv = self.get_image()

0 commit comments

Comments
 (0)