title: Detect the number of physical objects in an image (Image processing)
body: <p>I am developing a Ruby on Rails application where I want to detect the number of physical objects (bottles and food packets) in an image.</p>
  
  <p>I just explored Google Vision API (<a href="https://cloud.google.com/vision/" rel="nofollow">https://cloud.google.com/vision/</a>) to check whether this is possible or not. I uploaded a photo which has some cool drink bottles and got the below response.</p>
  
  <pre><code>{
    "responses" : [
      {
        "labelAnnotations" : [
          {
            "mid" : "\/m\/01jwgf",
            "score" : 0.77698487,
            "description" : "product"
          },
          {
            "mid" : "\/m\/0271t",
            "score" : 0.72027034,
            "description" : "drink"
          },
          {
            "mid" : "\/m\/02jnhm",
            "score" : 0.51373237,
            "description" : "tin can"
          }
        ]
      }
    ]
  }
  </code></pre>
  
  <p>My concern here is, it is not giving the number of cool drink bottles available in the image, rather it returning type of objects available in the photo.</p>
  
  <p>Is this possible in Google Vision API or any other solution available for this?</p>
  
  <p>Any help would be much appreciated.</p>