TWI749593B - Method, electronic device and computer readable storage medium for removing reflection in image - Google Patents

Method, electronic device and computer readable storage medium for removing reflection in image Download PDF

Info

Publication number
TWI749593B
TWI749593B TW109120319A TW109120319A TWI749593B TW I749593 B TWI749593 B TW I749593B TW 109120319 A TW109120319 A TW 109120319A TW 109120319 A TW109120319 A TW 109120319A TW I749593 B TWI749593 B TW I749593B
Authority
TW
Taiwan
Prior art keywords
image
processed
polarization
training
training image
Prior art date
Application number
TW109120319A
Other languages
Chinese (zh)
Other versions
TW202135005A (en
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 TW202135005A publication Critical patent/TW202135005A/en
Application granted granted Critical
Publication of TWI749593B publication Critical patent/TWI749593B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • 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/20081Training; Learning
    • 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/20084Artificial neural networks [ANN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

本發明涉及一種去除圖像中的反光的方法、電子設備和電腦可讀儲存媒體。所述方法包括:獲取待處理圖像;獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,其中,所述待處理圖像對應的多個偏振圖是經過不同角度的偏振片形成的;根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖;根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像。The invention relates to a method for removing light reflection in an image, an electronic device and a computer-readable storage medium. The method includes: acquiring a to-be-processed image; acquiring multiple polarization maps corresponding to the to-be-processed image, and polarization information corresponding to the to-be-processed image, wherein the multiple polarizations corresponding to the to-be-processed image The figure is formed by polarizing plates with different angles; according to the multiple polarization maps corresponding to the image to be processed and the polarization information corresponding to the image to be processed, the reflection prediction map corresponding to the image to be processed is determined; according to The multiple polarization maps corresponding to the image to be processed and the light reflection prediction map corresponding to the image to be processed determine the image after the light reflection corresponding to the image to be processed is removed.

Description

去除圖像中的反光的方法、電子設備和電腦可讀儲存媒體Method, electronic device and computer readable storage medium for removing reflection in image

本申請要求在2020年3月4日提交中國專利局、申請號為202010144325.2、申請名稱為“去除圖像中的反光的方法及裝置、電子設備和存儲介質”的中國專利申請的優先權,其全部內容通過引用結合在本申請中。 This application requires the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 202010144325.2, and the application title is "Method and device for removing light reflection in images, electronic equipment and storage medium" on March 4, 2020. The entire content is incorporated into this application by reference.

本發明涉及圖像技術領域,尤其涉及一種去除圖像中的反光的方法、電子設備和電腦可讀儲存媒體。 The present invention relates to the field of image technology, and in particular to a method for removing light reflection in an image, an electronic device and a computer-readable storage medium.

在實際生活和工作中,利用相機拍攝照片在某些情況下需要透過玻璃拍攝物體。例如透過窗戶拍攝外面的靜物,拍攝戴眼鏡的人物照片,在博物館拍攝玻璃櫃內的展品,在交通道路上拍攝違法車輛的照片等。由於玻璃的兩側的光照條件不同,玻璃表面有一定可能產生反光。 In real life and work, using a camera to take photos requires shooting objects through glass in some cases. For example, taking pictures of still life outside through the window, taking pictures of people wearing glasses, taking pictures of exhibits in glass cabinets in museums, taking pictures of illegal vehicles on traffic roads, etc. Due to the different lighting conditions on both sides of the glass, reflections on the surface of the glass are certain.

本發明提供了一種去除圖像中的反光的技術方案。 The present invention provides a technical solution for removing light reflection in an image.

根據本發明的一方面,提供了一種去除圖像中的反光的方法,包括:獲取待處理圖像;獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,其中,所述待處理圖像對應的多個偏振圖是經過不同角度的偏振片形成的;根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖;根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像。 According to one aspect of the present invention, there is provided a method for removing reflections in an image, including: acquiring an image to be processed; acquiring multiple polarization maps corresponding to the image to be processed, and Polarization information, wherein the multiple polarization images corresponding to the image to be processed are formed by polarizing plates with different angles; according to the multiple polarization images corresponding to the image to be processed and the polarization corresponding to the image to be processed Message, determine the reflection prediction map corresponding to the image to be processed; determine the reflection prediction map corresponding to the image to be processed according to the multiple polarization maps corresponding to the image to be processed and the reflection prediction map corresponding to the image to be processed The image after the reflection is removed.

在一種可能的實現方式中,所述獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,包括:對待處理圖像中屬不同偏振片角度的像素點進行分離,得到所述待處理圖像對應的多個偏振圖;對所述待處理圖像對應的多個偏振圖中相應的像素點進行處理,得到所述待處理圖像對應的偏振訊息。 In a possible implementation, the acquiring multiple polarization images corresponding to the image to be processed and the polarization information corresponding to the image to be processed includes: pixels belonging to different polarizer angles in the image to be processed Points are separated to obtain multiple polarization maps corresponding to the image to be processed; corresponding pixel points in the multiple polarization maps corresponding to the image to be processed are processed to obtain polarization information corresponding to the image to be processed .

在一種可能的實現方式中,所述待處理圖像對應的偏振訊息包括所述待處理圖像對應的第一偏振訊息圖、所述待處理圖像對應的第二偏振訊息圖、所述待處理圖像對應的第三偏振訊息圖 和所述待處理圖像對應的第四偏振訊息圖中的至少之一,其中,所述待處理圖像對應的第一偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振光強度,所述待處理圖像對應的第二偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振程度,所述待處理圖像對應的第三偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的光的偏振角度,所述待處理圖像對應的第四偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the image to be processed includes a first polarization information image corresponding to the image to be processed, a second polarization information image corresponding to the image to be processed, and The third polarization information map corresponding to the processed image At least one of the fourth polarization information images corresponding to the image to be processed, wherein the first polarization information image corresponding to the image to be processed is used to represent multiple polarization images corresponding to the image to be processed The second polarization information image corresponding to the image to be processed is used to indicate the polarization degree of the multiple polarization images corresponding to the image to be processed, and the third polarization information image corresponding to the image to be processed Used to indicate the polarization angles of the light of the multiple polarization images corresponding to the image to be processed, and the fourth polarization information image corresponding to the image to be processed is used to indicate the removal of the multiple polarization images corresponding to the image to be processed Message after overexposure.

在一種可能的實現方式中,在所述獲取待處理圖像之前,所述方法還包括:獲取訓練圖像對應的多個偏振圖,以及所述訓練圖像對應的偏振訊息,其中,所述訓練圖像對應的多個偏振圖是經過不同角度的偏振片形成的;將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的偏振訊息輸入神經網路的第一子網路,經由所述第一子網路輸出所述訓練圖像對應的反光預測圖;將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的反光預測圖輸入所述神經網路的第二子網路,經由所述第二子網路輸出所述訓練圖像對應的透射光預測圖;至少根據所述訓練圖像對應的透射光預測圖,訓練所 述第一子網路和所述第二子網路。 In a possible implementation manner, before the obtaining the image to be processed, the method further includes: obtaining a plurality of polarization maps corresponding to the training image, and polarization information corresponding to the training image, wherein the The multiple polarization images corresponding to the training image are formed through polarizers with different angles; the multiple polarization images corresponding to the training image and the polarization information corresponding to the training image are input into the first subnet of the neural network Path, output the reflection prediction map corresponding to the training image via the first subnet; input the multiple polarization maps corresponding to the training image and the reflection prediction map corresponding to the training image into the neural network The second sub-network of the road, through the second sub-network, outputs the transmission light prediction map corresponding to the training image; at least according to the transmission light prediction map corresponding to the training image, the training station The first subnet and the second subnet.

在一種可能的實現方式中,所述獲取訓練圖像對應的多個偏振圖,以及所述訓練圖像對應的偏振訊息,包括:對訓練圖像中屬不同偏振片角度的像素點進行分離,得到所述訓練圖像對應的多個偏振圖;對所述訓練圖像對應的多個偏振圖中相應的像素點進行處理,得到所述訓練圖像對應的偏振訊息。 In a possible implementation manner, the acquiring multiple polarization maps corresponding to the training image and the polarization information corresponding to the training image includes: separating pixels belonging to different polarizer angles in the training image; Obtaining multiple polarization maps corresponding to the training image; processing corresponding pixels in the multiple polarization maps corresponding to the training image to obtain polarization information corresponding to the training image.

在一種可能的實現方式中,所述訓練圖像對應的偏振訊息包括所述訓練圖像對應的第一偏振訊息圖、所述訓練圖像對應的第二偏振訊息圖、所述訓練圖像對應的第三偏振訊息圖和所述訓練圖像對應的第四偏振訊息圖中的至少之一,其中,所述訓練圖像對應的第一偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振光強度,所述訓練圖像對應的第二偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振程度,所述訓練圖像對應的第三偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的光的偏振角度,所述訓練圖像對應的第四偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the training image includes a first polarization information image corresponding to the training image, a second polarization information image corresponding to the training image, and a second polarization information image corresponding to the training image. At least one of the third polarization information image corresponding to the training image and the fourth polarization information image corresponding to the training image, wherein the first polarization information image corresponding to the training image is used to indicate the multiple information corresponding to the training image. The polarization intensity of a polarization image, the second polarization information image corresponding to the training image is used to indicate the polarization degree of the multiple polarization images corresponding to the training image, and the third polarization information image corresponding to the training image Used to represent the polarization angles of the light of the multiple polarization images corresponding to the training image, and the fourth polarization information image corresponding to the training image is used to represent the multiple polarization images corresponding to the training image after the overexposure is removed Message.

在一種可能的實現方式中,所述至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路,包括: 根據所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖,確定第一損失函數的值;至少根據所述第一損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training the first subnet and the second subnet at least according to the transmitted light prediction map corresponding to the training image includes: Determine the value of the first loss function according to the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image; train the first subnet at least according to the value of the first loss function And the second subnet.

在一種可能的實現方式中,所述根據所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖,確定第一損失函數的值,包括:對所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖分別進行歸一化處理,得到所述訓練圖像對應的歸一化的透射光預測圖和歸一化的反光預測圖;將所述歸一化的透射光預測圖輸入第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的透射光預測圖對應的第l層的特徵圖,其中,1

Figure 109120319-A0305-02-0006-38
l
Figure 109120319-A0305-02-0006-39
P,P表示所述第一預設網路的總層數;將所述歸一化的反光預測圖輸入所述第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的反光預測圖對應的第l層的特徵圖;根據所述歸一化的透射光預測圖對應的第l層的特徵圖與所述歸一化的反光預測圖對應的第l層的特徵圖之間的歸一化互相關值,確定第一損失函數的值。 In a possible implementation manner, the determining the value of the first loss function according to the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image includes: The corresponding transmitted light prediction image and the reflection prediction image corresponding to the training image are respectively normalized to obtain a normalized transmission light prediction image and a normalized reflection prediction image corresponding to the training image; The normalized transmitted light prediction map is input into a first preset network, and the characteristic map of the first layer corresponding to the normalized transmitted light prediction map is output through the first layer of the first preset network , Where 1
Figure 109120319-A0305-02-0006-38
l
Figure 109120319-A0305-02-0006-39
P, P represents the total number of layers of the first preset network; input the normalized reflection prediction map into the first preset network, and pass through the first layer of the first preset network Output the feature map of the first layer corresponding to the normalized reflection prediction map; according to the feature map of the first layer corresponding to the normalized transmitted light prediction map corresponding to the normalized reflection prediction map The normalized cross-correlation value between the feature maps of the first layer determines the value of the first loss function.

在一種可能的實現方式中,所述至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路,包括:根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖;根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值;至少根據所述第二損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training of the first sub-network and the second sub-network at least according to the transmitted light prediction map corresponding to the training image includes: according to the training image and The difference between the reflective real image corresponding to the training image is used to obtain the transmitted light target image corresponding to the training image; the second loss is determined according to the transmitted light prediction image corresponding to the training image and the transmitted light target image The value of the function; training the first sub-network and the second sub-network at least according to the value of the second loss function.

在一種可能的實現方式中,所述根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值,包括:根據所述訓練圖像對應的透射光預測圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光預測圖,其中,在所述訓練圖像對應的第四偏振訊息圖中,過曝的像素點的像素值為第一預設值,非過曝的像素點的像素值為第二預設值,其中,所述第一預設值小於所述第二預設值;根據所述透射光目標圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的 去除過曝的透射光目標圖;將所述去除過曝的透射光預測圖輸入第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光預測圖對應的第k層的特徵圖,其中,1

Figure 109120319-A0305-02-0008-40
k
Figure 109120319-A0305-02-0008-41
Q,Q表示所述第二預設網路的總層數;將所述去除過曝的透射光目標圖輸入所述第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光目標圖對應的第k層的特徵圖;根據所述去除過曝的透射光預測圖對應的第k層的特徵圖與所述去除過曝的透射光目標圖對應的第k層的特徵圖之間的差值,確定第二損失函數的值。 In a possible implementation manner, the determining the value of the second loss function according to the transmitted light prediction map corresponding to the training image and the transmitted light target map includes: according to the transmitted light corresponding to the training image The product of the prediction image and the pixel value of the corresponding pixel in the fourth polarization information image corresponding to the training image is obtained to obtain the transmission light prediction image corresponding to the training image without overexposure, wherein, in the training image In the corresponding fourth polarization information image, the pixel value of the overexposed pixel is the first preset value, and the pixel value of the non-overexposed pixel is the second preset value, wherein the first preset value is less than The second preset value; according to the product of the transmitted light target image and the pixel value of the corresponding pixel in the fourth polarization information image corresponding to the training image, obtain the overexposed removal corresponding to the training image Transmitted light target map; input the overexposed transmitted light predicted map into a second preset network, and output the corresponding to the removed overexposed transmitted light predicted map through the kth layer of the second preset network The feature map of the k-th layer, where 1
Figure 109120319-A0305-02-0008-40
k
Figure 109120319-A0305-02-0008-41
Q, Q represents the total number of layers of the second preset network; input the overexposed transmitted light target map into the second preset network, and pass through the kth of the second preset network The layer outputs the feature map of the k-th layer corresponding to the overexposed transmitted light target image; according to the feature map of the k-th layer corresponding to the overexposed transmitted light prediction image and the removed overexposed transmitted light target The difference between the feature maps of the k-th layer corresponding to the map determines the value of the second loss function.

在一種可能的實現方式中,在所述根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖之前,所述方法還包括:根據本發明的一方面,提供了一種去除圖像中的反光的裝置,包括:第一獲取模組,用於獲取待處理圖像;第二獲取模組,用於獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,其中,所述待處理圖像對應的多個偏振圖是經過不同角度的偏振片形成的; 第一預測模組,用於根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖;第二預測模組,用於根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像。 In a possible implementation manner, before the obtaining the transmitted light target image corresponding to the training image according to the difference between the training image and the reflective real image corresponding to the training image, the method further includes : According to one aspect of the present invention, there is provided a device for removing reflections in an image, including: a first acquisition module for acquiring an image to be processed; a second acquisition module for acquiring the image to be processed Multiple polarization images corresponding to the image, and polarization information corresponding to the image to be processed, wherein the multiple polarization images corresponding to the image to be processed are formed through polarizers with different angles; The first prediction module is used to determine the reflection prediction image corresponding to the image to be processed according to the plurality of polarization images corresponding to the image to be processed and the polarization information corresponding to the image to be processed; the second prediction model The group is used to determine the image after reflection removal corresponding to the image to be processed according to the multiple polarization images corresponding to the image to be processed and the light reflection prediction image corresponding to the image to be processed.

在一種可能的實現方式中,所述第二獲取模組用於:對待處理圖像中屬不同偏振片角度的像素點進行分離,得到所述待處理圖像對應的多個偏振圖;對所述待處理圖像對應的多個偏振圖中相應的像素點進行處理,得到所述待處理圖像對應的偏振訊息。 In a possible implementation manner, the second acquisition module is used to: separate pixels belonging to different polarizer angles in the image to be processed to obtain multiple polarization images corresponding to the image to be processed; Corresponding pixel points in the multiple polarization images corresponding to the image to be processed are processed to obtain polarization information corresponding to the image to be processed.

在一種可能的實現方式中,所述待處理圖像對應的偏振訊息包括所述待處理圖像對應的第一偏振訊息圖、所述待處理圖像對應的第二偏振訊息圖、所述待處理圖像對應的第三偏振訊息圖和所述待處理圖像對應的第四偏振訊息圖中的至少之一,其中,所述待處理圖像對應的第一偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振光強度,所述待處理圖像對應的第二偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振程度,所述待處理圖像對應的第三偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的光的偏振角度,所述待處理圖像對應的第四偏振訊 息圖用於表示所述待處理圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the image to be processed includes a first polarization information image corresponding to the image to be processed, a second polarization information image corresponding to the image to be processed, and At least one of the third polarization information image corresponding to the processed image and the fourth polarization information image corresponding to the image to be processed, wherein the first polarization information image corresponding to the image to be processed is used to represent the The polarization intensity of the multiple polarization images corresponding to the image to be processed, and the second polarization information image corresponding to the image to be processed is used to indicate the polarization degree of the multiple polarization images corresponding to the image to be processed. The third polarization information map corresponding to the processed image is used to indicate the polarization angles of the light of the multiple polarization maps corresponding to the image to be processed, and the fourth polarization information map corresponding to the image to be processed The information image is used to represent the information after the overexposure is removed from the multiple polarization images corresponding to the image to be processed.

在一種可能的實現方式中,所述裝置還包括:第三獲取模組,用於獲取訓練圖像對應的多個偏振圖,以及所述訓練圖像對應的偏振訊息,其中,所述訓練圖像對應的多個偏振圖是經過不同角度的偏振片形成的;第三預測模組,用於將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的偏振訊息輸入神經網路的第一子網路,經由所述第一子網路輸出所述訓練圖像對應的反光預測圖;第四預測模組,用於將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的反光預測圖輸入所述神經網路的第二子網路,經由所述第二子網路輸出所述訓練圖像對應的透射光預測圖;訓練模組,用於至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the device further includes: a third acquisition module for acquiring multiple polarization maps corresponding to the training image, and polarization information corresponding to the training image, wherein the training image The multiple polarization images corresponding to the image are formed through polarizers with different angles; the third prediction module is used to input the multiple polarization images corresponding to the training image and the polarization information corresponding to the training image into the neural network The first sub-network of the road, through the first sub-network, outputs the reflection prediction map corresponding to the training image; the fourth prediction module is used to combine the multiple polarization maps corresponding to the training image and the The reflection prediction map corresponding to the training image is input to the second sub-network of the neural network, and the transmitted light prediction map corresponding to the training image is output through the second sub-network; the training module is used for at least Training the first sub-network and the second sub-network according to the transmitted light prediction map corresponding to the training image.

在一種可能的實現方式中,所述第三獲取模組用於:對訓練圖像中屬不同偏振片角度的像素點進行分離,得到所述訓練圖像對應的多個偏振圖;對所述訓練圖像對應的多個偏振圖中相應的像素點進行處理,得到所述訓練圖像對應的偏振訊息。 In a possible implementation, the third acquisition module is used to: separate pixels belonging to different polarizer angles in the training image to obtain multiple polarization maps corresponding to the training image; The corresponding pixel points in the multiple polarization images corresponding to the training image are processed to obtain the polarization information corresponding to the training image.

在一種可能的實現方式中,所述訓練圖像對應的偏振訊息包括所述訓練圖像對應的第一偏振訊息圖、所述訓練圖像對應的第二偏振訊息圖、所述訓練圖像對應的第三偏振訊息圖和所述訓練圖像對應的第四偏振訊息圖中的至少之一,其中,所述訓練圖像對應的第一偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振光強度,所述訓練圖像對應的第二偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振程度,所述訓練圖像對應的第三偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的光的偏振角度,所述訓練圖像對應的第四偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the training image includes a first polarization information image corresponding to the training image, a second polarization information image corresponding to the training image, and a second polarization information image corresponding to the training image. At least one of the third polarization information image corresponding to the training image and the fourth polarization information image corresponding to the training image, wherein the first polarization information image corresponding to the training image is used to indicate the multiple information corresponding to the training image. The polarization intensity of a polarization image, the second polarization information image corresponding to the training image is used to indicate the polarization degree of the multiple polarization images corresponding to the training image, and the third polarization information image corresponding to the training image Used to represent the polarization angles of the light of the multiple polarization images corresponding to the training image, and the fourth polarization information image corresponding to the training image is used to represent the multiple polarization images corresponding to the training image after the overexposure is removed Message.

在一種可能的實現方式中,所述訓練模組用於:根據所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖,確定第一損失函數的值;至少根據所述第一損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training module is configured to: determine the value of the first loss function according to the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image; at least according to The value of the first loss function trains the first subnet and the second subnet.

在一種可能的實現方式中,所述訓練模組用於:對所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖分別進行歸一化處理,得到所述訓練圖像對應的歸一化的透射光預測圖和歸一化的反光預測圖;將所述歸一化的透射光預測圖輸入第一預設網路,經 由所述第一預設網路的第l層輸出所述歸一化的透射光預測圖對應的第l層的特徵圖,其中,1

Figure 109120319-A0305-02-0012-42
l
Figure 109120319-A0305-02-0012-43
P,P表示所述第一預設網路的總層數;將所述歸一化的反光預測圖輸入所述第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的反光預測圖對應的第l層的特徵圖;根據所述歸一化的透射光預測圖對應的第l層的特徵圖與所述歸一化的反光預測圖對應的第l層的特徵圖之間的歸一化互相關值,確定第一損失函數的值。 In a possible implementation, the training module is used to: normalize the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image to obtain the training The normalized transmitted light prediction map and the normalized reflection prediction map corresponding to the image; input the normalized transmitted light prediction map into the first preset network, and the The first layer outputs the feature map of the first layer corresponding to the normalized transmitted light prediction map, where 1
Figure 109120319-A0305-02-0012-42
l
Figure 109120319-A0305-02-0012-43
P, P represents the total number of layers of the first preset network; input the normalized reflection prediction map into the first preset network, and pass through the first layer of the first preset network Output the feature map of the first layer corresponding to the normalized reflection prediction map; according to the feature map of the first layer corresponding to the normalized transmitted light prediction map corresponding to the normalized reflection prediction map The normalized cross-correlation value between the feature maps of the first layer determines the value of the first loss function.

在一種可能的實現方式中,所述訓練模組用於:根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖;根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值;至少根據所述第二損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training module is configured to: obtain the transmitted light target image corresponding to the training image according to the difference between the training image and the reflective real image corresponding to the training image; The transmitted light prediction map and the transmitted light target map corresponding to the training image are used to determine the value of the second loss function; at least according to the value of the second loss function, the first subnet and the first subnet are trained Two subnets.

在一種可能的實現方式中,所述訓練模組用於:根據所述訓練圖像對應的透射光預測圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光預測圖,其中,在所述訓練圖像 對應的第四偏振訊息圖中,過曝的像素點的像素值為第一預設值,非過曝的像素點的像素值為第二預設值,其中,所述第一預設值小於所述第二預設值;根據所述透射光目標圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光目標圖;將所述去除過曝的透射光預測圖輸入第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光預測圖對應的第k層的特徵圖,其中,1

Figure 109120319-A0305-02-0013-44
k
Figure 109120319-A0305-02-0013-45
Q,Q表示所述第二預設網路的總層數;將所述去除過曝的透射光目標圖輸入所述第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光目標圖對應的第k層的特徵圖;根據所述去除過曝的透射光預測圖對應的第k層的特徵圖與所述去除過曝的透射光目標圖對應的第k層的特徵圖之間的差值,確定第二損失函數的值。 In a possible implementation, the training module is used to: according to the product of the transmitted light prediction image corresponding to the training image and the pixel value of the corresponding pixel in the fourth polarization information image corresponding to the training image , Obtain the transmitted light prediction map corresponding to the training image without overexposure, wherein, in the fourth polarization information map corresponding to the training image, the pixel value of the overexposed pixel is the first preset value, The pixel value of the non-overexposed pixel is a second preset value, wherein the first preset value is less than the second preset value; according to the transmitted light target image and the training image corresponding to the first The product of the pixel values of the corresponding pixels in the four-polarization information image to obtain the target image of the transmitted light for removing the overexposure corresponding to the training image; input the predicted image of the transmitted light for removing the overexposed light into the second preset network, Output the feature map of the k-th layer corresponding to the overexposed transmitted light prediction map through the k-th layer of the second preset network, where 1
Figure 109120319-A0305-02-0013-44
k
Figure 109120319-A0305-02-0013-45
Q, Q represents the total number of layers of the second preset network; input the overexposed transmitted light target map into the second preset network, and pass through the kth of the second preset network The layer outputs the feature map of the k-th layer corresponding to the overexposed transmitted light target image; according to the feature map of the k-th layer corresponding to the overexposed transmitted light prediction image and the removed overexposed transmitted light target The difference between the feature maps of the k-th layer corresponding to the map determines the value of the second loss function.

在一種可能的實現方式中,所述裝置還包括:採集模組,用於通過偏振感測器採集訓練圖像和所述訓練圖像對應的反光真實圖。 In a possible implementation manner, the device further includes: a collection module for collecting the training image and the reflective real image corresponding to the training image through the polarization sensor.

根據本發明的一方面,提供了一種電子設備,包括: 一個或多個處理器;用於儲存可執行指令的記憶體;其中,所述一個或多個處理器被配置為調用所述記憶體儲存的可執行指令,以執行上述方法。 According to an aspect of the present invention, there is provided an electronic device, including: One or more processors; a memory used to store executable instructions; wherein the one or more processors are configured to call the executable instructions stored in the memory to execute the above-mentioned method.

根據本發明的一方面,提供了一種電腦可讀儲存媒體,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現上述方法。 According to one aspect of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.

根據本發明的一方面,提供了一種電腦程式,包括電腦可讀代碼,當所述電腦可讀代碼在電子設備中運行時,所述電子設備中的處理器執行用於實現上述方法。 According to one aspect of the present invention, there is provided a computer program including computer-readable code, and when the computer-readable code is executed in an electronic device, a processor in the electronic device executes for realizing the above-mentioned method.

在本發明實施例中,通過獲取待處理圖像,獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖,根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像,由此能夠準確地去除待處理圖像中的反光。 In the embodiment of the present invention, by acquiring the image to be processed, multiple polarization maps corresponding to the image to be processed are acquired, and polarization information corresponding to the image to be processed is obtained according to the number of polarization corresponding to the image to be processed. A polarization map and the polarization information corresponding to the image to be processed, determine the reflection prediction map corresponding to the image to be processed, according to the multiple polarization maps corresponding to the image to be processed and the polarization information corresponding to the image to be processed The reflection prediction map determines the image after the reflection is removed corresponding to the image to be processed, so that the reflection in the image to be processed can be accurately removed.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,而非限制本發明。 It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the present invention.

根據下面參考圖式對示例性實施例的詳細說明,本發明的其它特徵及方面將變得清楚。 According to the following detailed description of exemplary embodiments with reference to the drawings, other features and aspects of the present invention will become clear.

71:第一獲取模組 71: The first acquisition module

72:第二獲取模組 72: The second acquisition module

73:第一預測模組 73: The first prediction module

74:第二預測模組 74: The second prediction module

800:電子設備 800: electronic equipment

802:處理組件 802: Processing component

804:記憶體 804: memory

806:電源組件 806: Power Components

808:多媒體組件 808: Multimedia components

810:音訊組件 810: Audio component

812:輸入/輸出介面 812: input/output interface

814:感測器組件 814: Sensor component

816:通訊組件 816: Communication component

820:處理器 820: processor

1900:電子設備 1900: electronic equipment

1922:處理組件 1922: processing components

1926:電源組件 1926: power supply components

1932:記憶體 1932: memory

1950:網路介面 1950: network interface

1958:輸入/輸出介面 1958: input/output interface

S11~S14:步驟 S11~S14: steps

此處的圖式被併入說明書中並構成本說明書的一部分,這些圖式示出了符合本發明的實施例,並與說明書一起用於說明本發明的技術方案:圖1示出本發明實施例提供的去除圖像中的反光的方法的流程圖;圖2示出本發明實施例提供的神經網路的示意圖;圖3示出本發明實施例中對訓練圖像對應的透射光預測圖和訓練圖像對應的反光預測圖歸一化前後第一損失函數L PNCC 的單調性的示意圖;圖4示出了背景圖B、透射光圖T、反光圖R和混合圖M的示意圖;圖5示出了訓練圖像和訓練圖像對應的反光真實圖的採集方法的示意圖;圖6示出採用本發明實施例提供的去除圖像中的反光的方法對帶有三種不同類型的反光的輸入圖像進行處理後得到的輸出圖像的示意圖;圖7示出本發明實施例提供的去除圖像中的反光的裝置的方塊圖; 圖8示出本發明實施例提供的一種電子設備800的方塊圖;及圖9示出本發明實施例提供的一種電子設備1900的方塊圖。 The drawings here are incorporated into the specification and constitute a part of this specification. These drawings show embodiments in accordance with the present invention, and together with the specification are used to illustrate the technical solution of the present invention: Figure 1 shows the implementation of the present invention. Example provides a flowchart of a method for removing reflections in an image; Figure 2 shows a schematic diagram of a neural network provided by an embodiment of the present invention; Figure 3 shows a transmission light prediction map corresponding to a training image in an embodiment of the present invention A schematic diagram of the monotonicity of the first loss function L PNCC before and after normalization of the reflection prediction map corresponding to the training image; FIG. 4 shows a schematic diagram of the background image B, the transmitted light image T, the light reflection image R, and the mixed image M; 5 shows a schematic diagram of the acquisition method of the training image and the reflective real image corresponding to the training image; FIG. 6 shows the method for removing the reflection in the image provided by the embodiment of the present invention for the three different types of reflection A schematic diagram of an output image obtained after processing an input image; FIG. 7 shows a block diagram of a device for removing reflections in an image provided by an embodiment of the present invention; FIG. 8 shows an electronic device 800 provided by an embodiment of the present invention And Figure 9 shows a block diagram of an electronic device 1900 provided by an embodiment of the present invention.

以下將參考圖式詳細說明本發明的各種示例性實施例、特徵和方面。圖式中相同的圖式標記表示功能相同或相似的元件。儘管在圖式中示出了實施例的各種方面,但是除非特別指出,不必按比例繪製圖式。 Various exemplary embodiments, features, and aspects of the present invention will be described in detail below with reference to the drawings. The same drawing symbols in the drawings indicate elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, unless otherwise noted, the drawings are not necessarily drawn to scale.

在這裏專用的詞“示例性”意為“用作例子、實施例或說明性”。這裏作為“示例性”所說明的任何實施例不必解釋為優於或好於其它實施例。 The dedicated word "exemplary" here means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" need not be construed as being superior or better than other embodiments.

本文中術語“和/或”,僅僅是一種描述關聯對象的關聯關係,表示可以存在三種關係,例如,A和/或B,可以表示:單獨存在A,同時存在A和B,單獨存在B這三種情況。另外,本文中術語“至少一種”表示多種中的任意一種或多種中的至少兩種的任意組合,例如,包括A、B、C中的至少一種,可以表示包括從A、B和C構成的集合中選擇的任意一個或多個元素。 The term "and/or" in this article is only an association relationship that describes the associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. three situations. In addition, the term "at least one" in this document means any one of multiple or any combination of at least two of the multiple, for example, including at least one of A, B, and C, and may mean including those made from A, B, and C Any one or more elements selected in the set.

另外,為了更好地說明本發明,在下文的具體實施方式中給出了眾多的具體細節。本領域技術人員應當理解,沒有某些具體細節,本發明同樣可以實施。在一些實例中,對於本領域技術 人員熟知的方法、手段、元件和電路未作詳細描述,以便於凸顯本發明的主旨。 In addition, in order to better illustrate the present invention, numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present invention can also be implemented without certain specific details. In some instances, for those skilled in the art The well-known methods, means, components and circuits are not described in detail in order to highlight the gist of the present invention.

如上所述,由於玻璃的兩側的光照條件不同,玻璃表面有一定可能產生反光。此類反光不僅影響照片的美觀,更可能使得大量真實場景的細節丟失,例如,在交通道路上拍攝違法車輛的照片時,車窗反光過强可能導致無法看見駕駛員的人臉。 As mentioned above, due to the different lighting conditions on both sides of the glass, the glass surface may be reflective. This kind of reflection not only affects the beauty of the photo, but also may cause a lot of details of the real scene to be lost. For example, when a photo of an illegal vehicle is taken on a traffic road, the excessive reflection of the car window may make it impossible to see the driver's face.

為了解決類似上文所述的技術問題,本發明實施例提供了一種去除圖像中的反光的方法及裝置、電子設備和儲存媒體,通過獲取待處理圖像,獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖,根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像,由此能夠準確地去除待處理圖像中的反光。 In order to solve technical problems similar to those described above, embodiments of the present invention provide a method and device for removing light reflection in an image, electronic equipment, and storage media. By acquiring the image to be processed, the corresponding image to be processed is obtained. And the polarization information corresponding to the image to be processed, and the polarization information corresponding to the image to be processed and the polarization information corresponding to the image to be processed are used to determine the image to be processed Corresponding reflection prediction map, according to the multiple polarization maps corresponding to the image to be processed and the reflection prediction map corresponding to the image to be processed, determine the image after reflection removal corresponding to the image to be processed, thereby Can accurately remove the reflection in the image to be processed.

本發明實施例可以應用於各種應用場景中。例如,在透過窗戶拍攝外面的靜物,在車內對車窗外的景色進行拍照,在博物館拍攝玻璃櫃內的展品,在交通道路上拍攝違法車輛的照片等情況下,可以採用本發明實施例快速去除拍攝的照片中的反光,給用戶提供沒有反光干擾的照片。又如,當拍攝戴眼鏡的人像時,可以採用本發明實施例快速去除拍攝的照片中的反光,使人物的眼睛及 眼周區域更加清晰。 The embodiments of the present invention can be applied to various application scenarios. For example, in the case of taking pictures of still life outside through the window, taking pictures of the scenery outside the car windows in the car, taking pictures of exhibits in glass cabinets in museums, taking pictures of illegal vehicles on traffic roads, etc., the embodiments of the present invention can be used quickly. Remove the reflections in the photos taken, and provide users with photos without reflection interference. For another example, when shooting a portrait of a person wearing glasses, the embodiment of the present invention can be used to quickly remove the reflections in the captured photo, so that the eyes of the person are The eye area is more clear.

本發明實施例可以應用於電腦視覺、智能圖像處理、拍照、自動駕駛、機器人視覺等領域。 The embodiments of the present invention can be applied to the fields of computer vision, intelligent image processing, photographing, automatic driving, robot vision and the like.

圖1示出本發明實施例提供的去除圖像中的反光的方法的流程圖。所述去除圖像中的反光的方法的執行主體可以是去除圖像中的反光的裝置。例如,所述去除圖像中的反光的方法可以由終端設備或伺服器或其它處理設備執行。其中,終端設備可以是用戶設備(User Equipment,UE)、行動設備、用戶終端、終端、行動電話、無線電話、個人數位助理(Personal Digital Assistant,PDA)、手持設備、計算設備、車載設備或者可穿戴設備等。在一些可能的實現方式中,所述去除圖像中的反光的方法可以通過處理器調用記憶體中儲存的電腦可讀指令的方式來實現。如圖1所示,所述去除圖像中的反光的方法包括步驟S11至步驟S14。 Fig. 1 shows a flowchart of a method for removing light reflection in an image provided by an embodiment of the present invention. The execution subject of the method for removing light reflection in an image may be a device for removing light reflection in an image. For example, the method for removing light reflection in an image can be executed by a terminal device or a server or other processing device. Among them, the terminal device can be User Equipment (UE), mobile device, user terminal, terminal, mobile phone, wireless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle-mounted device, or Wearable equipment, etc. In some possible implementation manners, the method for removing reflections in an image may be implemented by a processor invoking a computer-readable instruction stored in a memory. As shown in FIG. 1, the method for removing light reflection in an image includes step S11 to step S14.

在步驟S11中,獲取待處理圖像。 In step S11, an image to be processed is acquired.

在本發明實施例中,所述待處理圖像可以是通過偏振感測器採集得到的,所述待處理圖像可以是單通道的圖像。例如,所述待處理圖像可以包括經過4個角度0°、45°、90°和135°的偏振片得到的圖像訊息。 In the embodiment of the present invention, the image to be processed may be acquired by a polarization sensor, and the image to be processed may be a single-channel image. For example, the image to be processed may include image information obtained through polarizers at 4 angles of 0°, 45°, 90°, and 135°.

在步驟S12中,獲取所述待處理圖像對應的多個偏振 圖,以及所述待處理圖像對應的偏振訊息,其中,所述待處理圖像對應的多個偏振圖是經過不同角度的偏振片形成的。 In step S12, obtain multiple polarizations corresponding to the image to be processed Figure, and the polarization information corresponding to the image to be processed, wherein the multiple polarization images corresponding to the image to be processed are formed through polarizers with different angles.

例如,所述待處理圖像包括4個偏振片角度0°、45°、90°和135°的圖像訊息,相應地,所述待處理圖像對應的偏振圖的數量可以為4,所述待處理圖像對應的4個偏振圖分別對應於0°、45°、90°和135°這4個偏振片角度。 For example, the image to be processed includes image information with 4 polarizer angles of 0°, 45°, 90°, and 135°. Accordingly, the number of polarization images corresponding to the image to be processed may be 4. The four polarization images corresponding to the image to be processed respectively correspond to the four polarizer angles of 0°, 45°, 90°, and 135°.

在一種可能的實現方式中,所述待處理圖像對應的偏振圖可以是灰階圖。 In a possible implementation manner, the polarization image corresponding to the image to be processed may be a grayscale image.

在本發明實施例中,所述待處理圖像對應的偏振訊息可以根據所述待處理圖像對應的多個偏振圖確定。 In the embodiment of the present invention, the polarization information corresponding to the image to be processed may be determined according to multiple polarization images corresponding to the image to be processed.

在一種可能的實現方式中,所述獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,包括:對待處理圖像中屬不同偏振片角度的像素點進行分離,得到所述待處理圖像對應的多個偏振圖;對所述待處理圖像對應的多個偏振圖中相應的像素點進行處理,得到所述待處理圖像對應的偏振訊息。例如,所述待處理圖像包括4個偏振片角度0°、45°、90°和135°的圖像訊息,則可以分離出所述待處理圖像中屬0°的像素點,得到所述待處理圖像對應的第一偏振圖,分離出所述待處理圖像中屬45°的像素點,得到所述待處理圖像對應的第二偏振圖,分離出所述待處理圖像中屬90°的像素點,得到所述待處理圖像對應的第三 偏振圖,分離出所述待處理圖像中屬135°的像素點,得到所述待處理圖像對應的第四偏振圖。 In a possible implementation, the acquiring multiple polarization images corresponding to the image to be processed and the polarization information corresponding to the image to be processed includes: pixels belonging to different polarizer angles in the image to be processed Points are separated to obtain multiple polarization maps corresponding to the image to be processed; corresponding pixel points in the multiple polarization maps corresponding to the image to be processed are processed to obtain polarization information corresponding to the image to be processed . For example, if the image to be processed includes 4 polarizer angles of 0°, 45°, 90°, and 135°, the pixels of 0° in the image to be processed can be separated to obtain the image information. The first polarization image corresponding to the image to be processed is separated, the pixels belonging to 45° in the image to be processed are separated, the second polarization image corresponding to the image to be processed is obtained, and the image to be processed is separated The pixel point in the middle of 90° is obtained, and the third image corresponding to the image to be processed is obtained. Polarization map, separating the 135° pixels in the image to be processed to obtain the fourth polarization map corresponding to the image to be processed.

在一種可能的實現方式中,所述待處理圖像對應的偏振訊息包括所述待處理圖像對應的第一偏振訊息圖、所述待處理圖像對應的第二偏振訊息圖、所述待處理圖像對應的第三偏振訊息圖和所述待處理圖像對應的第四偏振訊息圖中的至少之一,其中,所述待處理圖像對應的第一偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振光強度,所述待處理圖像對應的第二偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振程度,所述待處理圖像對應的第三偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的光的偏振角度,所述待處理圖像對應的第四偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the image to be processed includes a first polarization information image corresponding to the image to be processed, a second polarization information image corresponding to the image to be processed, and At least one of the third polarization information image corresponding to the processed image and the fourth polarization information image corresponding to the image to be processed, wherein the first polarization information image corresponding to the image to be processed is used to represent the The polarization intensity of the multiple polarization images corresponding to the image to be processed, and the second polarization information image corresponding to the image to be processed is used to indicate the polarization degree of the multiple polarization images corresponding to the image to be processed. The third polarization information diagram corresponding to the processed image is used to represent the polarization angles of the light of the multiple polarization diagrams corresponding to the image to be processed, and the fourth polarization information diagram corresponding to the image to be processed is used to represent the Process the multiple polarization maps corresponding to the image to remove the overexposed information.

在步驟S13中,根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖。 In step S13, a reflection prediction image corresponding to the image to be processed is determined according to the plurality of polarization images corresponding to the image to be processed and the polarization information corresponding to the image to be processed.

在一種可能的實現方式中,可以將所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息輸入神經網路的第一子網路,經由所述第一子網路輸出所述待處理圖像對應的反光預測圖。在該實現方式中,所述待處理圖像對應的反光預測圖可 以表示所述神經網路預測的所述待處理圖像對應的反光圖。 In a possible implementation, the multiple polarization maps corresponding to the image to be processed and the polarization information corresponding to the image to be processed can be input into the first subnet of the neural network, through the first subnet. The network outputs the reflection prediction map corresponding to the image to be processed. In this implementation, the reflection prediction map corresponding to the image to be processed may be To represent the reflection map corresponding to the image to be processed predicted by the neural network.

在步驟S14中,根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像。 In step S14, according to the plurality of polarization maps corresponding to the image to be processed and the light reflection prediction map corresponding to the image to be processed, a light-reflection-removed image corresponding to the image to be processed is determined.

在一種可能的實現方式中,可以將所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖輸入所述神經網路的第二子網路,經由所述第二子網路輸出所述待處理圖像對應的去除反光後的圖像。 In a possible implementation, the multiple polarization maps corresponding to the image to be processed and the reflection prediction map corresponding to the image to be processed can be input into the second subnet of the neural network, and via the The second subnet outputs the image after the reflection is removed corresponding to the image to be processed.

在一種可能的實現方式中,在所述獲取待處理圖像之前,所述方法還包括:獲取訓練圖像對應的多個偏振圖,以及所述訓練圖像對應的偏振訊息,其中,所述訓練圖像對應的多個偏振圖是經過不同角度的偏振片形成的;將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的偏振訊息輸入神經網路的第一子網路,經由所述第一子網路輸出所述訓練圖像對應的反光預測圖;將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的反光預測圖輸入所述神經網路的第二子網路,經由所述第二子網路輸出所述訓練圖像對應的透射光預測圖;至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路。 In a possible implementation manner, before the obtaining the image to be processed, the method further includes: obtaining a plurality of polarization maps corresponding to the training image, and polarization information corresponding to the training image, wherein the The multiple polarization images corresponding to the training image are formed through polarizers with different angles; the multiple polarization images corresponding to the training image and the polarization information corresponding to the training image are input into the first subnet of the neural network Path, output the reflection prediction map corresponding to the training image via the first subnet; input the multiple polarization maps corresponding to the training image and the reflection prediction map corresponding to the training image into the neural network The second sub-network of the road, through the second sub-network, outputs the transmitted light prediction map corresponding to the training image; at least the first sub-network is trained based on the transmitted light prediction map corresponding to the training image And the second subnet.

在該實現方式中,所述訓練圖像可以是單通道的圖像。例如,訓練圖像的高為H,寬為W。作為該實現方式的一個示 例,所述訓練圖像可以包括經過4個角度0°、45°、90°和135°的偏振片得到的圖像訊息。相應地,所述訓練圖像對應的偏振圖的數量可以為4,所述訓練圖像對應的4個偏振圖分別對應於0°、45°、90°和135°這4個偏振片角度。例如,訓練圖像對應的4個偏振圖可以表示為I1、I2、I3和I4。其中,I1、I2、I3和I4的高可以為

Figure 109120319-A0305-02-0022-25
H,寬可以為
Figure 109120319-A0305-02-0022-26
W。其中,所述訓練圖像對應的偏振圖可以是灰階圖。在該實現方式中,所述訓練圖像對應的偏振訊息可以所述訓練圖像對應的多個偏振圖確定。所述訓練圖像對應的反光預測圖可以表示為
Figure 109120319-A0305-02-0022-28
,所述訓練圖像對應的透射光預測圖可以表示為
Figure 109120319-A0305-02-0022-29
。第一子網路輸出的反光預測圖
Figure 109120319-A0305-02-0022-27
作為第二子網路的輸入,可以用於得到更高品質的透射光預測圖
Figure 109120319-A0305-02-0022-30
。在該實現方式中,所述訓練圖像對應的反光預測圖可以表示所述神經網路預測的所述訓練圖像對應的反光圖。所述訓練圖像對應的透射光預測圖可以表示所述神經網路預測的所述訓練圖像去除反光後的圖像。 In this implementation, the training image may be a single-channel image. For example, the height of the training image is H and the width is W. As an example of this implementation, the training image may include image information obtained through polarizers with 4 angles of 0°, 45°, 90°, and 135°. Correspondingly, the number of polarization patterns corresponding to the training image may be 4, and the 4 polarization patterns corresponding to the training image respectively correspond to the 4 polarizer angles of 0°, 45°, 90°, and 135°. For example, the four polarization maps corresponding to the training image can be represented as I 1 , I 2 , I 3 and I 4 . Among them, the heights of I 1 , I 2 , I 3 and I 4 can be
Figure 109120319-A0305-02-0022-25
H , the width can be
Figure 109120319-A0305-02-0022-26
W. Wherein, the polarization image corresponding to the training image may be a grayscale image. In this implementation manner, the polarization information corresponding to the training image may be determined by multiple polarization images corresponding to the training image. The reflection prediction map corresponding to the training image can be expressed as
Figure 109120319-A0305-02-0022-28
, The transmitted light prediction map corresponding to the training image can be expressed as
Figure 109120319-A0305-02-0022-29
. Reflective prediction map output by the first subnet
Figure 109120319-A0305-02-0022-27
As the input of the second subnet, it can be used to obtain higher quality transmitted light prediction map
Figure 109120319-A0305-02-0022-30
. In this implementation, the reflection prediction image corresponding to the training image may represent the reflection image corresponding to the training image predicted by the neural network. The transmitted light prediction image corresponding to the training image may represent the image predicted by the neural network after the reflection of the training image is removed.

作為該實現方式的一個示例,所述第一子網路和所述第二子網路可以採用U-Net的結構。當然,本發明實施例不限於此,本領域技術人員也可以根據實際應用場景需求和/或個人喜好靈活選擇第一子網路和第二子網路的類型和結構。 As an example of this implementation, the first subnet and the second subnet may adopt a U-Net structure. Of course, the embodiments of the present invention are not limited to this, and those skilled in the art can also flexibly select the type and structure of the first subnet and the second subnet according to actual application scenario requirements and/or personal preferences.

在一種可能的實現方式中,所述獲取訓練圖像對應的多個偏振圖,以及所述訓練圖像對應的偏振訊息,包括:對訓練圖 像中屬不同偏振片角度的像素點進行分離,得到所述訓練圖像對應的多個偏振圖;對所述訓練圖像對應的多個偏振圖中相應的像素點進行處理,得到所述訓練圖像對應的偏振訊息。例如,所述訓練圖像包括經過4個角度0°、45°、90°和135°的偏振片得到的圖像訊息,則可以分離出所述訓練圖像中屬0°的像素點,得到所述訓練圖像對應的第一偏振圖I1,分離出所述訓練圖像中屬45°的像素點,得到所述訓練圖像對應的第二偏振圖I2,分離出所述訓練圖像中屬90°的像素點,得到所述訓練圖像對應的第三偏振圖I3,分離出所述訓練圖像中屬135°的像素點,得到所述訓練圖像對應的第四偏振圖I4In a possible implementation manner, the acquiring multiple polarization maps corresponding to the training image and the polarization information corresponding to the training image includes: separating pixels belonging to different polarizer angles in the training image; Obtaining multiple polarization maps corresponding to the training image; processing corresponding pixels in the multiple polarization maps corresponding to the training image to obtain polarization information corresponding to the training image. For example, if the training image includes image information obtained through 4 polarizers with angles of 0°, 45°, 90°, and 135°, the pixels belonging to 0° in the training image can be separated to obtain The first polarization image I 1 corresponding to the training image is separated, the pixels belonging to 45° in the training image are separated, the second polarization image I 2 corresponding to the training image is obtained, and the training image is separated The pixels belonging to 90° in the image are obtained, and the third polarization image I 3 corresponding to the training image is obtained. The pixels belonging to 135° in the training image are separated to obtain the fourth polarization corresponding to the training image. Figure I 4 .

在一種可能的實現方式中,所述訓練圖像對應的偏振訊息包括所述訓練圖像對應的第一偏振訊息圖、所述訓練圖像對應的第二偏振訊息圖、所述訓練圖像對應的第三偏振訊息圖和所述訓練圖像對應的第四偏振訊息圖中的至少之一,其中,所述訓練圖像對應的第一偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振光強度,所述訓練圖像對應的第二偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振程度,所述訓練圖像對應的第三偏振訊息圖用於表示所述訓練圖像對應的光的偏振角度,所述訓練圖像對應的第四偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the training image includes a first polarization information image corresponding to the training image, a second polarization information image corresponding to the training image, and a second polarization information image corresponding to the training image. At least one of the third polarization information image corresponding to the training image and the fourth polarization information image corresponding to the training image, wherein the first polarization information image corresponding to the training image is used to indicate the multiple information corresponding to the training image. The polarization intensity of a polarization image, the second polarization information image corresponding to the training image is used to indicate the polarization degree of the multiple polarization images corresponding to the training image, and the third polarization information image corresponding to the training image It is used to represent the polarization angle of the light corresponding to the training image, and the fourth polarization information map corresponding to the training image is used to represent the information after the overexposure is removed from the multiple polarization maps corresponding to the training image.

例如,訓練圖像對應的第一偏振訊息圖可以表示為I、訓練圖像對應的第二偏振訊息圖可以表示為ρ、訓練圖像對應的第三偏振訊息圖可以表示為φ和訓練圖像對應的第四偏振訊息圖可以表示為OFor example, the first polarization information map corresponding to the training image can be expressed as I , the second polarization information map corresponding to the training image can be expressed as ρ, and the third polarization information map corresponding to the training image can be expressed as φ and training image. The corresponding fourth polarization information graph can be denoted as O.

作為該實現方式的一個示例,可以採用式1得到訓練圖像對應的第一偏振訊息圖II(x)=(I 1(x)+I 2(x)+I 3(x)+I 4(x))/2 式1,其中,x為圖中任一像素點,像素點x的坐標為(i,j),其中,1

Figure 109120319-A0305-02-0024-63
i
Figure 109120319-A0305-02-0024-1
H,1
Figure 109120319-A0305-02-0024-47
j
Figure 109120319-A0305-02-0024-2
W。 As an example of this implementation, formula 1 can be used to obtain the first polarization information map I corresponding to the training image: I ( x ) = ( I 1 ( x ) + I 2 ( x ) + I 3 ( x ) + I 4 ( x ))/2 Equation 1, where x is any pixel in the figure, and the coordinate of pixel x is (i, j), where 1
Figure 109120319-A0305-02-0024-63
i
Figure 109120319-A0305-02-0024-1
H , 1
Figure 109120319-A0305-02-0024-47
j
Figure 109120319-A0305-02-0024-2
W.

作為該實現方式的一個示例,可以採用式2得到訓練圖像對應的第二偏振訊息圖ρ:

Figure 109120319-A0305-02-0024-3
As an example of this implementation, Equation 2 can be used to obtain the second polarization information map ρ corresponding to the training image:
Figure 109120319-A0305-02-0024-3

作為該實現方式的一個示例,可以採用式3得到訓練圖像對應的第三偏振訊息圖φ:

Figure 109120319-A0305-02-0024-4
As an example of this implementation, Equation 3 can be used to obtain the third polarization information map φ corresponding to the training image:
Figure 109120319-A0305-02-0024-4

作為該實現方式的一個示例,可以採用式4得到訓練圖像對應的第四偏振訊息圖O

Figure 109120319-A0305-02-0024-5
例如,δ=0.98。其中,若max{I 1(x),I 2(x),I 3(x),I 4(x)}>δ,則可以表明像素點x過曝;若max{I 1(x),I 2(x),I 3(x),I 4(x)}
Figure 109120319-A0305-02-0024-48
δ,則可以 表明像素點x非過曝。在訓練圖像對應的第四偏振訊息圖O中,若像素點x過曝,則像素點x的像素值為0;若像素點x非過曝,則像素點x的像素值為1。 As an example of this implementation, formula 4 can be used to obtain the fourth polarization information map O corresponding to the training image:
Figure 109120319-A0305-02-0024-5
For example, δ=0.98. Among them, if max { I 1 ( x ), I 2 ( x ), I 3 ( x ), I 4 ( x )}>δ, it can indicate that the pixel point x is overexposed; if max { I 1 ( x ), I 2 ( x ), I 3 ( x ), I 4 ( x ))
Figure 109120319-A0305-02-0024-48
δ, it can indicate that the pixel point x is not overexposed. In the fourth polarization information map O corresponding to the training image, if the pixel point x is overexposed, the pixel value of the pixel point x is 0; if the pixel point x is not overexposed, the pixel value of the pixel point x is 1.

上文中,所述待處理圖像對應的第一偏振訊息圖、第二偏振訊息圖、第三偏振訊息圖和第四偏振訊息圖的確定方法,與所述訓練圖像對應的第一偏振訊息圖、第二偏振訊息圖、第三偏振訊息圖和第四偏振訊息圖的確定方法類似,本發明實施例對此不再贅述。 In the above, the method for determining the first polarization information image, the second polarization information image, the third polarization information image, and the fourth polarization information image corresponding to the image to be processed is the first polarization information image corresponding to the training image The methods for determining the graph, the second polarization information graph, the third polarization information graph, and the fourth polarization information graph are similar, and will not be repeated in the embodiment of the present invention.

由於反光圖與透射光圖在偏振訊息上具有較大的差異,因此,通過採用所述訓練圖像對應的偏振訊息訓練神經網路,使神經網路能夠學習到識別反光圖與透射光圖並將它們分離的能力。 Since the reflection image and the transmission light image have a large difference in polarization information, the neural network is trained by using the polarization information corresponding to the training image, so that the neural network can learn to recognize the reflection image and the transmission light image and The ability to separate them.

在一種可能的實現方式中,可以將VGG-19中的皮層柱(Hypercolumn)增加到所述神經網路的輸入中,以增强神經網路的效果。例如,在將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的偏振訊息輸入神經網路的第一子網路之前,可以採用VGG-19的conv1_2對I1、I2、I3、I4I進行處理,並對處理結果進行雙線性插值的上採樣,以使上採樣後的I1、I2、I3、I4I的尺寸與訓練圖像相同。為了適用於VGG-19,可以先對神經網路的輸入圖像(訓練圖像或者待處理圖像)進行伽瑪校正。 In a possible implementation manner, the hypercolumn in VGG-19 can be added to the input of the neural network to enhance the effect of the neural network. For example, before the multiple polarization maps corresponding to the training image and the polarization information corresponding to the training image are input into the first subnet of the neural network, the conv1_2 pair I 1 , I 2 of VGG-19 can be used. , I 3 , I 4 and I are processed, and the processing results are up-sampled by bilinear interpolation, so that the sizes of I 1 , I 2 , I 3 , I 4 and I after up-sampling are the same as the training images . In order to be applicable to VGG-19, gamma correction can be performed on the input image (training image or image to be processed) of the neural network first.

圖2示出本發明實施例提供的神經網路的示意圖。在圖2所示的示例中,訓練圖像的高為H,寬為W。訓練圖像經過預處理,可以得到訓練圖像對應的4個偏振圖I1、I2、I3和I4。其中,I1、I2、I3和I4的高為

Figure 109120319-A0305-02-0026-6
H,寬為
Figure 109120319-A0305-02-0026-7
W。對I1、I2、I3和I4進行處理,可以得到訓練圖像對應的第一偏振訊息圖I、訓練圖像對應的第二偏振訊息圖ρ、訓練圖像對應的第三偏振訊息圖φ和訓練圖像對應的第四偏振訊息圖O。將I1、I2、I3、I4I、ρ、φ和O輸入第一子網路RNet,可以得到訓練圖像對應的反光預測圖
Figure 109120319-A0305-02-0026-31
。將I1、I2、I3、I4
Figure 109120319-A0305-02-0026-33
輸入第二子網路TNet,可以得到訓練圖像對應的透射光預測圖
Figure 109120319-A0305-02-0026-32
。 Fig. 2 shows a schematic diagram of a neural network provided by an embodiment of the present invention. In the example shown in Figure 2, the height of the training image is H and the width is W. After the training image is preprocessed, four polarization maps I 1 , I 2 , I 3 and I 4 corresponding to the training image can be obtained. Among them, the heights of I 1 , I 2 , I 3 and I 4 are
Figure 109120319-A0305-02-0026-6
H , the width is
Figure 109120319-A0305-02-0026-7
W. By processing I 1 , I 2 , I 3 and I 4 , the first polarization information image I corresponding to the training image, the second polarization information image ρ corresponding to the training image, and the third polarization information image corresponding to the training image can be obtained The image φ and the fourth polarization information image O corresponding to the training image. Input I 1 , I 2 , I 3 , I 4 , I , ρ, φ, and O into the first subnet RNet, and the reflection prediction map corresponding to the training image can be obtained
Figure 109120319-A0305-02-0026-31
. Combine I 1 , I 2 , I 3 , I 4 and
Figure 109120319-A0305-02-0026-33
Enter the second subnet TNet to get the transmitted light prediction map corresponding to the training image
Figure 109120319-A0305-02-0026-32
.

在一種可能的實現方式中,所述至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路,包括:根據所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖,確定第一損失函數的值;至少根據所述第一損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training of the first sub-network and the second sub-network at least according to the transmitted light prediction map corresponding to the training image includes: corresponding to the training image The transmitted light prediction map and the reflection prediction map corresponding to the training image are determined to determine the value of the first loss function; at least according to the value of the first loss function, the first subnet and the second subnet are trained network.

作為該實現方式的一個示例,所述根據所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖,確定第一損失函數的值,包括:對所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖分別進行歸一化處理,得到所述訓練圖像對應的歸一化的透射光預測圖和歸一化的反光預測圖;將所述歸一化的透射光預測圖輸入第一預設網路,經由所述第一預設網路的 第l層輸出所述歸一化的透射光預測圖對應的第l層的特徵圖,其中,1

Figure 109120319-A0305-02-0027-49
l
Figure 109120319-A0305-02-0027-50
P,P表示所述第一預設網路的總層數;將所述歸一化的反光預測圖輸入所述第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的反光預測圖對應的第l層的特徵圖;根據所述歸一化的透射光預測圖對應的第l層的特徵圖與所述歸一化的反光預測圖對應的第l層的特徵圖之間的歸一化互相關值,確定第一損失函數的值。 As an example of this implementation, the determining the value of the first loss function according to the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image includes: The corresponding transmitted light prediction image and the reflection prediction image corresponding to the training image are respectively normalized to obtain a normalized transmission light prediction image and a normalized reflection prediction image corresponding to the training image; The normalized transmitted light prediction map is input into a first preset network, and the characteristic map of the first layer corresponding to the normalized transmitted light prediction map is output through the first layer of the first preset network , Where 1
Figure 109120319-A0305-02-0027-49
l
Figure 109120319-A0305-02-0027-50
P, P represents the total number of layers of the first preset network; input the normalized reflection prediction map into the first preset network, and pass through the first layer of the first preset network Output the feature map of the first layer corresponding to the normalized reflection prediction map; according to the feature map of the first layer corresponding to the normalized transmitted light prediction map corresponding to the normalized reflection prediction map The normalized cross-correlation value between the feature maps of the first layer determines the value of the first loss function.

在該實現方式中,第一預設網路可以是VGG-19或者ResNet-18等,本發明實施例對此不作限定。 In this implementation manner, the first preset network may be VGG-19 or ResNet-18, etc., which is not limited in the embodiment of the present invention.

例如,訓練圖像對應的透射光預測圖可以表示為

Figure 109120319-A0305-02-0027-34
,訓練圖像對應的反光預測圖可以表示為
Figure 109120319-A0305-02-0027-35
。第一損失函數L PNCC (I A ,I B )可以根據式5得到:
Figure 109120319-A0305-02-0027-8
其中,
Figure 109120319-A0305-02-0027-9
Figure 109120319-A0305-02-0027-10
Figure 109120319-A0305-02-0027-11
表示I A 的歸一化結果,
Figure 109120319-A0305-02-0027-12
表示I B 的歸一化結果,
Figure 109120319-A0305-02-0027-13
表示
Figure 109120319-A0305-02-0027-14
輸入第一預設網路之後得到的第l層的特徵圖,
Figure 109120319-A0305-02-0027-15
表示
Figure 109120319-A0305-02-0027-16
輸入第一預設網路之後得到的第l層的特徵圖,n表示用於確定第一損失函數的總層數。例如,可以使用第一預設網路的conv2_2、conv3_2和conv4_2這三層輸出的特徵圖確定第一損失函數,那麽,在式5中,n=3。 For example, the transmitted light prediction map corresponding to the training image can be expressed as
Figure 109120319-A0305-02-0027-34
, The reflection prediction map corresponding to the training image can be expressed as
Figure 109120319-A0305-02-0027-35
. The first loss function L PNCC ( I A , I B ) can be obtained according to Equation 5:
Figure 109120319-A0305-02-0027-8
in,
Figure 109120319-A0305-02-0027-9
,
Figure 109120319-A0305-02-0027-10
,
Figure 109120319-A0305-02-0027-11
Represents the normalized result of I A,
Figure 109120319-A0305-02-0027-12
Represents the normalized result of I B,
Figure 109120319-A0305-02-0027-13
Express
Figure 109120319-A0305-02-0027-14
The feature map of the first layer obtained after inputting the first preset network,
Figure 109120319-A0305-02-0027-15
Express
Figure 109120319-A0305-02-0027-16
The feature map of the first layer obtained after inputting the first preset network, n represents the total number of layers used to determine the first loss function. For example, the first loss function can be determined using the feature maps output by the three layers of conv2_2, conv3_2, and conv4_2 of the first preset network. Then, in Equation 5, n=3.

圖3示出本發明實施例中對訓練圖像對應的透射光預 測圖和訓練圖像對應的反光預測圖歸一化前後第一損失函數L PNCC 的單調性的示意圖。其中,

Figure 109120319-A0305-02-0028-36
Figure 109120319-A0305-02-0028-37
,0
Figure 109120319-A0305-02-0028-51
α
Figure 109120319-A0305-02-0028-52
1,
Figure 109120319-A0305-02-0028-18
表示訓練圖像對應的透射光預測圖,
Figure 109120319-A0305-02-0028-19
表示訓練圖像對應的反光預測圖。如圖3所示,通過對所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖分別進行歸一化處理,能夠使第一損失函數L PNCC 隨著α的增大單調遞減。 3 shows a schematic diagram of the monotonicity of the first loss function L PNCC before and after normalization of the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image in the embodiment of the present invention. in,
Figure 109120319-A0305-02-0028-36
,
Figure 109120319-A0305-02-0028-37
, 0
Figure 109120319-A0305-02-0028-51
α
Figure 109120319-A0305-02-0028-52
1,
Figure 109120319-A0305-02-0028-18
Represents the transmitted light prediction map corresponding to the training image,
Figure 109120319-A0305-02-0028-19
Indicates the reflection prediction map corresponding to the training image. As shown in FIG. 3, by normalizing the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image, respectively, the first loss function L PNCC can be increased with α . Big monotonous decline.

在一種可能的實現方式中,所述至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路,包括:根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖;根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值;至少根據所述第二損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training of the first sub-network and the second sub-network at least according to the transmitted light prediction map corresponding to the training image includes: according to the training image and The difference between the reflective real image corresponding to the training image is used to obtain the transmitted light target image corresponding to the training image; the second loss is determined according to the transmitted light prediction image corresponding to the training image and the transmitted light target image The value of the function; training the first sub-network and the second sub-network at least according to the value of the second loss function.

在該實現方式中,可以將所述訓練圖像中像素點的像素值與所述訓練圖像對應的反光真實圖中相應像素點的像素值相減,得到所述訓練圖像對應的透射光目標圖。其中,所述訓練圖像對應的透射光目標圖可以表示所述訓練圖像對應的透射光圖的基準真相(Ground Truth),即所述訓練圖像對應的透射光目標圖可以表示所述訓練圖像去除反光後的圖像的基準真相。 In this implementation, the pixel value of the pixel in the training image can be subtracted from the pixel value of the corresponding pixel in the reflective real image corresponding to the training image to obtain the transmitted light corresponding to the training image Target graph. Wherein, the transmitted light target image corresponding to the training image may represent the ground truth of the transmitted light image corresponding to the training image, that is, the transmitted light target image corresponding to the training image may represent the training image. The basic truth of the image after the image has been de-reflected.

圖4示出了背景圖B、透射光圖T、反光圖R和混合圖M 的示意圖。其中,背景圖B表示不透過玻璃,直接對拍攝對象(即背景)進行拍攝得到的圖。混合圖M表示透過玻璃對玻璃後的拍攝對象拍攝得到的圖。相關技術中,將背景圖B作為網路的監督訊息。由於透過玻璃拍攝照片會發生折射,因此,背景圖B與拍攝得到的照片(帶反光的混合圖M)中,相應圖像訊息在圖像中的位置不同。而本發明實施例通過根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖,並將透射光目標圖作為神經網路的監督訊息,由此能夠使透射光目標圖與訓練圖像中相應圖像訊息在圖像中的位置相同,能夠解決相關技術中背景圖與混合圖中相應圖像訊息在圖像中的位置不對齊的問題,從而能夠提供高品質的訓練數據集,由此訓練得到的神經網路在實際應用時,能夠更準確地去除輸入圖像中的反光,得到更高品質的輸出圖像。其中,訓練圖像為帶反光的混合圖M,反光真實圖為訓練圖像對應的反光圖R的基準真相,本發明實施例可以根據T=M-R,得到訓練圖像對應的透射光目標圖T。採用該實現方式提供的方法可以處理多種形式的反射光,從而可以處理真實世界中的複雜光源造成的圖像反光問題,一般化能力較强。 Figure 4 shows the background image B, the transmitted light image T, the reflected light image R and the mixed image M Schematic diagram. Among them, the background image B represents the image obtained by directly photographing the subject (ie, the background) without passing through the glass. The hybrid map M represents a map obtained by photographing the subject behind the glass through the glass. In the related technology, the background image B is used as the supervision information of the network. Since the photo taken through the glass will be refracted, the position of the corresponding image information in the image is different in the background image B and the photo (mixed image M with reflection). The embodiment of the present invention obtains the transmitted light target image corresponding to the training image according to the difference between the training image and the reflective real image corresponding to the training image, and uses the transmitted light target image as the neural network Supervising the information, which can make the transmitted light target image and the corresponding image information in the training image have the same position in the image, and can solve the problem of the background image and the corresponding image information in the mixed image in the image. The alignment problem can provide a high-quality training data set, and the neural network obtained by this training can more accurately remove the reflections in the input image and obtain a higher-quality output image in actual application. Among them, the training image is a mixed image M with reflection, and the true reflection image is the reference truth of the reflection image R corresponding to the training image. According to the embodiment of the present invention, the transmitted light target image T corresponding to the training image can be obtained according to T=MR. . The method provided by this implementation mode can handle various forms of reflected light, so that the image reflection problem caused by complex light sources in the real world can be dealt with, and the generalization ability is strong.

作為該實現方式的一個示例,在所述根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖之前,所述方法還包括:通過偏振感測器採集訓練 圖像和所述訓練圖像對應的反光真實圖。 As an example of this implementation, before the obtaining the transmitted light target image corresponding to the training image according to the difference between the training image and the reflective real image corresponding to the training image, the method further includes : Collect training through the polarization sensor The image and the reflective real image corresponding to the training image.

圖5示出了訓練圖像和訓練圖像對應的反光真實圖的採集方法的示意圖。例如,可以用一塊黑布蓋住玻璃的背面來阻擋所有透射光,通過偏振感測器採集反光真實圖,再移開黑布,通過偏振感測器採集相應的訓練圖像。在本發明實施例中,可以採用不同類型的玻璃獲得訓練圖像和訓練圖像對應的反光真實圖,從而獲得豐富、多樣的訓練數據。 Fig. 5 shows a schematic diagram of a method for acquiring a training image and a reflective real image corresponding to the training image. For example, you can cover the back of the glass with a black cloth to block all the transmitted light, collect the real reflection image through the polarization sensor, then remove the black cloth, and collect the corresponding training images through the polarization sensor. In the embodiment of the present invention, different types of glasses may be used to obtain the training image and the reflective real image corresponding to the training image, thereby obtaining rich and diverse training data.

本發明實施例通過上述方式採集訓練圖像和訓練圖像對應的反光真實圖,並將所述訓練圖像與所述訓練圖像對應的反光真實圖之差作為所述訓練圖像對應的透射光目標圖,由此無需要求玻璃具有特殊的材質、厚度、顏色等,即,本發明實施例所適用的玻璃可以是平整的、彎曲的、薄的、厚的、帶顏色的、不帶顏色的等,從而能夠適用於更廣泛的應用場景。 In the embodiment of the present invention, the training image and the reflective real image corresponding to the training image are collected in the above-mentioned manner, and the difference between the training image and the reflective real image corresponding to the training image is used as the transmission corresponding to the training image. Optical target map, so there is no need to require glass to have a special material, thickness, color, etc., that is, the glass applicable to the embodiment of the present invention can be flat, curved, thin, thick, colored, and uncolored. , So that it can be applied to a wider range of application scenarios.

作為該實現方式的另一個示例,還可以通過仿真系統獲得訓練圖像和所述訓練圖像對應的反光真實圖。 As another example of this implementation, the training image and the reflective real image corresponding to the training image can also be obtained through a simulation system.

在一種可能的實現方式中,所述根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值,包括:根據所述訓練圖像對應的透射光預測圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光預測圖,其中,在所述訓練圖像對應的 第四偏振訊息圖中,過曝的像素點的像素值為第一預設值,非過曝的像素點的像素值為第二預設值,其中,所述第一預設值小於所述第二預設值;根據所述透射光目標圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光目標圖;將所述去除過曝的透射光預測圖輸入第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光預測圖對應的第k層的特徵圖,其中,1

Figure 109120319-A0305-02-0031-53
k
Figure 109120319-A0305-02-0031-54
Q,Q表示所述第二預設網路的總層數;將所述去除過曝的透射光目標圖輸入所述第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光目標圖對應的第k層的特徵圖;根據所述去除過曝的透射光預測圖對應的第k層的特徵圖與所述去除過曝的透射光目標圖對應的第k層的特徵圖之間的差值,確定第二損失函數的值。 In a possible implementation manner, the determining the value of the second loss function according to the transmitted light prediction map corresponding to the training image and the transmitted light target map includes: according to the transmitted light corresponding to the training image The product of the prediction image and the pixel value of the corresponding pixel in the fourth polarization information image corresponding to the training image is obtained to obtain the transmission light prediction image corresponding to the training image without overexposure, wherein, in the training image In the corresponding fourth polarization information image, the pixel value of the overexposed pixel is the first preset value, and the pixel value of the non-overexposed pixel is the second preset value, wherein the first preset value is less than The second preset value; according to the product of the transmitted light target image and the pixel value of the corresponding pixel in the fourth polarization information image corresponding to the training image, obtain the overexposed removal corresponding to the training image Transmitted light target map; input the overexposed transmitted light predicted map into a second preset network, and output the corresponding to the removed overexposed transmitted light predicted map through the kth layer of the second preset network The feature map of the k-th layer, where 1
Figure 109120319-A0305-02-0031-53
k
Figure 109120319-A0305-02-0031-54
Q, Q represents the total number of layers of the second preset network; input the overexposed transmitted light target map into the second preset network, and pass through the kth of the second preset network The layer outputs the feature map of the k-th layer corresponding to the overexposed transmitted light target image; according to the feature map of the k-th layer corresponding to the overexposed transmitted light prediction image and the removed overexposed transmitted light target The difference between the feature maps of the k-th layer corresponding to the map determines the value of the second loss function.

在該實現方式中,第二預設網路可以是VGG-19或者ResNet-18等,本發明實施例對此不作限定。 In this implementation, the second preset network may be VGG-19 or ResNet-18, etc., which is not limited in the embodiment of the present invention.

作為該實現方式的一個示例,第一預設值可以為0,第二預設值可以為1。當然,本發明實施例不限於此。例如,第一預設值可以為0.01,第二預設值可以為1。 As an example of this implementation, the first preset value may be 0, and the second preset value may be 1. Of course, the embodiment of the present invention is not limited to this. For example, the first preset value may be 0.01, and the second preset value may be 1.

例如,第二損失函數可以採用式6來表示:

Figure 109120319-A0305-02-0031-20
其中,T表示透射光目標圖,
Figure 109120319-A0305-02-0031-21
表示透射光預測圖,O表 示訓練圖像對應的第四偏振訊息圖,β k 表示第k層的權重,β k 可以基於各層參數的個數初始化,O×T表示去除過曝的透射光目標圖,O×
Figure 109120319-A0305-02-0032-22
表示去除過曝的透射光預測圖,v k (O×T)表示將O×T輸入第二預設網路之後得到的第k層的特徵圖,
Figure 109120319-A0305-02-0032-23
表示將O×
Figure 109120319-A0305-02-0032-24
輸入第二預設網路之後得到的第k層的特徵圖,m表示用於確定第二損失函數的總層數。例如,可以使用第二預設網路的conv1_1、conv1_2、conv2_2、conv3_2、conv4_2和conv5_2這6層輸出的特徵圖確定第二損失函數,那麽,在式6中,m=6。 For example, the second loss function can be expressed by Equation 6:
Figure 109120319-A0305-02-0031-20
Among them, T represents the transmitted light target image,
Figure 109120319-A0305-02-0031-21
Represents the transmitted light prediction image, O represents the fourth polarization information image corresponding to the training image, β k represents the weight of the k-th layer, β k can be initialized based on the number of parameters of each layer, O × T represents the removal of the overexposed transmitted light target Figure, O ×
Figure 109120319-A0305-02-0032-22
Represents the transmitted light prediction map with overexposure removed, v k ( O × T ) represents the feature map of the k-th layer obtained after O × T is input into the second preset network,
Figure 109120319-A0305-02-0032-23
Means O ×
Figure 109120319-A0305-02-0032-24
The feature map of the k-th layer obtained after inputting the second preset network, m represents the total number of layers used to determine the second loss function. For example, the second loss function can be determined using the feature maps output from the 6 layers of conv1_1, conv1_2, conv2_2, conv3_2, conv4_2, and conv5_2 of the second preset network. Then, in Equation 6, m=6.

在一種可能的實現方式中,所述神經網路的損失函數可以等於第一損失函數與第二損失函數之和。 In a possible implementation manner, the loss function of the neural network may be equal to the sum of the first loss function and the second loss function.

在一種可能的實現方式中,在訓練所述神經網路時,可以首先採用Adam的梯度下降優化方法,學習率設置為0.0001,訓練200個epoch(時期),再將學習率設置為0.00001,繼續訓練200個epoch。其中,每個epoch所用到的訓練圖像的數量可以根據訓練圖像的總量進行調節。 In a possible implementation, when training the neural network, you can first use Adam's gradient descent optimization method, set the learning rate to 0.0001, train for 200 epochs (periods), and then set the learning rate to 0.00001, continue Train for 200 epochs. Among them, the number of training images used in each epoch can be adjusted according to the total number of training images.

圖6示出採用本發明實施例提供的去除圖像中的反光的方法對帶有三種不同類型的反光的輸入圖像進行處理後得到的輸出圖像的示意圖。如圖6所示,本發明實施例提供的神經網路能夠準確地移除輸入圖像中的反光圖層,得到較高品質的去除反光後的輸出圖像。 FIG. 6 shows a schematic diagram of an output image obtained after processing an input image with three different types of reflections using the method for removing reflections in an image provided by an embodiment of the present invention. As shown in FIG. 6, the neural network provided by the embodiment of the present invention can accurately remove the reflective layer in the input image, and obtain a higher-quality output image after the reflection is removed.

本發明實施例提供的去除圖像中的反光的方法不限定反光類型、光源類型,能夠處理真實世界中的複雜光源造成的圖像反光問題,應用場景較為廣泛。另外,本發明實施例提供的神經網路的訓練方法能夠快速地完成網路的訓練。本發明實施例利用深度網路,能夠快速且精確地預測得到透射光預測圖(即去除反光後的圖)。 The method for removing light reflection in an image provided by the embodiment of the present invention does not limit the type of light reflection and the type of light source, and can deal with the problem of image reflection caused by complex light sources in the real world, and has a wide range of application scenarios. In addition, the neural network training method provided by the embodiment of the present invention can quickly complete the training of the network. The embodiment of the present invention uses the depth network to quickly and accurately predict the transmitted light prediction map (that is, the map after the reflection is removed).

可以理解,本發明提及的上述各個方法實施例,在不違背原理邏輯的情況下,均可以彼此相互結合形成結合後的實施例,限於篇幅,本發明不再贅述。 It can be understood that the various method embodiments mentioned in the present invention can be combined with each other to form a combined embodiment without violating the principle and logic. The length is limited, and the present invention will not be repeated.

本領域技術人員可以理解,在具體實施方式的上述方法中,各步驟的撰寫順序並不意味著嚴格的執行順序而對實施過程構成任何限定,各步驟的具體執行順序應當以其功能和可能的內在邏輯確定。 Those skilled in the art can understand that in the above methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.

此外,本發明還提供了去除圖像中的反光的裝置、電子設備、電腦可讀儲存媒體、程式,上述均可用來實現本發明提供的任一種去除圖像中的反光的方法,相應技術方案和描述和參見方法部分的相應記載,不再贅述。 In addition, the present invention also provides devices, electronic equipment, computer-readable storage media, and programs for removing reflections in images, all of which can be used to implement any of the methods provided by the present invention for removing reflections in images, and the corresponding technical solutions And descriptions and refer to the corresponding records in the method section, so I won’t repeat them.

圖7示出本發明實施例提供的去除圖像中的反光的裝置的方塊圖。如圖7所示,所述去除圖像中的反光的裝置包括:第一獲取模組71,用於獲取待處理圖像;第二獲取模組72,用於獲 取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,其中,所述待處理圖像對應的多個偏振圖是經過不同角度的偏振片形成的;第一預測模組73,用於根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖;第二預測模組74,用於根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像。 Fig. 7 shows a block diagram of a device for removing reflections in an image provided by an embodiment of the present invention. As shown in Figure 7, the device for removing reflections in an image includes: a first acquisition module 71 for acquiring an image to be processed; a second acquisition module 72 for acquiring Taking multiple polarization images corresponding to the image to be processed and polarization information corresponding to the image to be processed, wherein the multiple polarization images corresponding to the image to be processed are formed by polarizing plates with different angles; The first prediction module 73 is configured to determine the reflection prediction image corresponding to the image to be processed according to the multiple polarization images corresponding to the image to be processed and the polarization information corresponding to the image to be processed; the second prediction The module 74 is configured to determine a de-reflective image corresponding to the image to be processed according to the multiple polarization images corresponding to the image to be processed and the light reflection prediction image corresponding to the image to be processed.

在一種可能的實現方式中,所述第二獲取模組72用於:對待處理圖像中屬不同偏振片角度的像素點進行分離,得到所述待處理圖像對應的多個偏振圖;對所述待處理圖像對應的多個偏振圖中相應的像素點進行處理,得到所述待處理圖像對應的偏振訊息。 In a possible implementation, the second acquisition module 72 is used to: separate pixels belonging to different polarizer angles in the image to be processed to obtain multiple polarization images corresponding to the image to be processed; Corresponding pixel points in the multiple polarization images corresponding to the image to be processed are processed to obtain polarization information corresponding to the image to be processed.

在一種可能的實現方式中,所述待處理圖像對應的偏振訊息包括所述待處理圖像對應的第一偏振訊息圖、所述待處理圖像對應的第二偏振訊息圖、所述待處理圖像對應的第三偏振訊息圖和所述待處理圖像對應的第四偏振訊息圖中的至少之一,其中,所述待處理圖像對應的第一偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振光強度,所述待處理圖像對應的第二偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振程度,所述待處理圖像對應的第三偏振訊息圖用於表示所述待處理圖像對應 的多個偏振圖的光的偏振角度,所述待處理圖像對應的第四偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the image to be processed includes a first polarization information image corresponding to the image to be processed, a second polarization information image corresponding to the image to be processed, and At least one of the third polarization information image corresponding to the processed image and the fourth polarization information image corresponding to the image to be processed, wherein the first polarization information image corresponding to the image to be processed is used to represent the The polarization intensity of the multiple polarization images corresponding to the image to be processed, and the second polarization information image corresponding to the image to be processed is used to indicate the polarization degree of the multiple polarization images corresponding to the image to be processed. The third polarization information map corresponding to the processed image is used to indicate that the image to be processed corresponds to The polarization angles of the light of the multiple polarization images, the fourth polarization information image corresponding to the image to be processed is used to represent the information after the overexposure is removed from the multiple polarization images corresponding to the image to be processed.

在一種可能的實現方式中,所述裝置還包括:第三獲取模組,用於獲取訓練圖像對應的多個偏振圖,以及所述訓練圖像對應的偏振訊息,其中,所述訓練圖像對應的多個偏振圖是經過不同角度的偏振片形成的;第三預測模組,用於將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的偏振訊息輸入神經網路的第一子網路,經由所述第一子網路輸出所述訓練圖像對應的反光預測圖;第四預測模組,用於將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的反光預測圖輸入所述神經網路的第二子網路,經由所述第二子網路輸出所述訓練圖像對應的透射光預測圖;訓練模組,用於至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the device further includes: a third acquisition module for acquiring multiple polarization maps corresponding to the training image, and polarization information corresponding to the training image, wherein the training image The multiple polarization images corresponding to the image are formed through polarizers with different angles; the third prediction module is used to input the multiple polarization images corresponding to the training image and the polarization information corresponding to the training image into the neural network The first sub-network of the road, through the first sub-network, outputs the reflection prediction map corresponding to the training image; the fourth prediction module is used to combine the multiple polarization maps corresponding to the training image and the The reflection prediction map corresponding to the training image is input to the second sub-network of the neural network, and the transmitted light prediction map corresponding to the training image is output through the second sub-network; the training module is used for at least Training the first sub-network and the second sub-network according to the transmitted light prediction map corresponding to the training image.

在一種可能的實現方式中,所述第三獲取模組用於:對訓練圖像中屬不同偏振片角度的像素點進行分離,得到所述訓練圖像對應的多個偏振圖;對所述訓練圖像對應的多個偏振圖中相應的像素點進行處理,得到所述訓練圖像對應的偏振訊息。 In a possible implementation, the third acquisition module is used to: separate pixels belonging to different polarizer angles in the training image to obtain multiple polarization maps corresponding to the training image; The corresponding pixel points in the multiple polarization images corresponding to the training image are processed to obtain the polarization information corresponding to the training image.

在一種可能的實現方式中,所述訓練圖像對應的偏振訊息包括所述訓練圖像對應的第一偏振訊息圖、所述訓練圖像對應 的第二偏振訊息圖、所述訓練圖像對應的第三偏振訊息圖和所述訓練圖像對應的第四偏振訊息圖中的至少之一,其中,所述訓練圖像對應的第一偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振光強度,所述訓練圖像對應的第二偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的偏振程度,所述訓練圖像對應的第三偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖的光的偏振角度,所述訓練圖像對應的第四偏振訊息圖用於表示所述訓練圖像對應的多個偏振圖去除過曝後的訊息。 In a possible implementation, the polarization information corresponding to the training image includes the first polarization information map corresponding to the training image, and the training image corresponding to the first polarization information map. At least one of the second polarization information image corresponding to the training image, the third polarization information image corresponding to the training image, and the fourth polarization information image corresponding to the training image, wherein the first polarization information image corresponding to the training image The message image is used to represent the polarization intensity of the multiple polarization images corresponding to the training image, and the second polarization information image corresponding to the training image is used to represent the polarization degree of the multiple polarization images corresponding to the training image , The third polarization information diagram corresponding to the training image is used to represent the polarization angles of the light of the multiple polarization diagrams corresponding to the training image, and the fourth polarization information diagram corresponding to the training image is used to represent the The multiple polarization maps corresponding to the training images remove the overexposed information.

在一種可能的實現方式中,所述訓練模組用於:根據所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖,確定第一損失函數的值;至少根據所述第一損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training module is configured to: determine the value of the first loss function according to the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image; at least according to The value of the first loss function trains the first subnet and the second subnet.

在一種可能的實現方式中,所述訓練模組用於:對所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖分別進行歸一化處理,得到所述訓練圖像對應的歸一化的透射光預測圖和歸一化的反光預測圖;將所述歸一化的透射光預測圖輸入第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的透射光預測圖對應的第l層的特徵圖,其中,1

Figure 109120319-A0305-02-0036-55
l
Figure 109120319-A0305-02-0036-56
P,P表示所述第一預設網路的總層數;將所述歸一化的反光預測圖輸入所述第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的反光預 測圖對應的第l層的特徵圖;根據所述歸一化的透射光預測圖對應的第l層的特徵圖與所述歸一化的反光預測圖對應的第l層的特徵圖之間的歸一化互相關值,確定第一損失函數的值。 In a possible implementation, the training module is used to: normalize the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image to obtain the training The normalized transmitted light prediction map and the normalized reflection prediction map corresponding to the image; input the normalized transmitted light prediction map into the first preset network, and the The first layer outputs the feature map of the first layer corresponding to the normalized transmitted light prediction map, where 1
Figure 109120319-A0305-02-0036-55
l
Figure 109120319-A0305-02-0036-56
P, P represents the total number of layers of the first preset network; input the normalized reflection prediction map into the first preset network, and pass through the first layer of the first preset network Output the feature map of the first layer corresponding to the normalized reflection prediction map; according to the feature map of the first layer corresponding to the normalized transmitted light prediction map corresponding to the normalized reflection prediction map The normalized cross-correlation value between the feature maps of the first layer determines the value of the first loss function.

在一種可能的實現方式中,所述訓練模組用於:根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖;根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值;至少根據所述第二損失函數的值,訓練所述第一子網路和所述第二子網路。 In a possible implementation, the training module is configured to: obtain the transmitted light target image corresponding to the training image according to the difference between the training image and the reflective real image corresponding to the training image; The transmitted light prediction map and the transmitted light target map corresponding to the training image are used to determine the value of the second loss function; at least according to the value of the second loss function, the first subnet and the first subnet are trained Two subnets.

在一種可能的實現方式中,所述訓練模組用於:根據所述訓練圖像對應的透射光預測圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光預測圖,其中,在所述訓練圖像對應的第四偏振訊息圖中,過曝的像素點的像素值為第一預設值,非過曝的像素點的像素值為第二預設值,其中,所述第一預設值小於所述第二預設值;根據所述透射光目標圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光目標圖;將所述去除過曝的透射光預測圖輸入第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光預測圖對應的第k層的特徵圖,其中,1

Figure 109120319-A0305-02-0037-57
k
Figure 109120319-A0305-02-0037-58
Q,Q表示所述第二預設網路的總層數;將所述去除過曝的透射光目標圖輸入所述第二預設 網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光目標圖對應的第k層的特徵圖;根據所述去除過曝的透射光預測圖對應的第k層的特徵圖與所述去除過曝的透射光目標圖對應的第k層的特徵圖之間的差值,確定第二損失函數的值。 In a possible implementation, the training module is used to: according to the product of the transmitted light prediction image corresponding to the training image and the pixel value of the corresponding pixel in the fourth polarization information image corresponding to the training image , Obtain the transmitted light prediction map corresponding to the training image without overexposure, wherein, in the fourth polarization information map corresponding to the training image, the pixel value of the overexposed pixel is the first preset value, The pixel value of the non-overexposed pixel is a second preset value, wherein the first preset value is less than the second preset value; according to the transmitted light target image and the training image corresponding to the first The product of the pixel values of the corresponding pixels in the four-polarization information image to obtain the target image of the transmitted light for removing the overexposure corresponding to the training image; input the predicted image of the transmitted light for removing the overexposed light into the second preset network, Output the feature map of the k-th layer corresponding to the overexposed transmitted light prediction map through the k-th layer of the second preset network, where 1
Figure 109120319-A0305-02-0037-57
k
Figure 109120319-A0305-02-0037-58
Q, Q represents the total number of layers of the second preset network; input the overexposed transmitted light target map into the second preset network, and pass through the kth of the second preset network The layer outputs the feature map of the k-th layer corresponding to the overexposed transmitted light target image; according to the feature map of the k-th layer corresponding to the overexposed transmitted light prediction image and the removed overexposed transmitted light target The difference between the feature maps of the k-th layer corresponding to the map determines the value of the second loss function.

在一種可能的實現方式中,所述裝置還包括:採集模組,用於通過偏振感測器採集訓練圖像和所述訓練圖像對應的反光真實圖。 In a possible implementation manner, the device further includes: a collection module for collecting the training image and the reflective real image corresponding to the training image through the polarization sensor.

在一些實施例中,本發明實施例提供的裝置具有的功能或包含的模組可以用於執行上文方法實施例描述的方法,其具體實現可以參照上文方法實施例的描述,為了簡潔,這裏不再贅述。 In some embodiments, the functions or modules included in the device provided in the embodiments of the present invention can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For brevity, I won't repeat it here.

本發明實施例還提供一種電腦可讀儲存媒體,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現上述方法。其中,所述電腦可讀儲存媒體可以是非揮發性電腦可讀儲存媒體,或者可以是揮發性電腦可讀儲存媒體。 An embodiment of the present invention also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor. Wherein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.

本發明實施例還提供了一種電腦程式產品,包括電腦可讀代碼,當電腦可讀代碼在電子設備上運行時,所述電子設備中的處理器執行用於實現上述方法。 The embodiment of the present invention also provides a computer program product, which includes computer-readable code. When the computer-readable code runs on an electronic device, the processor in the electronic device executes to implement the above-mentioned method.

本發明實施例還提供了另一種電腦程式產品,用於儲存電腦可讀指令,指令被執行時使得電腦執行上述任一實施例提供的去除圖像中的反光的方法的操作。 The embodiment of the present invention also provides another computer program product for storing computer-readable instructions. When the instructions are executed, the computer executes the operations of the method for removing reflections in the image provided by any of the foregoing embodiments.

本發明實施例還提供一種電子設備,包括:一個或多個處理器;用於儲存可執行指令的記憶體;其中,所述一個或多個處理器被配置為調用所述記憶體儲存的可執行指令,以執行上述方法。 An embodiment of the present invention also provides an electronic device, including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the memory stored in the memory Execute instructions to perform the above methods.

電子設備可以被提供為終端、伺服器或其它形態的設備。 Electronic devices can be provided as terminals, servers, or other types of devices.

圖8示出本發明實施例提供的一種電子設備800的方塊圖。例如,電子設備800可以是行動電話,電腦,數位廣播終端,訊息收發設備,遊戲控制台,平板設備,醫療設備,健身設備,個人數位助理等終端。 FIG. 8 shows a block diagram of an electronic device 800 provided by an embodiment of the present invention. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.

參照圖8,電子設備800可以包括以下一個或多個組件:處理組件802,記憶體804,電源組件806,多媒體組件808,音訊組件810,輸入/輸出(I/O)的介面812,感測器組件814,以及通訊組件816。 8, the electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensing The device component 814, and the communication component 816.

處理組件802通常控制電子設備800的整體操作,諸如與顯示,電話呼叫,數據通訊,相機操作和記錄操作相關聯的操作。處理組件802可以包括一個或多個處理器820來執行指令,以完成上述的方法的全部或部分步驟。此外,處理組件802可以包括一個或多個模組,便於處理組件802和其他組件之間的交互。例如,處理組件802可以包括多媒體模組,以方便多媒體組件808和處理組 件802之間的交互。 The processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the multimedia component 808 and the processing group Interaction between pieces 802.

記憶體804被配置為儲存各種類型的數據以支持在電子設備800的操作。這些數據的示例包括用於在電子設備800上操作的任何應用程式或方法的指令,連絡人數據,電話簿數據,訊息,圖片,視訊等。記憶體804可以由任何類型的揮發性或非揮發性儲存設備或者它們的組合實現,如靜態隨機存取記憶體(SRAM),電子可抹除可程式化唯讀記憶體(EEPROM),可抹除可程式化唯讀記憶體(EPROM),可程式化唯讀記憶體(PROM),唯讀記憶體(ROM),磁記憶體,快閃記憶體,磁碟或光碟。 The memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method operated on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be realized by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (SRAM), electronically erasable programmable read-only memory (EEPROM), erasable In addition to programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, floppy disk or optical disk.

電源組件806為電子設備800的各種組件提供電力。電源組件806可以包括電源管理系統,一個或多個電源,及其他與為電子設備800生成、管理和分配電力相關聯的組件。 The power supply component 806 provides power for various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.

多媒體組件808包括在所述電子設備800和用戶之間的提供一個輸出介面的螢幕。在一些實施例中,螢幕可以包括液晶顯示器(LCD)和觸控面板(TP)。如果螢幕包括觸控面板,螢幕可以被實現為觸控螢幕,以接收來自用戶的輸入訊號。觸控面板包括一個或多個觸控感測器以感測觸控、滑動和觸控面板上的手勢。所述觸控感測器可以不僅感測觸控或滑動動作的邊界,而且還檢測與所述觸控或滑動操作相關的持續時間和壓力。在一些實施例中,多媒體組件808包括一個前置攝影機和/或後置攝影機。當電子 設備800處於操作模式,如拍攝模式或視訊模式時,前置攝影機和/或後置攝影機可以接收外部的多媒體數據。每個前置攝影機和後置攝影機可以是一個固定的光學透鏡系統或具有焦距和光學變焦能力。 The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor can not only sense the boundary of a touch or sliding action, but also detect the duration and pressure related to the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When electronic When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

音訊組件810被配置為輸出和/或輸入音訊訊號。例如,音訊組件810包括一個麥克風(MIC),當電子設備800處於操作模式,如呼叫模式、記錄模式和語音識別模式時,麥克風被配置為接收外部音訊訊號。所接收的音訊訊號可以被進一步儲存在記憶體804或經由通訊組件816發送。在一些實施例中,音訊組件810還包括一個揚聲器,用於輸出音訊訊號。 The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC). When the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

I/O介面812為處理組件802和周邊介面模組之間提供介面,上述周邊介面模組可以是鍵盤,滑鼠,按鈕等。這些按鈕可包括但不限於:主頁按鈕、音量按鈕、啟動按鈕和鎖定按鈕。 The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The peripheral interface module may be a keyboard, a mouse, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

感測器組件814包括一個或多個感測器,用於為電子設備800提供各個方面的狀態評估。例如,感測器組件814可以檢測到電子設備800的打開/關閉狀態,組件的相對定位,例如所述組件為電子設備800的顯示器和小鍵盤,感測器組件814還可以檢測電子設備800或電子設備800一個組件的位置改變,用戶與電子設備800接觸的存在或不存在,電子設備800方位或加速/減速和電子設備800的溫度變化。感測器組件814可以包括接近感測器,被配置 用來在沒有任何的物理接觸時檢測附近物體的存在。感測器組件814還可以包括光感測器,如CMOS(互補式金氧半導體)或CCD(電荷耦合元件)圖像感測器,用於在成像應用中使用。在一些實施例中,該感測器組件814還可以包括加速度感測器,陀螺儀感測器,磁感測器,壓力感測器或溫度感測器。 The sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation. For example, the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components. For example, the component is the display and the keypad of the electronic device 800, and the sensor component 814 can also detect the electronic device 800 or The position of a component of the electronic device 800 changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 may include a proximity sensor and is configured Used to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge Coupled Device) image sensor for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通訊組件816被配置為便於電子設備800和其他設備之間有線或無線方式的通訊。電子設備800可以接入基於通訊標準的無線網路,如Wi-Fi(無線網路)、2G(第二代行動通訊技術)、3G(第三代行動通訊技術)、4G/LTE(第四代行動通訊技術/長期演進技術)、5G(第五代行動通訊技術)或它們的組合。在一個示例性實施例中,通訊組件816經由廣播信道接收來自外部廣播管理系統的廣播訊號或廣播相關訊息。在一個示例性實施例中,所述通訊組件816還包括近場通訊(NFC)模組,以促進短程通訊。例如,在NFC模組可基於射頻識別(RFID)技術,紅外數據協會(IrDA)技術,超寬頻(UWB)技術,藍牙(BT)技術和其他技術來實現。 The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access wireless networks based on communication standards, such as Wi-Fi (wireless network), 2G (second-generation mobile communication technology), 3G (third-generation mobile communication technology), 4G/LTE (fourth generation) Mobile communication technology/long-term evolution technology), 5G (fifth generation mobile communication technology) or their combination. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related messages from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性實施例中,電子設備800可以被一個或多個應用專用積體電路(ASIC)、數位訊號處理器(DSP)、數位訊號處理設備(DSPD)、可程式化邏輯裝置(PLD)、現場可程式化邏輯閘陣列(FPGA)、控制器、微控制器、微處理器或其他電子 元件實現,用於執行上述方法。 In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), Field programmable logic gate array (FPGA), controller, microcontroller, microprocessor or other electronics Component implementation, used to implement the above method.

