WO2020192262A1 - Physical object image generation method and apparatus, and device - Google Patents

Physical object image generation method and apparatus, and device Download PDF

Info

Publication number
WO2020192262A1
WO2020192262A1 PCT/CN2020/073056 CN2020073056W WO2020192262A1 WO 2020192262 A1 WO2020192262 A1 WO 2020192262A1 CN 2020073056 W CN2020073056 W CN 2020073056W WO 2020192262 A1 WO2020192262 A1 WO 2020192262A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
physical
transformed
images
reflection
Prior art date
Application number
PCT/CN2020/073056
Other languages
French (fr)
Chinese (zh)
Inventor
侯晓楠
邱雪涛
万四爽
Original Assignee
中国银联股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2020192262A1 publication Critical patent/WO2020192262A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination

Definitions

  • the present invention relates to the field of computer vision, and in particular to a method, device and equipment for generating a physical image.
  • Image recognition is a technology that uses computers to process, analyze, and understand images to identify targets and objects in various modes. For example, to recognize faces and verify identity.
  • the image recognition model needs to be trained with a large number of real pictures.
  • the more physical pictures the richer the scenes covered by the training data, and the more accurate the physical recognition.
  • the manual collection of physical pictures has great limitations. It is impossible to obtain physical pictures of a part of the scene by adjusting the shooting conditions, especially the subtle changes in shooting conditions. Manually adjusting the shooting conditions will cause large errors in the collection of physical pictures. In some scenes, the physical pictures are missing and the training data is incomplete, which causes the physical recognition model to be unable to accurately identify the physical objects in the missing part of the scene.
  • the embodiments of the present application provide a method, device, and equipment for generating a physical image, which solves the problem of missing physical images in some scenes and incomplete training data caused by manual collection of physical images in the prior art.
  • an embodiment of the present application provides a method for generating a physical image, including:
  • the performing at least one transformation of at least one of the first reflection image and the first illumination image includes: according to M first pixel value transformation rules in a preset illumination transformation algorithm, The pixel values in the first irradiated image undergo M different transformations to obtain different M transformed second irradiated images; wherein, each of the M different transformations is different from the second after the M transformations.
  • One of the illuminated images uniquely corresponds to a second illuminated image; M is a positive integer; and, the at least one second physical image is generated based on the transformed at least one image, the first reflection image, and the first illuminated image , Including: generating M second physical images that are different from the first physical image according to the first reflected image and the M transformed second illuminated images.
  • the performing at least one transformation of at least one of the first reflection image and the first illumination image includes: according to N second pixel value transformation rules in a preset reflection transformation algorithm, The pixel values in the first reflection image undergo N different transformations to obtain different N transformed second reflection images; wherein, each of the N different transformations is different from the first N transformation.
  • One of the two reflection images uniquely corresponds to a second reflection image; N is a positive integer; and the at least one second physical image is generated according to the transformed at least one image, the first reflection image, and the first illumination image , Including: generating N second physical images that are different from the first physical image according to the first illuminated image and the N transformed second reflection images.
  • the performing at least one transformation of at least one of the first reflection image and the first illumination image includes: performing P third pixel value transformation rules in a preset illumination transformation algorithm, The pixel values in the first irradiated image undergo P different transformations to obtain different P transformed third irradiated images; wherein, each transformation in the P different transformations is the same as the P transformation.
  • One of the three illuminated images uniquely corresponds to a third illuminated image;
  • P is a positive integer;
  • the Q fourth pixel value conversion rules in the preset reflection conversion algorithm the pixel values in the first reflection image are different Q times Transformation to obtain Q different transformed third reflection images; wherein each transformation in the Q different transformations uniquely corresponds to one of the Q transformed third illumination images;
  • Q is a positive integer;
  • the generating at least one second physical image according to the transformed at least one image, the first reflection image, and the first illuminated image includes: according to the P transformed third images
  • the illumination image and the Q transformed third reflection images are used to generate P*Q second physical images that are different from the first physical image.
  • the method further includes: inputting the at least one second physical image as training data to the image recognition model; according to each second physical image in the training data And update the parameters of the image recognition model with the output result of the second physical image input to the image recognition model.
  • the first reflection image and the first illumination image of the first physical image are acquired, and then at least one of the first reflection image and the first illumination image is One image undergoes at least one transformation, so at least one illumination image and reflection image after transformation can be obtained, and then at least one image after transformation, the first reflection image and the first illumination image are combined with each other, so that the The initial first physical image generates at least one physical image, and so on, the above steps are performed on each physical image collected manually, which can greatly improve the physical image, make up for the lack of manual collection of physical images in some scenes, and achieve training The effect of data supplementation.
  • an embodiment of the present application provides a physical image generation device, including:
  • the acquisition module is used to perform intrinsic decomposition of the first physical image to acquire the first reflection image and the first illumination image of the first physical image;
  • the processing module is used to perform the analysis of the first reflection image and the first At least one image in the illuminated image is transformed at least once; and used to generate at least one second physical image based on the transformed at least one image, the first reflection image, and the first illuminated image.
  • the processing module is specifically configured to: perform M different transformations on the pixel values in the first illuminated image according to the M first pixel value transformation rules in the preset illumination transformation algorithm to obtain different M transformed second illuminated images; wherein each of the M different transformations uniquely corresponds to one of the M transformed second illuminated images; M is a positive integer; according to The first reflected image and the M transformed second illuminated images generate M second physical images that are different from the first physical image.
  • the processing module is specifically configured to: perform N different transformations on the pixel values in the first reflection image according to the N second pixel value transformation rules in the preset reflection transformation algorithm to obtain different N transformed second reflection images; wherein each of the N different transformations uniquely corresponds to one of the N transformed second reflection images; N is a positive integer; According to the first illuminated image and the N transformed second reflection images, N second physical images that are different from the first physical image are generated.
  • the processing module is specifically configured to: perform P different transformations on the pixel values in the first illuminated image according to the P third pixel value transformation rules in the preset illumination transformation algorithm to obtain different P transformed third illuminated images; wherein each of the P different transformations uniquely corresponds to one of the P transformed third illuminated images; P is a positive integer;
  • the Q fourth pixel value transformation rules in the preset reflection transformation algorithm the pixel values in the first reflection image are transformed Q times to obtain different Q transformed third reflection images; where Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer; according to the P transformed third illumination images and The Q transformed third reflection images generate P*Q second physical images that are different from the first physical image.
  • the processing module is further configured to: use the at least one second physical image as training data and input it to the image recognition model; according to each second physical image in the training data, the second physical image is The output result after the physical image is input to the image recognition model, and the parameters of the image recognition model are updated.
  • an embodiment of the present application provides a physical image generation device, including:
  • At least one processor and,
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the physical image generation method described in the first aspect above .
  • an embodiment of the present application provides a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute the above-mentioned first aspect.
  • the embodiments of the present application provide a computer program product, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are When executed by a computer, the computer is caused to execute the physical image generation method described in the first aspect.
  • FIG. 1 is an overall flowchart of a method for generating a physical image according to Embodiment 1 of the application;
  • FIG. 2 is a flow chart of the steps of a method for generating a physical image according to Embodiment 1 of the application;
  • FIG. 3 is a schematic diagram of the intrinsic decomposition corresponding to a method for generating a physical image according to Embodiment 1 of the application;
  • FIG. 5 is a flow chart of the steps of a method for generating a physical image according to Embodiment 3 of the application;
  • FIG. 6 is a schematic structural diagram of a physical image generating device applied to Embodiments 1, 2 and 3 of this application;
  • FIG. 7 is a schematic structural diagram of a physical image generating device applied to Embodiments 1, 2 and 3 of this application.
  • Image recognition is widely used in the field of computer vision, such as various face verification systems, which can obtain the authority of the identity by identifying the face of the face, and then perform operations.
  • the tool to realize the function of image recognition is the image recognition model.
  • the image recognition model Before realizing the image recognition function, the image recognition model needs to be trained with a large number of real pictures. For an image recognition model, the more physical pictures, the richer the scenes covered by the training data, and the more accurate the physical recognition.
  • the manual collection of physical pictures has great limitations. It is impossible to obtain physical pictures of a part of the scene by adjusting the shooting conditions, especially the subtle changes in shooting conditions. Manually adjusting the shooting conditions will cause large errors in the collection of physical pictures. In some scenes, the physical pictures are missing and the training data is incomplete, which causes the physical recognition model to be unable to accurately identify the physical objects in the missing part of the scene.
  • FIG. 1 it is an overall flowchart of a method for generating a physical image provided in an embodiment of this application. It should be noted that FIG. 1 only uses a manually collected physical image as an example to illustrate the process, and the manually collected physical image is also collected in multiple scenes.
  • the physical image is the initial image collected manually;
  • the illuminated image is the image that reflects the lighting conditions of the original image;
  • the reflected image refers to the image that can remain unchanged under changing lighting conditions, reflecting the texture and material of the original physical image.
  • the physical image, the illuminated image, and the reflected image are composed of multiple pixels, each pixel has a pixel value, and each pixel is combined to form an image to produce a visual effect.
  • Each pixel has a corresponding pixel value in the physical image, illuminated image, and reflected image, and each pixel value in the physical image, illuminated image, and reflected image corresponds to each other.
  • the reflection image and the irradiated image are transformed multiple times. After each transformation, an image with the original is obtained.
  • the reflected image or the reflected image or the illuminated image with different pixel values of the illuminated image can be used to generate a large number of physical images different from the original image set by using these modified illuminated images and reflected images.
  • the brightness of the physical image collected manually is generally affected by the ambient light, and the material information of the physical object itself has nothing to do with the light condition.
  • the embodiment of the present application transforms the reflected image into different lighting conditions to obtain multiple transformed reflected images with different lighting conditions; and by transforming the illuminated images with different textures and other conditions, multiple transformed illuminated images with the same lighting condition are obtained. image. It should be noted that the above-mentioned specific methods for transforming the reflected image or the illuminated image are all implemented by transforming the pixel values of the pixels in the reflected image or the illuminated image through a preset algorithm.
  • FIG. 2 it is a flowchart of steps of a method for generating a physical image provided in an embodiment of this application.
  • Step 201 Perform intrinsic decomposition on the first physical image, and obtain a first reflection image and a first illumination image of the first physical image.
  • step 201 the relationship among the first physical image (I), the first reflection image (R), and the first illumination image (S) can be expressed by a formula:
  • FIG. 3 is a schematic diagram of the first physical image generation method provided in an embodiment of the application corresponding to the intrinsic decomposition. .
  • the first line is the first physical image
  • the middle line is the first reflection image
  • the last line is the first illumination image.
  • the pixel values of the first illuminated image and the pixel values of the first reflected image that are decomposed are a set of solutions selected at random.
  • Step 202 Perform at least one transformation on at least one of the first reflected image and the first illuminated image.
  • Step 203 Generate at least one second physical image according to the transformed at least one image, the first reflection image and the first illumination image.
  • step 202 there are three situations:
  • At least one transformation is taken as an example of M transformations.
  • the pixel values in the first illuminated image are subjected to M different transformations to obtain different M Two transformed second illuminated images; where each of the M different transformations uniquely corresponds to one of the M transformed second illuminated images; M is a positive integer.
  • N different transformations are performed on the pixel values in the first reflection image to obtain different N transformed second reflections Image; wherein, each of the N different transformations is uniquely corresponding to one of the N transformed second reflection images; N is a positive integer.
  • P different transformations are performed on the pixel values in the first illumination image to obtain different P transformed third illuminations Image; wherein, each of the P different transformations is uniquely corresponding to one of the P transformed third illumination images; P is a positive integer.
  • Q different transformations are performed on the pixel values in the first reflection image to obtain Q different transformed third reflection images; wherein Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer.
  • the preset illumination transformation algorithm is encapsulated in an image processing software, such as openCV.
  • the image processing software calls the lighting condition transformation algorithm
  • there are multiple first pixel value transformation rules corresponding to multiple lighting condition transformations that is, one lighting condition corresponds to one first pixel value transformation rule.
  • the pixel value of the first illumination image is transformed according to a first pixel value transformation rule to obtain the transformed illumination image under corresponding lighting conditions.
  • the pixel value conversion rules are also preset according to the lighting conditions or textures. By changing the pixel values, the reflected images and illuminated images that have changed the lighting conditions or textures are obtained, which will not be repeated.
  • Step 203 corresponds to the situation in step 202, including the following three situations:
  • M second images that are different from the first physical image are generated. Physical image.
  • N second images different from the first physical image are generated. Physical image.
  • step 202 After the third case in step 202 is performed, according to the P transformed third illumination images and the Q transformed third reflection images, generate images that are different from the first physical image P*Q second physical image.
  • step 202 the physical image generated in step 202 to step 203 is as follows, which are expressed by the formula as follows:
  • the first reflection image (R) is modified Q times differently to obtain a different third reflection image (CR j ), and each third reflection image (CR j ) remains unchanged.
  • the irradiation image (S) is modified P times differently to obtain a different third irradiation image (CS j ), and then the generated image (CI j ) is calculated using formula (1):
  • step 203 another optional implementation manner is to use the at least one second physical image as training data and input it to the image recognition model; according to each second physical image in the training data, it is related to the first Second, the output result after the physical image is input to the image recognition model, and the parameters of the image recognition model are updated.
  • the generated second physical image greatly increases the amount of training data, which can make the image recognition model more accurate.
  • this is a flow chart of the steps of a method for generating a physical image provided in the second embodiment of the present application.
  • the second embodiment of the present application is a method for generating a multi-illumination face image based on intrinsic decomposition. Illumination changes are the most critical factor that affects the performance of face recognition. The degree of solution to this problem is related to the success or failure of the practical process of face recognition. In order to improve the robustness of the face recognition model to lighting, one of the most direct methods is to add face images under different lighting conditions to the training data. The specific steps are as follows:
  • step 401 collect a physical image set E obtained by manual shooting, for example, E contains 100,000 face images.
  • Step 401 Perform intrinsic decomposition of each physical image in the physical image set E.
  • Step 402 Keep the reflected image (ER k ) unchanged, and perform n different modifications to the illuminated image (ES k ) according to a preset lighting condition modification algorithm.
  • n is an integer greater than 1.
  • each illuminated image ES k obtains a transformed illuminated image set
  • Step 403 Generate a physical image set according to the transformed illuminated image set and the reflected image.
  • Step 404 Determine whether there are any physical images in the data set E for which steps 402 and 403 have not been performed.
  • step 402 If yes, go to step 402; otherwise, use the set of physical images generated from each physical image in E as the final generated training data set E g .
  • E g [E 1 ,...,E 100000 ], containing 1 million pictures in total; use the data set [E,E g ] to train the physical object recognition model to obtain the illumination Real object recognition model with more robust conditions.
  • FIG. 5 is a flow chart of the steps of a method for generating a physical image provided in Embodiment 3 of the present application.
  • Embodiment 3 of the present application is a method for generating training data for image segmentation based on intrinsic decomposition.
  • the purpose of image segmentation is to divide an image into regions with features and extract the target of interest. These features can be pixels, colors, textures, etc.
  • the extraction target can be a single or multiple regions. Specific steps are as follows:
  • step 501 collect a physical image set F obtained by manual shooting, for example, F contains 1000 landscape images.
  • Step 501 Perform intrinsic decomposition on each physical image in the physical image set F.
  • Step 502 Keep the reflected image (FR m ) unchanged, and perform t different modifications to the illuminated image (FS m ) according to the preset lighting condition modification algorithm.
  • the preset lighting condition transformation algorithm includes multiple pixel value transformation rules, and each pixel value transformation rule corresponds to a transformed reflection image.
  • step 502 the transformed illuminated image set is obtained
  • Step 503 Generate a physical image set according to the transformed irradiation image set
  • Step 503 uses the following formula for transformation:
  • Step 504 Keep the illuminated image (FS m ) unchanged, and perform r different modifications to the reflected image (FR m ) according to the preset texture modification algorithm.
  • the preset texture transformation algorithm includes multiple pixel value transformation rules, and each pixel value transformation rule corresponds to a transformed reflection image.
  • step 504 the transformed reflection image set [FR m,1 ,...,FR m,r ] is obtained.
  • step 505 the following formula is used for transformation:
  • the first reflection image and the first illumination image of the first physical image are acquired, and then at least one of the first reflection image and the first illumination image is One image undergoes at least one transformation, so at least one illumination image and reflection image after transformation can be obtained, and then at least one image after transformation, the first reflection image and the first illumination image are combined with each other, so that the The initial first physical image generates at least one physical image, and so on, the above steps are performed on each physical image collected manually, which can greatly improve the physical image, make up for the lack of manual collection of physical images in some scenes, and achieve training The effect of data supplementation.
  • the training data of the image recognition model is expanded, so that the image recognition model can be used for real objects in different scenes. The recognition is more accurate and robust.
  • the embodiment of the present application greatly reduces the manpower input; through the above method, a large number of physical images can be generated as training data, thereby greatly reducing the cost of data accumulation, and collecting a large amount of training data in a shorter time.
  • a large amount of training data can be customized according to specific application scenarios; this method can generate a training data set containing more abundant lighting and texture types on the basis of the original physical image set; the generated data can train A model that is more robust to lighting effects and more general to different scenes can improve the performance of computer vision fields such as face or object detection and recognition, and image segmentation.
  • FIG. 6 it is a schematic structural diagram of a physical image generating device applied to Embodiments 1, 2 and 3 of this application.
  • the embodiment of the present application provides a physical image generation device, including:
  • the acquisition module 601 is used to perform intrinsic decomposition of the first physical image to acquire the first reflection image and the first illumination image of the first physical image; the processing module 602 is used to perform the intrinsic decomposition of the first physical image and the At least one image in the first illumination image is transformed at least once; and for generating at least one second physical image based on the transformed at least one image, the first reflection image, and the first illumination image.
  • the processing module 602 is specifically configured to: perform M different transformations on the pixel values in the first illuminated image according to the M first pixel value transformation rules in the preset illumination transformation algorithm to obtain different M transformed second illuminated images of M; wherein, each of the M different transformations uniquely corresponds to one of the M transformed second illuminated images; M is a positive integer; According to the first reflected image and the M transformed second illumination images, M second physical images that are different from the first physical image are generated.
  • the processing module 602 is specifically configured to: perform N different transformations on the pixel values in the first reflection image according to the N second pixel value transformation rules in the preset reflection transformation algorithm to obtain different N transformed second reflection images; wherein, each of the N different transformations uniquely corresponds to one of the N transformed second reflection images; N is a positive integer ; According to the first illumination image and the N transformed second reflection images, N second physical images that are different from the first physical image are generated.
  • the processing module 602 is specifically configured to: perform P different transformations on the pixel values in the first illuminated image according to the P third pixel value transformation rules in the preset illumination transformation algorithm to obtain different P transformed third irradiated images; wherein, each of the P different transformations uniquely corresponds to one of the P transformed third irradiated images; P is a positive integer
  • the Q fourth pixel value transformation rules in the preset reflection transformation algorithm the pixel values in the first reflection image are transformed Q times to obtain different Q transformed third reflection images; wherein, Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer; according to the P transformed third illumination images And the Q transformed third reflection images to generate P*Q second physical images different from the first physical image.
  • the processing module 602 is further configured to: use the at least one second physical image as training data and input it into the image recognition model; according to each second physical image in the training data, it is related to the first physical image. Second, the output result after the physical image is input to the image recognition model, and the parameters of the image recognition model are updated.
  • the embodiment of the present application provides a physical image generating device. At least one processor; and, a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable The at least one processor can execute the physical image generation method in the foregoing embodiment.
  • FIG. 7 is a structure of a physical image generating device provided by an embodiment of the application.
  • the physical image generating device 700 includes a transceiver 701, a processor 702, a memory 703, and a bus system 704;
  • the memory 703 is used to store programs.
  • the program may include program code, and the program code includes computer operation instructions.
  • the memory 703 may be a random access memory (random access memory, RAM for short), or a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure. Of course, the memory can also be set to multiple as required.
  • the memory 703 may also be a memory in the processor 702.
  • the memory 703 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
  • Operating instructions including various operating instructions, used to implement various operations.
  • Operating system including various system programs, used to implement various basic services and process hardware-based tasks.
  • the foregoing method for generating an object image in the embodiment of the present application may be applied to the processor 702, or implemented by the processor 702.
  • the processor 702 may be an integrated circuit chip with signal processing capabilities.
  • the steps of the foregoing physical image generation method can be completed by hardware integrated logic circuits in the processor 702 or instructions in the form of software.
  • the above-mentioned processor 702 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware Components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 703, and the processor 702 reads the information in the memory 703, and performs the following steps in combination with its hardware:
  • the transceiver 701 is configured to perform intrinsic decomposition of the first physical image to obtain a first reflection image and a first illumination image of the first physical image;
  • the processor 702 is configured to perform at least one transformation on at least one of the first reflected image and the first illuminated image; and configured to perform at least one transformation based on the transformed at least one image, the first reflected image, and the The first irradiated image generates at least one second physical image.
  • the processor 702 is specifically configured to:
  • the M first pixel value transformation rules in the preset illumination transformation algorithm perform M different transformations on the pixel values in the first illumination image to obtain different M transformed second illumination images; wherein, the Each of the M different transformations uniquely corresponds to one of the M transformed second illumination images; M is a positive integer; according to the first reflection image and the M transformations To generate M second physical images that are different from the first physical image.
  • the processor 702 is specifically configured to:
  • N second pixel value transformation rules in the preset reflection transformation algorithm perform N different transformations on the pixel values in the first reflection image to obtain different N transformed second reflection images;
  • Each of the N different transformations uniquely corresponds to a second reflection image among the N transformed second reflection images;
  • N is a positive integer; according to the first illumination image and the N transformations After the second reflection image, N second physical images different from the first physical image are generated.
  • the processor 702 is specifically configured to:
  • the pixel values in the first illumination image are transformed P different times to obtain different P transformed third illumination images;
  • Each of the P different transformations uniquely corresponds to one of the P transformed third illumination images;
  • P is a positive integer;
  • the transformation rule is to perform Q different transformations on the pixel values in the first reflection image to obtain different Q transformed third reflection images; wherein, each of the Q different transformations is different from the One of the Q transformed third illumination images uniquely corresponds to one third illumination image;
  • Q is a positive integer; according to the P transformed third illumination images and the Q transformed third reflection images, generate P*Q second physical images different from the first physical image.
  • the processor 702 is further configured to:
  • the physical image generation equipment in the embodiments of this application exists in various forms, including but not limited to:
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has calculation and processing functions, and generally also has mobile Internet features.
  • Such terminals include: PDA, MID and UMPC devices, such as iPad.
  • the program is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer). , A chip, etc.) or a processor (processor) executes all or part of the steps of the method in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
  • the present application also provides a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute any of the above-mentioned physical objects.
  • Image generation method a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute any of the above-mentioned physical objects.
  • the present application also provides a computer program product
  • the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium
  • the computer program includes program instructions, when the program instructions are executed by a computer , Enabling the computer to execute any of the above-mentioned physical image generation methods.
  • the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Magnetic Resonance Imaging Apparatus (AREA)
  • Image Processing (AREA)

