# Patent

## Title
Product modeling system and method

## Abstract

A product modeling system and method are provided. On one embodiment, the product modeling system is used to model a piece of apparel, such as a shirt, with a design wherein the model with the design is used to display the piece of apparel with the design to a consumer.

## Background
PRIORITY CLAIMS/RELATED APPLICATIONS
This application is a continuation of and claims priority under 35 USC 120 to U.S. patent application Ser. No. 11/925,716 filed on Oct. 26, 2007 (to be issued on May 8, 2012 as U.S. Pat. No. 8,174,521), the entirety of which is incorporated herein by reference.


APPENDICES
Appendix A (2 pages) contains an example of the pseudocode for finding a set of markers on a product;
Appendix B (1 page) contains an example of the code for remapping the color of an image using normalized ordinal color distribution;
Appendix C (4 pages) contains an example of the code for building a color map in normalized histogram order with an index from a matching color space;
Appendix D (2 pages) contains an example of the code for building a look-up table to remap the colors from a source sphere to a destination sphere; and
Appendix E (3 pages) contains an example of the code for remapping the color of the source image with a source sphere color map to a destination image with the color map of the sphere color object.
Appendices A-E form part of the specification and are incorporated herein by reference.
FIELD
The invention relates generally to a system and method for modeling a piece of apparel.
BACKGROUND
Electronic commerce (E-commerce) is a thriving business in which various different products and services are sold to a plurality of consumers using an E-commerce site. The E-Commerce site may include a website that allows a plurality of consumers to gain access to the website using a network, such as the Internet. The website may have a plurality of web pages wherein these web pages have images of a plurality of different products that the consumer may purchase. The images contained in the plurality of web pages are two dimensional images. The website may also include a secure commerce portion that allows the consumer to select one or more items, place those items in an electronic shopping cart and, when done shopping, check out and pay for the items that remain in the electronic shopping cart using various payment services, such as PayPal or a credit card.
One limitation with these typical E-commerce systems is that the product available on the website, such as a shirt, may be modeled by a human model to show the product and its design, but is shown to the consumer as a “flat” image since it is shown to the consumer on the display of the computer being used by the consumer. Thus, the actual design of the product and how the product looks in real life is often difficult to determine from those images. This may result in consumers not purchasing the product which is undesirable.
Another limitation of these typical E-commerce systems is that the product available on the website, such as a shirt, cannot be customized by the consumer with a design on the product. Thus, the consumer cannot see the customized product with the design and this also may result in consumers not purchasing the product which is undesirable. Thus, it is desirable to provide a system and method that provides better models for products and it is to this end that the system and method are directed.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram illustrates an exemplary implementation of the product modeling system;
FIG. 2 illustrates an exemplary implementation of a product modeling method;
FIG. 3 illustrates further details of an exemplary implementation of a product modeling method;
FIGS. 4A and 4B illustrate further details of the process for marking a product in the product modeling method;
FIGS. 5A and 5B illustrate further details of the process for generating images of a product in the product modeling method;
FIGS. 6A-6D illustrate further details of the process for preprocessing the model in the product modeling method;
FIGS. 7A-7C illustrate further details of the post processing process in the product modeling method;
FIG. 8A illustrates an example of a design to be placed on a piece of apparel;
FIG. 8B illustrates a typical image of a piece of apparel with the design in a typical system;
FIGS. 8C-8D illustrate the design on a piece of apparel in the product modeling system;
FIG. 8E illustrates the process for placing the design on the model; and
FIGS. 9A-9C illustrate a process for changing the background against which the piece of apparel with the design is displayed in the product modeling system.