在示例性實施例中,還提供了一種非揮發性電腦可讀儲存媒體,例如包括電腦程式指令的記憶體804,上述電腦程式指令可由電子設備800的處理器820執行以完成上述方法。 In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the above method.

圖9示出本發明實施例提供的一種電子設備1900的方塊圖。例如,電子設備1900可以被提供為一伺服器。參照圖9,電子設備1900包括處理組件1922,其進一步包括一個或多個處理器,以及由記憶體1932所代表的記憶體資源,用於儲存可由處理組件1922的執行的指令,例如應用程式。記憶體1932中儲存的應用程式可以包括一個或一個以上的每一個對應於一組指令的模組。此外,處理組件1922被配置為執行指令,以執行上述方法。 FIG. 9 shows a block diagram of an electronic device 1900 provided by an embodiment of the present invention. For example, the electronic device 1900 may be provided as a server. 9, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions that can be executed by the processing component 1922, such as application programs. The application program stored in the memory 1932 may include one or more modules each corresponding to a set of commands. In addition, the processing component 1922 is configured to execute instructions to perform the above-mentioned methods.

電子設備1900還可以包括一個電源組件1926被配置為執行電子設備1900的電源管理,一個有線或無線網路介面1950被配置為將電子設備1900連接到網路,和一個輸入輸出(I/O)介面1958。電子設備1900可以操作基於儲存在記憶體1932的操作系統,例如Windows Server®(微軟作業系統),Mac OS X®(麥金塔作業系統),Unix®(UNIX作業系統),Linux®(LINUX作業系統),FreeBSD®(FreeBSD系統)或類似。 The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input and output (I/O) Interface 1958. The electronic device 1900 can operate based on the operating system stored in the memory 1932, such as Windows Server® (Microsoft operating system), Mac OS X® (Macintosh operating system), Unix® (UNIX operating system), Linux® (LINUX operating system) System), FreeBSD® (FreeBSD system) or similar.

