[go: up one dir, main page]

TWI885935B - Display parameter adjustment method and electronic device - Google Patents

Display parameter adjustment method and electronic device Download PDF

Info

Publication number
TWI885935B
TWI885935B TW113120736A TW113120736A TWI885935B TW I885935 B TWI885935 B TW I885935B TW 113120736 A TW113120736 A TW 113120736A TW 113120736 A TW113120736 A TW 113120736A TW I885935 B TWI885935 B TW I885935B
Authority
TW
Taiwan
Prior art keywords
image
neural network
network model
display
training
Prior art date
Application number
TW113120736A
Other languages
Chinese (zh)
Other versions
TW202548729A (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 宏碁股份有限公司
Priority to TW113120736A priority Critical patent/TWI885935B/en
Application granted granted Critical
Publication of TWI885935B publication Critical patent/TWI885935B/en
Publication of TW202548729A publication Critical patent/TW202548729A/en

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

A display parameter adjustment method and an electronic device are disclosed. The method includes: performing a first image classification training on a neural network model based on a first training mode; performing a second image classification training on the neural network model based on a second training mode, wherein a total number of the convolutional layer participating in the second image classification training is less than a total number of the convolutional layer participating in the first image classification training; obtaining first color distribution information corresponding to an image; providing the first color distribution information to the neural network model to identify a type of the image through the neural network model; performing a first-stage adjustment on a display parameter based on a classification result; obtaining second color distribution information corresponding to the image; calculating color compensation information based on the second color distribution information; and performing a second-stage adjustment on the display parameter based on the color compensation information.

Description

顯示參數調整方法與電子裝置Display parameter adjustment method and electronic device

本發明是有關於一種顯示參數調整方法與電子裝置。The present invention relates to a display parameter adjustment method and an electronic device.

部分類型的顯示器或顯示裝置支援讓使用者在顯示器的多種顯示模式之間進行手動切換。但是,實務上讓使用者進行手動的顯示模式的切換是不切實際的。原因是,大多數的使用者即便一開始將顯示器的顯示模式設定為某一種顯示模式(例如文書模式),但在切換顯示器的顯示內容(例如從瀏覽工作報表切換為觀看影片)後,使用者往往會選擇沿用先前設定的顯示模式,進而在不適合的顯示模式下觀看顯示器所呈現的影像。此外,即便使用者願意手動或由系統自動選擇顯示模式,當顯示器所呈現的影像內容發生較大幅度的變化時,選定的顯示模式也無法即時針對顯示器的顯示參數進行動態調整,從而導致使用者始終無法獲得顯示器呈現的影像的最佳的觀看體驗。Some types of monitors or display devices support users to manually switch between multiple display modes of the monitor. However, in practice, it is impractical to allow users to manually switch display modes. The reason is that even if most users initially set the display mode of the monitor to a certain display mode (such as document mode), after switching the display content of the monitor (such as switching from browsing a work report to watching a video), users often choose to use the previously set display mode, thereby viewing the image presented by the monitor in an inappropriate display mode. Furthermore, even if the user is willing to select a display mode manually or automatically by the system, when the image content displayed by the monitor changes significantly, the selected display mode cannot be dynamically adjusted according to the display parameters of the monitor in real time, resulting in the user never being able to obtain the best viewing experience of the image displayed by the monitor.

有鑑於此,本發明提供一種顯示參數調整方法與電子裝置,可改善上述問題,並可有效提高使用者對顯示器呈現的影像的觀看體驗。In view of this, the present invention provides a display parameter adjustment method and an electronic device, which can improve the above-mentioned problems and effectively enhance the user's viewing experience of the images presented by the display.

本發明的實施例提供一種顯示參數調整方法,其包括:將神經網路模型設定為第一訓練模式並基於所述第一訓練模式對所述神經網路模型進行第一影像分類訓練;在完成所述第一影像分類訓練後,將所述神經網路模型設定為第二訓練模式並基於所述第二訓練模式對所述神經網路模型進行第二影像分類訓練,其中在所述神經網路模型中,參與所述第二影像分類訓練的卷積層的總數少於參與所述第一影像分類訓練的卷積層的總數;透過顯示器呈現影像;獲得對應於所述影像的第一色彩分布資訊;將所述第一色彩分布資訊提供至所述神經網路模型,以透過所述神經網路模型對所述影像進行分類;根據所述神經網路模型對所述影像的分類結果,對所述顯示器使用的顯示參數進行第一階段調整;根據所述第一階段調整的結果,獲得對應於所述影像的第二色彩分布資訊;根據所述第二色彩分布資訊,計算色彩補償資訊;以及根據所述色彩補償資訊對所述顯示器使用的所述顯示參數進行第二階段調整。An embodiment of the present invention provides a display parameter adjustment method, which includes: setting a neural network model to a first training mode and performing a first image classification training on the neural network model based on the first training mode; after completing the first image classification training, setting the neural network model to a second training mode and performing a second image classification training on the neural network model based on the second training mode, wherein in the neural network model, the total number of convolution layers participating in the second image classification training is less than the total number of convolution layers participating in the first image classification training; presenting an image through a display ; obtaining first color distribution information corresponding to the image; providing the first color distribution information to the neural network model to classify the image through the neural network model; performing a first-stage adjustment on the display parameters used by the display according to the classification result of the neural network model on the image; obtaining second color distribution information corresponding to the image according to the result of the first-stage adjustment; calculating color compensation information according to the second color distribution information; and performing a second-stage adjustment on the display parameters used by the display according to the color compensation information.

本發明的實施例另提供一種電子裝置,其包括顯示器、儲存電路及處理器。所述儲存電路用以儲存神經網路模型。所述處理器耦接至所述顯示器與所述儲存電路。所述處理器用以:將所述神經網路模型設定為第一訓練模式並基於所述第一訓練模式對所述神經網路模型進行第一影像分類訓練;在完成所述第一影像分類訓練後,將所述神經網路模型設定為第二訓練模式並基於所述第二訓練模式對所述神經網路模型進行第二影像分類訓練,其中在所述神經網路模型中,參與所述第二影像分類訓練的卷積層的總數少於參與所述第一影像分類訓練的卷積層的總數;透過所述顯示器呈現影像;獲得對應於所述影像的第一色彩分布資訊;將所述第一色彩分布資訊提供至所述神經網路模型,以透過所述神經網路模型對所述影像進行分類;根據所述神經網路模型對所述影像的分類結果,對所述顯示器使用的顯示參數進行第一階段調整;根據所述第一階段調整的結果,獲得對應於所述影像的第二色彩分布資訊;根據所述第二色彩分布資訊,計算色彩補償資訊;以及根據所述色彩補償資訊對所述顯示器使用的所述顯示參數進行第二階段調整。The embodiment of the present invention further provides an electronic device, which includes a display, a storage circuit and a processor. The storage circuit is used to store a neural network model. The processor is coupled to the display and the storage circuit. The processor is used to: set the neural network model to a first training mode and perform a first image classification training on the neural network model based on the first training mode; after completing the first image classification training, set the neural network model to a second training mode and perform a second image classification training on the neural network model based on the second training mode, wherein in the neural network model, the total number of convolutional layers participating in the second image classification training is less than the total number of convolutional layers participating in the first image classification training; present an image through the display; obtain a corresponding The method comprises: providing the first color distribution information of the image; providing the first color distribution information to the neural network model to classify the image through the neural network model; performing a first-stage adjustment on the display parameters used by the display according to the classification result of the neural network model on the image; obtaining second color distribution information corresponding to the image according to the result of the first-stage adjustment; calculating color compensation information according to the second color distribution information; and performing a second-stage adjustment on the display parameters used by the display according to the color compensation information.

基於上述,在完成第一訓練模式下的第一影像分類訓練後,神經網路模型中參與第二訓練模式下的第二影像分類訓練的卷積層的總數可被減少,以有效鎖定已經完成更新的特徵參數,並進一步針對細部特徵的辨識進行訓練。此外,在完成神經網路模型的訓練後,顯示器使用的顯示參數可進行兩階段的調整。其中,第一階段的調整是基於神經網路模型對影像的分類結果執行,而第二階段的調整則是在第一階段的調整的基礎上進一步對顯示器使用的顯示參數進行動態補償。藉此,可有效提高使用者對顯示器呈現的影像的觀看體驗。Based on the above, after completing the first image classification training in the first training mode, the total number of convolutional layers in the neural network model that participate in the second image classification training in the second training mode can be reduced to effectively lock the feature parameters that have been updated and further train the recognition of detailed features. In addition, after completing the training of the neural network model, the display parameters used by the display can be adjusted in two stages. Among them, the adjustment in the first stage is based on the classification results of the image by the neural network model, and the adjustment in the second stage is to further dynamically compensate the display parameters used by the display on the basis of the adjustment in the first stage. In this way, the user's viewing experience of the image presented by the display can be effectively improved.

圖1是根據本發明的實施例所繪示的電子裝置的示意圖。FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present invention.

請參照圖1,電子裝置10可為智慧型手機、平板電腦、筆記型電腦、桌上型電腦、遊戲機、伺服器或車載電腦等各式支援影像處理及影像呈現功能的電子裝置,且電子裝置10的類型不限於此。1 , the electronic device 10 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a game console, a server, or a car computer, etc., and the type of the electronic device 10 is not limited thereto.

電子裝置10包括顯示器11、儲存電路12及處理器13。顯示器11用以呈現影像。例如,顯示器11可包括電漿顯示器(Plasma Display)、液晶顯示器(liquid-crystal display, LCD)、薄膜電晶體液晶顯示器(Thin film transistor liquid crystal display, TFT-LCD)、有機發光二極體(Organic Light-Emitting Diode, OLED)及發光二極體顯示器(LED display)等,且顯示器11的類型不限於此。The electronic device 10 includes a display 11, a storage circuit 12, and a processor 13. The display 11 is used to present images. For example, the display 11 may include a plasma display (Plasma Display), a liquid crystal display (LCD), a thin film transistor liquid crystal display (TFT-LCD), an organic light-emitting diode (OLED), and a light-emitting diode display (LED display), etc., and the type of the display 11 is not limited thereto.

在一實施例中,顯示器11是結合設置於電子裝置10中。在一實施例中,顯示器11亦可設置於電子裝置10外部並可透過有線或無線方式耦接至電子裝置10。In one embodiment, the display 11 is integrated in the electronic device 10. In one embodiment, the display 11 can also be disposed outside the electronic device 10 and can be coupled to the electronic device 10 via a wired or wireless method.

儲存電路12用以儲存資料。例如,儲存電路12可包括唯讀記憶體(Read Only Memory, ROM)、固態硬碟(solid state disk, SSD)、傳統硬碟(Hard disk drive, HDD)、快閃記憶體模組、嵌入式多媒體卡(embedded MultiMedia Card, eMMC)、通用快閃儲存(Universal Flash Storage, UFS)裝置或其他類型的非揮發性儲存媒體。The storage circuit 12 is used to store data. For example, the storage circuit 12 may include a read-only memory (ROM), a solid state disk (SSD), a traditional hard disk (HDD), a flash memory module, an embedded MultiMedia Card (eMMC), a universal flash storage (UFS) device, or other types of non-volatile storage media.

處理器13耦接至顯示器11與儲存電路12。處理器13可用以負責電子裝置10的整體或部分運作。例如,處理器13可包括中央處理單元(Central Processing Unit, CPU)、或是其他可程式化之一般用途或特殊用途的微處理器、數位訊號處理器(Digital Signal Processor, DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits, ASIC)、可程式化邏輯裝置(Programmable Logic Device, PLD)或其他類似裝置或這些裝置的組合。在一實施例中,處理器13還可包括圖像處理單元(Graphic Processing Unit, GPU)、視覺處理單元(Vision Processing Unit, VPU)、神經網路處理器(Neural network Processing Unit, NPU)或其他專用以(或有利於)執行影像處理或神經網路處理的處理器。The processor 13 is coupled to the display 11 and the storage circuit 12. The processor 13 can be used to be responsible for the overall or partial operation of the electronic device 10. For example, the processor 13 may include a central processing unit (CPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSP), programmable controllers, application specific integrated circuits (ASIC), programmable logic devices (PLD), or other similar devices or combinations of these devices. In one embodiment, the processor 13 may also include a graphics processing unit (GPU), a vision processing unit (VPU), a neural network processor (NPU), or other processors dedicated to (or conducive to) performing image processing or neural network processing.

在一實施例中,電子裝置10還可包括網路介面卡、滑鼠、鍵盤、觸控板、揚聲器、麥克風、及/或電源管理電路等各式周邊裝置及/或輸入/輸出裝置。本發明不限制所述周邊裝置及/或所述輸入/輸出裝置的類型。In one embodiment, the electronic device 10 may further include various peripheral devices and/or input/output devices such as a network interface card, a mouse, a keyboard, a touch panel, a speaker, a microphone, and/or a power management circuit. The present invention does not limit the types of the peripheral devices and/or the input/output devices.

在一實施例中,儲存電路12中可儲存神經網路模型101。神經網路模型101可用以對顯示器11所呈現的影像進行分類。例如,神經網路模型101可採用EfficientNet或其他類型的卷積神經網路(Convolutional Neural Network, CNN)架構來實現,本發明不加以限制。In one embodiment, the storage circuit 12 may store a neural network model 101. The neural network model 101 may be used to classify the image presented by the display 11. For example, the neural network model 101 may be implemented using EfficientNet or other types of convolutional neural network (CNN) architectures, and the present invention is not limited thereto.

圖2是根據本發明的實施例所繪示的神經網路模型的示意圖。FIG2 is a schematic diagram of a neural network model according to an embodiment of the present invention.

請參照圖2,神經網路模型101包括輸入端21、輸出端22及運算核心23。運算核心23耦接於輸入端21與輸出端22之間。輸入端21用以接收輸入資料並將所接收到的輸入資料輸入至運算核心23。輸出端22可用以根據運算核心23的運算結果產生輸出資料。運算核心23包括卷積層(convolutional layer)24(1)~24(m)。在對神經網路模型101進行訓練的期間,卷積層24(1)~24(m)可依序執行預先定義的運算,且卷積層24(1)~24(m)所使用的特徵參數可被更新。例如,此特徵參數可包括權重參數或其他類型的參數,本發明不加以限制。2, the neural network model 101 includes an input terminal 21, an output terminal 22 and a computing core 23. The computing core 23 is coupled between the input terminal 21 and the output terminal 22. The input terminal 21 is used to receive input data and input the received input data to the computing core 23. The output terminal 22 can be used to generate output data according to the calculation result of the computing core 23. The computing core 23 includes convolutional layers 24(1)~24(m). During the training of the neural network model 101, the convolutional layers 24(1)~24(m) can execute predefined operations in sequence, and the feature parameters used by the convolutional layers 24(1)~24(m) can be updated. For example, the characteristic parameter may include a weight parameter or other types of parameters, which are not limited by the present invention.

在一實施例中,在對神經網路模型101進行訓練的期間,卷積層24(1)~24(m)可依序對輸入資料進行處理並透過輸出端22產生輸出結果。例如,此輸出結果可反映神經網路模型101所辨識或認為的輸入資料所對應的影像的類型。In one embodiment, during the training of the neural network model 101, the convolutional layers 24(1)-24(m) may process the input data in sequence and generate output results through the output terminal 22. For example, the output results may reflect the type of image corresponding to the input data recognized or recognized by the neural network model 101.

在一實施例中,處理器13可使用驗證資料來驗證神經網路模型101的輸出,並根據驗證結果來更新卷積層24(1)~24(m)的至少其中之一所使用的特徵參數。藉此,在使用大量訓練資料來對神經網路模型101進行影像的分類訓練後,神經網路模型101對影像的分類準確率可逐漸提升。In one embodiment, the processor 13 can use the verification data to verify the output of the neural network model 101, and update the feature parameters used by at least one of the convolutional layers 24(1)-24(m) according to the verification result. In this way, after using a large amount of training data to train the neural network model 101 for image classification, the accuracy of the neural network model 101 for image classification can be gradually improved.

在一實施例中,在對神經網路模型101進行訓練的期間,處理器13可將卷積層24(1)~24(m)的至少其中之一設定為鎖定狀態或非鎖定狀態。特別是,在卷積層24(1)~24(m)中,只有被設定為非鎖定狀態的卷積層(或未被設定為鎖定狀態的卷積層)所使用的特徵參數可以被更新,而被設定為鎖定狀態的卷積層所使用的特徵參數將無法被更新。例如,在對神經網路模型101進行訓練的期間,假設卷積層24(i)被設定為非鎖定狀態且卷積層24(j)被設定為鎖定狀態,則只有卷積層24(i)所使用的特徵參數可以被更新,而卷積層24(j)所使用的特徵參數將無法被更新。此外,處理器13可動態設定或切換卷積層24(1)~24(m)中的每一個卷積層處於鎖定狀態或非鎖定狀態。In one embodiment, during the training of the neural network model 101, the processor 13 may set at least one of the convolutional layers 24(1)-24(m) to a locked state or an unlocked state. In particular, among the convolutional layers 24(1)-24(m), only the feature parameters used by the convolutional layers set to the unlocked state (or the convolutional layers not set to the locked state) can be updated, while the feature parameters used by the convolutional layers set to the locked state cannot be updated. For example, during the training of the neural network model 101, assuming that the convolution layer 24(i) is set to an unlocked state and the convolution layer 24(j) is set to a locked state, only the feature parameters used by the convolution layer 24(i) can be updated, while the feature parameters used by the convolution layer 24(j) cannot be updated. In addition, the processor 13 can dynamically set or switch each of the convolution layers 24(1) to 24(m) to be in a locked state or an unlocked state.

在一實施例中,在對神經網路模型101進行訓練的初期,處理器13可將神經網路模型101設定為特定的訓練模式(亦稱為第一訓練模式)。處理器13可基於第一訓練模式對神經網路模型101進行影像分類訓練(亦稱為第一影像分類訓練)。例如,在第一訓練模式中,處理器13可將訓練資料輸入至神經網路模型101,根據驗證資料來驗證神經網路模型101的輸出,並根據驗證結果來更新卷積層24(1)~24(m)中當前非處於鎖定狀態的至少一卷積層所使用的特徵參數。In one embodiment, in the early stage of training the neural network model 101, the processor 13 may set the neural network model 101 to a specific training mode (also referred to as the first training mode). The processor 13 may perform image classification training on the neural network model 101 based on the first training mode (also referred to as the first image classification training). For example, in the first training mode, the processor 13 may input training data into the neural network model 101, verify the output of the neural network model 101 based on the verification data, and update the feature parameters used by at least one convolution layer in the convolution layers 24(1)~24(m) that is not currently in a locked state based on the verification result.

在一實施例中,在完成第一影像分類訓練後,處理器13可進一步將神經網路模型101設定為另一訓練模式(亦稱為第二訓練模式)。處理器13可基於第二訓練模式對神經網路模型101進行影像分類訓練(亦稱為第二影像分類訓練)。例如,在第二訓練模式中,處理器13同樣可將訓練資料輸入至神經網路模型101,根據驗證資料來驗證神經網路模型101的輸出,並根據驗證結果來更新卷積層24(1)~24(m)中當前非處於鎖定狀態的至少一卷積層所使用的特徵參數。須注意的是,在神經網路模型101中,參與第二影像分類訓練的卷積層的總數可少於參與第一影像分類訓練的卷積層的總數。In one embodiment, after completing the first image classification training, the processor 13 may further set the neural network model 101 to another training mode (also referred to as the second training mode). The processor 13 may perform image classification training on the neural network model 101 based on the second training mode (also referred to as the second image classification training). For example, in the second training mode, the processor 13 may also input training data into the neural network model 101, verify the output of the neural network model 101 according to the verification data, and update the feature parameters used by at least one convolution layer in the convolution layers 24(1)~24(m) that is not currently in a locked state according to the verification result. It should be noted that, in the neural network model 101, the total number of convolutional layers participating in the second image classification training may be less than the total number of convolutional layers participating in the first image classification training.

在一實施例中,假設在第一訓練模式中,卷積層24(1)~24(m)中有N(1)個卷積層未被設定為鎖定狀態(或N(1)個卷積層被設定為非鎖定狀態),則這N(1)個未被設定為鎖定狀態的卷積層可參與第一影像分類訓練。特別是,這N(1)個未被設定為鎖定狀態的卷積層所使用的特徵參數可在第一影像分類訓練中被更新,以反映第一影像分類訓練的訓練結果。In one embodiment, assuming that in the first training mode, N(1) of the convolutional layers 24(1)-24(m) are not set to a locked state (or N(1) of the convolutional layers are set to an unlocked state), then the N(1) convolutional layers that are not set to a locked state can participate in the first image classification training. In particular, the feature parameters used by the N(1) convolutional layers that are not set to a locked state can be updated in the first image classification training to reflect the training results of the first image classification training.

另一方面,假設在第二訓練模式中,卷積層24(1)~24(m)中有N(2)個卷積層未被設定為鎖定狀態(或N(2)個卷積層被設定為非鎖定狀態),則這N(2)個未被設定為鎖定狀態的卷積層可參與第二影像分類訓練。N(1)可大於N(2)。特別是,這N(2)個未被設定為鎖定狀態的卷積層所使用的特徵參數可在第二影像分類訓練中被更新,以反映第二影像分類訓練的訓練結果。On the other hand, assuming that in the second training mode, N(2) of the convolutional layers 24(1)~24(m) are not set to a locked state (or N(2) convolutional layers are set to an unlocked state), then these N(2) convolutional layers that are not set to a locked state can participate in the second image classification training. N(1) can be greater than N(2). In particular, the feature parameters used by these N(2) convolutional layers that are not set to a locked state can be updated in the second image classification training to reflect the training results of the second image classification training.

在一實施例中,假設神經網路模型101中的至少一卷積層(亦稱為第一卷積層)在第一訓練模式中未被設定為鎖定狀態。因此,在第一訓練模式中,第一卷積層可參與神經網路模型101的第一影像分類訓練,且第一卷積層所使用的特徵參數可在第一訓練模式中被更新,以反映第一影像分類訓練的訓練結果。In one embodiment, it is assumed that at least one convolution layer (also referred to as the first convolution layer) in the neural network model 101 is not set to a locked state in the first training mode. Therefore, in the first training mode, the first convolution layer can participate in the first image classification training of the neural network model 101, and the feature parameters used by the first convolution layer can be updated in the first training mode to reflect the training results of the first image classification training.

然而,在離開第一訓練模式並進入第二訓練模式後,在第二訓練模式中,處理器13可將第一卷積層設定為鎖定狀態(即將第一卷積層從第一訓練模式中的非鎖定狀態切換為鎖定狀態)。因此,在第二訓練模式中,此第一卷積層將無法參與神經網路模型101的第二影像分類訓練,且第一卷積層所使用的特徵參數將不會在第二訓練模式中被更新。因此,在第二訓練模式中,處理器13可僅針對神經網路模型101中未被設定為鎖定狀態的至少一卷積層(亦稱為第二卷積層)進行第二影像分類訓練,並可對應更新第二卷積層所使用的特徵參數,以反映第二影像分類訓練的訓練結果。However, after leaving the first training mode and entering the second training mode, in the second training mode, the processor 13 may set the first convolution layer to a locked state (i.e., switching the first convolution layer from an unlocked state in the first training mode to a locked state). Therefore, in the second training mode, the first convolution layer will not be able to participate in the second image classification training of the neural network model 101, and the feature parameters used by the first convolution layer will not be updated in the second training mode. Therefore, in the second training mode, the processor 13 may perform the second image classification training only on at least one convolution layer (also referred to as the second convolution layer) in the neural network model 101 that is not set to a locked state, and may update the feature parameters used by the second convolution layer accordingly to reflect the training results of the second image classification training.

在一實施例中,相較於第二卷積層,第一卷積層在神經網路模型101的運算核心中更遠離神經網路模型101的輸出端。或者,從另一角度而言,相較於第二卷積層,第一卷積層在神經網路模型101的運算核心中更接近神經網路模型101的輸入端。In one embodiment, compared with the second convolution layer, the first convolution layer is farther away from the output end of the neural network model 101 in the computing core of the neural network model 101. Or, from another perspective, compared with the second convolution layer, the first convolution layer is closer to the input end of the neural network model 101 in the computing core of the neural network model 101.

圖3是根據本發明的實施例所繪示的處於第一訓練模式的神經網路模型的示意圖。FIG3 is a schematic diagram of a neural network model in a first training mode according to an embodiment of the present invention.

請參照圖3,在第一訓練模式中,處理器13可將卷積層24(1)~24(m)設定為非鎖定狀態(在圖3中標記為T)。在第一訓練模式中,透過對處於非鎖定狀態的卷積層24(1)~24(m)執行第一影像分類訓練,卷積層24(1)~24(m)中至少部分的卷積層所使用的特徵參數可被更新,以反映第一影像分類訓練的執行結果。3 , in the first training mode, the processor 13 may set the convolution layers 24(1)-24(m) to an unlocked state (marked as T in FIG. 3 ). In the first training mode, by performing a first image classification training on the convolution layers 24(1)-24(m) in the unlocked state, feature parameters used by at least a portion of the convolution layers 24(1)-24(m) may be updated to reflect the results of the first image classification training.

圖4是根據本發明的實施例所繪示的處於第二訓練模式的神經網路模型的示意圖。FIG4 is a schematic diagram of a neural network model in a second training mode according to an embodiment of the present invention.

請參照圖4,在第二訓練模式中,處理器13可將卷積層24(1)~24(n)(即第一卷積層)切換為鎖定狀態(在圖4中標記為F),並將卷積層24(n+1)~24(m)(即第二卷積層)維持於非鎖定狀態(在圖4中標記為T)。特別是,相較於卷積層24(n+1)~24(m)的至少其中之一,卷積層24(1)~24(n)的至少其中之一更加遠離神經網路模型101的輸出端22及/或更加靠近神經網路模型101的輸入端21。4 , in the second training mode, the processor 13 may switch the convolutional layers 24(1)-24(n) (i.e., the first convolutional layers) to a locked state (marked as F in FIG. 4 ), and maintain the convolutional layers 24(n+1)-24(m) (i.e., the second convolutional layers) in an unlocked state (marked as T in FIG. 4 ). In particular, compared to at least one of the convolutional layers 24(n+1)-24(m), at least one of the convolutional layers 24(1)-24(n) is farther away from the output terminal 22 of the neural network model 101 and/or closer to the input terminal 21 of the neural network model 101.

在第二訓練模式中,透過對處於非鎖定狀態的卷積層24(n+1)~24(m)執行第二影像分類訓練,卷積層24(n+1)~24(m)中至少部分的卷積層所使用的特徵參數可被更新,以反映第二影像分類訓練的執行結果。同時,在第二訓練模式中,處於鎖定狀態的卷積層24(1)~24(n)未參與第二影像分類訓練。因此,卷積層24(1)~24(n)所使用的特徵參數不會在第二訓練模式中被更新。In the second training mode, by performing the second image classification training on the convolutional layers 24(n+1)~24(m) in the unlocked state, the feature parameters used by at least part of the convolutional layers 24(n+1)~24(m) can be updated to reflect the execution result of the second image classification training. At the same time, in the second training mode, the convolutional layers 24(1)~24(n) in the locked state do not participate in the second image classification training. Therefore, the feature parameters used by the convolutional layers 24(1)~24(n) will not be updated in the second training mode.

須注意的是,在圖3與圖4的實施例中,被設定為鎖定狀態及/或非鎖定狀態的卷積層的總數及/或分布皆可根據實務需求調整,本發明不加以限制。It should be noted that in the embodiments of FIG. 3 and FIG. 4 , the total number and/or distribution of convolutional layers set to a locked state and/or an unlocked state can be adjusted according to practical needs, and the present invention is not limited thereto.

在一實施例中,在對神經網路模型101進行訓練的初期(即第一訓練模式中),將第一卷積層納入第一影像分類訓練,可對第一卷積層所使用的特徵參數進行初步更新,以針對神經網路模型101對輸入資料所對應的影像提供較為概略或較大範圍的辨識能力。然而,在對神經網路模型101完成第一影像分類訓練後,在對神經網路模型101進行訓練的後期(即第二訓練模式中),將第一卷積層從第二影像分類訓練中排除(即將第一卷積層設定為鎖定狀態),則可有效保留第一卷積層在第一訓練模式中建立的特徵參數,同時對更靠近神經網路模型101的輸出端的第二卷積層所使用的特徵參數進行進一步更新。藉此,可提高神經網路模型101對更加精細或較小範圍的影像的辨識能力。在一實施例中,透過在不同時期採用不同訓練模式(例如第一訓練模式與第二訓練模式)來訓練神經網路模型101,可有效提高針對神經網路模型101的訓練效率。In one embodiment, in the early stage of training the neural network model 101 (i.e., in the first training mode), the first convolutional layer is included in the first image classification training, and the feature parameters used by the first convolutional layer can be preliminarily updated to provide the neural network model 101 with a more general or larger range of recognition capabilities for the images corresponding to the input data. However, after the first image classification training of the neural network model 101 is completed, in the later stage of training the neural network model 101 (i.e., in the second training mode), the first convolution layer is excluded from the second image classification training (i.e., the first convolution layer is set to a locked state), so that the feature parameters established by the first convolution layer in the first training mode can be effectively retained, and the feature parameters used by the second convolution layer closer to the output end of the neural network model 101 are further updated. In this way, the recognition ability of the neural network model 101 for more detailed or smaller range images can be improved. In one embodiment, by using different training modes (such as a first training mode and a second training mode) at different times to train the neural network model 101, the training efficiency of the neural network model 101 can be effectively improved.

在一實施例中,響應於神經網路模型101針對訓練資料的使用程度達到預設程度,處理器13可將神經網路模型101切換至第二訓練模式。例如,假設訓練資料包含5000筆資料。在第一訓練模式中,若處理器13偵測到已經使用一特定比例的訓練資料(例如4/5,即4000筆資料)來訓練神經網路模型101,則處理器13可判定訓練資料的使用程度已達到預設程度並將神經網路模型101從第一訓練模式切換至第二訓練模式。在第二訓練模式中,處理器13可接續使用剩下的訓練資料(例如1000筆資料)來訓練神經網路模型101。然而,若神經網路模型101針對訓練資料的使用程度未達預設程度(例如尚未使用到上述特定比例的訓練資料來訓練神經網路模型101),處理器13可將神經網路模型101維持於第一訓練模式。In one embodiment, in response to the usage level of the training data of the neural network model 101 reaching a preset level, the processor 13 may switch the neural network model 101 to a second training mode. For example, assume that the training data includes 5,000 pieces of data. In the first training mode, if the processor 13 detects that a specific proportion of the training data (e.g., 4/5, i.e., 4,000 pieces of data) has been used to train the neural network model 101, the processor 13 may determine that the usage level of the training data has reached a preset level and switch the neural network model 101 from the first training mode to the second training mode. In the second training mode, the processor 13 may continue to use the remaining training data (e.g., 1,000 pieces of data) to train the neural network model 101. However, if the usage level of the training data of the neural network model 101 does not reach the preset level (for example, the above-mentioned specific proportion of training data has not been used to train the neural network model 101), the processor 13 may maintain the neural network model 101 in the first training mode.

須注意的是,處理器13還可根據其他的決策方式來將神經網路模型101從第一訓練模式切換至第二訓練模式。例如,在一實施例中,處理器13可判斷神經網路模型101針對輸入資料的影像分類準確率是否達到預設準確率(例如80%或其他比率)。若神經網路模型101針對輸入資料的影像分類準確率已達到預設準確率,處理器13可判定訓練資料的使用程度已達到預設程度並將神經網路模型101從第一訓練模式切換至第二訓練模式。然而,若神經網路模型101針對輸入資料的影像分類準確率未達預設準確率,處理器13可判定訓練資料的使用程度未達到預設程度並將神經網路模型101維持於第一訓練模式。It should be noted that the processor 13 can also switch the neural network model 101 from the first training mode to the second training mode according to other decision-making methods. For example, in one embodiment, the processor 13 can determine whether the image classification accuracy of the neural network model 101 for the input data has reached a preset accuracy (e.g., 80% or other ratios). If the image classification accuracy of the neural network model 101 for the input data has reached the preset accuracy, the processor 13 can determine that the usage level of the training data has reached the preset level and switch the neural network model 101 from the first training mode to the second training mode. However, if the image classification accuracy of the neural network model 101 for the input data does not reach the preset accuracy, the processor 13 may determine that the usage level of the training data does not reach the preset level and maintain the neural network model 101 in the first training mode.

在一實施例中,在完成對神經網路模型101的訓練(即完成第一訓練模式與第二訓練模式中的訓練)後,處理器13可透過顯示器11呈現影像(亦稱為目標影像)。例如,處理器13可指示顯示器11呈現目標影像。同時,處理器13可獲得對應於目標影像的色彩分布資訊(亦稱為第一色彩分布資訊)。例如,第一色彩分布資訊可反映出,在顯示器11呈現目標影像的期間,顯示器11的顯示畫面中的各個像素位置的色彩資訊。例如,每一個像素位置的色彩資訊可透過顏色向量來表示。例如,每一個顏色向量可表示為(V(R), V(G), V(B))。V(R)、V(G)及V(B)皆為0~255之間的數值。例如,V(R)、V(G)及V(B)可分別為“124”、“23”及“64”等,視當下顯示器11所呈現的影像而定,本發明不加以限制。此外,所述顏色向量還可透過符合其他類型的色彩空間的元素來表示,本發明不加以限制。In one embodiment, after completing the training of the neural network model 101 (i.e., completing the training in the first training mode and the second training mode), the processor 13 may present an image (also referred to as a target image) through the display 11. For example, the processor 13 may instruct the display 11 to present the target image. At the same time, the processor 13 may obtain color distribution information corresponding to the target image (also referred to as first color distribution information). For example, the first color distribution information may reflect the color information of each pixel position in the display screen of the display 11 during the period when the display 11 presents the target image. For example, the color information of each pixel position may be represented by a color vector. For example, each color vector may be represented as (V(R), V(G), V(B)). V(R), V(G) and V(B) are all values between 0 and 255. For example, V(R), V(G) and V(B) may be "124", "23" and "64" respectively, depending on the image currently displayed by the display 11, and the present invention is not limited thereto. In addition, the color vector may also be represented by elements conforming to other types of color spaces, and the present invention is not limited thereto.

在一實施例中,處理器13可將第一色彩分布資訊提供至神經網路模型101,以透過神經網路模型101對顯示器11當下呈現的影像(即目標影像)進行分類。例如,經過上述訓練後的神經網路模型101可根據第一色彩分布資訊,將目標影像分類為屬於多個候選類型中的特定類型(亦稱為目標類型)的影像。例如,所述多個候選類型可包括通用、風景、運動、遊戲、劇院及/或護眼等多種自定義的影像類型,且所述多個候選類型不限於此。例如,假設第一色彩分布資訊反映出目標影像中有大面積的藍天、高山、大海、森林及/或湖泊,則神經網路模型101可能會根據第一色彩分布資訊辨識出目標影像的類型屬於“風景”。依此類推,神經網路模型101可根據不同的第一色彩分布資訊將目標影像辨識為屬於不同的類型。In one embodiment, the processor 13 may provide the first color distribution information to the neural network model 101 so as to classify the image currently presented by the display 11 (i.e., the target image) through the neural network model 101. For example, the neural network model 101 after the above training may classify the target image as an image belonging to a specific type (also referred to as a target type) among a plurality of candidate types according to the first color distribution information. For example, the plurality of candidate types may include a plurality of customized image types such as general, landscape, sports, games, theaters and/or eye protection, and the plurality of candidate types are not limited thereto. For example, assuming that the first color distribution information reflects that there is a large area of blue sky, mountains, sea, forests and/or lakes in the target image, the neural network model 101 may recognize that the type of the target image belongs to "landscape" according to the first color distribution information. By analogy, the neural network model 101 can identify the target image as belonging to different types according to different first color distribution information.

在一實施例中,處理器13可根據神經網路模型101對目標影像的分類結果,對顯示器11使用的至少一顯示參數進行初步調整(亦稱為第一階段調整)。例如,在第一階段調整中,處理器13可根據神經網路模型101對目標影像的分類結果查詢資料表格,以獲得參數調整資訊。例如,此資料表格可記載多種類型的影像所分別對應或匹配的參數調整資訊。若神經網路模型101對目標影像的分類結果反映出目標影像屬於某一類型(即目標類型),處理器13可從資料表格中獲得目標類型所對應或匹配的參數調整資訊(亦稱為目標參數調整資訊)。然後,處理器13可根據此目標參數調整資訊來對顯示器11使用的至少一顯示參數執行第一階段調整。例如,第一階段調整可包括根據此目標參數調整資訊來對顯示器11的對比度、亮度、飽和度及/或色溫等一或多種顯示參數進行調整,以將與目標類型有關的顯示器設定套用至顯示器11。In one embodiment, the processor 13 may perform preliminary adjustment (also referred to as first-stage adjustment) on at least one display parameter used by the display 11 according to the classification result of the target image by the neural network model 101. For example, in the first-stage adjustment, the processor 13 may query a data table according to the classification result of the target image by the neural network model 101 to obtain parameter adjustment information. For example, this data table may record parameter adjustment information corresponding to or matching multiple types of images. If the classification result of the target image by the neural network model 101 reflects that the target image belongs to a certain type (i.e., the target type), the processor 13 may obtain parameter adjustment information corresponding to or matching the target type from the data table (also referred to as target parameter adjustment information). Then, the processor 13 may perform a first-stage adjustment on at least one display parameter used by the display 11 according to the target parameter adjustment information. For example, the first-stage adjustment may include adjusting one or more display parameters such as contrast, brightness, saturation and/or color temperature of the display 11 according to the target parameter adjustment information to apply the display setting related to the target type to the display 11.

例如,假設在將與“通用”有關的顯示設定套用至顯示器11後,第一階段調整可包括將顯示器11的對比度、亮度、飽和度及/或色溫皆設定為預設值,以滿足通用類型的影像(例如一般文書程式或瀏覽網頁)的顯示需求。或者,假設在將與“風景”有關的顯示設定套用至顯示器11後,第一階段調整可包括將顯示器11的對比度及/或亮度提高,以提高對於風景類型的影像(例如風景照片)的呈現效果。或者,假設在將與“劇院”有關的顯示設定套用至顯示器11後,第一階段調整可包括將顯示器11的亮度調低,以呈現出類似於在劇院觀看影片的臨場感。依此類推,透過第一階段調整,處理器13可初步提高顯示器11針對不同類型的影像的呈現品質。For example, assuming that after applying the display settings related to "general" to the display 11, the first stage adjustment may include setting the contrast, brightness, saturation and/or color temperature of the display 11 to default values to meet the display requirements of general types of images (such as general word processing programs or browsing web pages). Alternatively, assuming that after applying the display settings related to "landscape" to the display 11, the first stage adjustment may include increasing the contrast and/or brightness of the display 11 to improve the presentation effect of landscape-type images (such as landscape photos). Alternatively, assuming that after applying the display settings related to "theater" to the display 11, the first stage adjustment may include lowering the brightness of the display 11 to present a sense of presence similar to watching a movie in a theater. Similarly, through the first stage adjustment, the processor 13 can preliminarily improve the display quality of the display 11 for different types of images.

在一實施例中,根據第一階段調整的結果,處理器13可進一步獲得對應於目標影像的另一色彩分布資訊(亦稱為第二色彩分布資訊)。例如,類似於第一色彩分布資訊,第二色彩分布資訊同樣可反映出,在顯示器11呈現目標影像的期間,顯示器11的顯示畫面中的各個像素位置的色彩資訊。但是,與第一色彩分布資訊的不同處在於,第二色彩分布資訊可進一步反映出,在第一階段調整中,處理器13針對顯示器11的至少一顯示參數的調整結果。例如,假設在將與“風景”有關的顯示設定套用至顯示器11後,相較於第一色彩分布資訊,第二色彩分布資訊可反映出顯示器11當下呈現的影像(即目標影像)的對比度及/或亮度被提高。或者,假設在將與“劇院”有關的顯示設定套用至顯示器11後,相較於第一色彩分布資訊,第二色彩分布資訊可反映出顯示器11當下呈現的影像(即目標影像)的亮度被降低。依此類推,在套用不同類型的顯示設定後,第二色彩分布資訊可反映出在第一階段調整中,處理器13針對顯示器11的顯示參數的不同調整結果。In one embodiment, according to the result of the first stage adjustment, the processor 13 may further obtain another color distribution information corresponding to the target image (also referred to as the second color distribution information). For example, similar to the first color distribution information, the second color distribution information may also reflect the color information of each pixel position in the display screen of the display 11 during the period when the display 11 presents the target image. However, the difference from the first color distribution information is that the second color distribution information may further reflect the result of the adjustment of at least one display parameter of the display 11 by the processor 13 in the first stage adjustment. For example, assuming that after the display setting related to "landscape" is applied to the display 11, compared with the first color distribution information, the second color distribution information may reflect that the contrast and/or brightness of the image currently presented by the display 11 (i.e., the target image) is improved. Alternatively, assuming that after applying the display setting related to "theater" to the display 11, the second color distribution information may reflect that the brightness of the image (i.e., the target image) currently displayed by the display 11 is reduced compared to the first color distribution information. Similarly, after applying different types of display settings, the second color distribution information may reflect different adjustment results of the display parameters of the display 11 by the processor 13 in the first stage of adjustment.

在一實施例中,處理器13可根據第二色彩分布資訊,計算色彩補償資訊。例如,此色彩補償資訊可用以改善第一階段調整對於顯示器11的顯示參數的調整所引起或所遺漏的顯示器11的影像呈現品質的缺陷。處理器13可根據此色彩補償資訊對顯示器11使用的至少一顯示參數進行進階調整(亦稱為第二階段調整)。In one embodiment, the processor 13 may calculate color compensation information based on the second color distribution information. For example, the color compensation information may be used to improve the image presentation quality defects of the display 11 caused by or omitted from the first stage adjustment of the display parameters of the display 11. The processor 13 may perform advanced adjustment (also referred to as second stage adjustment) on at least one display parameter used by the display 11 based on the color compensation information.

例如,假設在第一階段調整中,處理器13將與“劇院”(即目標類型)有關的顯示設定套用至顯示器11,以降低顯示器11的顯示畫面的亮度。在此情況下,若使用者突然將顯示器11的顯示畫面切換為呈現風景照片(即不屬於所述目標類型的影像),則第二色彩分布資訊可反映出當下顯示器11所呈現的目標影像的色彩分布發生明顯變化。此時,處理器13可根據第二色彩分布資訊偵測出當下採用的“劇院”有關的顯示設定不利於呈現這種“風景”類型的影像。因此,處理器13可根據第二色彩分布資訊,以第一階段調整的調整結果為基礎,進一步對顯示器11使用的對比度、亮度、飽和度及/或色溫等一或多種顯示參數進行第二階段調整,以嘗試將顯示器11的顯示設定調整為更適合呈現顯示器11當下所呈現的目標影像。For example, assume that in the first stage of adjustment, the processor 13 applies the display settings related to "theater" (i.e., the target type) to the display 11 to reduce the brightness of the display screen of the display 11. In this case, if the user suddenly switches the display screen of the display 11 to present a landscape photo (i.e., an image that does not belong to the target type), the second color distribution information can reflect that the color distribution of the target image currently presented by the display 11 has changed significantly. At this time, the processor 13 can detect based on the second color distribution information that the currently used display settings related to "theater" are not conducive to presenting this type of "landscape" image. Therefore, the processor 13 can perform a second stage adjustment on one or more display parameters such as contrast, brightness, saturation and/or color temperature used by the display 11 based on the adjustment result of the first stage according to the second color distribution information, so as to try to adjust the display setting of the display 11 to be more suitable for presenting the target image currently presented by the display 11.

在一實施例中,處理器13可根據第二色彩分布資訊,獲得對應於目標影像中的多個像素位置的灰階向量資訊。例如,處理器13可透過以下方程式(1.1)至(1.5)獲得所述灰階向量資訊。In one embodiment, the processor 13 may obtain grayscale vector information corresponding to a plurality of pixel positions in the target image according to the second color distribution information. For example, the processor 13 may obtain the grayscale vector information through the following equations (1.1) to (1.5).

(1.1)(1.1)

R   (1.2)R   (1.2)

G   (1.3)G   (1.3)

B   (1.4)B   (1.4)

(1.5)(1.5)

在方程式(1.1)至(1.5)中,矩陣W、R、G及B分別用來表示對應於目標影像中的多個像素位置的灰階向量資訊、紅色向量資訊、綠色向量資訊及藍色向量資訊。m用來表示顯示器11的顯示畫面的長度,n用來表示顯示器11的顯示畫面的寬度,且m×n可用來表示顯示器11的顯示畫面的尺寸(或解析度)。R(ij)、G(ij)及B(ij)可用來表示顯示器11的顯示畫面中在位置(i,j)處的像素的色彩資訊,其中R(ij)為紅色分量的色彩資訊,G(ij)為綠色分量的色彩資訊,且B(ij)為藍色分量的色彩資訊。例如,顯示器11的顯示畫面中在位置(i,j)處的像素的色彩資訊可以顏色向量(R(ij), G(ij), B(ij))來表示。W(ij)用來表示顯示器11的顯示畫面中在位置(i,j)處的像素的灰階資訊(例如灰階值)。此外,a、b及c可為常數。例如,a、b及c可分別為“0.2126”、“0.7152”及“0.0722”,且a、b及c的數值皆可根據實務需求調整。須注意的是,關於矩陣乘法與矩陣加法的計算方式屬習知技術,在此不多加贅述。In equations (1.1) to (1.5), matrices W, R, G, and B are used to represent gray vector information, red vector information, green vector information, and blue vector information corresponding to multiple pixel positions in the target image, respectively. m is used to represent the length of the display screen of the display 11, n is used to represent the width of the display screen of the display 11, and m×n can be used to represent the size (or resolution) of the display screen of the display 11. R(ij), G(ij), and B(ij) can be used to represent the color information of the pixel at position (i, j) in the display screen of the display 11, where R(ij) is the color information of the red component, G(ij) is the color information of the green component, and B(ij) is the color information of the blue component. For example, the color information of the pixel at position (i, j) in the display screen of the display 11 can be represented by a color vector (R(ij), G(ij), B(ij)). W(ij) is used to represent the grayscale information (such as grayscale value) of the pixel at position (i, j) in the display screen of the display 11. In addition, a, b and c can be constants. For example, a, b and c can be "0.2126", "0.7152" and "0.0722" respectively, and the values of a, b and c can be adjusted according to practical needs. It should be noted that the calculation methods of matrix multiplication and matrix addition are known techniques and will not be elaborated here.

在一實施例中,處理器13可根據所述灰階向量資訊計算對應於目標影像的灰階期望值。例如,處理器13可透過以下方程式(2.1)獲得所述灰階期望值。In one embodiment, the processor 13 may calculate the grayscale expected value corresponding to the target image according to the grayscale vector information. For example, the processor 13 may obtain the grayscale expected value through the following equation (2.1).

E[W]=a×E[R]+b×E[G]+c×E[B]   (2.1)E[W]=a×E[R]+b×E[G]+c×E[B] (2.1)

在方程式(2.1)中,E[W]可用來表示對應於目標影像的灰階期望值。須注意的是,關於期望值的計算方式屬習知技術,在此不多加贅述。然後,處理器13可根據此灰階期望值獲得所述色彩補償資訊。In equation (2.1), E[W] can be used to represent the grayscale expected value corresponding to the target image. It should be noted that the calculation method of the expected value belongs to the known technology and will not be elaborated here. Then, the processor 13 can obtain the color compensation information according to the grayscale expected value.

在一實施例中,處理器13可判斷所述灰階期望值是否大於臨界值(亦稱為第一臨界值)。例如,第一臨界值可為“231”或其他數值。若所述灰階期望值大於第一臨界值,處理器13可指示顯示器11降低顯示器11的顯示畫面的亮度。例如,若所述灰階期望值大於第一臨界值,處理器13可指示顯示器11將顯示參數中的亮度值減去一個調整參數(亦稱為第一調整參數),以降低顯示器11的顯示畫面的亮度。第一臨界值與第一調整參數皆可根據實務需求進行設定與調整,本發明不加以限制。例如,在一實施例中,所述色彩補償資訊可包括此第一調整參數。In one embodiment, the processor 13 may determine whether the grayscale expected value is greater than a critical value (also referred to as a first critical value). For example, the first critical value may be "231" or other values. If the grayscale expected value is greater than the first critical value, the processor 13 may instruct the display 11 to reduce the brightness of the display screen of the display 11. For example, if the grayscale expected value is greater than the first critical value, the processor 13 may instruct the display 11 to subtract an adjustment parameter (also referred to as a first adjustment parameter) from the brightness value in the display parameter to reduce the brightness of the display screen of the display 11. Both the first critical value and the first adjustment parameter may be set and adjusted according to practical needs, and the present invention is not limited thereto. For example, in one embodiment, the color compensation information may include this first adjustment parameter.

在一實施例中,處理器13可判斷所述灰階期望值是否小於臨界值(亦稱為第二臨界值)。例如,第二臨界值可為“39”或其他數值,且第二臨界值小於第一臨界值。若所述灰階期望值小於第二臨界值,處理器13可指示顯示器11提高顯示器11的顯示畫面的亮度。例如,若所述灰階期望值小於第二臨界值,處理器13可指示顯示器11將顯示參數中的亮度值加上一個調整參數(亦稱為第二調整參數),以提高顯示器11的顯示畫面的亮度。第二臨界值與第二調整參數皆可根據實務需求進行設定與調整,本發明不加以限制。例如,在一實施例中,所述色彩補償資訊可包括此第二調整參數。In one embodiment, the processor 13 may determine whether the grayscale expected value is less than a critical value (also referred to as a second critical value). For example, the second critical value may be "39" or other values, and the second critical value is less than the first critical value. If the grayscale expected value is less than the second critical value, the processor 13 may instruct the display 11 to increase the brightness of the display screen of the display 11. For example, if the grayscale expected value is less than the second critical value, the processor 13 may instruct the display 11 to add an adjustment parameter (also referred to as a second adjustment parameter) to the brightness value in the display parameter to increase the brightness of the display screen of the display 11. Both the second critical value and the second adjustment parameter may be set and adjusted according to practical needs, and the present invention is not limited thereto. For example, in one embodiment, the color compensation information may include the second adjustment parameter.

在一實施例中,處理器13可根據上述方程式(1.2)至(1.4)中的紅色向量資訊(R)、綠色向量資訊(G)及藍色向量資訊(B)分別獲得目標影像中對應於紅色通道的變異數、對應於綠色通道的變異數及對應於藍色通道的變異數。例如,對應於紅色通道的變異數可反映出R(11)~R(mn)分別與R(11)~R(mn)之平均值之間的(平均)距離的度量,對應於綠色通道的變異數可反映出G(11)~G(mn)分別與G(11)~G(mn)之平均值之間的(平均)距離的度量,且對應於藍色通道的變異數可反映出B(11)~B(mn)分別與B(11)~B(mn)之平均值之間的(平均)距離的度量。處理器13可將這些變異數的至少其中之一帶入特定演算法或方程式,來計算獲得所需的色彩補償資訊。然後,處理器13可使用此色彩補償資訊對顯示器11的至少一顯示參數進行第二階段調整。In one embodiment, the processor 13 may obtain the variance corresponding to the red channel, the variance corresponding to the green channel, and the variance corresponding to the blue channel in the target image according to the red vector information (R), the green vector information (G), and the blue vector information (B) in the above equations (1.2) to (1.4), respectively. For example, the variance corresponding to the red channel may reflect the measure of the (average) distance between R(11)-R(mn) and the average value of R(11)-R(mn), the variance corresponding to the green channel may reflect the measure of the (average) distance between G(11)-G(mn) and the average value of G(11)-G(mn), and the variance corresponding to the blue channel may reflect the measure of the (average) distance between B(11)-B(mn) and the average value of B(11)-B(mn). The processor 13 may bring at least one of these variances into a specific algorithm or equation to calculate the required color compensation information. Then, the processor 13 may use the color compensation information to perform a second stage adjustment on at least one display parameter of the display 11.

在一實施例中,處理器13還可配置其他的顏色檢測與調整規則,來根據第二色彩分布資訊對顯示器11的至少一顯示參數進行第二階段調整。所配置的顏色檢測與調整規則可根據實務需求進行設定與調整,本發明不加以限制。In one embodiment, the processor 13 may also configure other color detection and adjustment rules to perform a second stage adjustment on at least one display parameter of the display 11 according to the second color distribution information. The configured color detection and adjustment rules may be set and adjusted according to practical needs, and the present invention is not limited thereto.

在一實施例中,處理器13可判斷顯示器11所呈現的多個連續影像中的前一影像的顯示內容與後一影像的顯示內容之差異是否小於臨界值(亦稱為第三臨界值)。若所述前一影像的顯示內容與所述後一影像的顯示內容之差異小於第三臨界值,處理器13可沿用針對前一影像的色彩補償資訊,而不需要針對後一影像重新計算色彩補償資訊。藉此,可有效減少處理器13的運算負擔。然而,若所述前一影像的顯示內容與所述後一影像的顯示內容之差異不小於(例如大於或等於)第三臨界值,處理器13可針對後一影像重新計算色彩補償資訊並根據此色彩補償資訊來對顯示器11的至少一顯示參數進行第二階段調整。In one embodiment, the processor 13 can determine whether the difference between the display content of the previous image and the display content of the next image in the plurality of continuous images presented by the display 11 is less than a threshold value (also referred to as a third threshold value). If the difference between the display content of the previous image and the display content of the next image is less than the third threshold value, the processor 13 can continue to use the color compensation information for the previous image without recalculating the color compensation information for the next image. In this way, the computational burden of the processor 13 can be effectively reduced. However, if the difference between the display content of the previous image and the display content of the subsequent image is not less than (for example, greater than or equal to) the third critical value, the processor 13 can recalculate the color compensation information for the subsequent image and perform a second stage adjustment on at least one display parameter of the display 11 according to the color compensation information.

在一實施例中,處理器13可判斷所述色彩補償資訊所指示的針對顯示器11的至少部分顯示參數的調整幅度是否大於臨界值(亦稱為第四臨界值)。若所述色彩補償資訊所指示的針對顯示器11的至少部分顯示參數的調整幅度大於第四臨界值,在第二階段調整中,處理器13可切換為對所述顯示參數執行分段調整。例如,假設在第二階段調整中,預設是要一次性的將顯示器11的顯示畫面的亮度值提高30個單位。在判定此針對亮度值的調整幅度大於第四臨界值後,在第二階段調整中,處理器13可切換為對此亮度值執行分段調整,例如將預設的單次將顯示器11的亮度值提高30個單位調整為連續3次提高顯示器11的亮度值,且每一次只提高10個單位。此外,每一次的分段調整皆可根據預設的分段規則進行配置,本發明不加以限制。藉此,可避免因單次對顯示器11的顯示參數進行太大幅度的調整,從而對使用者的眼睛造成過度刺激。In one embodiment, the processor 13 may determine whether the adjustment range of at least part of the display parameters of the display 11 indicated by the color compensation information is greater than a critical value (also referred to as a fourth critical value). If the adjustment range of at least part of the display parameters of the display 11 indicated by the color compensation information is greater than the fourth critical value, in the second stage adjustment, the processor 13 may switch to performing segmented adjustment on the display parameters. For example, assuming that in the second stage adjustment, the default is to increase the brightness value of the display screen of the display 11 by 30 units at one time. After determining that the adjustment amplitude for the brightness value is greater than the fourth critical value, in the second stage adjustment, the processor 13 can switch to performing segmented adjustment on the brightness value, for example, the preset single increase of the brightness value of the display 11 by 30 units is adjusted to three consecutive increases of the brightness value of the display 11, and each increase is only 10 units. In addition, each segmented adjustment can be configured according to the preset segmentation rule, and the present invention is not limited. In this way, excessive stimulation to the user's eyes can be avoided due to a single adjustment of the display parameters of the display 11 being too large.

在一實施例中,若一個目標影像中存在多種類型的子影像,則神經網路模型101對目標影像的分類可能會失準或者存在多個可靠的分類結果。在此情況下,若選擇機率最高的分類結果來對顯示器11執行所述第一階段調整,可能會導致所套用的顯示設定會嚴重影像到目標影像中其餘的不同類型的子影像的影像呈現品質。In one embodiment, if there are multiple types of sub-images in a target image, the classification of the target image by the neural network model 101 may be inaccurate or there may be multiple reliable classification results. In this case, if the classification result with the highest probability is selected to perform the first stage adjustment on the display 11, the applied display setting may seriously affect the image presentation quality of the remaining different types of sub-images in the target image.

在一實施例中,若一個目標影像中存在多種類型的子影像,處理器13可根據神經網路模型101對目標影像的多個分類結果,獲得平均調整參數。然後,處理器13可根據此平均調整參數,對顯示器11使用的顯示參數進行所述第一階段調整。藉此,可針對目標影像同時存在的多種類型的子影像進行較為平均的顯示品質的優化。In one embodiment, if there are multiple types of sub-images in a target image, the processor 13 can obtain an average adjustment parameter based on multiple classification results of the target image by the neural network model 101. Then, the processor 13 can perform the first stage adjustment on the display parameters used by the display 11 based on the average adjustment parameter. In this way, a more average display quality optimization can be performed for multiple types of sub-images that exist simultaneously in the target image.

圖5是根據本發明的實施例所繪示的目標影像中存在多種類型的子影像的示意圖。FIG. 5 is a schematic diagram showing a target image having multiple types of sub-images according to an embodiment of the present invention.

請參照圖5,假設影像51為目標影像,且影像51中同時存在屬於類型A的影像(亦稱為第一子影像)501與屬於類型B的影像(亦稱為第二子影像)502。在此情況下,若將對應於影像51的第一色彩分部資訊提供給神經網路模型101進行分析,則神經網路模型101可能會判定影像51的類型屬於類型A或類型B的其中之一。但是,若單純將類型A所對應的顯示設定套用至顯示器11,則雖然可有效提升屬於類型A的影像501的顯示品質,但卻可能同時嚴重影響到屬於類型B的影像502的顯示品質。或者,若單純將類型B所對應的顯示設定套用至顯示器11,則雖然可有效提升屬於類型B的影像502的顯示品質,但卻可能同時嚴重影響到屬於類型A的影像501的顯示品質。Please refer to FIG. 5 , assuming that image 51 is the target image, and image 51 contains both image 501 of type A (also referred to as the first sub-image) and image 502 of type B (also referred to as the second sub-image). In this case, if the first color component information corresponding to image 51 is provided to the neural network model 101 for analysis, the neural network model 101 may determine that the type of image 51 belongs to either type A or type B. However, if the display setting corresponding to type A is simply applied to the display 11, although the display quality of image 501 of type A can be effectively improved, the display quality of image 502 of type B may be seriously affected at the same time. Alternatively, if the display setting corresponding to type B is simply applied to the display 11, although the display quality of the image 502 belonging to type B can be effectively improved, it may also seriously affect the display quality of the image 501 belonging to type A.

在一實施例中,在影像51中同時存在屬於類型A的影像501(即第一子影像)與屬於類型B的影像502(即第二子影像)的情況下,處理器13可將對應於影像501的調整參數(亦稱為第一子調整參數)與對應於影像502的調整參數(亦稱為第二子調整參數)取平均(或加權平均),以獲得平均調整參數。然後,處理器13可根據此平均調整參數,對顯示器11使用的顯示參數進行所述第一階段調整。藉此,雖然無法完美達到前述單獨針對單一類型影像的顯示品質的優化效果,但仍有機會平均地對單一目標影像中多種類型的子影像進行顯示品質的優化。In one embodiment, when there are both an image 501 (i.e., the first sub-image) belonging to type A and an image 502 (i.e., the second sub-image) belonging to type B in the image 51, the processor 13 may average (or weighted average) the adjustment parameter corresponding to the image 501 (also referred to as the first sub-adjustment parameter) and the adjustment parameter corresponding to the image 502 (also referred to as the second sub-adjustment parameter) to obtain an average adjustment parameter. Then, the processor 13 may perform the first stage adjustment on the display parameter used by the display 11 according to the average adjustment parameter. In this way, although the aforementioned display quality optimization effect for a single type of image cannot be perfectly achieved, there is still a chance to optimize the display quality of multiple types of sub-images in a single target image on an average basis.

在一實施例中,處理器13可判斷神經網路模型101對目標影像的分類結果是否存在多個可靠的分類結果。例如,假設神經網路模型101針對目標影像的分類結果中包含高於決策值(例如0.5)的多個機率值。例如,這些高於決策值的機率值分別反映出神經網路模型101對目標影像的分類結果。此時,處理器13可判定目標影像中同時存在多種類型的子影像。同時,處理器13可根據這些高於決策值的機率值來決定目標影像中的多個子影像各別的類型。In one embodiment, the processor 13 can determine whether there are multiple reliable classification results for the target image in the classification results of the neural network model 101. For example, assume that the classification results of the target image by the neural network model 101 include multiple probability values that are higher than the decision value (e.g., 0.5). For example, these probability values higher than the decision value respectively reflect the classification results of the target image by the neural network model 101. At this time, the processor 13 can determine that there are multiple types of sub-images in the target image at the same time. At the same time, the processor 13 can determine the types of the multiple sub-images in the target image according to these probability values higher than the decision value.

在一實施例中,若神經網路模型101對目標影像的分類結果中只存在一個可靠的分類結果(例如一個高於所述決策值的機率值),則處理器13可判定目標影像中未同時存在多種類型的子影像。例如,此單一個高於決策值的機率值可反映出神經網路模型101對目標影像的分類結果。此外,處理器13可根據此高於決策值的機率值來決定目標影像的類型。In one embodiment, if there is only one reliable classification result (e.g., a probability value higher than the decision value) in the classification result of the target image by the neural network model 101, the processor 13 may determine that there are no sub-images of multiple types in the target image at the same time. For example, this single probability value higher than the decision value may reflect the classification result of the target image by the neural network model 101. In addition, the processor 13 may determine the type of the target image based on the probability value higher than the decision value.

藉此,無論神經網路模型101的決策結果為何,處理器13皆可採用相應的調整策略來對顯示器11的至少部分顯示參數進行調整,以對顯示器11的影像顯示品質進行優化。相關操作細節皆已詳述於上,在此不重複贅述。Thus, regardless of the decision result of the neural network model 101, the processor 13 can use a corresponding adjustment strategy to adjust at least part of the display parameters of the display 11 to optimize the image display quality of the display 11. The relevant operation details have been described above and will not be repeated here.

圖6是根據本發明的實施例所繪示的顯示參數調整方法的流程圖。FIG. 6 is a flow chart of a display parameter adjustment method according to an embodiment of the present invention.

請參照圖6,在步驟S601中,將神經網路模型設定為第一訓練模式並基於第一訓練模式對神經網路模型進行第一影像分類訓練。在完成第一影像分類訓練後,在步驟S602中,將神經網路模型設定為第二訓練模式並基於第二訓練模式對神經網路模型進行第二影像分類訓練。特別是,在所述神經網路模型中,參與第二影像分類訓練的卷積層的總數可少於參與第一影像分類訓練的卷積層的總數。Referring to FIG. 6 , in step S601, the neural network model is set to the first training mode and the first image classification training is performed on the neural network model based on the first training mode. After the first image classification training is completed, in step S602, the neural network model is set to the second training mode and the second image classification training is performed on the neural network model based on the second training mode. In particular, in the neural network model, the total number of convolutional layers participating in the second image classification training may be less than the total number of convolutional layers participating in the first image classification training.

圖7是根據本發明的實施例所繪示的顯示參數調整方法的流程圖。FIG. 7 is a flow chart of a display parameter adjustment method according to an embodiment of the present invention.

請參照圖7,在步驟S701中,透過顯示器呈現影像。在步驟S702中,獲得對應於所述影像的第一色彩分布資訊。在步驟S703中,將第一色彩分布資訊提供至神經網路模型,以透過神經網路模型對所述影像進行分類。在步驟S704中,根據神經網路模型對所述影像的分類結果,對顯示器使用的顯示參數進行第一階段調整。在步驟S705中,根據第一階段調整的結果,獲得對應於所述影像的第二色彩分布資訊。在步驟S706中,根據第二色彩分布資訊,計算色彩補償資訊。在步驟S707中,根據色彩補償資訊對顯示器使用的顯示參數進行第二階段調整。Please refer to FIG. 7 . In step S701, an image is presented through a display. In step S702, first color distribution information corresponding to the image is obtained. In step S703, the first color distribution information is provided to a neural network model so as to classify the image through the neural network model. In step S704, a first stage adjustment is performed on display parameters used by the display according to the classification result of the neural network model for the image. In step S705, second color distribution information corresponding to the image is obtained according to the result of the first stage adjustment. In step S706, color compensation information is calculated according to the second color distribution information. In step S707, the display parameters used by the display are adjusted in the second stage according to the color compensation information.

然而,圖6與圖7中各步驟已詳細說明如上,在此便不再贅述。值得注意的是,圖6與圖7中各步驟可以實作為多個程式碼或是電路,本發明不加以限制。此外,圖6與圖7的方法可以搭配以上範例實施例使用,也可以單獨使用,本發明不加以限制。However, each step in FIG. 6 and FIG. 7 has been described in detail above, and will not be repeated here. It is worth noting that each step in FIG. 6 and FIG. 7 can be implemented as multiple program codes or circuits, and the present invention is not limited thereto. In addition, the methods in FIG. 6 and FIG. 7 can be used in conjunction with the above exemplary embodiments, or can be used alone, and the present invention is not limited thereto.

綜上所述,本發明的實施例所提出的顯示參數調整方法與電子裝置,可透過在不同時期採用不同訓練模式(例如第一訓練模式與第二訓練模式)來訓練神經網路模型,以有效提高針對神經網路模型的訓練效率。此外,本發明的實施例所提出的顯示參數調整方法與電子裝置,還可透過兩階段的調整機制,來根據顯示器當下顯示的影像的類型,對應調整顯示器使用的顯示參數。特別是,在第一階段調整中,主要是參考神經網路模型對顯示器所呈現的影像的分類結果,來對應調整顯示器使用的顯示參數。在第二階段調整中,則是以第一階段調整的結果為基礎,對顯示器使用的顯示參數作進一步微調,從而改善第一階段調整對於顯示器的顯示參數的調整所引起或所遺漏的顯示器的影像呈現品質的缺陷。藉此,可有效提高顯示器的影像呈現品質,進而提高使用者對顯示器呈現的影像的觀看體驗。In summary, the display parameter adjustment method and electronic device proposed in the embodiment of the present invention can train the neural network model by adopting different training modes (such as the first training mode and the second training mode) at different times to effectively improve the training efficiency of the neural network model. In addition, the display parameter adjustment method and electronic device proposed in the embodiment of the present invention can also use a two-stage adjustment mechanism to adjust the display parameters used by the display according to the type of image currently displayed by the display. In particular, in the first stage of adjustment, the display parameters used by the display are adjusted accordingly, mainly referring to the classification results of the neural network model on the image presented by the display. In the second stage of adjustment, the display parameters used by the monitor are further fine-tuned based on the results of the first stage of adjustment, thereby improving the defects in the image presentation quality of the monitor caused or omitted by the adjustment of the display parameters of the monitor in the first stage of adjustment. In this way, the image presentation quality of the monitor can be effectively improved, thereby improving the user's viewing experience of the images presented by the monitor.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above by the embodiments, they are not intended to limit the present invention. Any person with ordinary knowledge in the relevant technical field can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be defined by the scope of the attached patent application.

10: 電子裝置 11: 顯示器 12: 儲存電路 13: 處理器 101: 神經網路模型 21: 輸入端 22: 輸出端 23: 運算核心 24(1)~24(m): 卷積層 51: 影像 501: 影像(第一子影像) 502: 影像(第二子影像) S601, S602, S701~S707: 步驟 10: electronic device 11: display 12: storage circuit 13: processor 101: neural network model 21: input port 22: output port 23: computing core 24(1)~24(m): convolutional layer 51: image 501: image (first sub-image) 502: image (second sub-image) S601, S602, S701~S707: steps

圖1是根據本發明的實施例所繪示的電子裝置的示意圖。 圖2是根據本發明的實施例所繪示的神經網路模型的示意圖。 圖3是根據本發明的實施例所繪示的處於第一訓練模式的神經網路模型的示意圖。 圖4是根據本發明的實施例所繪示的處於第二訓練模式的神經網路模型的示意圖。 圖5是根據本發明的實施例所繪示的目標影像中存在多種類型的子影像的示意圖。 圖6是根據本發明的實施例所繪示的顯示參數調整方法的流程圖。 圖7是根據本發明的實施例所繪示的顯示參數調整方法的流程圖。 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present invention. FIG. 2 is a schematic diagram of a neural network model according to an embodiment of the present invention. FIG. 3 is a schematic diagram of a neural network model in a first training mode according to an embodiment of the present invention. FIG. 4 is a schematic diagram of a neural network model in a second training mode according to an embodiment of the present invention. FIG. 5 is a schematic diagram of a target image according to an embodiment of the present invention in which there are multiple types of sub-images. FIG. 6 is a flow chart of a display parameter adjustment method according to an embodiment of the present invention. FIG. 7 is a flow chart of a display parameter adjustment method according to an embodiment of the present invention.

S701~S707:步驟 S701~S707: Steps

Claims (16)

一種顯示參數調整方法,包括: 將神經網路模型設定為第一訓練模式並基於該第一訓練模式對該神經網路模型進行第一影像分類訓練; 在完成該第一影像分類訓練後,將該神經網路模型設定為第二訓練模式並基於該第二訓練模式對該神經網路模型進行第二影像分類訓練,其中在該神經網路模型中,參與該第二影像分類訓練的卷積層的總數少於參與該第一影像分類訓練的卷積層的總數; 透過顯示器呈現影像; 獲得對應於該影像的第一色彩分布資訊; 將該第一色彩分布資訊提供至該神經網路模型,以透過該神經網路模型對該影像進行分類; 根據該神經網路模型對該影像的分類結果,對該顯示器使用的顯示參數進行第一階段調整; 根據該第一階段調整的結果,獲得對應於該影像的第二色彩分布資訊; 根據該第二色彩分布資訊,計算色彩補償資訊;以及 根據該色彩補償資訊對該顯示器使用的該顯示參數進行第二階段調整。 A display parameter adjustment method, comprising: Setting a neural network model to a first training mode and performing a first image classification training on the neural network model based on the first training mode; After completing the first image classification training, setting the neural network model to a second training mode and performing a second image classification training on the neural network model based on the second training mode, wherein in the neural network model, the total number of convolutional layers participating in the second image classification training is less than the total number of convolutional layers participating in the first image classification training; Presenting an image through a display; Obtaining first color distribution information corresponding to the image; Providing the first color distribution information to the neural network model to classify the image through the neural network model; According to the classification result of the image by the neural network model, the display parameters used by the display are adjusted in the first stage; According to the result of the first stage adjustment, the second color distribution information corresponding to the image is obtained; According to the second color distribution information, the color compensation information is calculated; and According to the color compensation information, the display parameters used by the display are adjusted in the second stage. 如請求項1所述的顯示參數調整方法,其中將該神經網路模型設定為該第二訓練模式並基於該第二訓練模式對該神經網路模型進行第二影像分類訓練的步驟包括: 將該神經網路模型中的第一卷積層設定為鎖定狀態,其中該第一卷積層有參與該第一訓練模式中的該第一影像分類訓練;以及 在該第二訓練模式中,僅針對該神經網路模型中未被設定為該鎖定狀態的第二卷積層進行該第二影像分類訓練。 The display parameter adjustment method as described in claim 1, wherein the steps of setting the neural network model to the second training mode and performing the second image classification training on the neural network model based on the second training mode include: Setting the first convolution layer in the neural network model to a locked state, wherein the first convolution layer participates in the first image classification training in the first training mode; and In the second training mode, only the second convolution layer in the neural network model that is not set to the locked state is subjected to the second image classification training. 如請求項2所述的顯示參數調整方法,其中相較於該第二卷積層,該第一卷積層在該神經網路模型的運算核心中更遠離該神經網路模型的輸出端。A display parameter adjustment method as described in claim 2, wherein the first convolution layer is farther away from the output end of the neural network model in the computing core of the neural network model than the second convolution layer. 如請求項1所述的顯示參數調整方法,其中將該神經網路模型設定為該第二訓練模式的步驟包括: 響應於該神經網路模型針對訓練資料的使用程度達到預設程度,將該神經網路模型切換至該第二訓練模式。 The display parameter adjustment method as described in claim 1, wherein the step of setting the neural network model to the second training mode includes: In response to the neural network model's usage of training data reaching a preset level, switching the neural network model to the second training mode. 如請求項1所述的顯示參數調整方法,其中根據該第二色彩分布資訊,計算該色彩補償資訊的步驟包括: 根據該第二色彩分布資訊,獲得對應於該影像中的多個像素位置的灰階向量資訊; 根據該灰階向量資訊計算對應於該影像的灰階期望值;以及 根據該灰階期望值獲得該色彩補償資訊。 The display parameter adjustment method as described in claim 1, wherein the step of calculating the color compensation information according to the second color distribution information includes: According to the second color distribution information, grayscale vector information corresponding to multiple pixel positions in the image is obtained; According to the grayscale vector information, a grayscale expected value corresponding to the image is calculated; and According to the grayscale expected value, the color compensation information is obtained. 如請求項1所述的顯示參數調整方法,其中根據該第二色彩分布資訊,計算該色彩補償資訊的步驟包括: 若該影像中的前一影像的顯示內容與該影像中的後一影像的顯示內容之差異小於臨界值,沿用針對該前一影像的該色彩補償資訊。 The display parameter adjustment method as described in claim 1, wherein the step of calculating the color compensation information according to the second color distribution information includes: If the difference between the display content of the previous image in the image and the display content of the next image in the image is less than a critical value, the color compensation information for the previous image is used. 如請求項1所述的顯示參數調整方法,其中根據該色彩補償資訊對該顯示器使用的該顯示參數進行該第二階段調整的步驟包括: 若該色彩補償資訊所指示的針對該顯示參數的調整幅度大於臨界值,在該第二階段調整中,對該顯示參數執行分段調整。 The display parameter adjustment method as described in claim 1, wherein the step of performing the second-stage adjustment on the display parameter used by the display according to the color compensation information includes: If the adjustment range for the display parameter indicated by the color compensation information is greater than a critical value, in the second-stage adjustment, performing segmented adjustment on the display parameter. 如請求項1所述的顯示參數調整方法,其中根據該神經網路模型對該影像的該分類結果,對該顯示器使用的該顯示參數進行該第一階段調整的步驟包括: 若該影像中存在多種類型的子影像,根據該神經網路模型對該影像的多個分類結果,獲得平均調整參數;以及 根據該平均調整參數,對該顯示器使用的該顯示參數進行該第一階段調整。 The display parameter adjustment method as described in claim 1, wherein the step of performing the first stage adjustment on the display parameter used by the display according to the classification result of the image by the neural network model includes: If there are multiple types of sub-images in the image, obtain an average adjustment parameter according to multiple classification results of the image by the neural network model; and Perform the first stage adjustment on the display parameter used by the display according to the average adjustment parameter. 一種電子裝置,包括: 顯示器; 儲存電路,用以儲存神經網路模型;以及 處理器,耦接至該顯示器與該儲存電路, 其中該處理器用以: 將該神經網路模型設定為第一訓練模式並基於該第一訓練模式對該神經網路模型進行第一影像分類訓練; 在完成該第一影像分類訓練後,將該神經網路模型設定為第二訓練模式並基於該第二訓練模式對該神經網路模型進行第二影像分類訓練,其中在該神經網路模型中,參與該第二影像分類訓練的卷積層的總數少於參與該第一影像分類訓練的卷積層的總數; 透過該顯示器呈現影像; 獲得對應於該影像的第一色彩分布資訊; 將該第一色彩分布資訊提供至該神經網路模型,以透過該神經網路模型對該影像進行分類; 根據該神經網路模型對該影像的分類結果,對該顯示器使用的顯示參數進行第一階段調整; 根據該第一階段調整的結果,獲得對應於該影像的第二色彩分布資訊; 根據該第二色彩分布資訊,計算色彩補償資訊;以及 根據該色彩補償資訊對該顯示器使用的該顯示參數進行第二階段調整。 An electronic device, comprising: a display; a storage circuit for storing a neural network model; and a processor, coupled to the display and the storage circuit, wherein the processor is used to: set the neural network model to a first training mode and perform a first image classification training on the neural network model based on the first training mode; after completing the first image classification training, set the neural network model to a second training mode and perform a second image classification training on the neural network model based on the second training mode, wherein in the neural network model, the total number of convolutional layers participating in the second image classification training is less than the total number of convolutional layers participating in the first image classification training; present an image through the display; Obtaining first color distribution information corresponding to the image; Providing the first color distribution information to the neural network model to classify the image through the neural network model; Performing a first-stage adjustment on the display parameters used by the display according to the classification result of the neural network model on the image; Obtaining second color distribution information corresponding to the image according to the result of the first-stage adjustment; Calculating color compensation information according to the second color distribution information; and Performing a second-stage adjustment on the display parameters used by the display according to the color compensation information. 如請求項9所述的電子裝置,其中該處理器將該神經網路模型設定為該第二訓練模式並基於該第二訓練模式對該神經網路模型進行第二影像分類訓練的操作包括: 將該神經網路模型中的第一卷積層設定為鎖定狀態,其中該第一卷積層有參與該第一訓練模式中的該第一影像分類訓練;以及 在該第二訓練模式中,僅針對該神經網路模型中未被設定為該鎖定狀態的第二卷積層進行該第二影像分類訓練。 The electronic device as described in claim 9, wherein the processor sets the neural network model to the second training mode and performs the second image classification training on the neural network model based on the second training mode, including: Setting the first convolution layer in the neural network model to a locked state, wherein the first convolution layer participates in the first image classification training in the first training mode; and In the second training mode, only the second convolution layer in the neural network model that is not set to the locked state is subjected to the second image classification training. 如請求項10所述的電子裝置,其中相較於該第二卷積層,該第一卷積層在該神經網路模型的運算核心中更遠離該神經網路模型的輸出端。An electronic device as described in claim 10, wherein the first convolution layer is farther away from the output end of the neural network model in the computing core of the neural network model than the second convolution layer. 如請求項9所述的電子裝置,其中該處理器將該神經網路模型設定為該第二訓練模式的操作包括: 響應於該神經網路模型針對訓練資料的使用程度達到預設程度,將該神經網路模型切換至該第二訓練模式。 The electronic device as described in claim 9, wherein the operation of the processor setting the neural network model to the second training mode includes: In response to the neural network model's usage of training data reaching a preset level, switching the neural network model to the second training mode. 如請求項9所述的電子裝置,其中該處理器根據該第二色彩分布資訊,計算該色彩補償資訊的操作包括: 根據該第二色彩分布資訊,獲得對應於該影像中的多個像素位置的灰階向量資訊; 根據該灰階向量資訊計算對應於該影像的灰階期望值;以及 根據該灰階期望值獲得該色彩補償資訊。 The electronic device as described in claim 9, wherein the operation of the processor calculating the color compensation information according to the second color distribution information includes: According to the second color distribution information, grayscale vector information corresponding to multiple pixel positions in the image is obtained; According to the grayscale vector information, a grayscale expected value corresponding to the image is calculated; and According to the grayscale expected value, the color compensation information is obtained. 如請求項9所述的電子裝置,其中該處理器根據該第二色彩分布資訊,計算該色彩補償資訊的操作包括: 若該影像中的前一影像的顯示內容與該影像中的後一影像的顯示內容之差異小於臨界值,沿用針對該前一影像的該色彩補償資訊。 The electronic device as described in claim 9, wherein the operation of the processor calculating the color compensation information according to the second color distribution information includes: If the difference between the display content of the previous image in the image and the display content of the next image in the image is less than a critical value, the color compensation information for the previous image is used. 如請求項9所述的電子裝置,其中該處理器根據該色彩補償資訊對該顯示器使用的該顯示參數進行該第二階段調整的操作包括: 若該色彩補償資訊所指示的針對該顯示參數的調整幅度大於臨界值,在該第二階段調整中,對該顯示參數執行分段調整。 The electronic device as described in claim 9, wherein the processor performs the second-stage adjustment of the display parameter used by the display according to the color compensation information, including: If the adjustment range for the display parameter indicated by the color compensation information is greater than a critical value, in the second-stage adjustment, the display parameter is adjusted in stages. 如請求項9所述的電子裝置,其中該處理器根據該神經網路模型對該影像的該分類結果,對該顯示器使用的該顯示參數進行該第一階段調整的操作包括: 若該影像中存在多種類型的子影像,根據該神經網路模型對該影像的多個分類結果,獲得平均調整參數;以及 根據該平均調整參數,對該顯示器使用的該顯示參數進行該第一階段調整。 The electronic device as described in claim 9, wherein the processor performs the first-stage adjustment on the display parameters used by the display according to the classification result of the image by the neural network model, including: If there are multiple types of sub-images in the image, obtain an average adjustment parameter according to multiple classification results of the image by the neural network model; and Perform the first-stage adjustment on the display parameters used by the display according to the average adjustment parameter.
TW113120736A 2024-06-05 2024-06-05 Display parameter adjustment method and electronic device TWI885935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW113120736A TWI885935B (en) 2024-06-05 2024-06-05 Display parameter adjustment method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW113120736A TWI885935B (en) 2024-06-05 2024-06-05 Display parameter adjustment method and electronic device

Publications (2)

Publication Number Publication Date
TWI885935B true TWI885935B (en) 2025-06-01
TW202548729A TW202548729A (en) 2025-12-16

Family

ID=97227501

Family Applications (1)

Application Number Title Priority Date Filing Date
TW113120736A TWI885935B (en) 2024-06-05 2024-06-05 Display parameter adjustment method and electronic device

Country Status (1)

Country Link
TW (1) TWI885935B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210256937A1 (en) * 2017-05-19 2021-08-19 Semiconductor Energy Laboratory Co., Ltd. Machine learning method, machine learning system, and display system
TW202309736A (en) * 2018-07-03 2023-03-01 美商谷歌有限責任公司 Display supporting multiple views, and method for such display
CN116453438A (en) * 2023-06-19 2023-07-18 深圳市瑞桔电子有限公司 Display screen parameter detection method, device, equipment and storage medium
CN117478902A (en) * 2022-07-15 2024-01-30 华为技术有限公司 Image display method, encoding method and related devices applied to electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210256937A1 (en) * 2017-05-19 2021-08-19 Semiconductor Energy Laboratory Co., Ltd. Machine learning method, machine learning system, and display system
TW202309736A (en) * 2018-07-03 2023-03-01 美商谷歌有限責任公司 Display supporting multiple views, and method for such display
CN117478902A (en) * 2022-07-15 2024-01-30 华为技术有限公司 Image display method, encoding method and related devices applied to electronic equipment
CN116453438A (en) * 2023-06-19 2023-07-18 深圳市瑞桔电子有限公司 Display screen parameter detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
Sun et al. A deep learning based no-reference quality assessment model for ugc videos
WO2021057848A1 (en) Network training method, image processing method, network, terminal device and medium
CN110189714A (en) Display method and device with area-adjustable backlight, electronic equipment, medium
CN112102164B (en) Image processing method, device, terminal and storage medium
US20140218552A1 (en) Electronic device and image composition method thereof
WO2024041108A1 (en) Image correction model training method and apparatus, image correction method and apparatus, and computer device
CN111182212B (en) Image processing method, device, storage medium, and electronic device
CN111047543B (en) Image enhancement method, device and storage medium
CN108961267B (en) Picture processing method, picture processing device and terminal equipment
WO2020151156A1 (en) Video stream playing method and system, computer apparatus and readable storage medium
US20240346726A1 (en) Image Processing Method, Electronic Device, and Non-Transitory Readable Storage Medium
CN116843566B (en) Tone mapping method, tone mapping device, display device and storage medium
Ma et al. Study of subjective and objective quality assessment of retargeted images
CN111800626B (en) Photographing consistency evaluation method and device, mobile terminal and storage medium
TWI885935B (en) Display parameter adjustment method and electronic device
CN115170383A (en) Image blurring method and device, storage medium and terminal equipment
CN116739936A (en) Tone mapping method, device, display device and storage medium
KR102234795B1 (en) Method of processing image data and display system for display power reduction
TW202548729A (en) Display parameter adjustment method and electronic device
CN108629767A (en) A kind of method, device and mobile terminal of scene detection
US20090208114A1 (en) Image Processing Apparatus
CN111754411A (en) Image noise reduction method, image noise reduction device and terminal equipment
US10026201B2 (en) Image classifying method and image displaying method
CN117135330A (en) Model training and image processing methods, devices and electronic equipment
CN115761809A (en) Projector control method, device and equipment based on gesture recognition and storage medium