Subject material determination method and apparatus, and electronic device and storage medium
Abstract
A subject material determination method, an apparatus, an electronic device, and a storage medium. The method includes: acquiring a first image to be processed and a second image to be processed which include a subject to be recognized and under a same visual angle, in which the first image to be processed is determined in response to a flash lamp being turned on; determining a highlight center point of the first image to be processed, and determining material information to be fused according to the highlight center point and the first image to be processed; determining color information according to the second image to be processed; and determining target material information of the subject to be recognized according to the material information to be fused and the color information.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A subject material determination method, comprising: acquiring a first image to be processed and a second image to be processed which each comprise a subject to be recognized under a same visual angle, wherein the first image to be processed is determined in response to a flash lamp being turned on, and wherein the second image to be processed is determined when the flash lamp is turned off; determining a highlight center point of the first image to be processed, wherein the highlight center point is a point in the first image to be processed having the highest brightness value; determining first material information to be fused according to the highlight center point and the first image to be processed; determining color information according to the second image to be processed; and determining second material information of the subject to be recognized according to the first material information to be fused and the color information.
- Claim 2Depends on #1
The method according to claim 1, wherein the acquiring the first image to be processed and the second image to be processed comprises: when a material determination control is detected to have been triggered, activating the flash lamp and photographing the first image to be processed of the subject to be recognized being coated onto a sphere; and when the flash lamp is turned off, photographing the second image to be processed of the subject to be recognized being coated onto the sphere, wherein the first image to be processed and the second image to be processed are photographed based on the same visual angle.
- Claim 3Depends on #1
The method according to claim 1, wherein the determining a highlight center point of the first image to be processed, comprises: dividing the first image to be processed into at least one to-be-processed sub-region based on a preset region size; determining a brightness value corresponding to each to-be-processed sub-region, and taking a to-be-processed sub-region with a highest brightness value as a sub-region; and taking a center point of the sub-region as the highlight center point.
- Claim 4Depends on #3
The method according to claim 3, wherein the dividing the first image to be processed into at least one to-be-processed sub-region based on a preset region size, comprises: dividing a first to-be-processed region into the at least one to-be-processed sub-region according to the preset region adjustment size by taking a pixel point as a region adjustment step.
- Claim 5Depends on #3
The method according to claim 3, wherein the determining a brightness value corresponding to each to-be-processed sub-region, and taking a to-be-processed sub-region with a highest brightness value as a sub-region, comprises: determining a weight value corresponding to each pixel point in each to-be-processed sub-region based on a Poisson distribution; determining a region brightness value of each to-be-processed sub-region based on the weight value and a pixel brightness value corresponding to each pixel point; and taking a to-be-processed sub-region corresponding to a highest region brightness value as the target-sub-region.
- Claim 6Depends on #1
The method according to claim 1, wherein the determining the first material information to be fused according to the highlight center point and the first image to be processed, comprises: determining a normal map of the first image to be processed; and processing the normal map and information of the highlight center point based on a pre-trained parameter generation model to acquire a material parameter to be fused.
- Claim 7Depends on #1
The method according to claim 1, wherein the determining color information according to the second image to be processed, comprises: determining the color information of the subject to be recognized according to a Red-Green-Blue (RGB) value of a pixel point of the subject to be recognized in the second image to be processed.
- Claim 8Depends on #1
The method according to claim 1, further comprising: displaying an object corresponding to the subject to be recognized on a display interface, and taking the object corresponding to the subject to be recognized as an object to be tried.
- Claim 9Depends on #8
The method according to claim 8, further comprising: acquiring a face image corresponding to an audience and retrieving the second material information corresponding to a triggered trial object, when an instruction of object trial is detected; determining rendered material information based on the face image and the second material information; and adding an effect to the face image based on the rendered material information to acquire an effect image.
- Claim 10Depends on #9
The method according to claim 9, wherein the determining rendered material information based on the face image and the second material information, comprises: determining to-be-used light brightness based on the face image; and adjusting the second material information according to the to-be-used light brightness to acquire the rendered material information.
- Claim 11Independent Claim
An electronic device, comprising: at least one processor; and a storage apparatus, configured to store at least one program, wherein when the at least one program is executed by the at least one processor, the at least one processor implements a subject material determination method, which comprises: acquiring a first image to be processed and a second image to be processed which each comprise a subject to be recognized under a same visual angle, wherein the first image to be processed is determined in response to a flash lamp being turned on, and wherein the second image to be processed is determined when the flash lamp is turned off; determining a highlight center point of the first image to be processed, wherein the highlight center point is a point in the first image to be processed having the highest brightness value; determining first material information to be fused according to the highlight center point and the first image to be processed; determining color information according to the second image to be processed; and determining second material information of the subject to be recognized according to the first material information to be fused and the color information.
- Claim 12Depends on #11
The electronic device according to claim 11, wherein the acquiring the first image to be processed and the second image to be processed, comprises: when a material determination control is detected to have been triggered, activating the flash lamp and photographing the first image to be processed of the subject to be recognized being coated onto a sphere; and when the flash lamp is turned off, photographing the second image to be processed of the subject to be recognized being coated onto the sphere, wherein the first image to be processed and the second image to be processed are photographed based on the same visual angle.
- Claim 13Depends on #11
The electronic device according to claim 11, wherein the determining a highlight center point of the first image to be processed, comprises: dividing the first image to be processed into at least one to-be-processed sub-region based on a preset region size; determining a brightness value corresponding to each to-be-processed sub-region, and taking a to-be-processed sub-region with a highest brightness value as a sub-region; and taking a center point of the sub-region as the highlight center point.
- Claim 14Depends on #13
The electronic device according to claim 13, wherein the dividing the first image to be processed into at least one to-be-processed sub-region based on a preset region size, comprises: dividing a first to-be-processed region into the at least one to-be-processed sub-region according to the preset region adjustment size by taking a pixel point as a region adjustment step.
- Claim 15Depends on #13
The electronic device according to claim 13, wherein the determining a brightness value corresponding to each to-be-processed sub-region, and taking a to-be-processed sub-region with a highest brightness value as a sub-region, comprises: determining a weight value corresponding to each pixel point in each to-be-processed sub-region based on a Poisson distribution; determining a region brightness value of each to-be-processed sub-region based on the weight value and a pixel brightness value corresponding to each pixel point; and taking a to-be-processed sub-region corresponding to a highest region brightness value as the sub-region.
- Claim 16Depends on #11
The electronic device according to claim 11, wherein the determining the first material information to be fused according to the highlight center point and the first image to be processed, comprises: determining a normal map of the first image to be processed; and processing the normal map and information of the highlight center point based on a pre-trained parameter generation model to acquire a material parameter to be fused.
- Claim 17Depends on #11
The electronic device according to claim 11, further comprising: displaying an object corresponding to the subject to be recognized on a display interface, and taking the object corresponding to the subject to be recognized as an object to be tried.
- Claim 18Depends on #17
The electronic device according to claim 17, further comprising: acquiring a face image corresponding to an audience and retrieving the second material information corresponding to a triggered trial object, when an instruction of object trial is detected; determining rendered material information based on the face image and the second material information; and adding an effect to the face image based on the rendered material information to acquire an effect image.
- Claim 19Depends on #18
The electronic device according to claim 18, wherein the determining rendered material information based on the face image and the second material information, comprises: determining to-be-used light brightness based on the face image; and adjusting the second material information according to the to-be-used light brightness to acquire the rendered material information.
- Claim 20Independent Claim
A non-transitory storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, implements a subject material determination method as claimed, which comprises: acquiring a first image to be processed and a second image to be processed which each comprise a subject to be recognized under a same visual angle, wherein the first image to be processed is determined in response to a flash lamp being turned on, and wherein the second image to be processed is determined when the flash lamp is turned off; determining a highlight center point of the first image to be processed, wherein the highlight center point is a point in the first image to be processed having the highest brightness value; determining first material information to be fused according to the highlight center point and the first image to be processed; determining color information according to the second image to be processed; and determining second material information of the subject to be recognized according to the first material information to be fused and the color information.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATION This application is a national filing of International Patent Application No. PCT/SG2023/050071, filed on Feb. 10, 2023, which claims the priority to and benefits of Chinese Patent Application No. 202210158265.9, filed on Feb. 21, 2022. All the aforementioned patent applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD The present disclosure relates to the field of computer technology, and, for example, to a subject material determination method, an apparatus, an electronic device, and a storage medium. BACKGROUND As the demand for computer-based rendering of materials continues to increase, material acquisition techniques, based on which large amounts of data relating to a material can be processed and analyzed to acquire material parameters for that material, become increasingly important. However, in practical applications, the process of determining the material information of some materials is very cumbersome, and since some materials have more complicated colors or characteristics, such as cosmetics, paints used for decoration, etc., the material information cannot be accurately acquired based on the relevant methods. Therefore, the effect of rendering the material based on the material information is poor, and the visual effect presented by the material cannot be accurately presented to the user. SUMMARY The present disclosure provides a subject material determination method, an apparatus, an electronic device, and a storage medium, which can conveniently determine the material information of a specific subject through only two images, and improves the efficiency of determining the material information. In a first aspect, the present disclosure provides a subject material determination method, and the method includes: acquiring a first image to be processed and a second image to be processed which include a subject to be recognized and under a same visual angle, in which the first image t
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (17)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (9)
- Deschaintre V, Aittala M, Durand F, Drettakis G, Bousseau A. Single-image svbrdf capture with a rendering-aware deep network. ACM Transactions on Graphics (ToG). Jul. 30, 2018;37(4):1-5.
- China Patent Application No. 202210158265.9; Notice of Registration; dated Sep. 29, 2025; 8 pages.
- International Patent Application No. PCT/SG2023/050071; Int'l Search Report; dated Oct. 12, 2023; 3 pages.
- China Patent Application No. 202210158265.9; Office Action; dated Mar. 12, 2025; 15 pages.
- Zhang Rui;
- “
- Comparison and Research of Two Key Technologies Based on Maya Materials
- ”
- ; Journal of Jilin Radio and Television University; Issue 8; 2017; p. 134-135 (contains English Translation).