在示例性實施例中,還提供了一種非揮發性電腦可讀儲存媒體,例如包括電腦程式指令的記憶體1932,上述電腦程式 指令可由電子設備1900的處理組件1922執行以完成上述方法。 In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions. The instructions can be executed by the processing component 1922 of the electronic device 1900 to complete the above-mentioned methods.

本發明可以是系統、方法和/或電腦程式產品。電腦程式產品可以包括電腦可讀儲存媒體,其上載有用於使處理器實現本發明的各個方面的電腦可讀程式指令。 The present invention can be a system, a method and/or a computer program product. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling the processor to implement various aspects of the present invention.

電腦可讀儲存媒體可以是可以保持和儲存由指令執行設備使用的指令的有形設備。電腦可讀儲存媒體例如可以是--但不限於--電儲存設備、磁儲存設備、光儲存設備、電磁儲存設備、半導體儲存設備或者上述的任意合適的組合。電腦可讀儲存媒體的更具體的例子(非窮舉的列表)包括:可攜式電腦盤、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可抹除可程式化唯讀記憶體(EPROM或快閃記憶體)、靜態隨機存取記憶體(SRAM)、可攜式壓縮磁碟唯讀記憶體(CD-ROM)、數位多功能影音光碟(DVD)、記憶卡、磁片、機械編碼設備、例如其上儲存有指令的打孔卡或凹槽內凸起結構、以及上述的任意合適的組合。這裏所使用的電腦可讀儲存媒體不被解釋為瞬時訊號本身,諸如無線電波或者其他自由傳播的電磁波、通過波導或其他傳輸媒介傳播的電磁波(例如,通過光纖電纜的光脈衝)、或者通過電線傳輸的電訊號。 The computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (non-exhaustive list) include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable and programmable Modified read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital multi-function audio-visual disc (DVD), memory Cards, magnetic sheets, mechanical encoding devices, such as punched cards on which instructions are stored or raised structures in grooves, and any suitable combination of the above. The computer-readable storage medium used here is not interpreted as the instantaneous signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission signal.

