Providing volume indicators based on received images of containers
In order to aid a user in filling a container with a target volume of a substance, an image is received. The image includes a view of the container and a view of a reference object. The reference object has a known dimension. The view of the reference object and the view of the container are then compared with reference to the known dimension. Based on the comparison, a volume of the container is determined. Based on the volume of the container, a volume indicator is provided.
1. A method comprising:
receiving, by a head-mounted display configured to be mounted upon a head of a user, an image, the image including a view of a container and a view of a reference object, the reference object having a known dimension;
comparing, with reference to the known dimension, the view of the reference object and the view of the container;
determining, based on the comparing, a volume of the container; and
displaying, by the head-mounted display and based on the volume of the container, a volume indicator, wherein the volume indicator is a virtual visual overlay superimposed on the container, wherein the virtual visual overlay includes a horizontal fill-line superimposed on a wall of the container, the horizontal fill-line configured to indicate a height to which a substance will reach when the container has been filled with a target volume of the substance by the user, and wherein, as displayed, the virtual visual overlay superimposed on the container is superimposed such that a majority of the container remains unobscured by the volume indicator.
2. The method of claim 1 , wherein the volume indicator is configured to aid the user in filling the container with the target volume of the substance.
3. The method of claim 1 , wherein the reference object is a portion of an appendage of the user, the method further comprising:
identifying the known dimension by obtaining a measurement of the portion the appendage.
4. The method of claim 3 , wherein the measurement of the portion of the appendage of the user is a width of a thumbnail of the user.
5. The method of claim 1 , further comprising:
receiving a second image, the second image including a second view of the container filled with a quantity of the substance;
determining, based on the second image, a volume of the quantity of the substance; and
providing the volume of the quantity of the substance to the user.
6. The method of claim 1 , wherein the determined volume of the container is an actual volume of the container.
7. The method of claim 1 , wherein the determined volume of the container is a measurement of a maximum amount of substance that the container is capable of holding.