Method for generating texture map of entity object and related product
By generating texture maps with uniform illumination, the problem of high computational workload in existing technologies is solved, the realism of lighting effects in virtual environments is improved, and efficient texture map generation is achieved.
Patent Information
- Application Number
- CN202411023633.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-04-16
- Filing Date
- 2024-07-29
- Publication Date
- 2025-10-24
AI Technical Summary
Existing technologies struggle to generate avatars with uniform illumination while taking into account ambient light effects when generating texture maps, resulting in high computational workload and poor performance.
A first texture map is generated by an electronic device, and multiple template texture maps are linearly combined to generate a second texture map with uniform illumination. The final uniform illumination texture map is generated by adjusting the reference texture map until a predetermined condition is met.
It enables the generation of texture maps with uniform illumination with less computational effort, improving the realism of lighting effects in virtual environments and reducing computational complexity.
Smart Images

Figure CN120833461A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates generally to a texture map determination mechanism, and in particular, to a method, an electronic device and a computer readable storage medium for generating a texture map of a physical object. BACKGROUND
[0002] Referring to Figure 1A , Figure 1A A schematic diagram showing a face of a determined avatar. In Figure 1A Once a three-dimensional (3D) model 11 of a person and a corresponding texture map 12 are obtained, the 3D model 11 and the texture map 12 can be combined to form an avatar 13 of the person.
[0003] In order to better render the light effects of ambient light on the avatar 13 in an engine (e.g. Unity, Unreal or similar) that builds a virtual environment, the texture map 12 should have a uniform illumination.
[0004] Referring to Figure 1B , Figure 1B A comparison between avatars generated using different texture maps. In Figure 1B , it is assumed that the avatar 13 is generated / determined based on the texture map 12 which is less affected by light sources, while the avatar 14 is generated / determined based on another texture map which is more affected by light sources.
[0005] In the scenario of Figure 1B , the reason why the texture map 12 and the texture map used to generate the avatar 14 are affected by ambient light can be caused by the non-uniform ambient light (e.g. sunlight, lamps) from different angles when capturing these texture maps.
[0006] In the scenario of Figure 1B , the avatar 13 should be able to provide more realistic light effects in a virtual environment with ambient light than the avatar 14.
[0007] Therefore, in order to create a proper avatar, the conventional process needs to take into account factors such as the face pose, the corresponding 3D model, the parameters associated with the ambient light model, the texture map and the face image, which requires a large amount of computational effort. SUMMARY
[0008] Therefore, the present disclosure relates to a method, an electronic device and a computer readable storage medium for generating a texture map of a physical object, which can be used to solve the above technical problems.
[0009] Embodiments of the present application provide a method for generating a texture map of a physical object performed by an electronic device. The method includes obtaining, by the electronic device, an object image of the physical object; determining, by the electronic device, a first texture map based on the object image, wherein the first texture map has non-uniform illumination; determining, by the electronic device, a second texture map that fits the first texture map, wherein the second texture map has uniform illumination; determining, by the electronic device, a reference texture map of the physical object; modifying, by the electronic device, the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies a predetermined condition; and determining, by the electronic device, the reference texture map as the texture map of the physical object in response to determining that the reference texture map satisfies the predetermined condition.
[0010] Embodiments of the present application provide an electronic device including a storage circuit and a processor. The storage circuit stores program codes. The processor is coupled to the storage circuit and accesses the program codes to perform the following steps: obtaining an object image of a physical object, wherein a first texture map has non-uniform illumination; determining the first texture map based on the object image; determining a second texture map that fits the first texture map, wherein the second texture map has uniform illumination; determining a reference texture map of the physical object; modifying the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies a predetermined condition; and determining the reference texture map as the texture map of the physical object in response to determining that the reference texture map satisfies the predetermined condition.
[0011] Embodiments of the present application provide a computer-readable storage medium recording an executable computer program, which is loaded by an electronic device to perform the following steps: obtaining an object image of a physical object; determining a first texture map based on the object image, wherein the first texture map has non-uniform illumination; determining a second texture map that fits the first texture map, wherein the second texture map has uniform illumination; determining a reference texture map of the physical object; modifying the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies a predetermined condition; and determining the reference texture map as the texture map of the physical object in response to determining that the reference texture map satisfies the predetermined condition. BRIEF DESCRIPTION OF DRAWINGS
[0012] The accompanying drawings are included to provide a further understanding of the present application, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the present application and, together with the description, serve to explain the principles of the present application.
[0013] Figure 1A A schematic diagram showing determining a face of an avatar.
[0014] Figure 1BShown is a comparison between avatars generated using different texture maps.
[0015] Figure 2 A schematic diagram illustrating an electronic device according to an embodiment of the present invention is shown.
[0016] Figure 3 A flow chart of a method for generating a texture map of a physical object according to an embodiment of the present invention is shown.
[0017] Figure 4 An application scenario according to the first embodiment of the present invention is shown.
[0018] Figure 5 A mechanism for modifying a reference texture map according to a first embodiment of the present invention is shown.
[0019] Figure 6 An application scenario according to the second embodiment of the present invention is shown.
[0020] Figure 7 A mechanism for modifying a reference texture map according to a third embodiment of the present invention is shown. DETAILED DESCRIPTION
[0021] Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0022] See also Figure 2 , Figure 2 A schematic diagram of an electronic device according to an embodiment of the present invention is shown. In various embodiments, the electronic device 200 can be implemented as any smart device, computer device, or similar device.
[0023] exist Figure 2 In the embodiment, the storage circuit 202 is one of a fixed or mobile random access memory (RAM), a read-only memory (ROM), a flash memory, a hard disk, or any other similar device, or a combination of the above devices, and the storage circuit 202 records multiple modules and / or program codes that can be executed by the processor 204.
[0024] The processor 204 can be coupled to the storage circuit 202, and the processor 204 can be, for example, a general-purpose processor, a special-purpose processor, a conventional processor, a digital signal processor (DSP), a plurality of microprocessors, one or more microprocessors in association with a DSP core, a controller, a microcontroller, an Application Specific Integrated Circuit (ASIC), an Field Programmable Gate Array (FPGA) circuit, any other type of integrated circuit (IC), a state machine, and the like.
[0025] In embodiments of the present application, the processor 204 can access modules and / or program codes stored in the storage circuit 202 to implement the method for generating a texture map of a physical object provided in the present application, which will be further discussed below.
[0026] Referring to Figure 3 , Figure 3 A flowchart of a method for generating a texture map of a physical object according to an embodiment of the present application is shown. The method of the present embodiment can be performed by the electronic device 200 in Figure 2 , and the details of each step in Figure 2 will be explained below using the components shown in Figure 3 . For better explanation of the concept of the present application, the Figure 4 will be used as an example, in which Figure 4 An application scenario according to a first embodiment of the present application is shown.
[0027] In step S310, the processor 204 obtains an object image 411 of a physical object 410. In one embodiment, the processor 204 can also obtain a 3D model 412 corresponding to the physical object 410.
[0028] In Figure 4 , the physical object 410 can be a human face, and the 3D model 412 corresponding to the physical object 410 can be a head model (e.g., the 3D model 11 in Figure 1A . In the present embodiment, the 3D model 412 can have an outline corresponding to the outline of the physical object 410.
[0029] In other embodiments, the physical object considered in step S310 can be any living being and / or object to be determined its texture map by the electronic device 200, and the corresponding 3D model can have an outline corresponding to the outline of the considered physical object, but the present application can not be limited thereto.
[0030] In one embodiment, the object image 411 can be obtained by capturing an image of the physical object 410 using a camera. In one embodiment, the object image 411 can comprise a plurality of side-view images of the physical object 410. For example, the side-view images can comprise a right-side image / central image / left-side image of the physical object 410, but the present disclosure can not be limited thereto.
[0031] In one embodiment, the processor 204 can determine the corresponding 3D model 412 of the physical object 410 using the object image 411 accordingly. For example, the processor 204 can determine the 3D model 412 based on the mechanism set forth in the document “FFHQ-UV: Normalized Facial UV-Texture Dataset for 3D Face Reconstruction”, but the present disclosure can not be limited thereto.
[0032] In step S320, the processor 204 determines a first texture map T1 based on the object image 411. In one embodiment, the processor 204 can perform step S320 based on the mechanism set forth in the document “FFHQ-UV: Normalized Facial UV-Texture Dataset for 3D Face Reconstruction”, but the present disclosure can not be limited thereto.
[0033] In embodiments where the object image 411 comprises a plurality of side-view images, the processor 204 can obtain a plurality of multi-view texture maps based on the side-view images. In one embodiment, the plurality of multi-view texture maps can be corresponding texture maps determined based on the plurality of side-view images respectively. For example, the plurality of multi-view texture maps can be texture maps corresponding to the right-side image / central image / left-side image of the physical object 410 respectively, but the present disclosure can not be limited thereto. In addition, the processor 204 can blend (linearly) the multi-view texture maps into the first texture map T1, and the related details can also be referred to the document “FFHQ-UV: Normalized Facial UV-Texture Dataset for 3D Face Reconstruction”, but the present disclosure can not be limited thereto.
[0034] In some embodiments, the first texture map T1 can have the same or similar facial details (e.g., wrinkles, moles, skin color, scars, fine hair, etc.) as the object image.
[0035] In embodiments of the present disclosure, each texture map mentioned can be a UV texture map, but the present disclosure can not be limited thereto.
[0036] In step S330, the processor 204 determines a second texture map T2 that fits the first texture map T1.
[0037] In one embodiment, the processor 204 can determine the second texture map T2 by combining a plurality of template texture maps. In one embodiment, the plurality of template texture maps can include texture maps corresponding to other real-world objects. In Figure 4 In one embodiment, since the real-world object 410 is assumed to be a human face, the plurality of template texture maps can include a mean face texture and a plurality of predetermined face texture maps.
[0038] In embodiments of the present disclosure, the processor 204 can perform a linear combination on the template texture maps to determine a combined texture map that approximates the first texture map T1. That is, the processor 204 can perform a weighted combination on the template texture maps to determine the combined texture map such that a difference between the combined texture map and the first texture map T1 is minimized or as small as possible.
[0039] In other embodiments, the processor 204 can also superimpose one or more of the predetermined face texture maps onto the mean face texture to change a skin color and / or a texture of the mean face texture to generate the combined texture map, but the present disclosure can not be limited thereto.
[0040] Thereafter, the processor 204 can determine the combined texture map as the second texture map T2 that fits the first texture map T1.
[0041] In some embodiments, each template texture map can have uniform illumination, neutral expression, and / or clean area (e.g., no glasses and hair). That is, if each template texture map is used to combine with a corresponding 3D model (e.g., a corresponding human head model), the result will provide a visual effect closer to Figure 1B In one embodiment, the second texture map T2 can have a skin color and / or a texture of the real-world object 410, but the present disclosure can not be limited thereto.
[0042] In such a case, the second texture map T2 will also have the following properties: uniform illumination (e.g., uniformly / consistently illuminated by, for example, ambient light), neutral expression, and / or clean area (e.g., no glasses and hair), but the present disclosure can not be limited thereto.
[0043] In embodiments of the present disclosure, the second texture map T2 does not have the same or similar facial details (e.g., wrinkles, moles, skin color, scars, fine hairs, etc.) as the object image.
[0044] In step S340, the processor 204 determines a reference texture map R of the physical object 410. In one embodiment, the processor 204 can initialize the reference texture map R by determining the second texture map T2 as the initialized reference texture map R. In another embodiment, the reference texture map R determined / initialized in step S340 can be an empty texture map. In other embodiments, the processor 204 can initialize the reference texture map R based on any requirement of the designer, but the present application can not be limited thereto.
[0045] In step S350, the processor 204 modifies the reference texture map R of the physical object 410 based on the first texture map Tl, the second texture map T2 and the reference texture map R until the reference texture map R satisfies a predetermined condition.
[0046] In one embodiment, step S350 can be implemented using the mechanism introduced in the following Figure 5
[0047] Referring to Figure 5 , Figure 5 illustrates a mechanism of modifying the reference texture map according to the first embodiment of the present application.
[0048] In step S510, the processor 204 determines a first difference (hereinafter referred to as Ll) between the reference texture map R and the second texture map T2. In one embodiment, the processor 204 can determine the first difference by subtracting the second texture map T2 from the reference texture map R. In this case, the first difference Ll can be represented as "Ll = R - T2", but the present application can not be limited thereto.
[0049] In step S520, the processor 204 determines a second difference (hereinafter referred to as L2) between the reference texture map R and the first texture map Tl. In one embodiment, the processor 204 can determine the second difference by subtracting the first texture map Tl from the reference texture map R. In this case, the second difference L2 can be represented as "L2 = R - Tl", but the present application can not be limited thereto.
[0050] In various embodiments, step S520 can also be performed before step S510 or simultaneously with step S510 based on the requirement of the designer, but the present application can not be limited thereto.
[0051] After obtaining the first difference Ll and the second difference L2, in step S530, the processor 204 can determine a reference loss (hereinafter referred to as LL) based on the first difference Ll and the second difference L2.
[0052] In one embodiment, the reference loss LL can be a linear combination of the first difference L1 and the second difference L2. In such a case, the reference loss LL can be characterized as "LL = w1*L1 + w2*L2", where w1 and w2 can be weights corresponding to the first difference L1 and the second difference L2, respectively. In various embodiments, w1 and w2 can be arbitrarily determined based on a designer's requirement. For example, both w1 and w2 can be determined as 0.5, but the present application can not be limited thereto.
[0053] In step S540, the processor 204 can determine whether the reference loss LL has been minimized. In one embodiment, the processor 204 can determine whether the reference loss LL is lower than a predetermined threshold. In one embodiment, in response to determining that the reference loss LL is lower than the predetermined threshold, the processor 204 can determine that the reference loss LL has been minimized and proceed to step S550. Conversely, in response to determining that the reference loss LL is not lower than the predetermined threshold, the processor 204 can determine that the reference loss LL has not been minimized and proceed to step S560.
[0054] In step S560, the processor 204 can modify the reference texture map R of the solid object 410 with the purpose of minimizing the reference loss LL. That is, the processor 204 can modify the content / feature / value / intensity of one or more of the pixels of the reference texture map R such that the reference loss LL can be minimized or at least reduced. Thereafter, the processor 204 can return to step S510 such that the modification / update of the reference texture map R can be repeated until the reference loss LL has been minimized, but the present application can not be limited thereto.
[0055] In step S550, the processor 204 can determine that the reference texture map R has satisfied the predetermined condition.
[0056] For better explanation of the concept of the present application, it will be assumed that the reference texture map R' satisfies the predetermined condition (e.g., the reference loss LL corresponding to the reference texture map R' has been minimized). In another aspect, the reference texture map R' can be understood as a result generated by (repeatedly) modifying the reference texture map R, but the present application can not be limited thereto.
[0057] Referring back to Figure 3 In step S360, the processor 204 determines the reference texture map R' as the texture map of the solid object 410 in response to determining that the reference texture map R' satisfies the predetermined condition.
[0058] Accordingly, the texture map of the physical object 410 can be determined in a less computational and more efficient manner. In addition, in embodiments where the considered template texture map has uniform illumination, the texture map of the physical object 410 (i.e., the reference texture map R') will also have uniform illumination. In such a case, since the process of determining the texture map of the physical object 410 is less complex than the conventional manner, the computational workload can be reduced.
[0059] In other embodiments, the quality of the texture map of the physical object 410 can be improved by one or a combination of the following embodiments.
[0060] Referring to Figure 6 , Figure 6 An application scenario according to a second embodiment of the present application is shown. In Figure 6 the difference between the first embodiment and the second embodiment is that the second texture map T2 can be further modified / updated with a guided filter before the reference texture map R is modified.
[0061] Specifically, the processor 204 can modify the second texture map T2 by applying a guided filter to the second texture map T2 based on the first texture map T1.
[0062] For better illustrating the concept of the present application, it will be assumed that the second texture map T2' is the result of applying a guided filter to the second texture map T2, but the present application can not be limited thereto.
[0063] After applying the guided filter as mentioned above, the second texture map T2' can have the details of the first texture map T1 but the intensity (e.g., brightness) of the second texture map T2.
[0064] In the second embodiment, the processor 204 can modify the reference texture map R based on the first texture map T1, the second texture map T2' (instead of the second texture map T2 in the first embodiment) and the reference texture map R until the reference texture map satisfies a predetermined condition.
[0065] In the second embodiment, the first difference can be characterized as "L1 = R - T2' ", and the details of modifying the reference texture map R can refer to the above-mentioned embodiments, which will not be described herein again.
[0066] Since the second texture map T2' can be regarded as a refined version of the second texture map T2, the reference texture map R' determined in the second embodiment will be more realistic than the reference texture map R' determined in the first embodiment.
[0067] In the third embodiment, the process of modifying the reference texture map R can be adjusted to better determine the first difference L1.
[0068] Referring to Figure 7 , Figure 7A mechanism of modifying a reference texture map according to a third embodiment of the present application is shown. In this embodiment, the processor 204 can determine the first difference L1 in a different way. Figure 5
[0069] Specifically, in step S710, the processor 204 can perform a blurring operation on the reference texture map R and the second texture map T2, and determine the first difference L1 between the reference texture map R and the second texture map T2. In some embodiments, the blurring operation can be a Gaussian blurring operation or any other blurring operation preferred by the designer, but the present application can not be limited thereto.
[0070] In order to better illustrate the concept of the present application, the reference texture map R after going through the blurring operation can be represented as reference texture map blur(R), and the second texture map T2 after going through the blurring operation can be represented by reference texture map blur(T2). In this case, the first difference L1 in the third embodiment can be characterized as “L1 = blur(R) - blur(T2)”, but the present application can not be limited thereto.
[0071] In the third embodiment, the processor 204 can also perform steps S520 to S560 as in the first embodiment, and the related details can refer to the above-mentioned embodiments.
[0072] In the third embodiment, the high-frequency information in the reference texture map R and the second texture map T2 can be removed by the blurring operation, which can better determine the first difference L1. In this case, the reference texture map R can be modified in a more efficient way (repeatedly), which will further reduce the computational workload.
[0073] In one embodiment, the first embodiment to the third embodiment can be further combined into a fourth embodiment. That is, the processor 204 can use the mechanism in Figure 6 to determine the first texture map T1, the second texture map T2', and the reference texture map R, and then use the mechanism in Figure 7 to modify the reference texture map R (repeatedly) until the reference texture map R meets the predetermined condition.
[0074] In this case, the advantageous effects of the first embodiment to the third embodiment can all be realized in the fourth embodiment.
[0075] In one embodiment, after obtaining the texture map (e.g., the reference texture map R') of the solid object 410, the processor 204 can also determine an avatar corresponding to the solid object 410 by combining the texture map of the solid object 410 and the 3D model 412 corresponding to the solid object 410.
[0076] In an embodiment where the physical object 410 is a human face, the 3D model 412 corresponding to the physical object 410 may be a head model having a face region. For better understanding, the reference texture map R' may be assumed to be Figure 1A The texture map 12 in FIG. 4 and the 3D model 412 can be assumed to be Figure 1A 3D model 11 in, but the present invention is not limited to this.
[0077] In this case, the processor 204 may combine the texture map of the physical object 410 with the face region on the 3D model 11 to generate the face of the avatar corresponding to the physical object 410. Under the above assumptions, the resulting avatar may be Figure 1A The avatar 13 in the figure is uniformly / uniformly illuminated by the ambient light, but the present invention may not be limited thereto.
[0078] In addition, although the above embodiments are discussed under the assumption that the physical object 410 is a human face, in other embodiments, the physical object under consideration can be adjusted to any other creature / object based on the designer's requirements, but the present invention is not limited thereto.
[0079] The present invention also provides a computer-readable storage medium for executing the method for generating a texture map for a physical object. The computer-readable storage medium comprises a plurality of program instructions (e.g., setup program instructions and deployment program instructions) implemented therein. These program instructions can be loaded into and executed by an electronic device 200 to perform the method for generating a texture map for a physical object and the functions of the electronic device 200 described above.
[0080] In summary, the embodiments of the present invention provide a solution for determining the texture map of a physical object in a more efficient manner, thereby achieving less computational workload and better texture map quality.
[0081] It will be apparent to those skilled in the art that various modifications and variations may be made to the structure of the present invention without departing from the scope or spirit of the invention. In summary, the present invention is intended to cover various modifications and variations of the present invention as long as they fall within the scope of the appended claims and their equivalents.
[0082] [Explanation of Symbols]
[0083] 11.412: Three-dimensional (3D) model
[0084] 12: Texture map
[0085] 13, 14: Incarnation
[0086] 200: Electronic devices
[0087] 202: Storage Circuit
[0088] 204: processor
[0089] 410: entity object
[0090] 411: object image
[0091] R, R': reference texture map
[0092] S310, S320, S330, S340, S350, S360, S510, S520, S530, S540, S550, S560, S710: step
[0093] T1: first texture map
[0094] T2, T2': second texture map
Claims
1. A method for generating a texture map of a physical object, performed by an electronic device, comprising: comprising: obtaining, by the electronic device, an object image of the physical object; determining, by the electronic device, a first texture map based on the object image, wherein the first texture map has non-uniform illumination; determining, by the electronic device, a second texture map that fits the first texture map, wherein the second texture map has uniform illumination; determining, by the electronic device, a reference texture map of the physical object; modifying, by the electronic device, the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies a predetermined condition; and determining, by the electronic device, the reference texture map as the texture map of the physical object in response to determining that the reference texture map satisfies the predetermined condition.
2. The method of claim 1, comprising: performing linear combination on a plurality of template texture maps to determine a combined texture map that approximates the first texture map; and determining the combined texture map as the second texture map that fits the first texture map.
3. The method of claim 1, wherein determining the reference texture map of the physical object comprises: initializing the reference texture map by determining the second texture map as the initialized reference texture map.
4. The method of claim 1, wherein modifying the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the modified reference texture map satisfies the predetermined condition comprises the steps of: (a) determining a first difference between the reference texture map and the second texture map; (b) determining a second difference between the reference texture map and the first texture map; (c) determining a reference loss based on the first difference and the second difference; (d) modifying the reference texture map of the physical object with an objective of minimizing the reference loss; (e) in response to determining that the reference loss has been minimized, determining that the reference texture map has satisfied the predetermined condition, otherwise returning to step (a).
5. The method of claim 4, wherein prior to determining the first difference, step (a) further comprises: performing a blurring operation on the reference texture map and the second texture map.
6. The method of claim 5, wherein the blurring operation is a Gaussian blurring operation.
7. The method of claim 4, wherein the reference loss is a linear combination of the first difference and the second difference.
8. The method of claim 4, wherein determining the first difference between the reference texture map and the second texture map comprises subtracting the second texture map from the reference texture map.
9. The method of claim 4, wherein determining the second difference between the reference texture map and the first texture map comprises subtracting the first texture map from the reference texture map.
10. The method of claim 1, wherein before modifying the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies the predetermined condition, the method further comprises: modifying the second texture map by applying a guided filter to the second texture map based on the first texture map.
11. The method of claim 1, further comprising: obtaining a three-dimensional model corresponding to the physical object; determining an avatar corresponding to the physical object by combining the texture map of the physical object and the three-dimensional model corresponding to the physical object.
12. The method of claim 11, wherein the physical object is a human face, the three-dimensional model corresponding to the physical object is a head model having a face region, and combining the texture map of the physical object and the three-dimensional model corresponding to the physical object comprises: combining the texture map of the physical object with the face region to produce a face of the avatar corresponding to the physical object.
13. The method of claim 1, wherein the object images comprise a plurality of side view images of the physical object, and determining the first texture map based on the object images and the three-dimensional model comprises: obtaining a plurality of multi-view texture maps based on the side view images; and blending the multi-view texture maps into the first texture map. comprising:
14. An electronic device, comprising: a storage circuit storing program codes; and a processor coupled to the storage circuit and accessing the program codes to perform: obtaining object images of a physical object; determining a first texture map based on the object images, wherein the first texture map has non-uniform illumination; determining a second texture map fitted to the first texture map, wherein the second texture map has uniform illumination; determining a reference texture map of the physical object; modifying the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies a predetermined condition; and in response to determining that the reference texture map satisfies the predetermined condition, determining the reference texture map as a texture map of the physical object.
15. The electronic device of claim 14, wherein the processor performs: (a) determining a first difference between the reference texture map and the second texture map; (b) determining a second difference between the reference texture map and the first texture map; (c) determining a reference loss based on the first difference and the second difference; (d) modifying the reference texture map of the physical object with an objective of minimizing the reference loss; (e) in response to determining that the reference loss has been minimized, determining that the reference texture map has satisfied the predetermined condition, otherwise returning to (a).
16. The electronic device of claim 15, wherein before determining the first difference, the processor further performs: performing a blurring operation on the reference texture map and the second texture map. 17. The electronic device of claim 14, wherein prior to modifying the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies the predetermined condition, the processor further performs: modifying the second texture map by applying a guided filter to the second texture map based on the first texture map.
18. The electronic device of claim 14, wherein the processor further performs: obtaining a three-dimensional model corresponding to the physical object; determining an avatar corresponding to the physical object by combining the texture map of the physical object and the three-dimensional model corresponding to the physical object.
19. The electronic device of claim 18, wherein the physical object is a human face, the three-dimensional model corresponding to the physical object is a head model having a face region, and the processor performs: combining the texture map of the physical object with the face region to produce a face of the avatar corresponding to the physical object.
20. A computer readable storage medium, characterized in that, a computer readable storage medium recording an executable computer program, the executable computer program being loaded by an electronic device to perform the following steps: obtaining an object image of a physical object; determining a first texture map based on the object image, wherein the first texture map has non-uniform illumination; determining a second texture map that fits the first texture map, wherein the second texture map has uniform illumination; determining a reference texture map of the physical object; modifying the reference texture map of the physical object based on the first texture map, the second texture map, and the reference texture map until the reference texture map satisfies a predetermined condition; and determining the reference texture map as a texture map of the physical object in response to determining that the reference texture map satisfies the predetermined condition.