DETAILED DESCRIPTION OF ONE OR MORE EMBODIMENTS
The system and method are particularly applicable to a system and method for modeling a shirt implemented in software on a computer and it is in this context that the system and method is illustrated and described. It will be appreciated, however, that the system and method can be used for various products wherein the products may include other apparel and other products in which it is desirable to provide betters models of the products. For example, the system may be used for any type of garment or piece of apparel, any item that can be worn or used by a human being or pet, such as a hat, backpack, dog sweater, etc. and/or any other product in which it is desirable to be able to display the product on a model. In addition, the system may be used with any product in which it is desirable to be able to display the product (with an irregular surface) with a design on it, such as a skateboard, a shoe. In addition, the system may be used to display a design on any item with an irregular surface, such as a wall, automobile body, a pencil and the like. Furthermore, the system may be used to identify a product/item in a video wherein a design can be inserted into the product/item in the video. In addition, the system and method can be implemented in software (shown in the illustrated implementation), hardware or a combination of hardware and software and may also be implemented on stand alone computing device (shown in the illustrated implementation), a web server, a terminal, a peer to peer system and the like so that the system and method are not limited to the particular implementation of the system or method.
FIG. 1 is a block diagram illustrates an exemplary implementation of the product modeling system 100. In this implementation, the system is implemented on a stand alone computing device, such as a personal computer and the product modeling system is implemented as one or more pieces of software comprising a plurality of lines of computer code that are executed by a processing unit in the computing device to implement the product modeling system. The product modeling system, however, can also be implemented on other computing devices and computing systems, such as a networked computing system, a client/server system, a peer-to-peer system, an ASP model type system, a laptop computer, a mobile device, a mobile cellular phone or any other computing device with sufficient processing power, memory and connectivity to implement the product modeling system and method as described below.
The exemplary implementation of the system may include a display device 102 to permit a consumer to view the product with the design generated by the product modeling system, a chassis 104 and one or more input/output devices 105, such as a keyboard and mouse, that allow the consumer to interface with the computing device and the product modeling system. The chassis 104 may house a processing unit 106 such as an Intel processor, a persistent storage device 108 such as a hard disk drive and a memory 110 wherein the memory may store the software modules/applications being executed by the processing unit. When the product modeling system is being implemented on the computing device, the computing device may also include a product modeling store 112, such as a software implemented database and the memory may store an operating system 114 that controls the operations of the computing device and a product modeling module 116 that has a plurality of lines of computer code wherein the plurality of lines of computer code are executed by the processing unit to implement the product modeling system and method as described below.
For purposes of illustrating the product modeling system and method, a product modeling method for a piece of apparel, such as a t-shirt, with a design is described below. However, the product modeling system may also be used for other products, such as other apparel and other products in which it is desirable to provide betters models of the products. For example, the system may be used for any type of garment or piece of apparel, any item that can be worn or used by a human being or pet, such as a hat, backpack, dog sweater, etc. and/or any other product in which it is desirable to be able to display the product on a model. In addition, the system may be used with any product in which it is desirable to be able to display the product (with an irregular surface) with a design on it, such as a skateboard, a shoe. In addition, the system may be used to display a design on any item with an irregular surface, such as a wall, automobile body, a pencil and the like. Furthermore, the system may be used to identify a product/item in a video wherein a design can be inserted into the product/item in the video. The output of the product modeling method (an image of the product with a design shown on the product) may be used for various purposes. For example, the output may be used to generate a plurality of product displays with designs on a website that allows consumers to see the products. The example described below is a system in which the product modeling system is tied to a product marketing and selling company wherein the product marketing and selling company has control of models and images of the product modeling system. In another implementation/embodiment of the product modeling system, the system may permit a consumer to provide their own images/models, such as models of the actual consumer, so that the consumer can upload the image to a service and then have the selected design displayed on the model of the actual consumer wherein the service provides: 1) the model components (to create the model form); 2) a tool to upload/modify the model images to the service; and 3) a tool to display the model with the design to the consumer.
FIG. 2 illustrates an exemplary implementation of a product modeling method 120 that displays a model with a design on the model wherein the model is a realistic representation of a person with a piece of apparel that has the design on the piece of apparel. The methods shown in FIGS. 2 and 3, the processes described below may be performed by the product modeling module 116 described above. A consumer may select a design (122) such as the design shown in FIG. 8A and a warp process (124) may be performed to generate a warp design (128). The consumer may also select a background (126) for the model such as the backgrounds shown in FIGS. 9A-9C. Once the background and design are chosen by the consumer, the design is warped and then surface shading (130) and a surface specular process (132) is performed. Once these processes are completed, the model is created with the design (134) wherein the model with the design is shown to the consumer. In one embodiment, the model with the design is displayed to the consumer to assist the consumer in previewing the product with the design before the consumer purchases the product with the design, such as through an E-commerce website. Now, the product modeling method is described in more detail.
FIG. 3 illustrates further details of an exemplary implementation of a product modeling method 140 when used with a piece of apparel. The product modeling method (and the processes set forth below) are implemented, in one embodiment and implementation, as a plurality of lines of computer code that are part of the product modeling module that are executed by a processing unit 106 that is part of the product modeling system. In the method, a piece of apparel is created with a plurality of markers (142) that are used to capture information about the piece of apparel when the piece of apparel is worn by a human model. The plurality of markers may be a marker pattern that encodes, in two dimensions, a flexible substrate that may be detected when the flexible substrate is placed on a complex three dimensional surface wherein the coverage area of the marker pattern does not substantially occlude the substrate that it encodes. For example, the plurality of markers may cover a predetermined percentage, such as 50%, of the piece of apparel, that allow the system to capture information about the piece of apparel when the piece of apparel is worn by a human model. In one implementation, the plurality of markers may form a grid. In more detail, the markers that form a grid on a flat surface (the piece of apparel flat on a surface when the markers are properly positioned on the piece of apparel) may be used to map to a grid of markers on a non-flat surface (the piece of apparel when worn on a human model). As shown in FIG. 4A, the grid of markers 186 on the flat surface are mapped to a grid 187 with the same markers in the same positions on a non-flat surface so that the mapping between the grid on the flat surface and the grid on the non-flat surface is determined. The system may interpolate the marker locations to generate a mapping from the plurality of markers to the grid on the flat surface and may then store the mapping to avoid recalculation of the mapping each time. In one embodiment, the markers may be a number of non-visible lines that form a grid. In another embodiment, the markers may be a plurality of optical markers 190 that may be affixed to a piece of apparel 192 as shown in FIG. 4B that permits the optical tagging of the piece of apparel to map the surface of the piece of apparel when worn by a human model. The optical markers may be made of a reflective material, a colorized material or a diffraction pattern. The reflective material may be retro-reflective material. The colorized material may be pigmented material. The markers may have various shapes (including the dot shape shown in FIG. 4B) and sizes and the method is not limited to any particular shape of the markers. In one embodiment, the plurality of markers may be a film material that has the retro-reflective material in a particular shape. In yet another embodiment, the markers may be a set of markers that form a grid wherein the markers are placed onto the piece of apparel electronically or by other means. In one embodiment in which the product modeling system is used by a business entity that sells apparel, each piece of apparel is placed onto a plurality of human models of different shapes and/or sizes (as shown in FIGS. 5A and 5B) so that the consumer can then choose a model for the piece of apparel that is closest to the intended wearer of the piece of apparel. In another embodiment in which each consumer may create his own model for a piece of apparel, the consumer is provided with the markers (either electronically or as physical markers) so that the consumer can affix the markers to a piece of apparel and then performs the other processes described below. In yet another embodiment, the product modeling system may allow a plurality of users (such as a community of users) to generate a plurality of models that may then be uploaded to the product modeling system.
Once the one or more pieces of apparel are prepared with the markers, an image for each piece of apparel on each different human model may be generated (150) such as by using a camera to take a picture of the piece of apparel being worn by a human model. Prior to taking the image of the piece of apparel with the markers on the human model, the lighting for taking the image is determined. When the user/consumer generates the models, the product modeling system may provide instructions for taking an image of the piece of apparel such as using a flash, using a particular exposure, etc. In one implementation of the product modeling system, the product modeling system may download a piece of code directly to a user/consumer's camera, such as a digital camera, to set up the camera properly to take the image of the product or item. In particular, the surface model and illumination model for each piece of apparel is determined which also allows the color and lighting for the image to be accurately determined.
Once the image of the piece of apparel on a plurality of human models in a plurality of different poses are taken, the model for the piece of apparel on a particular model in a particular pose are preprocessed (160) by the product modeling system. During the preprocessing, the product modeling system may detect the plurality of markers on the piece of apparel image, remove the marker images from the image of the piece of apparel and then generate a representation of the surface of the piece of apparel when worn by the human model.
In one implementation, the markers may be detected by a distinguishing feature of the markers (spectral difference, reflective difference, textual difference and/or temporal difference), refined by matching geometric properties of the pattern (local pattern finding) and reconstructed by matching the known pattern (local patterns assembled into a known complete pattern.) The reconstructed pattern may then be used to model the shape of the flexible substrate. The product modeling system may have a plurality of local samples of the original unmarked substrate so that the marker pattern can be replaced using the textures of the unmarked substrate as an example that yields an unmarked image suitable for commercial display.
The preprocessing process is shown in FIGS. 6A-6C with FIG. 6A illustrating the image of the piece of apparel with the markers, FIG. 6B illustrating the plurality of markers identified on the piece of apparel and FIG. 6C illustrates the image of the piece of apparel with the markers removed. Appendix A (2 pages), incorporated herein by reference, contains an example of the pseudocode for identifying the markers on a product in one implementation of the product modeling system. The steps of the marker identification process for one implementation are set forth in Appendix A. In one implementation, the markers are detected by visible detection. In another implementation of the system, the markers may be detected by a temporal process in which infrared radiation may be used to image the markers at several different times and then the pattern of the markers is detected based on the images of the markers at several different times.
During the identification of the markers, the product modeling system may use various techniques. For example, edge detection may be used to identify each marker and the spacing between the markers that can then be used to generate the grid of markers on the surface of the piece of apparel when worn on a human model that thus allows the surface of that piece of apparel on the particular human model in a particular pose to be accurately determined. Alternatively, the system may threshold at the white color based on the color calibration and then locate elements above the threshold and then also identify the background including elements of the human model such as jewelry, an eye or the background behind the human model. The system may also use histograms to identify the markers and the background.
The marker images (once identified) may be removed from the image of the piece of apparel (as shown in FIG. 6C) by various processes. For example, the markers may be removed by, for each marker location, identifying the texture adjacent the marker and then filling in the location of the marker with the texture in the adjacent area. Alternatively, the system may use image coherence and synthesize the image to remove the markers in the image.
To generate the representation of the contours of the surface of the piece of apparel when worn by a particular human model in a particular pose, the system maps the position of the markers 190 relative to each other as shown in FIG. 6D into a set of contour curves 194 that represent the surface of the piece of apparel when worn by a particular human model in a particular pose. Since the system has information about the markers and the grid that they form on a flat surface as shown FIG. 4A, the system is able to determine the contours of the surface of the piece of apparel when worn by a particular human model in a particular pose.
Once the contours of the surface is determined and the preprocessing is completed, the model of the piece of apparel when worn by a particular human model in a particular pose may be retouched (162) as needed. Then, the model is post-processed (170) by the product model system. During the post-processing process, the product model system colorizes the model using a color mapping module that is part of the product model system. The colorizing allows each model for each piece of apparel on a particular human model in a particular pose to have the piece of apparel converted into any colors such as the two different colors shown in FIGS. 7A and 7B. As shown in FIG. 7C, the system may use the color calibration card with a known spectral response for each session to calibrate images for the same session. To change the color for the piece of apparel, the fabric may be wrapped onto a sphere as shown in FIG. 7C which is then mapped to the model to change the color of the model.
Appendices B-E, incorporated herein by reference, illustrate, for a particular implementation of the product modeling system, the code for 1) remapping the color of an image using normalized ordinal color distribution; 2) building a color map in normalized histogram order with an index from a matching color space; 3) building a look-up table to remap the colors from a source sphere to a destination sphere; and 4) remapping the color of the source image with a source sphere color map to a destination image with the color map of the sphere color object. Using the code set forth in these appendices (and the process steps described in these appendices), the color mapping process: 1) builds a color map (the BuildMap code in Appendix C) for the source image using a sphere to build a histogram and then a sorted table; 2) builds a remap table (the BuildReMap table code in Appendix D); 3) remaps the image colors (the code in Appendices B and E) onto the product. The system may also layer color and texture so that the colorized model of the particular piece of apparel on the particular human model in the particular pose more accurately emulates different fabrics and/or threads of the fabric which results, for example, in an accurate emulation of the printed ink of the design on the piece of apparel with the particular type of fabric.
Once the colorization is completed, the model for a particular piece of apparel on a particular human model in a particular pose is integrated into a service (180) such as a website that has the pieces of apparel with particular designs for sale to consumers.
When the model is integrated into the service, the product modeling system may perform warp mapping (182) on a design selected by the consumer and permit the user to select a particular background (184). An example design is shown in FIG. 8A. The exemplary design shown on a piece of apparel in a typical system with a flat image is shown in FIG. 8B. Using the product modeling system, a mapping between the design image and the surface contour of the model of the particular piece of apparel on the particular human model in the particular pose (See for example FIG. 8D) is done so that the design is shown on the model as shown in FIG. 8E is a more realistic three dimensional manner.
During the warp mapping (that may be a bicubic image warp), a grid of the design 200 is mapped to the surface contour grid 202 which is then placed onto the piece of apparel to generate the more realistic model for the piece of apparel with the design as shown in FIG. 8D. In the mapping process, a point in the design is mapped to the surface contour grid which is in turn mapped onto the piece of apparel. The image background can be easily exchanged by the product modeling system as shown in FIGS. 9A-9C.
Although the example provided herein is for a piece of apparel (a shirt) worn by a human being, the product modeling system may be used for various different products (other pieces of apparel, other garments, hats, shoes, pet clothing, inanimate objects such as cups) with various different models (human models, animal models, inanimate models such as robots or mannequins) and with any number of different poses for the models since the above example is merely illustrative.
While the foregoing has been with reference to a particular embodiment of the invention, it will be appreciated by those skilled in the art that changes in this embodiment may be made without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims.