Abstract

The present application discloses a physical object image generation method and apparatus, and a device. The method comprises: performing intrinsic decomposition on a first physical object image to acquire a first reflection image and a first irradiation image of the first physical object image; performing at least one transformation on at least one of the first reflection image and the first irradiation image; and generating at least one second physical object image according to the at least one transformed image, the first reflection image and the first irradiation image.

Description

一种实物图像生成方法及装置、设备Method, device and equipment for generating physical image
相关申请的交叉引用Cross references to related applications
本申请要求在2019年03月25日提交中国专利局、申请号为201910227393.2、申请名称为“一种实物图像生成方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910227393.2, and the application name is "a method and device for generating physical images" on March 25, 2019, the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本发明涉及计算机视觉领域,尤其涉及一种实物图像生成方法及装置、设备。The present invention relates to the field of computer vision, and in particular to a method, device and equipment for generating a physical image.
背景技术Background technique
图像识别,是一种利用计算机对图像进行处理、分析和理解,以识别各种不同模式的目标和对像的技术。举例来说,对人脸进行识别,验证身份。图像识别模型需要用大量的实物图片做训练。Image recognition is a technology that uses computers to process, analyze, and understand images to identify targets and objects in various modes. For example, to recognize faces and verify identity. The image recognition model needs to be trained with a large number of real pictures.
对一个图像识别模型来说,实物图片数量越多,训练数据覆盖的场景越丰富,对实物的识别越准确。但是,人工采集实物图片的有较大局限性,不能通过调整拍摄条件获取到一部分场景下的实物图片,尤其是拍摄条件的细微变化,人工调整拍摄条件会导致实物图片采集误差较大,从而造成一部分场景下的实物图片缺失,训练数据不完整,进而造成实物识别模型在缺失的这部分场景下,对实物不能准确识别。For an image recognition model, the more physical pictures, the richer the scenes covered by the training data, and the more accurate the physical recognition. However, the manual collection of physical pictures has great limitations. It is impossible to obtain physical pictures of a part of the scene by adjusting the shooting conditions, especially the subtle changes in shooting conditions. Manually adjusting the shooting conditions will cause large errors in the collection of physical pictures. In some scenes, the physical pictures are missing and the training data is incomplete, which causes the physical recognition model to be unable to accurately identify the physical objects in the missing part of the scene.
因此,现有技术中,人工采集实物图片造成一部分场景下的实物图像缺失,训练数据不完整的问题亟待解决。Therefore, in the prior art, the manual collection of physical images causes missing physical images in some scenes, and the problem of incomplete training data needs to be solved urgently.
发明内容Summary of the invention
本申请实施例提供一种实物图像生成方法及装置、设备,解决了现有技术中,人工采集实物图片造成一部分场景下的实物图像缺失,训练数据不完 整的问题。The embodiments of the present application provide a method, device, and equipment for generating a physical image, which solves the problem of missing physical images in some scenes and incomplete training data caused by manual collection of physical images in the prior art.
第一方面,本申请实施例提供一种实物图像生成方法,包括:In the first aspect, an embodiment of the present application provides a method for generating a physical image, including:
对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像;对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换;根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像。Perform intrinsic decomposition of the first physical image to obtain a first reflection image and a first illumination image of the first physical image; perform at least one transformation on at least one of the first reflection image and the first illumination image ; According to the transformed at least one image, the first reflected image and the first illuminated image, at least one second physical image is generated.
可选的,所述对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,包括:按照预设照射变换算法中M个第一像素值变换规则,对所述第一照射图像中的像素值做M次不同的变换,获取不同的M个变换后第二照射图像;其中,所述M次不同的变换中每次变换与所述M个变换后的第二照射图像中的一个第二照射图像唯一对应;M为正整数;以及,所述根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像,包括:根据所述第一反射图像和所述M个变换后的第二照射图像,生成与所述第一实物图像不同的M个第二实物图像。Optionally, the performing at least one transformation of at least one of the first reflection image and the first illumination image includes: according to M first pixel value transformation rules in a preset illumination transformation algorithm, The pixel values in the first irradiated image undergo M different transformations to obtain different M transformed second irradiated images; wherein, each of the M different transformations is different from the second after the M transformations. One of the illuminated images uniquely corresponds to a second illuminated image; M is a positive integer; and, the at least one second physical image is generated based on the transformed at least one image, the first reflection image, and the first illuminated image , Including: generating M second physical images that are different from the first physical image according to the first reflected image and the M transformed second illuminated images.
可选的,所述对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,包括:按照预设反射变换算法中N个第二像素值变换规则,对所述第一反射图像中的像素值做N次不同的变换,获取不同的N个变换后的第二反射图像;其中,所述N次不同的变换中每次变换与所述N个变换后的第二反射图像中的一个第二反射图像唯一对应;N为正整数;以及所述根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像,包括:根据所述第一照射图像和所述N个变换后的第二反射图像,生成与所述第一实物图像不同的N个第二实物图像。Optionally, the performing at least one transformation of at least one of the first reflection image and the first illumination image includes: according to N second pixel value transformation rules in a preset reflection transformation algorithm, The pixel values in the first reflection image undergo N different transformations to obtain different N transformed second reflection images; wherein, each of the N different transformations is different from the first N transformation. One of the two reflection images uniquely corresponds to a second reflection image; N is a positive integer; and the at least one second physical image is generated according to the transformed at least one image, the first reflection image, and the first illumination image , Including: generating N second physical images that are different from the first physical image according to the first illuminated image and the N transformed second reflection images.
可选的,所述对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,包括:按照预设照射变换算法中P个第三像素值变换规则,对所述第一照射图像中的像素值做P次不同的变换,获取不同的P个变换后的第三照射图像;其中,所述P次不同的变换中每次变换与所述P个变换后的第三照射图像中的一个第三照射图像唯一对应;P为正整数;按照预设 反射变换算法中Q个第四像素值变换规则,对所述第一反射图像中的像素值做Q次不同的变换,获取不同的Q个变换后的第三反射图像;其中,所述Q次不同的变换中每次变换与所述Q个变换后的第三照射图像中的一个第三照射图像唯一对应;Q为正整数;以及所述根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像,包括:根据所述P个变换后的第三照射图像和所述Q个变换后的第三反射图像,生成与所述第一实物图像不同P*Q个第二实物图像。Optionally, the performing at least one transformation of at least one of the first reflection image and the first illumination image includes: performing P third pixel value transformation rules in a preset illumination transformation algorithm, The pixel values in the first irradiated image undergo P different transformations to obtain different P transformed third irradiated images; wherein, each transformation in the P different transformations is the same as the P transformation. One of the three illuminated images uniquely corresponds to a third illuminated image; P is a positive integer; according to the Q fourth pixel value conversion rules in the preset reflection conversion algorithm, the pixel values in the first reflection image are different Q times Transformation to obtain Q different transformed third reflection images; wherein each transformation in the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer; and the generating at least one second physical image according to the transformed at least one image, the first reflection image, and the first illuminated image includes: according to the P transformed third images The illumination image and the Q transformed third reflection images are used to generate P*Q second physical images that are different from the first physical image.
可选的,所述生成至少一个第二实物图像之后,还包括:将所述至少一个第二实物图像作为训练数据,输入至图像识别模型;根据所述训练数据中每一张第二实物图像,与该第二实物图像输入至所述图像识别模型后的输出结果,更新所述图像识别模型的参数。Optionally, after the generating at least one second physical image, the method further includes: inputting the at least one second physical image as training data to the image recognition model; according to each second physical image in the training data And update the parameters of the image recognition model with the output result of the second physical image input to the image recognition model.
上述方法中,通过对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像,之后对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,因此可以获取到变换后的至少一个照射图像以及反射图像,再通过变换后的至少一个图像、所述第一反射图像和所述第一照射图像相互结合,从而可以通过最初的第一实物图像生成至少一个实物图像,以此类推,对人工采集的每一张实物图像都进行上述步骤,可大幅提升实物图像,弥补一部分场景下人工采集实物图像的缺失,达到对训练数据进行补充的效果。In the above method, by performing intrinsic decomposition of the first physical image, the first reflection image and the first illumination image of the first physical image are acquired, and then at least one of the first reflection image and the first illumination image is One image undergoes at least one transformation, so at least one illumination image and reflection image after transformation can be obtained, and then at least one image after transformation, the first reflection image and the first illumination image are combined with each other, so that the The initial first physical image generates at least one physical image, and so on, the above steps are performed on each physical image collected manually, which can greatly improve the physical image, make up for the lack of manual collection of physical images in some scenes, and achieve training The effect of data supplementation.
第二方面,本申请实施例提供一种实物图像生成装置,包括:In the second aspect, an embodiment of the present application provides a physical image generation device, including:
获取模块,用于对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像;处理模块,用于对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换;以及用于根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像。The acquisition module is used to perform intrinsic decomposition of the first physical image to acquire the first reflection image and the first illumination image of the first physical image; the processing module is used to perform the analysis of the first reflection image and the first At least one image in the illuminated image is transformed at least once; and used to generate at least one second physical image based on the transformed at least one image, the first reflection image, and the first illuminated image.
可选的,所述处理模块,具体用于:按照预设照射变换算法中M个第一像素值变换规则,对所述第一照射图像中的像素值做M次不同的变换,获取 不同的M个变换后第二照射图像;其中,所述M次不同的变换中每次变换与所述M个变换后的第二照射图像中的一个第二照射图像唯一对应;M为正整数;根据所述第一反射图像和所述M个变换后的第二照射图像,生成与所述第一实物图像不同的M个第二实物图像。Optionally, the processing module is specifically configured to: perform M different transformations on the pixel values in the first illuminated image according to the M first pixel value transformation rules in the preset illumination transformation algorithm to obtain different M transformed second illuminated images; wherein each of the M different transformations uniquely corresponds to one of the M transformed second illuminated images; M is a positive integer; according to The first reflected image and the M transformed second illuminated images generate M second physical images that are different from the first physical image.
可选的,所述处理模块,具体用于:按照预设反射变换算法中N个第二像素值变换规则,对所述第一反射图像中的像素值做N次不同的变换,获取不同的N个变换后的第二反射图像;其中,所述N次不同的变换中每次变换与所述N个变换后的第二反射图像中的一个第二反射图像唯一对应;N为正整数;根据所述第一照射图像和所述N个变换后的第二反射图像,生成与所述第一实物图像不同的N个第二实物图像。Optionally, the processing module is specifically configured to: perform N different transformations on the pixel values in the first reflection image according to the N second pixel value transformation rules in the preset reflection transformation algorithm to obtain different N transformed second reflection images; wherein each of the N different transformations uniquely corresponds to one of the N transformed second reflection images; N is a positive integer; According to the first illuminated image and the N transformed second reflection images, N second physical images that are different from the first physical image are generated.
可选的,所述处理模块,具体用于:按照预设照射变换算法中P个第三像素值变换规则,对所述第一照射图像中的像素值做P次不同的变换,获取不同的P个变换后的第三照射图像;其中,所述P次不同的变换中每次变换与所述P个变换后的第三照射图像中的一个第三照射图像唯一对应;P为正整数;按照预设反射变换算法中Q个第四像素值变换规则,对所述第一反射图像中的像素值做Q次不同的变换,获取不同的Q个变换后的第三反射图像;其中,所述Q次不同的变换中每次变换与所述Q个变换后的第三照射图像中的一个第三照射图像唯一对应;Q为正整数;根据所述P个变换后的第三照射图像和所述Q个变换后的第三反射图像,生成与所述第一实物图像不同P*Q个第二实物图像。Optionally, the processing module is specifically configured to: perform P different transformations on the pixel values in the first illuminated image according to the P third pixel value transformation rules in the preset illumination transformation algorithm to obtain different P transformed third illuminated images; wherein each of the P different transformations uniquely corresponds to one of the P transformed third illuminated images; P is a positive integer; According to the Q fourth pixel value transformation rules in the preset reflection transformation algorithm, the pixel values in the first reflection image are transformed Q times to obtain different Q transformed third reflection images; where Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer; according to the P transformed third illumination images and The Q transformed third reflection images generate P*Q second physical images that are different from the first physical image.
可选的,所述处理模块,还用于:将所述至少一个第二实物图像作为训练数据,输入至图像识别模型;根据所述训练数据中每一张第二实物图像,与该第二实物图像输入至所述图像识别模型后的输出结果,更新所述图像识别模型的参数。Optionally, the processing module is further configured to: use the at least one second physical image as training data and input it to the image recognition model; according to each second physical image in the training data, the second physical image is The output result after the physical image is input to the image recognition model, and the parameters of the image recognition model are updated.
第三方面,本申请实施例提供一种实物图像生成设备,包括:In a third aspect, an embodiment of the present application provides a physical image generation device, including:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述第一方面所述的实物图像生成方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the physical image generation method described in the first aspect above .
第四方面,本申请实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述第一方面所述的实物图像生成方法。In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute the above-mentioned first aspect. The physical image generation method described.
第五方面,本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述第一方面所述的实物图像生成方法。In a fifth aspect, the embodiments of the present application provide a computer program product, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are When executed by a computer, the computer is caused to execute the physical image generation method described in the first aspect.
附图说明Description of the drawings
图1为本申请实施例一提供的一种实物图像生成方法的整体流程图;FIG. 1 is an overall flowchart of a method for generating a physical image according to Embodiment 1 of the application;
图2为本申请实施例一提供的一种实物图像生成方法的步骤流程图;2 is a flow chart of the steps of a method for generating a physical image according to Embodiment 1 of the application;
图3为本申请实施例一提供的一种实物图像生成方法对应本征分解的示意图;FIG. 3 is a schematic diagram of the intrinsic decomposition corresponding to a method for generating a physical image according to Embodiment 1 of the application;
图4为本申请实施例二提供的一种实物图像生成方法的步骤流程图;4 is a flow chart of the steps of a method for generating a physical image provided in the second embodiment of the application;
图5为本申请实施例三提供的一种实物图像生成方法的步骤流程图;FIG. 5 is a flow chart of the steps of a method for generating a physical image according to Embodiment 3 of the application;
图6为一种应用于本申请实施例一、二和三的实物图像生成装置的结构示意图;FIG. 6 is a schematic structural diagram of a physical image generating device applied to Embodiments 1, 2 and 3 of this application;
图7为一种应用于本申请实施例一、二和三的实物图像生成设备的结构示意图。FIG. 7 is a schematic structural diagram of a physical image generating device applied to Embodiments 1, 2 and 3 of this application.
具体实施方式detailed description
为了更好的理解上述技术方案,下面将结合说明书附图及具体的实施方式对上述技术方案进行详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限 定,在不冲突的情况下,本申请实施例以及实施例中的技术特征可以相互结合。In order to better understand the above technical solutions, the above technical solutions will be described in detail below with reference to the drawings and specific implementations of the specification. It should be understood that the embodiments of the application and the specific features in the embodiments are detailed to the technical solutions of the application. Note, rather than limiting the technical solution of the present application, the embodiments of the present application and the technical features in the embodiments can be combined with each other if there is no conflict.
图像识别在计算机视觉领域中被广泛应用,如各种人脸验证系统,通过对人脸进行身份识别,获取身份的权限,从而进行操作等。实现图像识别这一功能的工具是图像识别模型。Image recognition is widely used in the field of computer vision, such as various face verification systems, which can obtain the authority of the identity by identifying the face of the face, and then perform operations. The tool to realize the function of image recognition is the image recognition model.
实现图像识别功能之前,图像识别模型需要用大量的实物图片做训练。对一个图像识别模型来说,实物图片数量越多,训练数据覆盖的场景越丰富,对实物的识别越准确。但是,人工采集实物图片的有较大局限性,不能通过调整拍摄条件获取到一部分场景下的实物图片,尤其是拍摄条件的细微变化,人工调整拍摄条件会导致实物图片采集误差较大,从而造成一部分场景下的实物图片缺失,训练数据不完整,进而造成实物识别模型在缺失的这部分场景下,对实物不能准确识别。Before realizing the image recognition function, the image recognition model needs to be trained with a large number of real pictures. For an image recognition model, the more physical pictures, the richer the scenes covered by the training data, and the more accurate the physical recognition. However, the manual collection of physical pictures has great limitations. It is impossible to obtain physical pictures of a part of the scene by adjusting the shooting conditions, especially the subtle changes in shooting conditions. Manually adjusting the shooting conditions will cause large errors in the collection of physical pictures. In some scenes, the physical pictures are missing and the training data is incomplete, which causes the physical recognition model to be unable to accurately identify the physical objects in the missing part of the scene.
因此,本申请实施例提出了一种根据少量人工采集的实物图像的生成更多个实物图像的方法。如图1所示,为本申请实施例中提供的一种实物图像生成方法的整体流程图。需要说明的是,图1仅以一张人工采集的实物图像为例说明该过程,人工采集的实物图像也是在多个场景下采集的。Therefore, the embodiment of the present application proposes a method for generating more physical images based on a small number of manually collected physical images. As shown in FIG. 1, it is an overall flowchart of a method for generating a physical image provided in an embodiment of this application. It should be noted that FIG. 1 only uses a manually collected physical image as an example to illustrate the process, and the manually collected physical image is also collected in multiple scenes.
给定实物图像,利用本征分解算法将实物图像分解成照射图像(Shading image)和反射图像(Reflectance image)。其中,实物图像为通过人工采集的初始图像;照射图像即反应原图像光照情况的图像;反射图像指在变化的光照条件下能够维持不变的图像,反应了原始实物图像的纹理、材质等。其中,实物图像、照射图像和反射图像均有多个像素点组成,每个像素点都有像素值,各个像素点组合在一起形成图像,产生视觉效果。每个像素点在实物图像、照射图像和反射图像均有对应的像素值,且实物图像、照射图像和反射图像中的每个像素值之间相互对应。Given a physical image, use the intrinsic decomposition algorithm to decompose the physical image into a illuminating image (Shading image) and a reflection image (Reflectance image). Among them, the physical image is the initial image collected manually; the illuminated image is the image that reflects the lighting conditions of the original image; the reflected image refers to the image that can remain unchanged under changing lighting conditions, reflecting the texture and material of the original physical image. Among them, the physical image, the illuminated image, and the reflected image are composed of multiple pixels, each pixel has a pixel value, and each pixel is combined to form an image to produce a visual effect. Each pixel has a corresponding pixel value in the physical image, illuminated image, and reflected image, and each pixel value in the physical image, illuminated image, and reflected image corresponds to each other.
以一张人工采集的实物图像为例,得到进行本征分解后的一张照射图像和反射图像后,再对反射图像和照射图像做多次不同变换,每次变换后都得到一张与原反射图像或照射图像的像素值不完全相同的反射图像或照射图像, 利用这些修改后的照射图像和反射图像便可生成大量与初始图像集不同的实物图像。其中,人工采集的实物图像的亮度一般是由环境光照所影响的,而实物本身的材质信息与光照情况无关。因此,本申请实施例对反射图像变换不同的光照条件,得到不同光照条件的多张变换后的反射图像;以及通过对照射图像变换不同的纹理等条件,得到同一光照条件多张变换后的照射图像。需要说明的是,上述变换反射图像或照射图像的具体方式均通过预设算法对反射图像或照射图像中像素点的像素值做变换实现。Take a physical image collected manually as an example. After obtaining an irradiated image and a reflection image after intrinsic decomposition, the reflection image and the irradiated image are transformed multiple times. After each transformation, an image with the original is obtained. The reflected image or the reflected image or the illuminated image with different pixel values of the illuminated image can be used to generate a large number of physical images different from the original image set by using these modified illuminated images and reflected images. Among them, the brightness of the physical image collected manually is generally affected by the ambient light, and the material information of the physical object itself has nothing to do with the light condition. Therefore, the embodiment of the present application transforms the reflected image into different lighting conditions to obtain multiple transformed reflected images with different lighting conditions; and by transforming the illuminated images with different textures and other conditions, multiple transformed illuminated images with the same lighting condition are obtained. image. It should be noted that the above-mentioned specific methods for transforming the reflected image or the illuminated image are all implemented by transforming the pixel values of the pixels in the reflected image or the illuminated image through a preset algorithm.
下面结合图2,对上述实物图像生成方法做进一步地详细介绍。Next, in conjunction with Figure 2, the above-mentioned physical image generation method will be further introduced in detail.
如图2所示,为本申请实施例中提供的一种实物图像生成方法的步骤流程图。As shown in FIG. 2, it is a flowchart of steps of a method for generating a physical image provided in an embodiment of this application.
步骤201:对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像。Step 201: Perform intrinsic decomposition on the first physical image, and obtain a first reflection image and a first illumination image of the first physical image.
步骤201中,第一实物图像(I)与第一反射图像(R)、第一照射图像(S)三者的关系可以由公式表示出来:In step 201, the relationship among the first physical image (I), the first reflection image (R), and the first illumination image (S) can be expressed by a formula:
I(x,y)=S(x,y)*R(x,y)       (1)I(x,y)=S(x,y)*R(x,y) (1)
其中(x,y)为像素在图像中的像素坐标。根据该公式,数值求解出反射图(R)和照射图(S),示意图如图3所示,图3为本申请实施例中提供的一种第一实物图像生成方法对应本征分解的示意图。其中第一行是第一实物图像,中间行是第一反射图像,最后一行是第一照射图像。需要说明的是,由于只有第一实物图像I中像素坐标的像素值为已知量,而该像素坐标对应的第一照射图像的像素值和第一反射图像的像素值不止有一组解,因此在本征分解过程中,分解出来的第一照射图像的像素值和第一反射图像的像素值为随机选择的一组解。Among them (x, y) are the pixel coordinates of the pixel in the image. According to this formula, the reflection map (R) and the illumination map (S) are numerically solved. The schematic diagram is shown in FIG. 3. FIG. 3 is a schematic diagram of the first physical image generation method provided in an embodiment of the application corresponding to the intrinsic decomposition. . The first line is the first physical image, the middle line is the first reflection image, and the last line is the first illumination image. It should be noted that since only the pixel value of the pixel coordinate in the first physical image I is a known quantity, and the pixel value of the first illuminated image corresponding to the pixel coordinate and the pixel value of the first reflection image have more than one set of solutions, therefore In the intrinsic decomposition process, the pixel values of the first illuminated image and the pixel values of the first reflected image that are decomposed are a set of solutions selected at random.
步骤202:对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换。Step 202: Perform at least one transformation on at least one of the first reflected image and the first illuminated image.
步骤203:根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像。Step 203: Generate at least one second physical image according to the transformed at least one image, the first reflection image and the first illumination image.
步骤202中,包括三种情形:In step 202, there are three situations:
第一种情形,至少一次变换以M次变换举例,按照预设光照变换算法中M个第一像素值变换规则,对第一照射图像中的像素值做M次不同的变换,获取不同的M个变换后第二照射图像;其中,M次不同的变换中每次变换与M个变换后的第二照射图像中的一个第二照射图像唯一对应;M为正整数。In the first case, at least one transformation is taken as an example of M transformations. According to the M first pixel value transformation rules in the preset lighting transformation algorithm, the pixel values in the first illuminated image are subjected to M different transformations to obtain different M Two transformed second illuminated images; where each of the M different transformations uniquely corresponds to one of the M transformed second illuminated images; M is a positive integer.
第二种情形,按照预设反射变换算法中N个第二像素值变换规则,对所述第一反射图像中的像素值做N次不同的变换,获取不同的N个变换后的第二反射图像;其中,所述N次不同的变换中每次变换与所述N个变换后的第二反射图像中的一个第二反射图像唯一对应;N为正整数。In the second case, according to the N second pixel value transformation rules in the preset reflection transformation algorithm, N different transformations are performed on the pixel values in the first reflection image to obtain different N transformed second reflections Image; wherein, each of the N different transformations is uniquely corresponding to one of the N transformed second reflection images; N is a positive integer.
第三种情形,按照预设照射变换算法中P个第三像素值变换规则,对所述第一照射图像中的像素值做P次不同的变换,获取不同的P个变换后的第三照射图像;其中,所述P次不同的变换中每次变换与所述P个变换后的第三照射图像中的一个第三照射图像唯一对应;P为正整数。In the third case, in accordance with the P third pixel value transformation rules in the preset illumination transformation algorithm, P different transformations are performed on the pixel values in the first illumination image to obtain different P transformed third illuminations Image; wherein, each of the P different transformations is uniquely corresponding to one of the P transformed third illumination images; P is a positive integer.
另外,按照预设反射变换算法中Q个第四像素值变换规则,对所述第一反射图像中的像素值做Q次不同的变换,获取不同的Q个变换后的第三反射图像;其中,所述Q次不同的变换中每次变换与所述Q个变换后的第三照射图像中的一个第三照射图像唯一对应;Q为正整数。In addition, according to the Q fourth pixel value transformation rules in the preset reflection transformation algorithm, Q different transformations are performed on the pixel values in the first reflection image to obtain Q different transformed third reflection images; wherein Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer.
在上述三种情形中,以第一种情形举例,该情形下预设照射变换算法封装在一个图像处理软件,如openCV。图像处理软件在调用光照条件变换算法时,又有多种光照条件变换对应的第一像素值变换规则,即一种光照条件对应一个第一像素值变换规则。按照一个第一像素值变换规则对第一照射图像的像素值进行变换,即可得到对应光照条件下变换后的照射图像。第二种情形和第三种情形,也是根据光照条件或纹理预设了像素值转换规则,通过改变像素值获取到变换了光照条件或纹理的反射图像和照射图像,不再赘述。In the above three cases, take the first case as an example, in which the preset illumination transformation algorithm is encapsulated in an image processing software, such as openCV. When the image processing software calls the lighting condition transformation algorithm, there are multiple first pixel value transformation rules corresponding to multiple lighting condition transformations, that is, one lighting condition corresponds to one first pixel value transformation rule. The pixel value of the first illumination image is transformed according to a first pixel value transformation rule to obtain the transformed illumination image under corresponding lighting conditions. In the second case and the third case, the pixel value conversion rules are also preset according to the lighting conditions or textures. By changing the pixel values, the reflected images and illuminated images that have changed the lighting conditions or textures are obtained, which will not be repeated.
步骤203中,分别对应步骤202中的情形,包括以下三种情形:Step 203 corresponds to the situation in step 202, including the following three situations:
第一种情形,进行了步骤202中第一种情形之后,根据所述第一反射图像和所述M个变换后的第二照射图像,生成与所述第一实物图像不同的M个 第二实物图像。In the first case, after the first case in step 202 is performed, according to the first reflected image and the M transformed second illumination images, M second images that are different from the first physical image are generated. Physical image.
第二种情形,进行了步骤202中第二种情形之后,根据所述第一照射图像和所述N个变换后的第二反射图像,生成与所述第一实物图像不同的N个第二实物图像。In the second case, after the second case in step 202 is performed, according to the first illumination image and the N transformed second reflection images, N second images different from the first physical image are generated. Physical image.
第三种情形,进行了步骤202中第三种情形之后,根据所述P个变换后的第三照射图像和所述Q个变换后的第三反射图像,生成与所述第一实物图像不同P*Q个第二实物图像。In the third case, after the third case in step 202 is performed, according to the P transformed third illumination images and the Q transformed third reflection images, generate images that are different from the first physical image P*Q second physical image.
综上所述,步骤202~步骤203生成实物图像共有如下三种情形,用公式表示如下:To sum up, there are three situations in which the physical image generated in step 202 to step 203 is as follows, which are expressed by the formula as follows:
第一种情形,保持本征分解阶段得到的第一反射图像(R)不变,对第一照射图像(S)进行不同的修改,得到M次不同的第二照射图像(AS (i)),然后利用公式(1)计算生成的实物图像(AI (i)):AI (i)(x,y)=AS (i)(x,y)*AR(x,y),i=1,…,M(2)该情形下,通过修改第一照射图像的光照条件,生成了实物图像集A=[AI (1),AI (2),…,AI (M)]。 In the first case, the first reflection image (R) obtained in the intrinsic decomposition stage is kept unchanged, and the first illumination image (S) is modified differently to obtain M different second illumination images (AS (i) ) , And then use the formula (1) to calculate the generated physical image (AI (i) ): AI (i) (x,y)=AS (i) (x,y)*AR(x,y),i=1, …, M(2) In this case, by modifying the lighting conditions of the first illuminated image, a physical image set A=[AI (1) ,AI (2) ,...,AI (M) ] is generated.
第二种情形,保持本征分解阶段得到的第一照射图像(S)不变,对第一反射图像(R)进行N次不同的修改,得到不同的反射图像(BR j),然后利用公式(1)计算生成的图片(BI j):BI j(x,y)=BS(x,y)*BR j(x,y),j=1,…,N;(3)该情形下,通过修改第一反射图像的纹理,生成了实物图像集B=[BI 1,BI 2,…,BI N]。 In the second case, keeping the first illumination image (S) obtained in the intrinsic decomposition stage unchanged, make N different modifications to the first reflection image (R) to obtain different reflection images (BR j ), and then use the formula (1) Calculate the generated picture (BI j ): BI j (x,y)=BS(x,y)*BR j (x,y),j=1,...,N; (3) In this case, By modifying the texture of the first reflection image, a physical image set B=[BI 1 ,BI 2 ,...,BI N ] is generated.
第三种情形,对第一反射图像(R)进行Q次不同的修改,得到不同的第三反射图像(CR j),对每个第三反射图像(CR j)保持不变,对第一照射图像(S)进行P次不同的修改,得到不同的第三照射图(CS j),然后利用公式(1)计算生成的图片(CI j): In the third case, the first reflection image (R) is modified Q times differently to obtain a different third reflection image (CR j ), and each third reflection image (CR j ) remains unchanged. The irradiation image (S) is modified P times differently to obtain a different third irradiation image (CS j ), and then the generated image (CI j ) is calculated using formula (1):
Figure PCTCN2020073056-appb-000001
Figure PCTCN2020073056-appb-000001
得到生成数据集
Figure PCTCN2020073056-appb-000002
Get generated data set
Figure PCTCN2020073056-appb-000002
步骤203之后,另一种可选的实施方式为,将所述至少一个第二实物图 像作为训练数据,输入至图像识别模型;根据所述训练数据中每一张第二实物图像,与该第二实物图像输入至所述图像识别模型后的输出结果,更新所述图像识别模型的参数。通过生成的第二实物图像,大幅增加了训练数据量,可使得图像识别模型更加精确。After step 203, another optional implementation manner is to use the at least one second physical image as training data and input it to the image recognition model; according to each second physical image in the training data, it is related to the first Second, the output result after the physical image is input to the image recognition model, and the parameters of the image recognition model are updated. The generated second physical image greatly increases the amount of training data, which can make the image recognition model more accurate.
如图4所示,为本申请实施例二提供的一种实物图像生成方法的步骤流程图,本申请实施例二为一种基于本征分解的多光照人脸图像生成方法。光照变化是影响人脸识别性能的最关键因素,对该问题的解决程度关系着人脸识别实用化进程的成败。为了提高人脸识别模型对于光照的鲁棒性,一个最直接的办法是在训练数据中加入不同光照条件下的人脸图像,具体步骤如下:As shown in FIG. 4, this is a flow chart of the steps of a method for generating a physical image provided in the second embodiment of the present application. The second embodiment of the present application is a method for generating a multi-illumination face image based on intrinsic decomposition. Illumination changes are the most critical factor that affects the performance of face recognition. The degree of solution to this problem is related to the success or failure of the practical process of face recognition. In order to improve the robustness of the face recognition model to lighting, one of the most direct methods is to add face images under different lighting conditions to the training data. The specific steps are as follows:
步骤401之前,收集一个通过人工拍摄得到的实物图像集E,举例来说,E包含100000张人脸图像。Before step 401, collect a physical image set E obtained by manual shooting, for example, E contains 100,000 face images.
步骤401:对实物图像集E中每一个实物图像进行本征分解。Step 401: Perform intrinsic decomposition of each physical image in the physical image set E.
步骤401中,举例来说,k=1,2…100000,对实物图像集E中的每一个图片EI k,进行本征分解,得到对应的反射图像(ER k)、照射图像(ES k)。 In step 401, for example, k=1, 2...100000, perform intrinsic decomposition on each picture EI k in the physical image set E to obtain the corresponding reflection image (ER k ) and illumination image (ES k ) .
步骤402:保持反射图像(ER k)不变,按照预设的光照条件修改算法对照射图像(ES k)进行n次不同修改。其中,n为大于1的整数。 Step 402: Keep the reflected image (ER k ) unchanged, and perform n different modifications to the illuminated image (ES k ) according to a preset lighting condition modification algorithm. Wherein, n is an integer greater than 1.
步骤402中,每个照射图像ES k均得到一个变换后的照射图像集合
Figure PCTCN2020073056-appb-000003
In step 402, each illuminated image ES k obtains a transformed illuminated image set
Figure PCTCN2020073056-appb-000003
步骤403:根据变换后的照射图像集合和反射图像生成实物图像集合。Step 403: Generate a physical image set according to the transformed illuminated image set and the reflected image.
进而利用以下公式,生成实物图像集合
Figure PCTCN2020073056-appb-000004
Then use the following formula to generate a collection of physical images
Figure PCTCN2020073056-appb-000004
Figure PCTCN2020073056-appb-000005
Figure PCTCN2020073056-appb-000005
步骤404:确定数据集E中是否还有未进行步骤402和步骤403的实物图像。Step 404: Determine whether there are any physical images in the data set E for which steps 402 and 403 have not been performed.
若是,则转到步骤402;否则,将E中每张实物图像生成的实物图像集合,作为最终的生成训练数据集合E g。以实物图像中含有100000张图片为例,E g=[E 1,…,E 100000],共含有100万张图片;利用数据集[E,E g]进行实物识别模 型的训练,得到对光照条件更加鲁棒的实物识别模型。 If yes, go to step 402; otherwise, use the set of physical images generated from each physical image in E as the final generated training data set E g . Take the physical image containing 100,000 pictures as an example, E g =[E 1 ,…,E 100000 ], containing 1 million pictures in total; use the data set [E,E g ] to train the physical object recognition model to obtain the illumination Real object recognition model with more robust conditions.
图5为本申请实施例三提供的一种实物图像生成方法的步骤流程图,本申请实施例三为一种基于本征分解的图像分割训练数据生成方法。图像分割目的是将图像分成各具特征的区域并提取感兴趣目标的技术,这些特征可以是像素、颜色、纹理等,提取目标可以是单个或多个区域。具体步骤如下:FIG. 5 is a flow chart of the steps of a method for generating a physical image provided in Embodiment 3 of the present application. Embodiment 3 of the present application is a method for generating training data for image segmentation based on intrinsic decomposition. The purpose of image segmentation is to divide an image into regions with features and extract the target of interest. These features can be pixels, colors, textures, etc. The extraction target can be a single or multiple regions. Specific steps are as follows:
步骤501之前,收集一个通过人工拍摄得到的实物图像集F,举例来说,F包含1000张风景图像。Before step 501, collect a physical image set F obtained by manual shooting, for example, F contains 1000 landscape images.
步骤501:对实物图像集F中每一个实物图像进行本征分解。Step 501: Perform intrinsic decomposition on each physical image in the physical image set F.
步骤501中,举例来说,m=1,2…1000,对实物图像集F中的每一个图片FI m,进行本征分解,得到对应的反射图像(FR m)、照射图像(FS m)。 In step 501, for example, m=1, 2...1000, perform intrinsic decomposition on each picture FI m in the physical image set F to obtain the corresponding reflection image (FR m ) and illumination image (FS m ) .
步骤502:保持反射图像(FR m)不变,根据预设的光照条件修改算法对照射图像(FS m)进行t次不同修改。需要说明的是,预设的光照条件变换算法包含多个像素值变换规则,每个像素值变换规则都对应一张变换后的反射图像。 Step 502: Keep the reflected image (FR m ) unchanged, and perform t different modifications to the illuminated image (FS m ) according to the preset lighting condition modification algorithm. It should be noted that the preset lighting condition transformation algorithm includes multiple pixel value transformation rules, and each pixel value transformation rule corresponds to a transformed reflection image.
步骤502中,得到变换后的照射图像集
Figure PCTCN2020073056-appb-000006
In step 502, the transformed illuminated image set is obtained
Figure PCTCN2020073056-appb-000006
步骤503:根据变换后的照射图像集,生成实物图像集
Figure PCTCN2020073056-appb-000007
Step 503: Generate a physical image set according to the transformed irradiation image set
Figure PCTCN2020073056-appb-000007
步骤503利用了以下公式进行变换:Step 503 uses the following formula for transformation:
Figure PCTCN2020073056-appb-000008
Figure PCTCN2020073056-appb-000008
步骤504:保持照射图像(FS m)不变,根据预设的纹理修改算法对反射图像(FR m)进行r次不同修改。需要说明的是,预设的纹理变换算法包含多个像素值变换规则,每个像素值变换规则都对应一张变换后的反射图像。 Step 504: Keep the illuminated image (FS m ) unchanged, and perform r different modifications to the reflected image (FR m ) according to the preset texture modification algorithm. It should be noted that the preset texture transformation algorithm includes multiple pixel value transformation rules, and each pixel value transformation rule corresponds to a transformed reflection image.
步骤504中,得到变换后的反射图像集[FR m,1,…,FR m,r]。 In step 504, the transformed reflection image set [FR m,1 ,...,FR m,r ] is obtained.
步骤505:根据变换后的反射图像集,生成实物图像集F m′=[FI m,1,…,FI m,r]。 Step 505: Generate a physical image set F m ′=[FI m,1 ,...,FI m,r ] according to the transformed reflection image set.
步骤505中利用了以下公式进行变换:In step 505, the following formula is used for transformation:
FI m,j(x,y)=FS m(x,y)*FR m,j(x,y),j=1,…,r。 FI m,j (x,y)=FS m (x,y)*FR m,j (x,y), j=1,...,r.
步骤506:确定数据集F中是否还有未进行步骤502且未进行步骤504的实物图像。若是,则转到步骤502;否则,将E中每张实物图像生成的实物图像集合,作为最终的生成训练数据集合F h=[F 1,F 1′…,F t,F r′]。举例来说,当t=r=10时,F h中共含有2万张实物图像。利用数据集[F,F h]进行图像分割模型的训练,利用光照条件和颜色、材质条件更为丰富的数据集进行模型训练,会大幅提升其准确率。 Step 506: Determine whether there are any physical images in the data set F for which step 502 and step 504 are not performed. If yes, go to step 502; otherwise, use the set of physical images generated from each physical image in E as the final generated training data set F h =[F 1 , F 1 ′..., F t , F r ′]. For example, when t=r=10, F h contains a total of 20,000 physical images. Using the data set [F, F h ] to train the image segmentation model, and using the data set with richer lighting conditions, colors and material conditions for model training, will greatly improve its accuracy.
上述方法中,通过对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像,之后对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,因此可以获取到变换后的至少一个照射图像以及反射图像,再通过变换后的至少一个图像、所述第一反射图像和所述第一照射图像相互结合,从而可以通过最初的第一实物图像生成至少一个实物图像,以此类推,对人工采集的每一张实物图像都进行上述步骤,可大幅提升实物图像,弥补一部分场景下人工采集实物图像的缺失,达到对训练数据进行补充的效果。In the above method, by performing intrinsic decomposition of the first physical image, the first reflection image and the first illumination image of the first physical image are acquired, and then at least one of the first reflection image and the first illumination image is One image undergoes at least one transformation, so at least one illumination image and reflection image after transformation can be obtained, and then at least one image after transformation, the first reflection image and the first illumination image are combined with each other, so that the The initial first physical image generates at least one physical image, and so on, the above steps are performed on each physical image collected manually, which can greatly improve the physical image, make up for the lack of manual collection of physical images in some scenes, and achieve training The effect of data supplementation.
本申请实施例一、二和三中的一种根据少量人工采集的实物图片生成大量训练数据的方法,通过对人工采集的实物图片进行本征分解得到照射图和反射图,在对照射图和反射图按照光照条件或纹理的变化,修改照射图和反射图,从而生成包含更加丰富的光照和纹理种类的实物图片,扩展了图像识别模型的训练数据,使得图像识别模型对不同场景下的实物识别更加准确、更加鲁棒。In the first, second and third embodiments of this application, a method of generating a large amount of training data based on a small number of manually-collected physical pictures, by intrinsically decomposing the manually-collected physical pictures to obtain the illumination map and the reflection map, According to the changes in lighting conditions or textures, the reflection map is modified to modify the illumination map and the reflection map to generate a more abundant type of lighting and texture. The training data of the image recognition model is expanded, so that the image recognition model can be used for real objects in different scenes. The recognition is more accurate and robust.
本申请实施例大幅降低了人力投入;通过上述方式,可以生成大量实物图像作为训练数据,从而大幅降低数据积累成本,并在较短时间收集大量训练数据。另外,可以根据具体应用场景,定制化地生成大量训练数据;此方法可以在原有的实物图像集的基础上,生成包含更加丰富的光照和纹理种类的训练数据集;生成的数据可以训练出对光照影响更为鲁棒、对不同场景更加通用的模型,可以提高计算机视觉领域如人脸或物体的检测与识别、图像分割的表现。The embodiment of the present application greatly reduces the manpower input; through the above method, a large number of physical images can be generated as training data, thereby greatly reducing the cost of data accumulation, and collecting a large amount of training data in a shorter time. In addition, a large amount of training data can be customized according to specific application scenarios; this method can generate a training data set containing more abundant lighting and texture types on the basis of the original physical image set; the generated data can train A model that is more robust to lighting effects and more general to different scenes can improve the performance of computer vision fields such as face or object detection and recognition, and image segmentation.
如图6所示,为一种应用于本申请实施例一、二和三的实物图像生成装置的结构示意图。As shown in FIG. 6, it is a schematic structural diagram of a physical image generating device applied to Embodiments 1, 2 and 3 of this application.
本申请实施例提供一种实物图像生成装置,包括:The embodiment of the present application provides a physical image generation device, including:
获取模块601,用于对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像;处理模块602,用于对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换;以及用于根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像。The acquisition module 601 is used to perform intrinsic decomposition of the first physical image to acquire the first reflection image and the first illumination image of the first physical image; the processing module 602 is used to perform the intrinsic decomposition of the first physical image and the At least one image in the first illumination image is transformed at least once; and for generating at least one second physical image based on the transformed at least one image, the first reflection image, and the first illumination image.
可选的,所述处理模块602,具体用于:按照预设照射变换算法中M个第一像素值变换规则,对所述第一照射图像中的像素值做M次不同的变换,获取不同的M个变换后第二照射图像;其中,所述M次不同的变换中每次变换与所述M个变换后的第二照射图像中的一个第二照射图像唯一对应;M为正整数;根据所述第一反射图像和所述M个变换后的第二照射图像,生成与所述第一实物图像不同的M个第二实物图像。Optionally, the processing module 602 is specifically configured to: perform M different transformations on the pixel values in the first illuminated image according to the M first pixel value transformation rules in the preset illumination transformation algorithm to obtain different M transformed second illuminated images of M; wherein, each of the M different transformations uniquely corresponds to one of the M transformed second illuminated images; M is a positive integer; According to the first reflected image and the M transformed second illumination images, M second physical images that are different from the first physical image are generated.
可选的,所述处理模块602,具体用于:按照预设反射变换算法中N个第二像素值变换规则,对所述第一反射图像中的像素值做N次不同的变换,获取不同的N个变换后的第二反射图像;其中,所述N次不同的变换中每次变换与所述N个变换后的第二反射图像中的一个第二反射图像唯一对应;N为正整数;根据所述第一照射图像和所述N个变换后的第二反射图像,生成与所述第一实物图像不同的N个第二实物图像。Optionally, the processing module 602 is specifically configured to: perform N different transformations on the pixel values in the first reflection image according to the N second pixel value transformation rules in the preset reflection transformation algorithm to obtain different N transformed second reflection images; wherein, each of the N different transformations uniquely corresponds to one of the N transformed second reflection images; N is a positive integer ; According to the first illumination image and the N transformed second reflection images, N second physical images that are different from the first physical image are generated.
可选的,所述处理模块602,具体用于:按照预设照射变换算法中P个第三像素值变换规则,对所述第一照射图像中的像素值做P次不同的变换,获取不同的P个变换后的第三照射图像;其中,所述P次不同的变换中每次变换与所述P个变换后的第三照射图像中的一个第三照射图像唯一对应;P为正整数;按照预设反射变换算法中Q个第四像素值变换规则,对所述第一反射图像中的像素值做Q次不同的变换,获取不同的Q个变换后的第三反射图像; 其中,所述Q次不同的变换中每次变换与所述Q个变换后的第三照射图像中的一个第三照射图像唯一对应;Q为正整数;根据所述P个变换后的第三照射图像和所述Q个变换后的第三反射图像,生成与所述第一实物图像不同P*Q个第二实物图像。Optionally, the processing module 602 is specifically configured to: perform P different transformations on the pixel values in the first illuminated image according to the P third pixel value transformation rules in the preset illumination transformation algorithm to obtain different P transformed third irradiated images; wherein, each of the P different transformations uniquely corresponds to one of the P transformed third irradiated images; P is a positive integer According to the Q fourth pixel value transformation rules in the preset reflection transformation algorithm, the pixel values in the first reflection image are transformed Q times to obtain different Q transformed third reflection images; wherein, Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer; according to the P transformed third illumination images And the Q transformed third reflection images to generate P*Q second physical images different from the first physical image.
可选的,所述处理模块602,还用于:将所述至少一个第二实物图像作为训练数据,输入至图像识别模型;根据所述训练数据中每一张第二实物图像,与该第二实物图像输入至所述图像识别模型后的输出结果,更新所述图像识别模型的参数。Optionally, the processing module 602 is further configured to: use the at least one second physical image as training data and input it into the image recognition model; according to each second physical image in the training data, it is related to the first physical image. Second, the output result after the physical image is input to the image recognition model, and the parameters of the image recognition model are updated.
基于相同的技术构思,本申请实施例提供一种实物图像生成设备。至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述实施例中的实物图像生成方法。Based on the same technical concept, the embodiment of the present application provides a physical image generating device. At least one processor; and, a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable The at least one processor can execute the physical image generation method in the foregoing embodiment.
以一个处理器为例,图7为本申请实施例提供的实物图像生成设备的结构,该实物图像生成设备700包括:收发器701、处理器702、存储器703和总线系统704;Taking a processor as an example, FIG. 7 is a structure of a physical image generating device provided by an embodiment of the application. The physical image generating device 700 includes a transceiver 701, a processor 702, a memory 703, and a bus system 704;
其中,存储器703,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器703可能为随机存取存储器(random access memory,简称RAM),也可能为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以根据需要,设置为多个。存储器703也可以是处理器702中的存储器。Among them, the memory 703 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 703 may be a random access memory (random access memory, RAM for short), or a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure. Of course, the memory can also be set to multiple as required. The memory 703 may also be a memory in the processor 702.
存储器703存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 703 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
操作指令:包括各种操作指令,用于实现各种操作。Operating instructions: including various operating instructions, used to implement various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: including various system programs, used to implement various basic services and process hardware-based tasks.
上述本申请实施例实物图像生成方法可以应用于处理器702中,或者说 由处理器702实现。处理器702可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述实物图像生成方法的各步骤可以通过处理器702中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器702可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器703,处理器702读取存储器703中的信息,结合其硬件执行以下步骤:The foregoing method for generating an object image in the embodiment of the present application may be applied to the processor 702, or implemented by the processor 702. The processor 702 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing physical image generation method can be completed by hardware integrated logic circuits in the processor 702 or instructions in the form of software. The above-mentioned processor 702 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware Components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers. The storage medium is located in the memory 703, and the processor 702 reads the information in the memory 703, and performs the following steps in combination with its hardware:
所述收发器701,用于对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像;The transceiver 701 is configured to perform intrinsic decomposition of the first physical image to obtain a first reflection image and a first illumination image of the first physical image;
所述处理器702,用于对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换;以及用于根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像。The processor 702 is configured to perform at least one transformation on at least one of the first reflected image and the first illuminated image; and configured to perform at least one transformation based on the transformed at least one image, the first reflected image, and the The first irradiated image generates at least one second physical image.
优选地,所述处理器702具体用于:Preferably, the processor 702 is specifically configured to:
按照预设照射变换算法中M个第一像素值变换规则,对所述第一照射图像中的像素值做M次不同的变换,获取不同的M个变换后第二照射图像;其中,所述M次不同的变换中每次变换与所述M个变换后的第二照射图像中的一个第二照射图像唯一对应;M为正整数;根据所述第一反射图像和所述M个变换后的第二照射图像,生成与所述第一实物图像不同的M个第二实物图像。According to the M first pixel value transformation rules in the preset illumination transformation algorithm, perform M different transformations on the pixel values in the first illumination image to obtain different M transformed second illumination images; wherein, the Each of the M different transformations uniquely corresponds to one of the M transformed second illumination images; M is a positive integer; according to the first reflection image and the M transformations To generate M second physical images that are different from the first physical image.
优选地,所述处理器702具体用于:Preferably, the processor 702 is specifically configured to:
按照预设反射变换算法中N个第二像素值变换规则,对所述第一反射图像中的像素值做N次不同的变换,获取不同的N个变换后的第二反射图像; 其中,所述N次不同的变换中每次变换与所述N个变换后的第二反射图像中的一个第二反射图像唯一对应;N为正整数;根据所述第一照射图像和所述N个变换后的第二反射图像,生成与所述第一实物图像不同的N个第二实物图像。According to the N second pixel value transformation rules in the preset reflection transformation algorithm, perform N different transformations on the pixel values in the first reflection image to obtain different N transformed second reflection images; Each of the N different transformations uniquely corresponds to a second reflection image among the N transformed second reflection images; N is a positive integer; according to the first illumination image and the N transformations After the second reflection image, N second physical images different from the first physical image are generated.
优选地,所述处理器702具体用于:Preferably, the processor 702 is specifically configured to:
按照预设照射变换算法中P个第三像素值变换规则,对所述第一照射图像中的像素值做P次不同的变换,获取不同的P个变换后的第三照射图像;其中,所述P次不同的变换中每次变换与所述P个变换后的第三照射图像中的一个第三照射图像唯一对应;P为正整数;按照预设反射变换算法中Q个第四像素值变换规则,对所述第一反射图像中的像素值做Q次不同的变换,获取不同的Q个变换后的第三反射图像;其中,所述Q次不同的变换中每次变换与所述Q个变换后的第三照射图像中的一个第三照射图像唯一对应;Q为正整数;根据所述P个变换后的第三照射图像和所述Q个变换后的第三反射图像,生成与所述第一实物图像不同P*Q个第二实物图像。According to the P third pixel value transformation rules in the preset illumination transformation algorithm, the pixel values in the first illumination image are transformed P different times to obtain different P transformed third illumination images; Each of the P different transformations uniquely corresponds to one of the P transformed third illumination images; P is a positive integer; according to the Q fourth pixel values in the preset reflection transformation algorithm The transformation rule is to perform Q different transformations on the pixel values in the first reflection image to obtain different Q transformed third reflection images; wherein, each of the Q different transformations is different from the One of the Q transformed third illumination images uniquely corresponds to one third illumination image; Q is a positive integer; according to the P transformed third illumination images and the Q transformed third reflection images, generate P*Q second physical images different from the first physical image.
优选地,所述处理器702还用于:Preferably, the processor 702 is further configured to:
将所述至少一个第二实物图像作为训练数据,输入至图像识别模型;根据所述训练数据中每一张第二实物图像,与该第二实物图像输入至所述图像识别模型后的输出结果,更新所述图像识别模型的参数。Use the at least one second physical image as training data and input it to the image recognition model; according to each second physical image in the training data and the output result of the second physical image input to the image recognition model To update the parameters of the image recognition model.
本申请实施例的实物图像生成设备以多种形式存在,包括但不限于:The physical image generation equipment in the embodiments of this application exists in various forms, including but not limited to:
(1)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(1) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has calculation and processing functions, and generally also has mobile Internet features. Such terminals include: PDA, MID and UMPC devices, such as iPad.
(2)其他具有实物图像生成功能的电子装置。(2) Other electronic devices with physical image generation function.
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U 盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be implemented by instructing relevant hardware through a program. The program is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer). , A chip, etc.) or a processor (processor) executes all or part of the steps of the method in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
另外,本申请还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述任一项所述的实物图像生成方法。In addition, the present application also provides a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute any of the above-mentioned physical objects. Image generation method.
另外,本申请还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项所述的实物图像生成方法。In addition, the present application also provides a computer program product, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Enabling the computer to execute any of the above-mentioned physical image generation methods.
最后应说明的是:本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、光学存储器等)上实施的计算机程序产品的形式。Finally, it should be noted that those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, equipment (systems), and computer program products according to this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the scope of the application. In this way, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application also intends to include these modifications and variations.

