Light field light source orientation method for augmented reality and virtual reality and front-end device
First Claim
1. A light field light source orientation method for augmented reality and virtual reality, comprising the steps of:
- identifying a target mark as follows;
collecting image data through a front-end device and identifying the collected image data, the front-end device being a mobile phone or helmet glasses;
tracking the target mark as follows;
tracking the position of a certain object in the image data by the front-end device;
obtaining the surface shape and feature of the certain object, and obtaining a data value of a color space of the certain object, the data value comprising;
hue-color essential attributes, saturation-color purity of 0-100% value and lightness and brightness of 0-100% value;
analyzing a grey zone on the certain object as follows;
analyzing, by the front-end device, a BLOB of the certain object, judging a refraction angle, length and brightness of the grey zone of the certain object according to the BLOB, and determining a light source direction in a place where the front-end device is located, a distance between the front-end device and a light source, and the intensity of the light source according to the refraction angle, the length and the brightness of the grey zone;
pushing the data to a light field of a virtual object as follows;
pushing the data into the light field of the virtual object after converting the data into identifiable data of the front-end device according to the data value of the color space of the certain object, the light source direction, the distance between the front-end device and the light source and the intensity of the light source; and
compensating and adjusting the imaging of the virtual object;
adjusting the virtual object and a shadow of the virtual object through the data value of the color space of the certain object, the light source direction, the distance between the front-end device and the light source and the intensity of the light source, so that a virtual scenario is more realistic and clear.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention relates to a light field light source orientation method for augmented reality and virtual reality and a front-end device. The method comprises: A: identifying a target marker; B. tracking the target marker; C. analyzing the pixel color shape on the marker object; D. analyzing color difference zones on the marker object and analyzing the shape cast to calculate direction of environmental light source; E. pushing the light source directional data to an augmented reality object; and F. compensating and adjusting the imaging of an augmented reality object: the present invention can collect surrounding environmental factors, such as the light source direction, so as to project a computer-generated object into a reality environment to possess a shadow consistent with that in the reality, so that an augmented reality environment is more realistic and represents a realist shadow effect of the object.
-
Citations
6 Claims
-
1. A light field light source orientation method for augmented reality and virtual reality, comprising the steps of:
-
identifying a target mark as follows;
collecting image data through a front-end device and identifying the collected image data, the front-end device being a mobile phone or helmet glasses;tracking the target mark as follows;
tracking the position of a certain object in the image data by the front-end device;
obtaining the surface shape and feature of the certain object, and obtaining a data value of a color space of the certain object, the data value comprising;
hue-color essential attributes, saturation-color purity of 0-100% value and lightness and brightness of 0-100% value;analyzing a grey zone on the certain object as follows;
analyzing, by the front-end device, a BLOB of the certain object, judging a refraction angle, length and brightness of the grey zone of the certain object according to the BLOB, and determining a light source direction in a place where the front-end device is located, a distance between the front-end device and a light source, and the intensity of the light source according to the refraction angle, the length and the brightness of the grey zone;pushing the data to a light field of a virtual object as follows;
pushing the data into the light field of the virtual object after converting the data into identifiable data of the front-end device according to the data value of the color space of the certain object, the light source direction, the distance between the front-end device and the light source and the intensity of the light source; andcompensating and adjusting the imaging of the virtual object;
adjusting the virtual object and a shadow of the virtual object through the data value of the color space of the certain object, the light source direction, the distance between the front-end device and the light source and the intensity of the light source, so that a virtual scenario is more realistic and clear. - View Dependent Claims (2, 3)
-
-
4. A front-end device, the front-end device comprising a mobile phone or helmet glasses comprising:
-
a processor; a memory coupled with the processor, wherein the processor is configured to execute programmed instructions stored in the memory for a target mark identifying process used for collecting image data and identifying the collected image data; a target mark tracking process used for tracking the position of a certain object in the image data, obtaining the surface shape and feature of the certain object, and obtaining a data value of a color space of the certain object, the data value comprising;
hue-color essential attributes, saturation-color purity of 0-100% value and lightness and brightness of 0-100% value;a grey zone analyzing process used for analyzing a BLOB of the certain object, judging a refraction angle, length and brightness of the grey zone of the certain object according to the BLOB, and determining a light source direction in a place where the front-end device is located, a distance between the front-end device and a light source, and the intensity of the light source according to the refraction angle, the length and the brightness of the grey zone; a data pushing process used for pushing the data into the light field of the virtual object after converting the data into identifiable data of the front-end device according to the data value of the color space of the certain object, the light source direction, the distance between the front-end device and the light source and the intensity of the light source; and a compensation and adjustment process used for adjusting the virtual object and a shadow of the virtual object through the data value of the color space of the certain object, the light source direction, the distance between the front-end device and the light source and the intensity of the light source, so that a virtual scenario is more realistic and clear. - View Dependent Claims (5, 6)
-
Specification