Answers.Body: <p>This could be possible, providing you have the right dataset to train it on.</p>
  
  <p>The volume of a cup consist of width, height and depth. You can probably detect all three of those given the bounding box or the pixels of the cup. However detecting the dimensions of an object require a reference object, like a penny or your finger and you have to specify the exact dimension of that. If that method fits your problem which I assume not, this is a good resource to look through: <a href="https://www.pyimagesearch.com/2016/03/28/measuring-size-of-objects-in-an-image-with-opencv/" rel="nofollow noreferrer">Open CV measuring dimensions</a> </p>
  
  <p>However to do the task, you need a way to measure the volume without the reference object. To fo this you need a deep learning based approach. <a href="https://github.com/iro-cp/FCRN-DepthPrediction" rel="nofollow noreferrer">Depth detection using fully residual convolutional neural network</a> maybe a good start for your project as you are doing something similar. You may use one of the pretrained model and apply transfer learning on it with the image of the cup and the surroundings, and get the output and feed it through another feed forward neural network to predict the volume.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-04T13:54:29.220Z
Answers.LastActivityDate: 2019-12-04T13:54:29.220Z
Answers.UserDisplayName: Clement
Body: <p>I was just wondering if it's possible to use Machine Learning to train a model from a dataset of images of cups with a given volume in the image and then use object detection to detect other cups and assume the volume of the cup,</p>
  
  <p>Basically the end goal is to detect the volume of a cup using object detection with a phone's camera,</p>
  
  <p>I would highly appreciate it if someone can point me to the right direction.</p>
  
Tags: <machine-learning><datasets><object-recognition><object-detection>
Title: Is it possible to use AI for detecting the volume of a cup
UserDisplayName: akano1
ThreadText: # Is it possible to use AI for detecting the volume of a cup
  
  (Asked by: username_0 on 2019-12-04)
  
  I was just wondering if it's possible to use Machine Learning to train a model from a dataset of images of cups with a given volume in the image and then use object detection to detect other cups and assume the volume of the cup,
  
  Basically the end goal is to detect the volume of a cup using object detection with a phone's camera,
  
  I would highly appreciate it if someone can point me to the right direction.
  
  **Tags:** machine-learning, datasets, object-recognition, object-detection
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-04. Score: 3
  
  This could be possible, providing you have the right dataset to train it on.
  
  The volume of a cup consist of width, height and depth. You can probably detect all three of those given the bounding box or the pixels of the cup. However detecting the dimensions of an object require a reference object, like a penny or your finger and you have to specify the exact dimension of that. If that method fits your problem which I assume not, this is a good resource to look through: [Open CV measuring dimensions](https://www.pyimagesearch.com/2016/03/28/measuring-size-of-objects-in-an-image-with-opencv/)
  
  However to do the task, you need a way to measure the volume without the reference object. To fo this you need a deep learning based approach. [Depth detection using fully residual convolutional neural network](https://github.com/iro-cp/FCRN-DepthPrediction) maybe a good start for your project as you are doing something similar. You may use one of the pretrained model and apply transfer learning on it with the image of the cup and the surroundings, and get the output and feed it through another feed forward neural network to predict the volume.
  
  
  ---
  
  