Claims (13)

  1. 一种实物图像生成方法,其特征在于,包括:A method for generating a physical image, which is characterized in that it includes:
    对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像;Performing intrinsic decomposition on the first physical image to obtain a first reflection image and a first illuminated image of the first physical image;
    对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换;Performing at least one transformation on at least one of the first reflected image and the first illuminated image;
    根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像。According to the transformed at least one image, the first reflection image and the first illumination image, at least one second physical image is generated.
  2. 如权利要求1所述的方法,其特征在于,所述对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,包括:The method according to claim 1, wherein said transforming at least one of said first reflected image and said first illuminated image at least once comprises:
    按照预设照射变换算法中M个第一像素值变换规则,对所述第一照射图像中的像素值做M次不同的变换,获取不同的M个变换后第二照射图像;其中,所述M次不同的变换中每次变换与所述M个变换后的第二照射图像中的一个第二照射图像唯一对应;M为正整数;According to the M first pixel value transformation rules in the preset illumination transformation algorithm, perform M different transformations on the pixel values in the first illumination image to obtain different M transformed second illumination images; wherein, the Each of the M different transformations uniquely corresponds to one of the M transformed second illumination images; M is a positive integer;
    所述根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像,包括:The generating at least one second physical image according to the transformed at least one image, the first reflection image, and the first illumination image includes:
    根据所述第一反射图像和所述M个变换后的第二照射图像,生成与所述第一实物图像不同的M个第二实物图像。According to the first reflected image and the M transformed second illumination images, M second physical images that are different from the first physical image are generated.
  3. 如权利要求1所述的方法,其特征在于,所述对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,包括:The method according to claim 1, wherein said transforming at least one of said first reflected image and said first illuminated image at least once comprises:
    按照预设反射变换算法中N个第二像素值变换规则,对所述第一反射图像中的像素值做N次不同的变换,获取不同的N个变换后的第二反射图像;其中,所述N次不同的变换中每次变换与所述N个变换后的第二反射图像中的一个第二反射图像唯一对应;N为正整数;According to the N second pixel value transformation rules in the preset reflection transformation algorithm, the pixel values in the first reflection image are transformed N times to obtain different N transformed second reflection images; Each of the N times of different transformations uniquely corresponds to one of the N transformed second reflection images; N is a positive integer;
    所述根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像,包括:The generating at least one second physical image according to the transformed at least one image, the first reflection image, and the first illumination image includes:
    根据所述第一照射图像和所述N个变换后的第二反射图像,生成与所述第一实物图像不同的N个第二实物图像。According to the first illuminated image and the N transformed second reflection images, N second physical images that are different from the first physical image are generated.
  4. 如权利要求1所述的方法,其特征在于,所述对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换,包括:The method according to claim 1, wherein said transforming at least one of said first reflected image and said first illuminated image at least once comprises:
    按照预设照射变换算法中P个第三像素值变换规则,对所述第一照射图像中的像素值做P次不同的变换,获取不同的P个变换后的第三照射图像;其中,所述P次不同的变换中每次变换与所述P个变换后的第三照射图像中的一个第三照射图像唯一对应;P为正整数;According to the P third pixel value transformation rules in the preset illumination transformation algorithm, the pixel values in the first illumination image are transformed P different times to obtain different P transformed third illumination images; Each of the P different transformations uniquely corresponds to one of the P transformed third illumination images; P is a positive integer;
    按照预设反射变换算法中Q个第四像素值变换规则,对所述第一反射图像中的像素值做Q次不同的变换,获取不同的Q个变换后的第三反射图像;其中,所述Q次不同的变换中每次变换与所述Q个变换后的第三照射图像中的一个第三照射图像唯一对应;Q为正整数;According to the Q fourth pixel value transformation rules in the preset reflection transformation algorithm, the pixel values in the first reflection image are transformed Q times to obtain different Q transformed third reflection images; where Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer;
    所述根据变换后的至少一个图像、所述第一反射图像和所述第一照射图像,生成至少一个第二实物图像,包括:The generating at least one second physical image according to the transformed at least one image, the first reflection image, and the first illumination image includes:
    根据所述P个变换后的第三照射图像和所述Q个变换后的第三反射图像,生成与所述第一实物图像不同的P*Q个第二实物图像。According to the P transformed third illumination images and the Q transformed third reflection images, P*Q second physical images that are different from the first physical image are generated.
  5. 如权利要求1-4任一所述的方法,其特征在于,所述生成至少一个第二实物图像之后,还包括:The method according to any one of claims 1 to 4, wherein after said generating at least one second physical image, the method further comprises:
    将所述至少一个第二实物图像作为训练数据,输入至图像识别模型;Input the at least one second physical image as training data to the image recognition model;
    根据所述训练数据中每一张第二实物图像,与该第二实物图像输入至所述图像识别模型后的输出结果,更新所述图像识别模型的参数。According to each second physical image in the training data and the output result after the second physical image is input to the image recognition model, the parameters of the image recognition model are updated.
  6. 一种实物图像生成装置,其特征在于,包括:A physical image generating device, characterized in that it comprises:
    获取模块,用于对第一实物图像进行本征分解,获取所述第一实物图像的第一反射图像和第一照射图像;An acquisition module, configured to perform intrinsic decomposition of the first physical image, and acquire the first reflection image and the first illumination image of the first physical image;
    处理模块,用于对所述第一反射图像和所述第一照射图像中至少一个图像进行至少一次变换;A processing module, configured to perform at least one transformation on at least one of the first reflected image and the first illuminated image;
    以及用于根据变换后的至少一个图像、所述第一反射图像和所述第一照 射图像,生成至少一个第二实物图像。And it is used to generate at least one second physical image according to the transformed at least one image, the first reflection image and the first illumination image.
  7. 如权利要求6所述的装置,其特征在于,所述处理模块,具体用于:The device according to claim 6, wherein the processing module is specifically configured to:
    按照预设照射变换算法中M个第一像素值变换规则,对所述第一照射图像中的像素值做M次不同的变换,获取不同的M个变换后第二照射图像;其中,所述M次不同的变换中每次变换与所述M个变换后的第二照射图像中的一个第二照射图像唯一对应;M为正整数;According to the M first pixel value transformation rules in the preset illumination transformation algorithm, perform M different transformations on the pixel values in the first illumination image to obtain different M transformed second illumination images; wherein, the Each of the M different transformations uniquely corresponds to one of the M transformed second illumination images; M is a positive integer;
    根据所述第一反射图像和所述M个变换后的第二照射图像,生成与所述第一实物图像不同的M个第二实物图像。According to the first reflected image and the M transformed second illumination images, M second physical images that are different from the first physical image are generated.
  8. 如权利要求6所述的装置,其特征在于,所述处理模块,具体用于:The device according to claim 6, wherein the processing module is specifically configured to:
    按照预设反射变换算法中N个第二像素值变换规则,对所述第一反射图像中的像素值做N次不同的变换,获取不同的N个变换后的第二反射图像;其中,所述N次不同的变换中每次变换与所述N个变换后的第二反射图像中的一个第二反射图像唯一对应;N为正整数;According to the N second pixel value transformation rules in the preset reflection transformation algorithm, the pixel values in the first reflection image are transformed N times to obtain different N transformed second reflection images; Each of the N times of different transformations uniquely corresponds to one of the N transformed second reflection images; N is a positive integer;
    根据所述第一照射图像和所述N个变换后的第二反射图像,生成与所述第一实物图像不同的N个第二实物图像。According to the first illuminated image and the N transformed second reflection images, N second physical images that are different from the first physical image are generated.
  9. 如权利要求6所述的装置,其特征在于,所述处理模块,具体用于:The device according to claim 6, wherein the processing module is specifically configured to:
    按照预设照射变换算法中P个第三像素值变换规则,对所述第一照射图像中的像素值做P次不同的变换,获取不同的P个变换后的第三照射图像;其中,所述P次不同的变换中每次变换与所述P个变换后的第三照射图像中的一个第三照射图像唯一对应;P为正整数;According to the P third pixel value transformation rules in the preset illumination transformation algorithm, the pixel values in the first illumination image are transformed P different times to obtain different P transformed third illumination images; Each of the P different transformations uniquely corresponds to one of the P transformed third illumination images; P is a positive integer;
    按照预设反射变换算法中Q个第四像素值变换规则,对所述第一反射图像中的像素值做Q次不同的变换,获取不同的Q个变换后的第三反射图像;其中,所述Q次不同的变换中每次变换与所述Q个变换后的第三照射图像中的一个第三照射图像唯一对应;Q为正整数;According to the Q fourth pixel value transformation rules in the preset reflection transformation algorithm, the pixel values in the first reflection image are transformed Q times to obtain different Q transformed third reflection images; where Each of the Q different transformations uniquely corresponds to one of the Q transformed third illumination images; Q is a positive integer;
    根据所述P个变换后的第三照射图像和所述Q个变换后的第三反射图像,生成与所述第一实物图像不同P*Q个第二实物图像。According to the P transformed third illumination images and the Q transformed third reflection images, P*Q second physical images different from the first physical image are generated.
  10. 如权利要求6-9任一所述的装置,其特征在于,所述处理模块,还用 于:The device according to any one of claims 6-9, wherein the processing module is also used for:
    将所述至少一个第二实物图像作为训练数据,输入至图像识别模型;Input the at least one second physical image as training data to the image recognition model;
    根据所述训练数据中每一张第二实物图像,与该第二实物图像输入至所述图像识别模型后的输出结果,更新所述图像识别模型的参数。According to each second physical image in the training data and the output result after the second physical image is input to the image recognition model, the parameters of the image recognition model are updated.
  11. 一种实物图像生成设备,其特征在于,包括:A physical image generating device, characterized in that it comprises:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5任一所述实物图像生成方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the physical image of any one of claims 1-5 Generation method.
  12. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1-5任一所述实物图像生成方法。A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the physical object described in any one of claims 1-5 Image generation method.
  13. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-5任一所述实物图像生成方法。A computer program product, characterized in that, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, The computer executes the physical image generation method of any one of claims 1-5.
