The subject matter herein generally relates to augmented reality processing systems, and particularly, to an augmented reality processing system capable of processing a light source and shadow angle of a composite image and a related method.
With the recent proliferation of smart telephones, augmented reality technology is being used in various fields. An example of augmented reality technology is a technique of sensing an augmented reality marker from an image taken by a camera and synthesizing a virtual three-dimensional (3D) object according to the sensed marker with the image. Using such a technique, it is possible to make a virtual object that does not exist in reality look like it actually exists on a screen.
Implementations of the present technology will now be described, by way of example only, with reference to the attached figures.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
Several definitions that apply throughout this disclosure will now be presented.
The term “coupled” is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to physical connections. The connection can be such that the objects are permanently connected or releasably connected. The term “comprising,” when utilized, means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in the so-described combination, group, series, and the like. In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language. The software instructions in the modules may be embedded in firmware, such as in an erasable programmable read-only memory (EPROM) device. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other storage device.
The present disclosure is described in relation to an augmented reality processing system. The augmented reality processing system includes a camera, a determining module, an executing module, an analyzing module, and an adjustment module. The camera captures surrounding images. The determining module determines whether information of a virtual object exists in a surrounding image. The executing module creates an actual image. The analyzing module analyzes a light source and shadow angle of the actual image. The adjustment module adjusts a light source and shadow angle of the virtual object to ensure the light source and shadow angle of the virtual object is consistent with the light source and shadow angle of the actual image. The executing module creates a composite image including the virtual object and the actual image. The disclosure further offers an augmented reality processing method.
The electronic device 30 can include a modeling module 31, a storing module 32, a determining module 33, an executing module 35, an analyzing module 36 and an adjusting module 37. In at least one embodiment, the augmented reality processing system 100, which comprises the modeling module 31, the storing module 32, the determining module 33, the executing module 35, the analyzing module 35 and the adjusting module 37, is comprised of computerized instructions in the form of one or more computer-readable programs stored in the storing module 32 and executed by the at least one microprocessor 301 in the electronic device 30. That is, the modeling module 31, the storing module 32, the determining module 33, the executing module 35, the analyzing module 36 and an adjusting module 37 are in the at least one microprocessor 301.
In at least one embodiment, the storing module 32 also can be an external storage device, such as an external hard disk, a storage card, or a data storage medium.
The modeling module 31 is configured to create a virtual object 40 (see
The executing module 35 is configured to create an actual image 50 according to the surrounding image captured by the camera 10, when the information of the virtual object 40 is in the surrounding image.
Referring to
At block 1301, the camera 10 captures images of the surroundings (surrounding images) of the electronic device 30 to send to the determining module 33.
At block 1302, the determining module 33 determines whether information of the virtual object 40 exists in a surrounding image captured by the camera 10. If yes, goes on block 1303, if no, goes back block 1301.
At block 1303, the executing module 35 creates an actual image 50 according to the surrounding image captured by the camera 10, and the determining module 33 determines a preferred shown location P for the virtual object 40 according to the coordinate points of the actual image 50.
At block 1304, the analyzing module 36 analyzes the actual image 50 to obtain the coordinate information of the virtual object 40 (see
At block 1305, the analyzing module 36 analyzes the light source and shadow angle of the preferred shown location P according to the coordinate information of the virtual object 40 to confirm the light source location in the actual image 50.
At block 1306, the analyzing module 36 confirms the coordinate point of the light source in the actual image 50 to determine the light source and shadow angle of the actual image 50.
At block 1307, the adjusting module 37 adjusts the light source and shadow angle of the virtual object 40 to confirm the light source and shadow angle of the virtual object 40 is consistent with the light source and shadow angle of the actual image 50.
At block 1308, the executing module 35 adds the virtual object 40 into the actual image 50, and the actual image 50 displays the virtual object 40 in the composite image 60.
The embodiments shown and described above are only examples. Many details are often found in the art such as the other features of an augmented reality processing system. Therefore, many such details are neither shown nor described. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, especially in matters of shape, size, and arrangement of the parts within the principles of the present disclosure, up to and including the full extent established by the broad general meaning of the terms used in the claims. It will therefore be appreciated that the embodiments described above may be modified within the scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201510614858.1 | Sep 2015 | CN | national |