這裏所描述的電腦可讀程式指令可以從電腦可讀儲存媒體下載到各個計算/處理設備,或者通過網路、例如網際網路、 區域網路、廣域網路和/或無線網下載到外部電腦或外部儲存設備。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換機、閘道電腦和/或邊緣伺服器。每個計算/處理設備中的網路介面卡或者網路介面從網路接收電腦可讀程式指令,並轉發該電腦可讀程式指令,以供儲存在各個計算/處理設備中的電腦可讀儲存媒體中。 The computer-readable program instructions described here can be downloaded from a computer-readable storage medium to various computing/processing devices, or through a network, such as the Internet, Local area network, wide area network and/or wireless network download to external computer or external storage device. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network interface card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for computer-readable storage in each computing/processing device In the media.

用於執行本發明操作的電腦程式指令可以是彙編指令、指令集架構(ISA)指令、機器指令、機器相關指令、微代碼、韌體指令、狀態設置數據、或者以一種或多種程式化語言的任意組合編寫的原始碼或目標代碼,所述程式化語言包括面向對象的程式化語言-諸如Smalltalk(物件導向語言)、C++(程式設計語言)等,以及常規的過程式程式化語言-諸如“C”語言或類似的程式化語言。電腦可讀程式指令可以完全地在用戶電腦上執行、部分地在用戶電腦上執行、作為一個獨立的套裝軟體執行、部分在用戶電腦上部分在遠端電腦上執行、或者完全在遠端電腦或伺服器上執行。在涉及遠端電腦的情形中,遠端電腦可以通過任意種類的網路-包括區域網路(LAN)或廣域網路(WAN)-連接到用戶電腦,或者,可以連接到外部電腦(例如利用網際網路服務提供商來通過網際網路連接)。在一些實施例中,通過利用電腦可讀程式指令的狀態訊息來個性化定制電子電路,例如可程式化邏輯電路、現場可程式化 邏輯閘陣列(FPGA)或可程式化邏輯陣列(PLA),該電子電路可以執行電腦可讀程式指令,從而實現本發明的各個方面。 The computer program instructions used to perform the operations of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages. Source code or object code written in any combination, the programming language includes object-oriented programming languages-such as Smalltalk (object-oriented language), C++ (programming language), etc., and conventional procedural programming languages-such as " C" language or similar programming language. The computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on the remote computer, or entirely on the remote computer or Execute on the server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN)-or it can be connected to an external computer (for example, using the Internet). Internet service provider to connect via the Internet). In some embodiments, the electronic circuit is personalized by using the status information of the computer-readable program instructions, such as programmable logic circuit, field programmable Logic Gate Array (FPGA) or Programmable Logic Array (PLA), the electronic circuit can execute computer-readable program instructions to realize various aspects of the present invention.