PCT/CN2020/073056 2019-03-25 2020-01-19 Physical object image generation method and apparatus, and device WO2020192262A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910227393.2A CN109961488A (en) 2019-03-25 2019-03-25 A kind of material picture generation method and device
CN201910227393.2 2019-03-25

Publications (1)

Publication Number Publication Date
WO2020192262A1 true WO2020192262A1 (en) 2020-10-01

Family

ID=67024923

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073056 WO2020192262A1 (en) 2019-03-25 2020-01-19 Physical object image generation method and apparatus, and device

Country Status (3)

Country Link
CN (1) CN109961488A (en)
TW (1) TWI801717B (en)
WO (1) WO2020192262A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109961488A (en) * 2019-03-25 2019-07-02 中国银联股份有限公司 A kind of material picture generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247468A (en) * 2007-02-15 2008-08-20 北京思比科微电子技术有限公司 Method and apparatus for regulating image brightness
CN108388833A (en) * 2018-01-15 2018-08-10 阿里巴巴集团控股有限公司 A kind of image-recognizing method, device and equipment
CN108460414A (en) * 2018-02-27 2018-08-28 北京三快在线科技有限公司 Generation method, device and the electronic equipment of training sample image
CN109961488A (en) * 2019-03-25 2019-07-02 中国银联股份有限公司 A kind of material picture generation method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8655102B2 (en) * 2011-06-10 2014-02-18 Tandent Vision Science, Inc. Method and system for identifying tokens in an image
CN103281513B (en) * 2013-05-14 2016-03-30 西安理工大学 Pedestrian recognition method in the supervisory control system of a kind of zero lap territory
CN104700109B (en) * 2015-03-24 2018-04-10 清华大学 The decomposition method and device of EO-1 hyperion intrinsic image
CN107103589B (en) * 2017-03-21 2019-09-06 深圳市未来媒体技术研究院 A kind of highlight area restorative procedure based on light field image
US10939742B2 (en) * 2017-07-13 2021-03-09 Shiseido Company, Limited Systems and methods for virtual facial makeup removal and simulation, fast facial detection and landmark tracking, reduction in input video lag and shaking, and a method for recommending makeup
TWI654584B (en) * 2018-03-02 2019-03-21 由田新技股份有限公司 Apparatus and method for enhancing optical characteristics of workpieces, deep learning method for enhancing optical characteristics of workpieces, and non-transitory computer readable recording medium
CN108416805B (en) * 2018-03-12 2021-09-24 中山大学 Intrinsic image decomposition method and device based on deep learning

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247468A (en) * 2007-02-15 2008-08-20 北京思比科微电子技术有限公司 Method and apparatus for regulating image brightness
CN108388833A (en) * 2018-01-15 2018-08-10 阿里巴巴集团控股有限公司 A kind of image-recognizing method, device and equipment
CN108460414A (en) * 2018-02-27 2018-08-28 北京三快在线科技有限公司 Generation method, device and the electronic equipment of training sample image
CN109961488A (en) * 2019-03-25 2019-07-02 中国银联股份有限公司 A kind of material picture generation method and device