## Claims

1. An apparatus for modeling a product, comprising:
a plurality of markers that are capable of forming a marker pattern on a product that does not occlude a surface of the product;
an imaging device that is capable of taking a single image of the product on an object and the plurality of markers; and
a computing device that captures a contour of a design area when that design area is on a product that is represented on an object in the single image, electronically applies a user design to the product and generates a visual representation of the user design on the product when on the object using the captured lighting, texture and contours of the product and the object so that the visual representation of the design on the product has the contour of the surface of the product.

2. The apparatus of claim 1, wherein the imaging device detects the plurality of markers by spectral difference and the coverage of the plurality of markers is determined by spectral difference.

3. The apparatus of claim 1, wherein the computing device recovers the texture of the product from an adjacent area based on spectral difference.

4. A method for product modeling, comprising:
providing, using a imaging device, a contour of a design area when that design area is on a product that is represented on an object in the single image generated by imaging, using a single image, the product on an object using a plurality of markers that form a marker pattern on the product that does not occlude a surface of the product;
electronically applying, using a computer, a user design to the product; and
generating, using the computer, a visual representation of the design on the product when on the object using the captured lighting, texture and contours of the product and the object so that the visual representation of the design on the product has the contour of the surface of the product.

5. The method of claim 4 further comprising detecting, by the imaging device, the plurality of markers and the coverage of the plurality of markers by spectral difference.