這裏參照根據本發明實施例的方法、裝置(系統)和電腦程式產品的流程圖和/或方塊圖描述了本發明的各個方面。應當理解,流程圖和/或方塊圖的每個方塊以及流程圖和/或方塊圖中各方塊的組合,都可以由電腦可讀程式指令實現。 Here, various aspects of the present invention are described with reference to flowcharts and/or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each block of the flowchart and/or block diagram and the combination of each block in the flowchart and/or block diagram can be implemented by computer-readable program instructions.

這些電腦可讀程式指令可以提供給通用電腦、專用電腦或其它可程式化數據處理裝置的處理器,從而生產出一種機器,使得這些指令在通過電腦或其它可程式化數據處理裝置的處理器執行時,產生了實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的裝置。也可以把這些電腦可讀程式指令儲存在電腦可讀儲存媒體中,這些指令使得電腦、可程式化數據處理裝置和/或其他設備以特定方式工作,從而,儲存有指令的電腦可讀媒體則包括一個製造品,其包括實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的各個方面的指令。 These computer-readable program instructions can be provided to the processors of general-purpose computers, dedicated computers, or other programmable data processing devices, so as to produce a machine that allows these instructions to be executed by the processors of the computer or other programmable data processing devices. At this time, a device that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram is produced. These computer-readable program instructions can also be stored in a computer-readable storage medium. These instructions make the computer, the programmable data processing device, and/or other equipment work in a specific manner, so that the computer-readable medium storing the instructions is It includes an article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowchart and/or block diagram.

