The present disclosure relates generally to swimming pools. More specifically, but not by way of limitation, this disclosure relates to visualizing a swimming pool on a property using augmented reality.
Customers generally take into account a variety of considerations when choosing a swimming pool (or “pool”) for their property. For example, customers often consider the pool's size, shape, material, lining, and spatial positioning on the property. Customers may also take into account aesthetic considerations, such as the pool's color. Typically, pool manufacturers provide product catalogues that describe their pool products to aid the customer with these considerations. But visualizing what a pool will look like on the property of the customer, and how it will function, still requires a great deal of imagination on the part of the customer.
Certain aspects and features of the present disclosure relate to visualizing a swimming pool within a target area using augmented reality. In one particular example, a user may wish to install a swimming pool (or “pool”) in a target area of a property, such as his backyard or inside his home. To help visualize what the pool would look like in that space, the user can orient a camera of his mobile phone toward the target area and execute a pool visualization application on the mobile phone. The pool visualization application can obtain images of the target area using the camera, generate an augmented reality environment having a virtual swimming pool based on the images, and output the augmented reality environment on a display of the mobile phone. An augmented reality environment is a virtual environment in which images from a camera are supplemented (augmented) with virtual content. In this example, the virtual content is the virtual swimming pool. The augmented reality environment depicts the virtual swimming pool overlaying an image of the target area, to aid the user with visualizing what the swimming pool would look like in that space. This can enable the user to more easily select an appropriate pool.
In some examples, the pool visualization application can provide a variety of customization options through which the user can adjust the look, position, orientation, and other characteristics of the virtual swimming pool. For example, the pool visualization application can enable the user to select a size, shape, material, color, pattern, and/or liner of the virtual swimming pool from among a group of options, to help the user visualize pools with different aesthetic and functional qualities in the target area. The pool visualization application may additionally or alternatively enable the user to adjust a fill state of the virtual swimming pool. The fill state is whether the virtual swimming pool is rendered as an empty pool or filled with virtual water. This can enable the user to get a better sense of what the pool would look like with and without water, which may be important for visualizing how the pool would look in different circumstances.
The pool visualization application may additionally or alternatively enable the user to select the look, position, orientation, and other characteristics of a virtual deck associated with the virtual swimming pool. For example, the pool visualization application can enable the user to select a size, shape, material, color, and texture of the virtual deck from among a group of deck options, to help the user visualize decks with different aesthetic and functional qualities in the target area. As one particular example, the pool visualization application can enable the user to change the color and the texture of a virtual concrete deck (e.g., from a broom finish to a stamped stone) surrounding the virtual swimming pool, as well as expand or reduce the deck area in predefined increments, such as 0.3 meter (m) increments.
In some examples, the pool visualization application can render the virtual swimming pool (and the virtual deck) with one or more shadows to provide a more realistic experience. The pool visualization application can determine the characteristics of the shadows based on a physical location of the user in real space, so that the shadows are rendered to realistically reflect how the user would perceive a real swimming pool from his physical location. For example, the pool visualization application can determine the physical location of the mobile phone in real space using a global positioning system (GPS) unit, where the physical location of the mobile phone can serve as a proxy for the physical location of the user. The pool visualization application can then determine a relative position of the sun in the sky to the physical location of the mobile phone, determine characteristics for one or more shadows based on that relative position, and render the one or more shadows with those characteristics in the augmented reality environment.
These illustrative examples are given to introduce the reader to the general subject matter discussed here and are not intended to limit the scope of the disclosed concepts. The following sections describe various additional features and examples with reference to the drawings in which like numerals indicate like elements but, like the illustrative examples, should not be used to limit the present disclosure.
As shown in
The pool visualization application can determine characteristics (e.g., a scale, location, and orientation) for the virtual swimming pool 104 and the virtual deck 116 by analyzing the images 106, based on user input, or a combination thereof. For example, the pool visualization application can determine a horizontal plane and a vertical plane in the images 106 by analyzing the images using one or more image-processing algorithms. In one such example, the image-processing algorithms can be supplied by an image-processing library, such as ARKit by Apple®. After determining the horizontal plane, the pool visualization application can set the horizontal plane as ground level. And after determining the vertical plane, the pool visualization application may perform further analysis of the image features in the vertical plane to aid with generating the virtual swimming pool 104 and the virtual deck 116, as detailed below.
As mentioned above, the pool visualization application can perform one or more image-analysis techniques on the image features in the vertical plane. In some examples, the image-analysis techniques can include edge detection. The edge detection algorithm may be supplied by an image-processing library, such as OpenCV®. The pool visualization application can perform the image-analysis techniques to, for example, identify one or more vertical objects (e.g., trees, rocks, fence posts, etc.) extending vertically upward from the ground level. If a vertical object is located in the target area for the swimming pool, the vertical object can be identified as an obstruction that would prevent pool and/or deck placement. Based on identifying such an obstruction, the pool visualization application may output an alert associated with the obstruction and provide an alternative positioning suggestion as to how to reposition or reorient the virtual swimming pool 104 to avoid the obstruction. If a vertical object is located outside the target area for the swimming pool, the pool visualization application may use the vertical object as a visual anchor for calculating the appropriate scale for the virtual swimming pool 104. For example, the pool visualization application can estimate one or more distances from the handheld device 100 to one or more of the visual anchors by analyzing the images 106. The pool visualization application can then use one or more of the estimated distances to determine the appropriate scale for the virtual swimming pool 104 and the virtual deck 116. The pool visualization application can then render the virtual swimming pool 104 and the virtual deck 116 at the determined scale in the augmented reality environment 102.
In some examples, the pool visualization application can render the virtual swimming pool 104 and the virtual deck 116 with one or more shadows to provide a more realistic experience. The pool visualization application can determine the characteristics (e.g., size, shape, angle, and orientation) of the shadows based on a physical location of the handheld device 100 in real space. The physical location can be determined by the handheld device 100 using one or more sensors. Examples of the sensors can include a global positioning system (GPS) unit, gyroscope, accelerometer, or any combination of these. The physical location may include a spatial location of the handheld device 100, an orientation of the handheld device 100, or both of these. After determining the physical location of the handheld device 100, the pool visualization application can determine a relative position of the sun in the sky to the physical location of the handheld device 100. Based on the relative position, the pool visualization application can determine the characteristics for the shadows and render the shadows in the augmented reality environment 102. The pool visualization application can render the shadows by supplying the characteristics to a rendering engine, such as Unity 3D.
The pool visualization application can also provide a graphical user interface (GUI) associated with the augmented reality environment 102. The GUI can enable the user to input a variety of customizations to adjust the aesthetic, functional, and other characteristics of the virtual swimming pool 104 and the virtual deck 116. In the example shown in
In some examples, the GUI can also include a fill option 118 for adjusting a fill state of the virtual swimming pool 104. In the example shown in
Continuing with
As mentioned above, some examples may intentionally prevent the user from placing a virtual swimming pool 104 in target areas that do not have sufficient space, may alert the user of potential obstructions, and/or may take scaling factors into consideration when presenting the virtual swimming pool 104 and the virtual deck 116 to make the augmented reality environment 102 more realistic. But other examples may intentionally allow for one or more of such rules to be broken. For instance, the pool visualization application may allow a user may disable some of the above restrictions, so that the user can view a virtual swimming pool in smaller spaces where a full-sized version of the swimming pool may not fit. For example, the user can disable some of the above restrictions and then point the camera of the handheld device 100 at a furniture surface, such as the top of a desk or table. In response, the pool visualization application can generate an augmented reality environment having the virtual swimming pool (e.g., at smaller scale) positioned on the furniture surface. This may allow the user to more easily share a pool design concept with a friend or colleague at work, for example. This may also allow users to play with the pool visualization application in a game-like manner, for example, by pointing the camera on their handheld device 100 at a wall or ceiling of a building to project a virtual swimming pool thereon.
While
One example of a computing device 300 for providing an augmented-reality visualizer for swimming pools is depicted in
The computing device 300 includes a processor 302 communicatively coupled to a memory 304 by a bus 306. The processor 302 can include one processor or multiple processors. Non-limiting examples of the processor 302 include a Field-Programmable Gate Array (FPGA), an application-specific integrated circuit (ASIC), a microprocessor, etc. The processor 302 can execute instructions 308 stored in the memory 304 to perform operations. In some examples, the instructions 308 can include processor-specific instructions generated by a compiler or an interpreter from code written in any suitable computer-programming language, such as C, C++, C#, etc.
The memory 304 can include one memory device or multiple memory devices. The memory 304 can be non-volatile and may include any type of memory device that retains stored information when powered off. Non-limiting examples of the memory 304 include electrically erasable and programmable read-only memory (EEPROM), flash memory, or any other type of non-volatile memory. At least some of the memory device includes a non-transitory computer-readable medium from which the processor 302 can read instructions 308. A non-transitory computer-readable medium can include electronic, optical, magnetic, or other storage devices capable of providing the processor 302 with the instructions 308 or other program code. Non-limiting examples of a non-transitory computer-readable medium include magnetic disk(s), memory chip(s), ROM, random-access memory (RAM), an ASIC, a configured processor, optical storage, or any other medium from which a computer processor can read the instructions 308.
The instructions 308 can include a pool visualization application 318. The pool visualization application 318 may be executable by the processor 302 for causing the processor 302 to perform any amount and combination of the functionality described herein. The pool visualization application 318 may also be executable by the processor 302 to perform more functionality, less functionality, or different functionality than is described herein.
The computing device 300 also includes input components. One example of an input component is the user input device 310, which may include one user input device or multiple user input devices. Examples of such user input devices can include a mouse, a keyboard, a touchpad, and a touch-screen display. Another example of an input component is the sensor 312, which may include one sensor or multiple sensors. Examples of such sensors can include a global positioning system (GPS) unit, a gyroscope, an accelerometer, and an inclinometer. Yet another example of an input component is a camera 316, which may include one camera or multiple cameras.
The computing device 300 further includes output components. One example of an output component is the display 314, which may include one display or multiple displays. Examples of such displays can include a liquid crystal display (LCD) or a light-emitting diode (LED) display. The computing device 300 may also include an audio output component, like a speaker; a haptic output component, like a haptic actuator; and/or another type of output component. But for simplicity, these other output components are not shown in
While
In block 402, the processor 302 receives a plurality of images of a target area for a swimming pool from a camera 316, where the plurality of images depict the target area. The target area can be internal or external to a building, such as a home or commercial space. For example, the target area can be the backyard or lawn of a residential property. Alternatively, the target area can be the interior of a home (e.g., if the swimming pool is going to be an indoor pool).
In block 404, the processor 302 generates an augmented reality environment by analyzing the plurality of images. For example, the processor 302 can determine a horizontal plane and a vertical plane in the plurality of images by analyzing the plurality of images using an image-processing algorithm. The processor 302 can then identify a vertical object existing in the vertical plane and extending vertically upward from the horizontal plane, for example, by performing edge detection on image features in the vertical plane. After identifying the vertical object, the processor 302 can determine a size for the virtual swimming pool in the augmented reality environment by using the vertical object as an indicator of scale. The processor 302 can then generate an augmented reality environment that includes a virtual swimming pool of the determined size, where augmented reality environment depicts the virtual swimming pool overlaying at least one (background) image of the target area. The at least one image can be selected from the plurality of images received from the camera 316. Alternatively, the at least one image can be obtained before or after receiving the plurality of images from the camera 316. In some examples, the processor 302 may also include a virtual deck in the augmented reality environment, e.g., depending on a deck option selected by the user.
In block 406, the processor 302 outputs the augmented reality environment on a display 314. For example, the processor 302 can transmit one or more display signals to the display 314 for causing the display 314 to output the augmented reality environment thereon.
The foregoing description of certain examples, including illustrated examples, has been presented only for the purpose of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Numerous modifications, adaptations, and uses thereof will be apparent to those skilled in the art without departing from the scope of the disclosure. For instance, examples described herein can be combined together to yield still further examples.
This application claims the benefit of priority under 35 U.S.C. § 119(e) to U.S. Provisional Patent Application No. 62/956,255, filed Jan. 1, 2020, the entirety of which is hereby incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
62956255 | Jan 2020 | US |