Created
October 24, 2017 23:43
-
-
Save WuStangDan/b2dad5039441030128fca271a694dbb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_classification(self, img): | |
# Bounding Box Detection. | |
with self.detection_graph.as_default(): | |
# Expand dimension since the model expects image to have shape [1, None, None, 3]. | |
img_expanded = np.expand_dims(img, axis=0) | |
(boxes, scores, classes, num) = self.sess.run( | |
[self.d_boxes, self.d_scores, self.d_classes, self.num_d], | |
feed_dict={self.image_tensor: img_expanded}) | |
return boxes, scores, classes, num |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much for your Medium post, which is where I found this Gist. Could you please clarify which license applies to your Gist(s)? MIT?
Thank you!