也可以把電腦可讀程式指令加載到電腦、其它可程式化數據處理裝置、或其它設備上,使得在電腦、其它可程式化數據處理裝置或其它設備上執行一系列操作步驟,以產生電腦實現的過程,從而使得在電腦、其它可程式化數據處理裝置、或其它設備上執行的指令實現流程圖和/或方塊圖中的一個或多個方塊中規定的 功能/動作。 It is also possible to load computer-readable program instructions onto a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to generate a computer realization The process of making the instructions executed on a computer, other programmable data processing device, or other equipment realize the requirements specified in one or more blocks in the flowchart and/or block diagram Function/action.

圖式中的流程圖和方塊圖顯示了根據本發明的多個實施例的系統、方法和電腦程式產品的可能實現的體系架構、功能和操作。在這點上,流程圖或方塊圖中的每個方塊可以代表一個模組、程式段或指令的一部分,所述模組、程式段或指令的一部分包含一個或多個用於實現規定的邏輯功能的可執行指令。在有些作為替換的實現中,方塊中所標注的功能也可以以不同於圖式中所標注的順序發生。例如,兩個連續的方塊實際上可以基本並行地執行,它們有時也可以按相反的順序執行,這依所涉及的功能而定。也要注意的是,方塊圖和/或流程圖中的每個方塊、以及方塊圖和/或流程圖中的方塊的組合,可以用執行規定的功能或動作的專用的基於硬體的系統來實現,或者可以用專用硬體與電腦指令的組合來實現。 The flowcharts and block diagrams in the drawings show the possible implementation architecture, functions, and operations of the system, method, and computer program product according to multiple embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction includes one or more logic for implementing the specified Executable instructions for the function. In some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, as well as the combination of blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs prescribed functions or actions. It can be realized, or it can be realized by a combination of dedicated hardware and computer instructions.

