METHOD AND SYSTEM FOR ANTI-CREINLING AN OBJECT IN AN AUGMENTED REALITY EXPERIENCE
The method and system improve object localization and rendering in augmented reality by using antialiasing techniques and principal component analysis to stabilize object shapes, addressing offset variance and enhancing the virtual try-on experience.
Patent Information
- Application Number
- FR2023003724
- Authority / Receiving Office
- FR · FR
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-04-14
AI Technical Summary
Deep learning techniques for object localization in augmented reality experiences, such as virtual try-on, suffer from offset variance leading to perceptible differences in object location between frames, necessitating improved techniques for determining object information.
A method and system utilizing antialiasing techniques in deep neural networks for object localization and rendering, including blur operators in encoders and decoders to counteract jitter and offset variance, and employing principal component analysis for shape stabilization.
Enhances the accuracy and stability of object localization and rendering in augmented reality experiences, providing smoother and more consistent virtual try-on effects.
Smart Images

Figure 00000032_0000 
Figure 00000033_0000 
Figure 00000034_0000
Abstract
Description
Title of the invention: METHOD AND SYSTEM FOR ANTI-CREINLING AN OBJECT IN AN AUGMENTED REALITY EXPERIENCE FIELD OF INVENTION
[0001] This application relates to image processing in order to locate an object in one or more images and more particularly to the realization of an object anti-aliasing, and the rendering of an effect on the object in an augmented reality experience such as a virtual try-on (VTO for Virtual Try On). CONTEXT
[0002] Deep learning techniques are useful for processing images comprising a series of video frames to locate one or more objects within the images. In one example, the objects are portions of a user's body, such as a face or a hand, particularly fingernails. Image processing techniques are also useful for rendering effects associated with these objects, such as augmenting reality for the user. An example of such augmented reality is the provision of a VTO that simulates the application of a product to the object. Product simulation in the beauty industry includes the simulation of makeup, hair, and nail effects. Other examples might include iris localization and the simulation of a color change, for example, by a colored contact lens. These and other aspects will appear.
[0003] Deep learning networks are often subject to lag variance, resulting in noticeable differences in object localization, such as between frames in a video stream. Improved techniques are desired for determining object information from images, such as when providing augmented reality experiences, including VTO experiences. SUMMARY
[0004] The methods, apparatus, and technical embodiments localize objects using anti-aliasing, such as for rendering an object with an effect for a virtual test experiment (VTO). An example of such a system includes a nail localization engine comprising computing circuitry for locating one or more nail objects in an input image of a hand or foot via one or more deep neural networks, wherein the one or more deep neural networks are configured for anti-aliasing in each of the encoder and decoder components; and a rendering component comprising computing circuitry for rendering an output image simulating a nail product or service for nails applied to one or more nail objects, in response to localization by the nail localization engine, to provide a virtual test experience (VTO). In one embodiment, the respective blur operators in each of the encoders and decoders disperse the values towards neighboring regions to counteract flicker and shift variance, seeking to achieve shift invariance.
[0005] A computer-implemented method is proposed comprising the execution on a processor of one or more steps including: the localization of one or more nail objects in an input image of a hand or foot via one or more deep neural networks, wherein the one or more deep neural networks are configured for anti-aliasing in each of the encoder and decoder components; and the rendering of an output image simulating a nail product or nail service applied to the one or more nail objects, in response to the localization by the nail localization engine, to provide a virtual test experience (VTO).
[0006] This aspect and others will be apparent to a person skilled in the art. Brief description of the drawings
[0007] [Fig. 1] The [Fig. 1] is a graph representing an extracted contour comprising a plurality of numbered points for an instance of an object represented in a class map.
[0008] [Fig.2] The [Fig.2] is a graphic representing a standardized contour converted from the contour of the [Fig.1].
[0009] [Fig.3] The [Fig.3] shows a graph representing a normalized contour constructed from the standardized contour of the [Fig.2].
[0010] [Fig. 4A] [Fig. 4A] is a graph representing two contours, namely an input shape comprising the points of the contour of [Fig. 3] and an output shape determined from the output points of a principal component analysis (PCA) model after applying dimensionality reduction using PCA. [Fig. 4B] is an enlargement representing a portion of [Fig. 4A].
[0011] [Fig.5] The [Fig.5] is a graph representing two contours comprising an input shape with added noise and an output shape comprising the output points of the PCA model after application of dimensionality reduction using PCA.
[0012] [Fig.6A][Fig.6B] Figures 6A and 6B show respectively an image rendered without object formatting, and an image rendered with object formatting according to an embodiment here.
[0013] [Fig.7A][Fig.7B] Figures 7A and 7B show respectively an image rendered without object formatting, and an image rendered with object formatting in accordance with an embodiment here.
[0014] [Fig. 8A] [Fig. 8B] Figures 8A and 8B respectively show a rendered image without object formatting, and an image rendered with object formatting according to an embodiment here.
[0015] [Fig. 9A][Fig. 9B] Figures 9A and 9B show respectively an image rendered without object formatting, and an image rendered with object formatting according to an embodiment here
[0016] [Fig. 10] Fig. 10 is an illustration of a computer network providing an envi ronnement for various aspects according to the modes of implementation here.
[0017] [Fig. 11] The [Fig. 11] is a functional diagram of a network computer device of computers from [Fig. 10].
[0018] [Fig. 12] The [Fig. 12] is a flowchart of operations of a computer device in accordance with an embodiment.
[0019] [Fig. 13] [Fig. 13] is a graphic illustration of a CNN processing an image according to an example.
[0020] [Fig. 14] The [Fig. 14] is a graphic illustration of a portion of the CNN of the [Fig.13]
[0021] [Fig.15A][Fig.15B][Fig.15C][Fig.15D][Fig.15E][Fig.15F][Fig.15G] The [Fig.15A] is a graphical illustration of a BlurZoom operation according to an embodiment; and Figures 15B, 15C, 15D, 15E, 15F and 15G are examples of tensor data related to BlurZoom operations according to embodiments.
[0022] [Fig. 16] The [Fig. 16] is a flowchart of operations of a computer device in accordance with an embodiment. DETAILED DESCRIPTION
[0023] According to the embodiments herein, one or more object localization and object shaping techniques are described. In the embodiments described herein, the object class is a nail for nail coloring, such as one or more fingernails or toenails. An image may include several instances of these objects. In an example of a hand or foot for nail localization, the number of objects is typically five. In the embodiments herein, a deep neural network classifies and segments the nail objects.
[0024] In one embodiment, such as providing a VTO experience from a "live" video stream (e.g., a self-portrait video), each frame (e.g., each image) of the video is processed to locate objects, generate a processed shape of the objects, and render the objects with one or more effects. in accordance with the form processed.
[0025] An example of a deep neural network for object localization is described in US2020 / 0349711A1, published on November 5, 2020, now US 11410314B2, and entitled "Image Processing Using a Convolutional Neural Network to Track a Plurality of Objects." An example of a deep neural network for object localization, as adapted from US2020 / 0349711A1, is described in more detail below with reference to Figures 13 and 14.
[0026] In one embodiment, object localization includes determining the location of one or more objects in an image. In one example, a deep neural network is trained as a semantic classifier to detect, for example, a particular object class. The deep neural network can perform semantic segmentation to process an image in order to provide a mask classifying each pixel to indicate whether or not a pixel is an object pixel, that is, whether a pixel belongs to the object class or is a background pixel. In one embodiment, a mask is a single-channel output of the network indicating a probability for each pixel in an input image, as processed by the network, of whether the pixel is a nail. The probability values are typically between 0 and 1.A threshold can be applied to the probability value of a pixel to determine which pixel is a nail pixel and which is a background pixel, for example, to produce a threshold mask of binary values. In one embodiment, each pixel is assigned a 1 or a 0 in response to the threshold applied to the probability in the mask by the network. A threshold might be 0.5. The resulting threshold mask is thus a two-dimensional shape representation of the three-dimensional object or objects in the image. Some deep neural networks can classify multiple object classes.
[0027] In one embodiment, the deep neural network further produces a class map. In a nail embodiment that localizes five nails per hand, for example, the class map is a five-channel output, consisting of the probabilities for each finger class (little, ring, middle, index, and thumb). However, these probabilities are only valid within the nail regions defined by the nail mask. Therefore, the class map does not actually contain information indicating whether the current pixel is a nail or not.
[0028] For certain tasks, a class map is useful instead of a segmentation mask because the mask tends to be noisier while the class map has cleaner edges. An augmented class map for objects can be constructed to contain the background class, using the threshold mask. In one embodiment, to facilitate working with the class map and to define the augmented class map, the class map is processed by flattening the map of A 5-channel class map is reduced to a 1-channel map where each pixel contains an integer representing the class, with the class determined by the finger with the highest probability. The "background" class is also added using mask data. In one embodiment, the augmented class map can be used to find object contours (e.g., fingernails). It is noted that either the threshold mask or the augmented class map can be used for a contour extraction step.
[0029] Furthermore, in one embodiment, the deep neural network further produces a direction map indicating a direction of each object such as from a first end to a second end of the object (for example, from a base to an end or vice versa for a nail object).
[0030] Object localization is described in more detail below, following a description of object formatting. Object formatting refines the object's shape based on object shape information presented in the class map.
[0031] Improvement of an object form
[0032] Object shape information in class maps can be inaccurate, and detection differences between video frames can highlight shape differences, particularly inaccuracies. One objective of the object shaping task is to improve the shape and stability of an object (for example, when rendered in an output image).
[0033] From the class map, a boundary for each object can be determined, where the boundary includes a margin or border around the object following the outer contour of the object's shape as represented on the class map. In one embodiment, an augmented class map is defined and used for boundary extraction. In another embodiment, a shape model is used to refine the shape of each object in response to the boundaries. The refined shape is useful for updating the mask.
[0034] In some embodiments, the rendering—the process of applying an effect to the object to construct an output image, such as for a VTO experiment—is performed in response to the processed object contours instead of the contours of the original class map for each detected object. A revised mask can be determined according to the refined shapes as determined by applying the contours to a shape model. During rendering, the mask is used because the probability values make the rendered result appear smoother. In one embodiment, during rendering, the processing renders one nail at a time in the output image, so the class map is also useful for determining which mask pixels belong to the current class.
[0035] According to one embodiment, the object formatting steps com- take : • 1. Extracting object outlines from the class map; • 2. For each contour: • 3. The conversion of the outline into a “standardized” shape; • 4. Contour normalization to remove rotation, position, and scaling; • 5. Projecting the contour onto a shape model (for example, a model PCA) of reduced dimensionality; • 6. Stabilizing the contour in the model space; • 7. Deprojection of the contour of the model space; • 8. Reapplying rotation, translation, and scaling to outline; and • 9. Generating a new mask from the contours.
[0036] Each step 1 to 9 is described in more detail.
[0037] Edge extraction: In one embodiment, edges are extracted from the class map, for example, augmented as described above. However, the threshold mask may be used in another embodiment. Edge extraction may be performed using known techniques. A free example of an edge extraction function is "cv::findContours" available from OpenCV (Open Source Computer Vision) at opencv.org. This function implements aspects of S. Suzuki and K. Abe, "Topological structural analysis of digitized binary images by border following," Computer Vision, Graphics, and Image Processing 30 (1): 32-46 (1985). The function is capable of automatically determining the number of edges and the location of each edge.
[0038] Fig. 1 shows a graph 100 representing an extracted contour 102 comprising a plurality of points numbered from 0 to 30 for an instance of an object represented in a class map (not shown). Fig. 1 is a constructed example of what a detected contour might look like. The x and y axes represent the (x, y) position in the coordinate system of the image graph 100, which includes a point 104 representing the base and a point 106 representing the tip of the object (a fingernail). These points are provided for illustrative purposes and are not part of the output of the contour extraction function, for example.
[0039] Conversion of the contour to a standardized shape: [Fig. 2] is a graph 200 representing a standardized contour 202 converted from the contour 102. Contours extracted using an extraction function (e.g., the contour 102) typically have a different number of points for different object instances. Also, the location of the points is typically different. To simplify working with extracted contour points, the extracted points are converted into a curve. using a curve fitting method and resampled (e.g., at predefined and relatively evenly distributed locations) so that the same number (e.g., 25) of points per nail (object) are defined for use (e.g., points 0 to 24) and each respective point is located approximately in the same area of the nail (e.g., point 0 (204) is always at the tip of the nail object). In one embodiment, curve fitting using cardinal splines is used (see en.wikipedia.org / wiki / Cubic_Hermite_spline#Cardinal_spline).
[0040] Contour normalization: Standardized contour information includes data dimensions that can complicate further analysis and that do not relate solely to the shape itself. To facilitate further analysis of the object's shape, for example, using principal component analysis (PCA) techniques, it is desirable that the shape modeling model only the shape and nothing else. Normalization operations eliminate rotation, positioning, and scaling of the standardized contours. [Fig. 3] shows a graph 300 representing a normalized contour 302 constructed from the normalized contour 202.In one embodiment, a normalization process includes: 1) calculating the average of all contour points to obtain an estimate of the object's center (alternatively, the centroid could be calculated); 2) subtracting the center point from all points to normalize the position; 3) rotating all points by a negative nail angle to normalize the rotation, for example, where the nail angle is obtained from the direction map output by the nail detection model; and 4) calculating minimum / maximum X values and uniformly scaling the points so that the X values are between -1 and 1 to normalize the scale. In one embodiment, uniform scaling is used to maintain the aspect ratio.
[0041] Contour projection into model space: In one embodiment, the object shape is constrained using PCA techniques, including a PCA model. The PCA model is trained with the applicable object shape data. The PCA model has input data requirements. It is noted that other approaches can be used for a shape model. For example, a different dimensionality reduction method could be used, such as training an autoencoder using a neural network.
[0042] In general, PCA is used to learn a different representation of contour data, where the newly learned space contains dimensions that are ordered according to the variance they account for in the data. For a PCA model that models, for example, nail shapes, the input representation in one embodiment comprises a set of 2D points and the representation The output includes a set of numbers that more abstractly represent the shape. For example, the first number may affect the overall high-level shape, while subsequent numbers may progressively affect the finer and finer details of the shape.
[0043] Dimensionality reduction (on the PCA model) can be performed to constrain a nail shape by eliminating the dimensions that model the small details, which can give a nail shape that appears smoother and more natural. The resulting PCA model data is then deprojected back into the input space (e.g., the contours) to obtain a new set of 2D points.
[0044] For this task, in one embodiment, the PCA model fulfills three objectives. The PCA model contains knowledge about the appearance of a valid nail shape and can be used to constrain the detected nail contour to correct any atypical or noisy contour. Stabilization can be performed in PCA space, allowing the shape to be stabilized over time (e.g., between frames of a video). The model can also measure the amount of error between the current shape and the nail shape closest to the model. If the error is large, this may indicate a false detection or a very inaccurate contour, and it may reject that particular nail from rendering. It may be preferable not to render a nail at all than to render it with a truly inaccurate shape. An example of an inaccurate shape involves occlusion by an object other than a nail or when two nail objects overlap and cannot be distinguished.Furthermore, inaccuracy can be caused by a number of other factors such as: poor lighting, motion blur, an indistinct boundary between the nail and the background, and anything else that would make it difficult to correctly segment the nail.
[0045] To train the PCA model, the contours of the nail training data are preprocessed using the same standardization and normalization steps as described above. For each nail object, the input to the PCA model consists of 25 points (50 dimensions in total when flattened, due to the x and y point values). Approximately 6500 nail shapes were used for training the model.
[0046] Dimensionality reduction is performed during projection onto the PCA space. The PCA provides a means of mapping from the input space to the PCA space. The transformation involves multiplying the input data by a projection matrix. This matrix is obtained during training. For more details, see en.wikipedia.org / wiki / Principal_component_analysis#Dimensionality_reduction. There is a trade-off between the model's ability to constrain shape and the model's expressiveness. If the number of dimensions is low, the model will constrain shape. It models nail shape very well, but may have difficulty modeling all possible nail shapes and nail poses. If a large number of dimensions is used, it can better model the different nail shapes and poses, but it will be less effective at constraining the shape. Experimentation has shown that reducing it from 50 to 15 dimensions provides an acceptable balance in the above compromise. This reduction can be performed after training the shape model and includes "trimming" the projection matrix according to the number of dimensions.
[0047] Figure 4A is a 400 graph representing two contours, namely an input shape comprising the points of the 302 contour and an output shape (402 contour) determined from the output numbers of the PCA model after applying dimensionality reduction using PCA. In this example, since the input is already relatively smooth, the output is not very different from the input.Figure 4B is an enlargement representing a portion of Figure 4A at area 404 showing the numbered points of contour 302 and contour 402. The points of contour 302 are represented as hollow circles and are immediately adjacent to a lower left corner of the point number.
[0048] Figure 5 is a graph 500 representing two contours, namely an input shape comprising the points of a contour 502 and an output shape (points of contour 504) determined from the output numbers of the PCA model after applying dimensionality reduction using PCA. The input contour 502 of Figure 5 shows a different example where noise is intentionally added to the input curve to simulate noise detection. The use of PCA dimensionality reduction eliminates almost all of the noise.
[0049] Stabilization in PCA space: Optionally, in one embodiment, the shape data is stabilized over time. In "live" mode (for example, in a component of a VTO experiment where video frames are rendered with effects applied to one or more objects within the frames), the PCA data (for example, in PCA space) is stabilized to stabilize the shape over time (for example, from one frame to the next). In one embodiment, an exponential moving average is applied to the PCA data, where the weight is determined by the speed of the nails in order to minimize the perceived delay. In one embodiment, the speed is determined by calculating the change in the center position of the contour from one frame to the next. A history of N current and past speeds is maintained, and the average is calculated to produce a final speed per nail. In one embodiment, N = 2.When the nails move, little stabilization is performed, and when the nails are stationary, a large amount of stabilization is used. In one embodiment, the same weight is applied to all components. In another embodiment, the components are weighted differently. For example, the... The most important components (which model the overall shape) may be less stabilized than the less important components (which model the small details of the shape). Stabilization is not applicable to the processing and rendering of a single image, as no temporal domain is present in the data.
[0050] Stabilization within PCA data space is preferable, although it would be possible to stabilize after deprojection from PCA space, for example, after reapplying transformations. One advantage of stabilization within PCA space is that it focuses solely on stabilizing the essential aspects of the shape, rather than affecting rotation, position, etc. Stabilizing the position can produce a very noticeable lag, which is not a preferred outcome.
[0051] Deprojection from PCA space: In this step, the PCA data are deprojected back into the original space (contour space) to obtain the new contour.
[0052] Reapplication of rotation, translation and scaling: Rotation, translation and scaling are reapplied to the new contour.
[0053] Generating a new mask: A new nail mask image (for example, a rendered image) is generated by tracing the new outlines for each nail in a blank image. A new class map is also generated because the nail shapes have now changed.
[0054] Rendering can be performed according to the new mask, for example, to render an effect within the region of the object defined by the updated outline, namely on the pixels inside, as identified by the new mask. In one example, the effect is a nail effect, for example, applying a nail color to simulate nail polish or a nail texture. Other nail effects can be applied in response to the styled object. For example, the nail shape can be applied, for example, to extend the length to simulate a French manicure, an acrylic type, or another type of nail shape material, etc. Results of object styling examples
[0055] Figures 6A and 6B show, in relation to a first example of an input image (not shown), an image rendered without object formatting 600A, and an image rendered with object formatting 600B according to one embodiment herein. Figures 7A and 7B show, in relation to a second example of an input image (not shown), an image rendered without object formatting 700A and an image rendered with object formatting 700B according to one embodiment herein. Figures 8A and 8B show, in relation to a third example of an input image (not shown), an image rendered without object formatting 800A and an image rendered with object formatting 800B according to one embodiment herein. Figures 9A and 9B show, in relation to a fourth example of an input image (not shown), (shown), an image rendered without object shaping 900A and an image rendered with object shaping 900B according to one embodiment here. Figures 6A and 6B, 7A and 7B, 8A and 8B, and 9A and 9B are enlarged portions of hand images to more clearly show the differences provided by object shaping.
[0056] Figure 10 illustrates a computer network providing an environment for various aspects according to embodiments shown herein. Figure 11 is a functional diagram of a computer device in the computer network of Figure 10.
[0057] With reference to [Fig. 10], an example of a computer network 1000 is shown, in which a personal computer device 1002 is operated by a user 1004. The device 1002 communicates via a communications network 1006 with remotely located server computer devices, namely server 1008 and server 1010. User 1004 may be a consumer of nail-related products or services. Also shown are a second user 1012 and a second computer device 1014 configured for communication via the communications network 1006, such as for communicating with server devices 1008 or 1010. The second user 1012 may also be a consumer of nail-related products or services.
[0058] In short, each of the computer devices 1002 and 1014 is configured to perform a virtual try-on of nail products or services. In one embodiment, a neural network for locating nail objects is stored and used on board the computer device 1002 or 1014. In another embodiment, it can be provided from the server 1008, such as via a cloud service, a web service, etc., from an image or images received from the computer device 1002 or 1014. In one embodiment, the neural network is as described herein and provides masks and class maps as output during image processing. Thus, devices 1002, 1014 or 1008 can each include a nail object localization engine having computing circuitry configured to locate one or more nail objects in an input image of a hand or foot via one or more deep neural networks.
[0059] One or more localized objects can be reshaped using a trained shape model as described herein. Thus, devices 1002, 1014, or 1008 can each include a nail-shaping engine comprising computational circuitry for reshaping, via a trained shape model, one or more nail objects as located by the nail-location engine. In one embodiment, the trained shape model reduces the dimensionality of data to identify important features. In one embodiment, the trained model is defined and trained according to principal component analysis techniques.
[0060] Reshaped nail objects are useful for rendering effects on input images, such as for simulating a product or service providing a virtual try-on (VTO) experience to a user. Thus, devices 1002, 1014, or 1008 can each include a rendering component comprising a computing circuit for rendering an output image simulating a nail product or nail service applied to one or more nail objects according to the reshaping performed by the nail-shaping engine to provide a VTO experience. In one embodiment, devices 1002 and 1014 include respective display devices for visualizing the VTO experience.
[0061] Device 1008 or 1010 can provide one or more cloud and / or web-based services, such as one or both of a service for recommending nail-related products or services (e.g., manicure salon services) and a service for purchasing nail-related products or services through an e-commerce transaction. Thus, for example, each of devices 1002, 1014, 1008, or 1010 can include a nail VTO component comprising computing circuitry for one or both of a nail product recommendation or a nail service recommendation for a virtual try-on, and a purchase of the nail product or nail service via an e-commerce transaction. In one embodiment, the nail VTO component of devices 1002 and 1014 can communicate with one or both of servers 1008 and 1010 to obtain a recommendation or complete a purchase transaction.It is understood that payment service devices for carrying out an e-commerce transaction are not shown for the sake of simplicity, and that storage components storing product or service information for these recommendations and / or purchases are also not shown.
[0062] In one embodiment, devices 1002 and 1014 comprise respective cameras such as those for capturing input images, which may include self-portrait images, including videos having a series of frames. The input images for processing may be frames of the video, including, for example, a current frame of a video. Each of the elements 1002, 1014, or 1008 may include a stabilization component having computing circuitry for stabilizing the reshaping of one or more nail objects between the series of video frames.
[0063] The computing device 1002 is shown as a portable mobile device (e.g., a smartphone or tablet). However, it could be another computing device such as a laptop, desktop computer, workstation, etc. Similarly, the device 1014 could have a different form factor. The computing devices 1002 and 1014 could be configured using one or more native applications or browser applications, for example, to to provide the VTO experience.
[0064] Figure 11 is a functional diagram of the computer device 1002, according to one or more embodiments of this disclosure. The computer device 1002 comprises one or more processors 1102, one or more input devices 1104, a gesture I / O device 1106, one or more communication units 1108, and one or more output devices 1110. The computer device 1002 also includes one or more storage devices 1112 storing one or more modules and / or data.The modules may refer to software modules, a component of such a device 1002 and may include a deep neural network model 1114 such as for a nail localization engine, a shape model (trained) 1116 such as for a nail shaping engine, a module for a rendering component 1118, a module for a stabilization component 1120, user interface modules such as components for a graphical user interface (GUI 11120) and a module for image acquisition 1124. The data may include one or more images for processing or as output from processing (e.g., images 1130), etc.
[0065] Modules such as those executed by one or more 1102 processors provide the functionality to acquire one or more images, such as a video, and to process the images to provide the VTO experience. In another example (not shown), one or more of the neural network model, trained shape model, rendering component, and stabilization component are located remotely (e.g., on the 1008, 1010, or other computing device). The 1002 computing device can communicate one or more input images (e.g., from the 1130 images) for processing and feedback.
[0066] The storage device(s) 1112 can store additional modules such as an operating system 1132 and other modules (not shown), including communication modules; graphics processing modules (e.g., for a GPU of processors 1102); a map module; a contacts module; a calendar module; a photos / gallery module; a photo editor (image / multimedia); a media player and / or a streaming module; social networking applications; a browser module; etc. The storage devices may be referred to herein as storage units.
[0067] One or more processors 1102 can implement a function and / or execute instructions within the computing device 1002. For example, the processors 1102 can be configured to receive instructions and / or data from the storage devices 1112 in order to execute the functionality of the modules shown in [Fig. 11], among others (e.g., operating system, applications, etc.). The computing device 1002 can store data / information on the disks Positive storage 1112. Some of the features are described in more detail below. It is understood that the operations may not correspond exactly to the modules shown in the storage device 1112 of [Fig. 11], so that one module may assist the functionality of another.
[0068] The computer program code for performing operations can be written in any combination of one or more programming languages, for example, an object-oriented programming language such as Java, Smalltalk, C++ or similar, or a conventional procedural programming language, such as the "C" programming language or similar programming languages.
[0069] The computer device 1002 can generate an output for display on a screen of the gesture I / O device 1106 or, in some examples, for display by a projector, monitor, or other display device. It will be understood that the gesture I / O device 1106 can be configured using various technologies (for example, in relation to input capabilities: a resistive touchscreen, a surface acoustic wave touchscreen, a capacitive touchscreen, a projective capacitive touchscreen, a pressure-sensitive screen, an acoustic pulse recognition touchscreen, or another presence-sensitive screen technology; and in relation to output capabilities: a liquid crystal display (LCD), a light-emitting diode (LED) display, an organic light-emitting diode (OLED) display, a dot-matrix display, an electronic ink display, monochrome, or similar color.
[0070] In the examples described herein, the Gesture I / O Device 1106 includes a touchscreen device capable of receiving as input touch interaction or gestures from a user interacting with the touchscreen. These gestures may include tap, swipe, or flick gestures, pause gestures (for example, when a user touches the same location on the screen for at least a threshold period), or the user touches or points to one or more locations on the Gesture I / O Device 1106. The Gesture I / O Device 1106 may also include gestures without tapping. The Gesture I / O Device 1106 may output or display information, such as the graphical user interface, to a user.The 1106 gesture I / O device can present various applications, functions and capabilities of the 1002 computing device, including, for example, acquiring images, viewing images, processing images and displaying new images, messaging applications, telephone communications, contact and calendar applications, web browsing applications, gaming applications, e-book applications and financial, payment and other applications or functions, among others.
[0071] Although this disclosure illustrates and evokes a gesture I / O device 1106 primarily in the form of a display screen device with I / O capabilities (e.g., a touch screen), other examples of gesture I / O devices can be used to detect movement and may not include a screen itself. In this case, the computing device 1002 includes a display screen or is coupled to a display device to present new images and GUIs. The computing device 1002 can receive gesture input from a touchpad / touchpad, one or more cameras, or other presence- or gesture-sensitive input device, where presence means aspects of a user's presence, including, for example, movement of all or part of the user.
[0072] One or more communication units 1108 can communicate with external devices (e.g., server 1008, server 1010, second computing device 1014) as described and / or for other purposes (e.g., printing), such as via the communication network 1006, by transmitting and / or receiving network signals over one or more networks. The communication units may include various antennas and / or network interface cards, chips (e.g., global positioning system (GPS)), etc., for wireless and / or wired communications.
[0073] The input devices 1104 and output devices 1110 may include one or more buttons, switches, pointing devices, cameras, a keyboard, a microphone, one or more sensors (e.g., biometric, etc.), a loudspeaker, a buzzer, one or more indicator lights, a haptic (vibrating) device, etc. One or more of them may be coupled via a universal serial bus (USB) or another communication channel (1138). A camera (an input device 1104) may be oriented forward (i.e., on the same side) to allow a user to capture one or more images using the camera while looking at the gesture I / O device 1106 to take a "self-portrait".
[0074] The one or more storage devices 1112 may take different forms and / or configurations, for example, such as short-term or long-term memory. The storage devices 1112 may be configured for the short-term storage of information as volatile memory, which does not retain its stored contents when the power is turned off. Examples of volatile memory include random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), etc. The storage devices 1112, in some examples, also include one or more computer-readable storage media, for example, for storing larger amounts of information than volatile memory and / or for storing this information for longer periods. In short, it retains information when the power is turned off. Examples of non-volatile memory include magnetic hard drives, optical discs, floppy disks, flash memory, or forms of electrically programmable memory (EPROM) or electrically erasable and programmable memory (EEPROM).
[0075] Although not shown, a computer device can be configured as a training environment to train the neural network model 1114, for example with appropriate training and / or trial data.
[0076] The deep neural network can be adapted to a lightweight architecture for a computing device that is a mobile device (for example, a smartphone or a tablet) having fewer processing resources than a "larger" device such as a laptop, desktop computer, workstation, server or other computing device of comparable generation.
[0077] It is understood that the second computer device 1014 can be configured similarly to the computer device 1002. The second computer device 1014 can have GUIs such as for requesting and displaying one or more images and diagnoses of skin signs from data stored on the server 1008 for different users, etc.
[0078] Figure 12 is a flowchart of operations 1200 as for the realization of a process. The process, in one embodiment, is a computer-implemented process executed by a processor to perform one or more steps. In 1202, the operations render an effect on an object having an original shape as detected in an input image (for example, by a deep neural network for object localization), wherein the effect is applied to the input image in accordance with an updated shape obtained from a trained shape model that constrains the original shape in response to important shape features identified by the trained shape model. Embodiment 1: In this embodiment, the process includes, for example, step 1202. Additional embodiments are apparent, including the following numbered embodiments.
[0079] Embodiment 2: According to Embodiment 1, the rendering is a component of a method for providing an augmented reality experience, such as a VTO experience, in which the effect simulates the application of a product to the object.
[0080] Embodiment 3: In Embodiment 1 or 2, the object is a fingernail or toenail and the effect is a nail effect simulating a nail product.
[0081] Embodiment 4: In Embodiment 3, the object is a first object of a plurality of objects comprising a second object comprising another fingernail or toenail, and wherein the method comprises locating each of the first and second objects and tracking the respective locations of the first The rendering process involves rendering the first object and the second object between frames of a video. The rendering process further includes rendering a first effect on the first object and a second effect, different from the first, on the second object. The first effect is applied according to a first updated shape obtained from the shape model trained for the first object, and the second effect is applied according to a second updated shape obtained from the shape model trained for the second object. For example, Embodiment 4 offers nails with different colors, nail art effects, or other effects. The location and tracking of the different nails are described at least with reference to class maps, augmented maps, and the five nails of a single hand.
[0082] Embodiment 5: In any one of Embodiments 1 through 4, the one or more steps further include: obtaining a contour of the object; using the trained shape model to determine the important features of the original shape in response to the contour; constraining the contour in response to the important features; and generating a render mask using the contour as constrained, the render mask to be used when rendering the effect on the object. Embodiment 6: In Embodiment 5, the one or more steps may further include: standardizing and normalizing the contour before applying the contour to the trained shape model, and, in relation to the contour as constrained by the trained shape model, undoing the normalization before generating the render mask.
[0083] Embodiment 7: In any of the Embodiments 1 to 6, one or both of the following are true: the trained shape model reduces the dimensionality of data to identify important features in response to the contour of the original shape and the trained shape model is defined and trained in accordance with principal component analysis techniques.
[0084] Embodiment 8: In any of the Embodiments 1 to 7, the input image comprises a plurality of objects of the same class (for example, five nail objects) and the rendering step is performed for each of the plurality of objects as detected in the input image (for example, to render nail effects on each nail object).
[0085] Embodiment 9: In any of the Embodiments 1 to 8, the input image comprises a current frame from a series of frames of a video and wherein one or more steps include, prior to rendering, stabilizing the updated shape in response to a speed of the object in the series of frames of the video, including the current frame.
[0086] Embodiment 10: In Embodiment 9, the input image is a current frame of a video stream and the method comprises: detecting a location of the object in a previous frame of the video stage; the determination of the object's velocity according to the location in the previous frame and a location in the current frame; the application of an exponential moving average to the contour as constrained when a weight is determined by the velocity.
[0087] Embodiment 11: In any one of Embodiments 1 to 10, the trained shape model determines whether or not a shape detection error occurs for the original shape according to the shape model. In such an embodiment, the rendering step can be performed in accordance with the absence of a shape detection error for the object in the input image, and the effect is not applied to the object in the presence of the shape detection error.
[0088] Embodiments of computer devices and embodiments of computer program-products corresponding to one or more of Embodiments 1 to 11 will be apparent.Embodiment 12 further provides: A system comprising: a nail localization engine including computing circuitry for localizing one or more nail objects in an input image of a hand or foot via one or more deep neural networks; a nail shaping engine including computing circuitry for reshaping, via a trained shape model, the one or more nail objects as localized by the nail localization engine; and a rendering component including computing circuitry for rendering an output image simulating a nail product or nail service applied to the one or more nail objects according to the reshaping by the nail shaping engine to provide a virtual try-on experience (VTO). Additional embodiments included the following numbered embodiments.
[0089] Embodiment 13: In Embodiment 12, the system includes a nail VTO component comprising computing circuitry for one or both of a recommendation of the nail product or nail service for virtual try-on, and of the purchase of the nail product or nail service via an electronic commerce transaction.
[0090] Embodiment 14: In Embodiment 12 or 13, the input image includes a current frame from a series of frames of a video and the system includes a stabilization component comprising computing circuitry for stabilizing the reshaping of one or more nail objects between the series of frames of the video.
[0091] Embodiment 15: In Embodiment 14 with respect to a single hand, the one or more nail objects comprise five objects including a little finger nail object, a ring finger nail object, a middle finger nail object, an index finger nail object and a thumb nail object and the nail locator motor includes computing circuitry to locate each of the five objects and track the respective locations of the five objects between frames of a video and wherein the rendering component includes computing circuitry to render a first effect simulating a product or service on at least one of the five objects and render a second effect, different from the first effect, on at least one different object among the five objects.
[0092] Embodiment 16: In any of the Embodiments 12 to 15, one or both of the following are true: the trained shape model reduces the dimensionality of data to identify important features; and the trained model is defined and trained in accordance with principal component analysis techniques.
[0093] Embodiment 17: In any one of Embodiments 12 to 16, one or more deep neural networks are configured for anti-aliasing in each of the encoder and decoder components, with the encoder components performing anti-aliasing during downsampling and the decoder components performing anti-aliasing during upsampling. Computer-implemented process embodiments and computer program-product embodiments corresponding to one or more of Embodiments 12 to 17 will be apparent. Object localization - Anti-aliasing
[0094] It is desirable that convolutional neural networks (CNNs) be shift-invariant. This means that shifting an input by a few pixels in a given direction should produce an output equal to the original output shifted in the same direction. However, due to aliasing, CNNs produce different outputs even for shifted versions of the same input. Antialiasing is discussed in Zhang, R. Making Convolutional Networks Shift-Invariant Again, International Conference on Machine Learning (ICML) 2019, (available at the time of deposit at arxiv.org / abs / 1904,11486).
[0095] Figure 13 is a graphical illustration of a CNN 1300 according to an embodiment of image processing according to an example of enhanced anti-aliasing. The CNN 1300 is adapted for anti-aliasing using the CNN from US2020 / 0349711A1. The CNN 1300 is an example of a deep neural network for object localization and segmentation, for example, for fingernail objects with enhanced anti-aliasing.
[0096] During object localization, particularly object segmentation, aliasing is introduced by resampling operators in a segmentation CNN, such as the deep neural network described in US2020 / 0349711A1. Resampling occurs at the downsampling and upsampling layers when the input is resized to a resampling lower or higher resolution (undersampling and oversampling, respectively). In the US2020 / 0349711A1 nail CNN, undersampling occurs in the encoder at the convolutional layers with a step size of 2 (the last convolutional layers of each "stage" in the unmatched CNN). Oversampling occurs in the decoder of the unmatched CNN when lower-resolution feature maps are oversampled and combined with higher-resolution feature maps (the "upper" layers in the unmatched CNN). To counteract aliasing, antialiasing is introduced both in the step size 2 convolutional layers of each stage and in the oversampling layers of the upper layers, as described in more detail.
[0097] Figure 13 shows CNN 1300, as adapted for anti-aliasing according to one embodiment, and the processing of an input (image) 1302 using two branches. Figure 14 is a graphical illustration of a portion of CNN 1300. The first branch 1300A (upper branch in Figure 13) comprises blocks 1304 to 1324. The second branch 1300B (lower) in Figure 13 comprises blocks 1326 to 1338. It will be appreciated if these clear-line distinctions can be modified. For example, block 1326 can be a block of the first 1300A branch. Block 1304 is a 2x block of zone subsampling. Although not shown, BlurPool can be used here instead of zone subsampling. Blocks 1306 to 1320 (also called stage_lowl, stage_low2... stage_low8) are blocks of the encoder-decoder backbone network (having an encoder phase and a decoder phase) as described in more detail.Blocks 1306 to 1320 are suitable for anti-aliasing as described in more detail. Block 1322 is a 2x sampling block, and block 1324 is a first branch fusion block as described in more detail. Block 1322 is suitable for anti-aliasing as described in more detail. Block 1326 is also a 2x oversampling block. Block 1326 is suitable for anti-aliasing as described in more detail. Blocks 1328 to 1334 (also called stage_high1, stage_high2... stage_high4) are single-phase encoder blocks as described in more detail. Blocks 1328 to 1334, similar to blocks 1306 to 1320, are suitable for anti-aliasing as described in more detail. Block 1338 oversamples by a factor of 8 and then provides the resulting feature map to the decoder model 1340, described in more detail with reference to [Fig. 14]. Block 1338 is suitable for anti-aliasing, as are blocks 1322 and 1326, described in more detail below.
[0098] In one embodiment, the encoder-decoder backbone network is modeled on MobileNetV2 (See Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted Residuals and Linear Bottlenecks. At the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018, as further adapted for Anti-aliasing, as described here. In one embodiment, the encoder phase (blocks 1328 to 1332) of the second branch is also modeled on the MobileNetV2 encoder, further adapted for anti-aliasing as described here.
[0099] In one embodiment, encoder blocks 1306 to 1320 and 1328 to 1334 are adapted from similar blocks of the original nail CNN. In blocks 1306 to 1320 and 1328 to 1334, all original nail CNN operators of the type: [Conv(stride=2) -> BatchNorm -> ReLU] become [Conv(stride=1) -> BatchNorm -> ReLU -> BlurPool(stride=2)] in CNN 1300.
[0100] BlurPool is implemented as described in Zhang, R. Making Convolutional Networks Shift-Invariant Again, ICML 2019. An input feature map of the form HxLxC is first convolved with a low-pass filter. The size and type of the filter are a hyperparameter of the process it contains. Next, the feature map that has undergone BlurPool processing is downsampled by the step size. In a nail embodiment, the step size is 2 for the CNN 1300.
[0101] In one embodiment, all nearest neighbor or bilinear upsampling operators in the original nail CNN become a custom BlurZoom operator (step=2) in the 1300 CNN. [Fig. 15A] is a graphical illustration of a 1500 BlurZoom operation performed during upsampling, according to one embodiment. In one embodiment, BlurZoom comprises two steps: a 1500 zero insertion operation as shown in [Fig. 15A] followed by convolution with a low-pass filter. Figures 15B to 15G are examples of tensor data related to BlurZoom operations according to the embodiments described later. Inserting zero intercalates a plurality of zero values into a group (e.g., 4 x 4) of existing values, to produce an oversampled group (e.g., 8 x 8) where ¾ of the resulting values are zero values.The oversampled group is then convolved with a filter (e.g., Gaussian or other). In one embodiment, the BlurZoom low-pass filters are the same filters used in BlurPool. If the filter sum equals 1, the operations are multiplied by 4. It can be understood that if a filter sum equals 1, this implies that the filter preserves the average intensity of the output. Normally, the sum of most filters, including low-pass filters, equals 1. In BlurZoom, since zeros are inserted (or theoretically inserted as described below), the resulting average intensity is reduced. For example, when 3 zeros are inserted around each value, the average intensity is reduced to 1 / 4. A multiplication by 4 counteracts this reduction to maintain the filter's average intensity preservation property.
[0102] In the BlurPool and BlurZoom operators, the low-pass filters provide a An anti-aliasing method is used to achieve offset equivariance. Normally, step convolution is not offset equivariant because output values can change significantly when the input is slightly offset due to the discrete subsampling that occurs. BlurPool seeks to solve this problem by applying a low-pass filter before subsampling. Intuitively, the low-pass filter can be thought of as "diffusing" each value into neighboring regions, so that the subsampling becomes less sensitive to offsets when the values are "diffused."
[0103] In accordance with the teachings and techniques herein, in the case of BlurZoom, the low-pass filter "broadens" values into newly inserted (actually or theoretically) rows and columns, so that any subsequent operation receives an equivalent offset input.
[0104] As described with reference to [Fig. 15A], in an embodiment without any optimization, the BlurZoom operation is implemented first by inserting zeros around each value, and then by applying a convolution to each value for low-pass filtering. For example, in the case of a 3x3 convolution, the calculation involves 9 multiplications and 8 additions per value. To optimize this, in one embodiment, the BlurZoom operations can ignore the zeros in the calculation.
[0105] Figures 15B, 15C, 15D, 15E, and 15F are examples of tensor data (values) 1506, 1508, 1510, and 1512 related to BlurZoom operations according to embodiments to illustrate optimization. The letters A to D in Figures B to E represent the values existing before zero insertion. In the case of a 3x3 convolution with zero insertion at a step of 2, a central value (e.g., A at the center of the 3x3 window) will either be surrounded by zeros (1506), the central value will be zero and will be surrounded by existing values (e.g., non-zero values) in the corners (1506), or the existing values will be scattered as shown in 1510 and 1512.
[0106] In the first case (1506), if the BlurZoom operations ignore zeros, they need to perform only one multiplication and no additions. In the second case, the BlurZoom operations need to perform only four multiplications and three additions. The last two cases require two multiplications and one addition. This gives an average of about 2.25 multiplications and 1.25 additions per output value. In one embodiment, this can be further optimized by omitting the zero insertion step. In the example above, the BlurZoom operations could create a new tensor that is double in width and height, and compute each value in the tensor using the approach above, determining which scenario from Figures 15B to 15E applies depending on whether the row and column numbers are odd or even.
[0107] It should be noted that the limits of the tensor would be a special case. When the convolution requires a value outside the tensor, it would "reflect" the values near the boundary. For example, as shown in 1514 in [Fig. 15F], if there are values in all positions, with an "A" in the upper left corner of the tensor, then a 3x3 convolution at "A" would produce the result in 1516 of [Fig. 15G]. Note that in a real-world scenario, most of these values are zero.
[0108] Thus, in one embodiment, the 3X3 convolution is optimized to reduce multiplication or addition operations in response to zero values. It is noted that the zero values need not necessarily be present (i.e., inserted). Zeros are theoretically present when the operations take into account zero expansion without inserting the values.
[0109] Table 1 shows a detailed layer-by-layer description. Table 1 presents a detailed summary of the nail segmentation model architecture. Each layer name corresponds to the blocks in Figures 13 and 14 as described herein. The height H and width W refer to the input size of the integral H x W resolution. For the 1408 projection and the 1410 expanded layers, pe { 16, 8} • For stages stage3_low to stage7_low, the number of channels in parentheses corresponds to the first layer of the stage (not shown), which increases up to the number without parentheses for subsequent layers of the same stage.
[0110] [Tables 1] iOS layer size name output stage l_low H v W 4 x- 3x3, 32, not 2 stage2_low H y Z 4 X 4 'lxl, 32' 3x3, 32 .1x1. 16. x 1 stage3_low H y H 8 x 8 TF.js stage4_low # y i6 16 "1x1144(96)' 3x3144(96) . 1xX24 . '1x1192(144)' 3x3192(144) . lx 1.32. x3 stage5_low lx 1384(192) 3x3384(192) lx 1.64 stage6_low '1x 1576(384)' 3x3576(384) . lx 1, 96 . [YES] stage7_low H 32 32 1x1960(576) 1 N / A 3 x 3960 (576), expanded x 2 x 3 1x1160 stage8_low x 1X1960 N / A 3 x 3960, expanded x 2 x 1 1x1320 Stage L-4_High is identical to Stage L-4_Low, but with an I / O size of x2. dilated_p_projection / ? H y W PXP H y W P * P lx 1320 [3 x 3320, dilated] x 2 The CNN 1300 decoder is shown in the middle and lower right of Figure 13 (e.g., blocks 1324 and 1336 (including the fusion blocks) and the oversampling blocks 1322 and 1326 adapted for anti-aliasing), and a detailed view of the decoder fusion model for each of blocks 1324 and 1336 is shown on the Figure 14. For an original input of size HX IV, the decoder merges the JL X ~~ stage_low4 features (from block 1312) with the oversampled features from block 1322 derived from stage_low8, then upsamples (block 1326) and merges the resulting features via the merge block 1336 with the S x — Par-8 8 specific features of stage_low4 (block 1334).
[0112] Figure 14 shows the fusion module 1400 used to fuse the oversampled high- and low-resolution semantic information features represented by feature map F1(1402) with the low- and high-resolution semantic information features represented by feature map F2(1404) to produce high-resolution fused features represented by feature map F2(1406) in the decoder using blocks 1408, 1410, 1412 and adder 1414. In conjunction with block 1324, feature map F1(1402) is output from block 1322 and feature map F2(1404) is output from block 1312. Feature map F2(1406) of block 1324 is oversampled in 1326 to be supplied to block 1336 as feature card F^ (1402) in the instance of pattern 1400 of that block.As noted, the oversampling performed at blocks 1322 and 1326 is anti-aliasing-friendly. At block 1336, feature map F2 (1404) is received as output from block 1334, and feature map F2 (1406) is output to block 338. Block 1338 oversamples to input resolution / 4 and then provides the resulting feature map to decoder model 1340. Block 1338 is anti-aliasing-friendly as noted. Decoder model 1340 produces three types of image information (e.g., a 3-channel output 1342) as described below.
[0113] As shown in Figure 14, a 1 x 1 convolutional classifier 1412 is applied to the oversampled Fl features, which are used to predict undersampled labels. This "Laplacian pyramid" of outputs (see Golnaz Ghiasi and Charles C. Fowlkes, "Laplacian reconstruction and refinement for semantic segmentation," in ECCV, 2016) optimizes smaller, higher-resolution receptive field feature maps to focus on refining predictions from larger, lower-resolution receptive field feature maps. Thus, on the 1400 model, the (not shown) feature map of block 1412 is not used as an output per se. Rather, in training, the loss function is applied in the form of a pyramid output regularization.
[0114] Block 1342 represents an overall output of decoder 1340 which comprises three channels corresponding to the outputs of the blocks of the three decoder branches (not shown). A first channel comprises a pixel classification (for example, a foreground / background mask or object segmentation masks), a second channel includes a classification of segmented masks into individual fingertip classes, and a third channel includes a 2D directionality vector field per pixel of segmented mask (e.g., (%,y) per pixel).
[0115] In one embodiment, the 1340 decoder uses multiple output decoder branches (for example, three) to provide directionality information (for example, base-to-tip vectors in the third channel) needed for fingernail rendering, and fingernail class predictions (in the second channel) needed to find fingernail instances using connected components. These additional decoders are trained to produce dense, penalized predictions only in the annotated fingernail area of the image. Each branch employs a respective loss function as shown in the example. While, in one embodiment, a normalized exponential (Softmax) function is used in two of the branches, another activation function for segmentation / classification may be used.It should be understood that the dimensions here are representative and can be adapted to different tasks. For example, in the 1340 decoder, two branches cover 10 classes (one per nail on two hands, for example), and are sized accordingly.
[0116] In one embodiment, the CNN 1300 provides a deep neural network for a nail localization engine to locate one or more nail objects in an input image of a hand or foot via one or more deep neural networks.
[0117] In one embodiment, an output from the CNN 1300 is provided to a rendering component, for example, to use one or more of the mask, class map, and directional information to render effects on detected objects. For example, nail effects are applied to nails detected from the CNN 1300, for example, to provide a virtual try-on experience (VTO).
[0118] In one embodiment, an output from the CNN 1300 is provided to a nail shaping engine for reshaping, via a trained shape model, one or more nail objects as located by the nail localization engine. The reshaped nail objects are provided to a rendering component to render an output image simulating a nail product or nail service applied to the one or more nail objects according to the reshaping by the nail shaping engine to provide a virtual try-on experience (VTO).
[0119] Figure 16 is a flowchart of operations 1600 such as for a process according to an embodiment. The process may include the execution by one or more processors of the steps shown in Figure 16. In an embodiment In embodiment 18, a method comprises: (in 1602) the localization of one or more nail objects in an input image of a hand or foot via one or more deep neural networks (e.g., of a tracker engine), wherein the one or more deep neural networks are configured for anti-aliasing in each of the encoder and decoder components; and (in 1604) a rendering component including computing circuitry for rendering an output image simulating a nail product or nail service applied to the one or more nail objects, in response to the localization by the nail localization engine, to provide a virtual try-on experience (VTO). These and other embodiments will be apparent, including the following numbered embodiments.
[0120] Embodiment 19: In Embodiment 18, the method includes one or both of recommending the nail product or nail service for a virtual try-on, and facilitating a purchase of the nail product or nail service via an electronic commerce transaction.
[0121] Embodiment 20: In Embodiment 18 or 19, the one or more deep neural networks are configured for anti-aliasing in each encoder stage having a downsampling operation and each decoder block having an upsampling operation.
[0122] Embodiment 21: In Embodiment 20, each decoder block having an oversampling operation is configured with an operator of the type: BlurZoom(step=2), where the BlurZoom operator includes a real or theoretical zero insertion operation to interleave rows and columns around existing values and a low-pass filtering operation to diffuse the existing values into the newly inserted rows and columns in order to provide any subsequent operation with an equivalent offset input.
[0123] Embodiment 22: In Embodiment 21, the low-pass filtering operation is optimized to reduce multiplications and additions in response to zero values actually or theoretically inserted.
[0124] Embodiment 23: In any of the Embodiments 20 to 22, each encoder stage having a downsampling operation is configured with operators of the type: Conv(stride=1) -> BatchNorm -> ReLU -> BlurPool(stride=2), where the BlurPool operator includes the application of a low-pass filter to diffuse each value into regions close to the values.
[0125] Embodiment 24: In any one of Embodiments 18 to 23, the method comprises reshaping, via a trained shape model (for example, a nail-shaping engine), one or more nail objects as located by the nail-locating engine; and wherein the rendering component renders the output image in accordance with the reshaping of the one or more objects nail shaping by the nail shaping engine.
[0126] Embodiment 25: In Embodiment 24: the input image includes a current frame from a series of frames of a video and the method includes stabilizing the reshaping of one or more nail objects between the series of frames of the video.
[0127] Embodiment 26: In Embodiment 24 or Embodiment 25: one or both of the following: the trained shape model reduces the dimensionality of data to identify important features; and the trained model is defined and trained according to principal component analysis techniques. Computer-implemented process embodiments and computer program-product embodiments corresponding to one or more of Embodiments 18 to 26 will be apparent. In addition, any of the anti-aliasing embodiments 18 to 26 can be combined with any of the object shaping (contouring) and / or stabilization embodiments 1 to 17 (for example, by combining corresponding system, process, or computer program-product embodiments).Thus, anti-aliasing techniques can be used in localization operations in combination with object contouring and / or stabilization techniques.
[0128] In addition to computer device and process aspects, a person skilled in the art will understand that computer program-product aspects are disclosed, where instructions are stored in a non-transient storage device (e.g., memory, CD-ROM, DVD-ROM, disk, etc.), and which, when executed, cause a computer device to perform any of the process aspects stored therein.
[0129] Although computing devices are described with reference to processors and instructions which, when executed, cause computing devices to perform operations, it is understood that other types of circuitry besides programmable processors may be configured. Hardware components comprising specifically designed circuits may be employed, such as, but not limited to, an application-specific integrated circuit (ASIC) or other hardware designed to perform specific functions, which may be more efficient than a general-purpose central processing unit (CPU) programmed using software.Thus, an apparatus aspect here generally refers to a system or device having circuitry (sometimes references to computing circuitry) that is configured to perform certain operations described in this document, such as, notably, those of a method aspect in this document, whether the circuitry is configured via programming or via its hardware design.
[0130] The practical implementation may include all or part of the features described These aspects, features, and various combinations, as well as others, can be expressed in the form of processes, apparatus, systems, means of performing functions, program products, and other means, combining the features described herein. A number of embodiments have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the processes and techniques described herein. Furthermore, other steps may be provided, or steps may be eliminated, from the described process, and other components may be added to or removed from the described systems. Therefore, other embodiments fall within the scope of the following claims.
[0131] Throughout the description and claims of this document, the terms "include" and "contain" and their variations mean "comprising but not limited to" and are not intended to exclude (and do not exclude) other components, integers or steps.
[0132] The features, integers, characteristics, compounds, chemical fractions, or groups described in conjunction with a particular aspect, embodiment, or example of the invention shall be understood as applicable to any other aspect, embodiment, or example, unless inconsistent with them. All features disclosed herein (including the claims, abstract, and accompanying drawings), and / or all steps of any method or process so disclosed, may be combined in any combination, except combinations where at least some of these features and / or steps are mutually exclusive. The invention is not limited to the details of the preceding examples or embodiments.The invention extends to any new feature, or any new combination, of the features disclosed in this memorandum (including any claim, abstract and any attached drawing) or to any new feature, or any new combination, of the steps of any disclosed method or process.
Claims
Claims
1. A system for locating objects using anti-aliasing for rendering an object with an effect for a virtual try-on experience, comprising: a nail localization engine having computational circuitry for locating one or more nail objects in an input image of a hand or foot via one or more deep neural networks, wherein the one or more deep neural networks are configured for anti-aliasing in each of the encoder and decoder components; and a rendering component having computational circuitry for rendering an output image simulating a nail product or nail service applied to the one or more nail objects, in response to the localization by the nail localization engine, to provide a virtual try-on experience.
2. A system for locating objects using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 1, comprising a virtual nail try-on experience component having computational circuitry for one or both of recommending the nail product or nail service for the virtual try-on, and facilitating a purchase of the nail product or nail service via an e-commerce transaction.
3. An object localization system using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 1, wherein the one or more deep neural networks are configured for antialiasing in each encoder stage having a downsampling operation and each decoder block having an upsampling operation.
4. An object localization system using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 3, wherein each decoder block having an upsampling operation is configured with an operator of the type: BlurZoom(stride=2), where the BlurZoom operator includes a zero insertion operation and a low-pass filtering operation to diffuse existing values into newly inserted rows and columns to provide any subsequent operation with an equi- offset variant.
5. An object localization system using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 4, wherein the low-pass filtering operation is optimized to reduce multiplications and additions in response to actually or theoretically inserted zero values.
6. An object localization system using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 3, wherein each encoder stage having a downsampling operation is configured with operators of the type: Conv(stride=l) -> BatchNorm -> ReLU -> BlurPool(stride=2), where the BlurPool operator comprises applying a low-pass filter to diffuse each value into neighboring regions of the values.
7. A system for locating objects using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 1, comprising a nail shaping engine having computational circuitry for reshaping, via a trained shape model, the one or more nail objects as located by the nail locating engine; and wherein the rendering component renders the output image in accordance with the reshaping of the one or more nail objects by the nail shaping engine.
8. A system for locating objects using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 7, wherein the input image comprises a current frame of a series of frames of a video and the system comprises a stabilization component having computational circuitry for stabilizing the reshaping of the one or more nail objects between the series of frames of the video.
9. An object localization system using antialiasing for rendering an object with an effect for a virtual try-on experience according to claim 7, wherein one or both of: the trained shape model reduces the dimensionality of data to identify important features; and the trained model is defined and trained in accordance with principal component analysis techniques.
Citation Information
Patent Citations
Image processing using a convolutional neural network to track a plurality of objects
US11410314B2
Image processing using a convolutional neural network to track a plurality of objects
US20200349711A1