Also Published As

Publication number Publication date
CN109961488A (en) 2019-07-02
TWI801717B (en) 2023-05-11
TW202105320A (en) 2021-02-01

Similar Documents

Publication Publication Date Title
US10824910B2 (en) Image processing method, non-transitory computer readable storage medium and image processing system
CN109191424B (en) Breast mass detection and classification system and computer-readable storage medium
CN109871845B (en) Certificate image extraction method and terminal equipment
CN111539247B (en) Hyper-spectrum face recognition method and device, electronic equipment and storage medium thereof
CN111340077B (en) Attention mechanism-based disparity map acquisition method and device
US11935213B2 (en) Laparoscopic image smoke removal method based on generative adversarial network
CN109977834B (en) Method and device for segmenting human hand and interactive object from depth image
CN111860496A (en) License plate recognition method, device, equipment and computer readable storage medium
CN112348885A (en) Visual feature library construction method, visual positioning method, device and storage medium
CN110826581A (en) Animal number identification method, device, medium and electronic equipment
CN114758249A (en) Target object monitoring method, device, equipment and medium based on field night environment
WO2020192262A1 (en) Physical object image generation method and apparatus, and device
CN111242066A (en) Large-size image target detection method and device and computer readable storage medium
CN116229406B (en) Lane line detection method, system, electronic equipment and storage medium
CN114626118A (en) Building indoor model generation method and device
CN113191189A (en) Face living body detection method, terminal device and computer readable storage medium
CN111754419A (en) Image processing method, training method, device, equipment and computer readable storage medium
CN115019297B (en) Real-time license plate detection and identification method and device based on color augmentation
CN113012030A (en) Image splicing method, device and equipment
CN115630660A (en) Barcode positioning method and device based on convolutional neural network
CN113239867B (en) Mask area self-adaptive enhancement-based illumination change face recognition method
CN112541436B (en) Concentration analysis method and device, electronic equipment and computer storage medium
KR102256409B1 (en) Method of generating a learning data set and computer apparatus for generating a learning data set
CN112581001A (en) Device evaluation method and device, electronic device and readable storage medium
CN111898525A (en) Smoke recognition model construction method, smoke detection method and smoke detection device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20779366

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20779366

Country of ref document: EP

Kind code of ref document: A1