該電腦程式產品可以具體通過硬體、軟體或其結合的方式實現。在一個可選實施例中,所述電腦程式產品具體體現為電腦儲存媒體,在另一個可選實施例中,電腦程式產品具體體現為軟體產品,例如軟體開發套件(Software Development Kit,SDK)等等。 The computer program product can be implemented by hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is specifically embodied as a computer storage medium. In another alternative embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.

以上已經描述了本發明的各實施例,上述說明是示例性的,並非窮盡性的,並且也不限於所披露的各實施例。在不偏離 所說明的各實施例的範圍和精神的情況下,對於本技術領域的普通技術人員來說許多修改和變更都是顯而易見的。本文中所用術語的選擇,旨在最好地解釋各實施例的原理、實際應用或對市場中的技術的改進,或者使本技術領域的其它普通技術人員能理解本文披露的各實施例。 The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Do not deviate Given the scope and spirit of the described embodiments, many modifications and changes are obvious to those of ordinary skill in the art. The choice of terms used herein is intended to best explain the principles, practical applications, or improvements to the technology in the market for each embodiment, or to enable those of ordinary skill in the art to understand the various embodiments disclosed herein.

S11~S14:步驟S11~S14: steps

Claims (11)

一種去除圖像中的反光的方法,包括:獲取待處理圖像;獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,其中,所述待處理圖像對應的多個偏振圖是經過不同角度的偏振片形成的;根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的偏振訊息,確定所述待處理圖像對應的反光預測圖;根據所述待處理圖像對應的多個偏振圖和所述待處理圖像對應的反光預測圖,確定所述待處理圖像對應的去除反光後的圖像。 A method for removing reflections in an image includes: acquiring an image to be processed; acquiring a plurality of polarization maps corresponding to the image to be processed, and polarization information corresponding to the image to be processed, wherein the to-be-processed image The multiple polarization images corresponding to the image are formed by polarizing plates with different angles; the multiple polarization images corresponding to the image to be processed and the polarization information corresponding to the image to be processed are used to determine the image to be processed Corresponding light reflection prediction map; determine the light reflection-removed image corresponding to the image to be processed according to the multiple polarization maps corresponding to the image to be processed and the light reflection prediction map corresponding to the image to be processed. 如請求項1所述的方法,其中,所述獲取所述待處理圖像對應的多個偏振圖,以及所述待處理圖像對應的偏振訊息,包括:對待處理圖像中屬不同偏振片角度的像素點進行分離,得到所述待處理圖像對應的多個偏振圖;對所述待處理圖像對應的多個偏振圖中相應的像素點進行處理,得到所述待處理圖像對應的偏振訊息。 The method according to claim 1, wherein the acquiring multiple polarization maps corresponding to the image to be processed and the polarization information corresponding to the image to be processed includes: different polarizers in the image to be processed The pixel points of the angle are separated to obtain multiple polarization images corresponding to the image to be processed; the corresponding pixel points in the multiple polarization images corresponding to the image to be processed are processed to obtain the image corresponding to the image to be processed The polarization message. 如請求項1或2所述的方法,其中,所述待處理圖像對應的偏振訊息包括所述待處理圖像對應的第一偏振訊息圖、所述待處理圖像對應的第二偏振訊息圖、所述待處理圖像對應的第三偏振訊息圖和所述待處理圖像對應的第四偏振訊息圖中的至少之一,其中,所述待處理圖像對應的 第一偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振光強度,所述待處理圖像對應的第二偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的偏振程度,所述待處理圖像對應的第三偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖的光的偏振角度,所述待處理圖像對應的第四偏振訊息圖用於表示所述待處理圖像對應的多個偏振圖去除過曝後的訊息。 The method according to claim 1 or 2, wherein the polarization information corresponding to the image to be processed includes a first polarization information map corresponding to the image to be processed, and a second polarization information corresponding to the image to be processed Figure. At least one of the third polarization information map corresponding to the image to be processed and the fourth polarization information map corresponding to the image to be processed, wherein the image to be processed corresponds to The first polarization information graph is used to represent the polarization intensity of the multiple polarization images corresponding to the image to be processed, and the second polarization information graph corresponding to the image to be processed is used to represent the multiple polarization images corresponding to the image to be processed. The polarization degree of a polarization image, the third polarization information image corresponding to the image to be processed is used to indicate the polarization angles of the light of the multiple polarization images corresponding to the image to be processed, and the first image corresponding to the image to be processed The four-polarization information image is used to represent the information after the overexposure is removed from the multiple polarization images corresponding to the image to be processed. 如請求項1所述的方法,其中,在所述獲取待處理圖像之前,所述方法還包括:獲取訓練圖像對應的多個偏振圖,以及所述訓練圖像對應的偏振訊息,其中,所述訓練圖像對應的多個偏振圖是經過不同角度的偏振片形成的;將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的偏振訊息輸入神經網路的第一子網路,經由所述第一子網路輸出所述訓練圖像對應的反光預測圖;將所述訓練圖像對應的多個偏振圖和所述訓練圖像對應的反光預測圖輸入所述神經網路的第二子網路,經由所述第二子網路輸出所述訓練圖像對應的透射光預測圖;至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路。 The method according to claim 1, wherein, before the obtaining the image to be processed, the method further includes: obtaining a plurality of polarization maps corresponding to the training image, and polarization information corresponding to the training image, wherein The multiple polarization images corresponding to the training image are formed through polarizers with different angles; the multiple polarization images corresponding to the training image and the polarization information corresponding to the training image are input into the first neural network. A sub-network, which outputs the reflection prediction map corresponding to the training image via the first sub-network; inputs the multiple polarization maps corresponding to the training image and the reflection prediction map corresponding to the training image into the office The second sub-network of the neural network outputs the transmitted light prediction map corresponding to the training image via the second sub-network; at least the transmission light prediction map corresponding to the training image is used to train the first A subnet and the second subnet. 如請求項4所述的方法,其中,所述至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路,包括:根據所述訓練圖像對應的透射光預測圖和所述訓練圖 像對應的反光預測圖,確定第一損失函數的值;至少根據所述第一損失函數的值,訓練所述第一子網路和所述第二子網路。 The method according to claim 4, wherein the training the first sub-network and the second sub-network at least according to the transmitted light prediction map corresponding to the training image includes: according to the training The transmitted light prediction image corresponding to the image and the training image Determine the value of the first loss function like the corresponding reflection prediction map; at least according to the value of the first loss function, train the first subnet and the second subnet. 如請求項5所述的方法,其中,所述根據所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖,確定第一損失函數的值,包括:對所述訓練圖像對應的透射光預測圖和所述訓練圖像對應的反光預測圖分別進行歸一化處理,得到所述訓練圖像對應的歸一化的透射光預測圖和歸一化的反光預測圖;將所述歸一化的透射光預測圖輸入第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的透射光預測圖對應的第l層的特徵圖,其中,1
Figure 109120319-A0305-02-0052-59
l
Figure 109120319-A0305-02-0052-60
P,P表示所述第一預設網路的總層數;將所述歸一化的反光預測圖輸入所述第一預設網路,經由所述第一預設網路的第l層輸出所述歸一化的反光預測圖對應的第l層的特徵圖;根據所述歸一化的透射光預測圖對應的第l層的特徵圖與所述歸一化的反光預測圖對應的第l層的特徵圖之間的歸一化互相關值,確定第一損失函數的值。
The method according to claim 5, wherein the determining the value of the first loss function according to the transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image includes: The transmitted light prediction map corresponding to the training image and the reflection prediction map corresponding to the training image are respectively normalized to obtain a normalized transmission light prediction map and a normalized reflection prediction map corresponding to the training image Figure; the normalized transmitted light prediction map is input into the first preset network, and the first layer corresponding to the normalized transmitted light prediction map is output through the first layer of the first preset network Feature map, where 1
Figure 109120319-A0305-02-0052-59
l
Figure 109120319-A0305-02-0052-60
P, P represents the total number of layers of the first preset network; input the normalized reflection prediction map into the first preset network, and pass through the first layer of the first preset network Output the feature map of the first layer corresponding to the normalized reflection prediction map; according to the feature map of the first layer corresponding to the normalized transmitted light prediction map corresponding to the normalized reflection prediction map The normalized cross-correlation value between the feature maps of the first layer determines the value of the first loss function.
如請求項4至6其中任意一項所述的方法,其中,所述至少根據所述訓練圖像對應的透射光預測圖,訓練所述第一子網路和所述第二子網路,包括:根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖; 根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值;至少根據所述第二損失函數的值,訓練所述第一子網路和所述第二子網路。 The method according to any one of claims 4 to 6, wherein the training of the first subnet and the second subnet is based on at least the transmitted light prediction map corresponding to the training image, It includes: obtaining the transmitted light target image corresponding to the training image according to the difference between the training image and the reflective real image corresponding to the training image; Determine the value of the second loss function according to the transmitted light prediction map and the transmitted light target map corresponding to the training image; at least according to the value of the second loss function, train the first subnet and the The second subnet. 如請求項7所述的方法,其中,所述根據所述訓練圖像對應的透射光預測圖和所述透射光目標圖,確定第二損失函數的值,包括:根據所述訓練圖像對應的透射光預測圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光預測圖,其中,在所述訓練圖像對應的第四偏振訊息圖中,過曝的像素點的像素值為第一預設值,非過曝的像素點的像素值為第二預設值,其中,所述第一預設值小於所述第二預設值;根據所述透射光目標圖與所述訓練圖像對應的第四偏振訊息圖中相應像素點的像素值的乘積,得到所述訓練圖像對應的去除過曝的透射光目標圖;將所述去除過曝的透射光預測圖輸入第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光預測圖對應的第k層的特徵圖,其中,1
Figure 109120319-A0305-02-0053-61
k
Figure 109120319-A0305-02-0053-62
Q,Q表示所述第二預設網路的總層數;將所述去除過曝的透射光目標圖輸入所述第二預設網路,經由所述第二預設網路的第k層輸出所述去除過曝的透射光目標圖對應的第k層的特徵圖;根據所述去除過曝的透射光預測圖對應的第k層的特 徵圖與所述去除過曝的透射光目標圖對應的第k層的特徵圖之間的差值,確定第二損失函數的值。
The method according to claim 7, wherein the determining the value of the second loss function according to the transmitted light prediction map corresponding to the training image and the transmitted light target map includes: corresponding to the training image The product of the predicted transmitted light map and the pixel values of the corresponding pixels in the fourth polarization information map corresponding to the training image to obtain the predicted transmitted light map corresponding to the training image without overexposure, wherein, in the In the fourth polarization information image corresponding to the training image, the pixel value of the overexposed pixel is the first preset value, and the pixel value of the non-overexposed pixel is the second preset value, wherein the first preset Set the value to be smaller than the second preset value; according to the product of the pixel value of the corresponding pixel in the fourth polarization information image corresponding to the transmitted light target image and the training image, the removal corresponding to the training image is obtained Overexposed transmitted light target map; input the overexposed transmitted light prediction map into a second preset network, and output the overexposed transmitted light prediction through the kth layer of the second preset network The feature map of the k-th layer corresponding to the image, where 1
Figure 109120319-A0305-02-0053-61
k
Figure 109120319-A0305-02-0053-62
Q, Q represents the total number of layers of the second preset network; input the overexposed transmitted light target map into the second preset network, and pass through the kth of the second preset network The layer outputs the feature map of the k-th layer corresponding to the overexposed transmitted light target image; according to the feature map of the k-th layer corresponding to the overexposed transmitted light prediction image and the removed overexposed transmitted light target The difference between the feature maps of the k-th layer corresponding to the map determines the value of the second loss function.
如請求項7所述的方法,其中,在所述根據所述訓練圖像與所述訓練圖像對應的反光真實圖之差,得到所述訓練圖像對應的透射光目標圖之前,所述方法還包括:通過偏振感測器採集訓練圖像和所述訓練圖像對應的反光真實圖。 The method according to claim 7, wherein, before obtaining the transmitted light target image corresponding to the training image according to the difference between the training image and the reflective real image corresponding to the training image, the The method further includes: collecting a training image and a reflective real image corresponding to the training image through a polarization sensor. 一種電子設備,包括:一個或多個處理器;用於儲存可執行指令的記憶體;其中,所述一個或多個處理器被配置為調用所述記憶體儲存的可執行指令,以執行如請求項1至9其中任意一項所述的方法。 An electronic device includes: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the executable instructions stored in the memory to execute such as The method described in any one of claims 1 to 9. 一種電腦可讀儲存媒體,其上儲存有電腦程式指令,其中,所述電腦程式指令被處理器執行時實現如請求項1至9其中任意一項所述的方法。A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions are executed by a processor to implement the method described in any one of claim items 1 to 9.
TW109120319A 2020-03-04 2020-06-17 Method, electronic device and computer readable storage medium for removing reflection in image TWI749593B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010144325.2A CN111369464B (en) 2020-03-04 2020-03-04 Method and device for removing reflection in image, electronic equipment and storage medium
CN202010144325.2 2020-03-04