6. The method of claim 4 further comprising recovering, by the computer, a texture and a surface shading of the product from an adjacent area based on spectral difference.

7. An apparatus for modeling a product, comprising:
an imaging device that is capable of taking a single image of the product on an object and a plurality of markers, the plurality of markers being capable of forming a marker pattern on a product that does not occlude a surface of the product; and
a computing device that captures a contour of a design area when that design area is on a product that is represented on an object in the single image, electronically applies a user design to the product and generates a visual representation of the user design on the product when on the object using the captured lighting, texture and contours of the product and the object so that the visual representation of the design on the product has the contour of the surface of the product.

8. The apparatus of claim 7, wherein the imaging device detects the plurality of markers by spectral difference and the coverage of the plurality of markers is determined by spectral difference.

9. The apparatus of claim 7, wherein the computing device recovers the texture of the product from an adjacent area based on spectral difference.

10. The apparatus of claim 7, wherein the computing device generates a web page that displays the visual representation of the product with the design on a web page to a consumer.

11. The apparatus of claim 10, wherein the object further comprises a human model, a mannequin or an animal.

12. The apparatus of claim 7, wherein each marker further comprises a piece of pigment.

13. The apparatus of claim 7, wherein each marker further comprises a piece of reflective material.

14. The apparatus of claim 13, wherein the piece of reflective material further comprises a piece of retro-reflective material.

15. The apparatus of claim 7, wherein each marker further comprises a circular marker.

16. The apparatus of claim 7, wherein the plurality of markers further comprise a grid of lines not visible to a human on the product.

17. The apparatus of claim 7, wherein the product further comprises a piece of apparel, a garment, an item worn by a human being or an item worn by an animal.

18. The apparatus of claim 7, wherein the computing device maps one or more points on the design to one or more points on the contour of the surface of the product on an object.

19. The apparatus of claim 7, wherein the computing device colorizes the contour of a surface of a product on an object prior to generating the visual representation of the design on the product.

20. The apparatus of claim 19, wherein the computing device texturizes the contour of a surface of a product on an object prior to generating the visual representation of the design on the product.

21. The apparatus of claim 7, wherein the imaging device further comprises a camera.

22. The apparatus of claim 7, wherein the computing device further comprises a networked computing system, a client/server system, a peer-to-peer system, an ASP model type system, a laptop computer, a mobile device or a mobile cellular phone.

23. The apparatus of claim 7, wherein the marker pattern further comprises a grid of markets on the product.