title: How to save the name of a file from the directory as a key of the dictionary?
body: <p>I have a directory(human_image_dir) with images in the .jpg format. I would like to traverse through each image and add the name of the image file as the key of a dictionary and score as a value.
  But I am not sure about the code I have written. I would appreciate your help. 
  I have tried the following code:</p>
  
  <pre><code>score_dict = {}
  
  obj1_feature = feature.calcFeature(current_human_image)
  for image in self.human_image_dir:
        obj2_feature = feature.calcFeature(image)
        score = np.score = np.linalg.norm(obj1_feature - obj2_feature)
        if score &lt; self.threshold:
              score_dict["key"] = "image"
              score_dict["value"] = score   
  </code></pre>
  
  <p>Expected output :</p>
  
  <pre><code>score_dict = {"image": score }
  </code></pre>