Publications (2)

Publication Number Publication Date
TW202135005A TW202135005A (en) 2021-09-16
TWI749593B true TWI749593B (en) 2021-12-11

Family

ID=71211696

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109120319A TWI749593B (en) 2020-03-04 2020-06-17 Method, electronic device and computer readable storage medium for removing reflection in image

Country Status (3)

Country Link
CN (1) CN111369464B (en)
TW (1) TWI749593B (en)
WO (1) WO2021174687A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488939B (en) * 2020-11-27 2024-06-14 深圳市中博科创信息技术有限公司 Image processing method, terminal device and storage medium
CN112598598B (en) * 2020-12-25 2023-11-28 南京信息工程大学滨江学院 Image reflected light removing method based on two-stage reflected light eliminating network
CN113011303B (en) * 2021-03-12 2023-04-18 支付宝(杭州)信息技术有限公司 Method and device for determining facial features based on polarized images
CN113421191A (en) * 2021-06-28 2021-09-21 Oppo广东移动通信有限公司 Image processing method, device, equipment and storage medium
CN115358937B (en) * 2022-07-18 2023-06-20 荣耀终端有限公司 Image anti-reflection method, medium and electronic equipment
CN115082477B (en) * 2022-08-23 2022-10-28 山东鲁芯之光半导体制造有限公司 Semiconductor wafer processing quality detection method based on light reflection removing effect
TWI820889B (en) * 2022-09-01 2023-11-01 英屬維爾京群島商威爾德嘉德有限公司 Image processing method and device
WO2024113368A1 (en) * 2022-12-02 2024-06-06 华为技术有限公司 Image processing method and apparatus, and storage medium
CN117422646B (en) * 2023-12-19 2024-05-10 荣耀终端有限公司 Training method of anti-reflection model, anti-reflection model and anti-reflection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070280513A1 (en) * 2004-04-27 2007-12-06 The Trustees Of The University Of Pennslyvania Polarization and Reflection Based Non-Contact Latent Fingerprint Imaging and Lifting
CN102742258A (en) * 2010-07-21 2012-10-17 松下电器产业株式会社 Image processing device
CN108038454A (en) * 2017-12-15 2018-05-15 北京正通亿和文化艺术交流有限公司 A kind of holography light face acquisition system
TW201932923A (en) * 2018-01-16 2019-08-16 美商伊路米納有限公司 Multi-arm structured illumination imaging

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019004204A (en) * 2017-06-12 2019-01-10 住友電工システムソリューション株式会社 Image processing device, image output device and computer program
CN108286966B (en) * 2018-01-24 2021-11-19 北京航空航天大学 Self-adaptive multispectral polarization navigation sensor and orientation method thereof
CN108492364B (en) * 2018-03-27 2022-09-20 百度在线网络技术(北京)有限公司 Method and apparatus for generating image generation model
CN108900754A (en) * 2018-08-27 2018-11-27 广州大学 It is a kind of for eliminating the reflective photographic device of glasses mirror surface and its control method
CN109325912B (en) * 2018-08-27 2023-05-12 曜科智能科技(上海)有限公司 Reflection separation method based on polarized light field and calibration splicing system
CN109993124B (en) * 2019-04-03 2023-07-14 深圳华付技术股份有限公司 Living body detection method and device based on video reflection and computer equipment
CN110827217B (en) * 2019-10-30 2022-07-12 维沃移动通信有限公司 Image processing method, electronic device, and computer-readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070280513A1 (en) * 2004-04-27 2007-12-06 The Trustees Of The University Of Pennslyvania Polarization and Reflection Based Non-Contact Latent Fingerprint Imaging and Lifting
CN102742258A (en) * 2010-07-21 2012-10-17 松下电器产业株式会社 Image processing device
CN108038454A (en) * 2017-12-15 2018-05-15 北京正通亿和文化艺术交流有限公司 A kind of holography light face acquisition system
TW201932923A (en) * 2018-01-16 2019-08-16 美商伊路米納有限公司 Multi-arm structured illumination imaging

Also Published As

Publication number Publication date
CN111369464A (en) 2020-07-03
TW202135005A (en) 2021-09-16
WO2021174687A1 (en) 2021-09-10
CN111369464B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
TWI749593B (en) Method, electronic device and computer readable storage medium for removing reflection in image
WO2021196401A1 (en) Image reconstruction method and apparatus, electronic device and storage medium
TWI728621B (en) Image processing method and device, electronic equipment, computer readable storage medium and computer program
US11532180B2 (en) Image processing method and device and storage medium
TWI755833B (en) An image processing method, an electronic device and a storage medium
TWI706379B (en) Method, apparatus and electronic device for image processing and storage medium thereof
CN109658401B (en) Image processing method and device, electronic equipment and storage medium
EP3923234A1 (en) Training method and device for an image enhancement model, and storage medium
KR20210065178A (en) Biometric detection method and device, electronic device and storage medium
US20220262012A1 (en) Image Processing Method and Apparatus, and Storage Medium
CN104918107B (en) The identification processing method and device of video file
TWI769523B (en) Image processing method, electronic device and computer-readable storage medium
CN110458218B (en) Image classification method and device and classification network training method and device
WO2021169136A1 (en) Image processing method and apparatus, and electronic device and storage medium
CN111553864A (en) Image restoration method and device, electronic equipment and storage medium
CN111243011A (en) Key point detection method and device, electronic equipment and storage medium
CN110619610B (en) Image processing method and device
JP6909317B2 (en) Image processing model training methods, equipment and media
KR101701814B1 (en) Method and apparatus for displaying framing information
CN112819714A (en) Target object exposure method, device, storage medium and equipment
CN111192218A (en) Image processing method and device, electronic equipment and storage medium
TWI770531B (en) Face recognition method, electronic device and storage medium thereof
CN111275641A (en) Image processing method and device, electronic equipment and storage medium
CN107451972B (en) Image enhancement method, device and computer readable storage medium
CN109034068B (en) Video processing method and device, electronic equipment and storage medium