TW201227709A - Method for adjusting color depth, adjusting system thereof, computer-readable storage media and computer program product - Google Patents

Method for adjusting color depth, adjusting system thereof, computer-readable storage media and computer program product Download PDF

Info

Publication number
TW201227709A
TW201227709A TW100110459A TW100110459A TW201227709A TW 201227709 A TW201227709 A TW 201227709A TW 100110459 A TW100110459 A TW 100110459A TW 100110459 A TW100110459 A TW 100110459A TW 201227709 A TW201227709 A TW 201227709A
Authority
TW
Taiwan
Prior art keywords
color
colors
block
screen
adjustment
Prior art date
Application number
TW100110459A
Other languages
Chinese (zh)
Inventor
Fred Chen
James Wang
Original Assignee
Inventec Besta Co Ltd
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 Inventec Besta Co Ltd filed Critical Inventec Besta Co Ltd
Publication of TW201227709A publication Critical patent/TW201227709A/en

Links

Abstract

A method for adjusting color depth, adjusting system thereof, computer-readable storage media and computer program product is adapted to an electronic apparatus, such that the electronic apparatus can auto-adjust the color depth, used to display the image, of a screen according to the intensity of the ambient light. In application, the intensity of the ambient light is sensed. When the intensity of the ambient light substantially increases, the color depth used to display the image is reduced, thereby increasing the chromatism and then increasing the readability of the content of the image displayed by the screen of the electronic apparatus.

Description

201227709 六、發明說明: 【發明所屬之技術領域】 本發明係’-種影軸示技術,制是—種顏色數調整方 法、其系統、電腦可讀取儲存媒體及電腦程式產品。 【先前技術】 手機、智慧手機(smart phone)、個人數位助理(pDA)、 電子詞典、筆記型電腦、平㈣腦、影音撥㈣及導織置等具 有顯示裝置的電子設備’其在使財财會制,在室内時榮幕 上的内容可以看得清清楚楚,但到室外時外界光線增強了,而致 使螢幕上的内容變得看不清楚了。像這樣的由於外界光線條件變 化導致電子設備的螢幕上内容看不清楚的狀況時常發生於生活 中。 這種If況的發生疋因為物件能否被看的清楚是和周圍環境的 光線條件有著密切聯繫的。叫樣_鑛子詞典㈣幕與同樣的 顯不内容為例’在室内時由於室内光線比較暗(通常是燈光照 明),相對於觸環境,螢幕的背光相對亮度是足夠的,此時從 螢幕上發出後或反射進入人眼的光線較多,因此榮幕的内容可以 看的比較清楚;而當將電子詞典拿到室外時,通常室外日光比較 強,此時反_人_干擾光線會比較多,以致使_的顯示内 谷在室外光線強的條件下立刻變得看不清楚。 對於外在光線的轉變,使用者常常來不及或未注意到要進行 背光设定的調整,以致於在外在光線較強的情況下,電子設備因 201227709 難以辨識顯示内仍而難以操作,甚至無法進行操作。 【發明内容】 =以上關題’本發明在於提供—種顏色數調整方法、盆 體及電腦程式產品,藉以解決先前技術 子在冰光w成顯示内容可讀性降低的問題。 本發明所揭露之顏色數調整方法,適用於 子設備具有用以顯示内容之一螢幕。 # 1甭此電 =树狀純數枝包含:_職電子設備所在 並產生對應環境光之—偵測訊號;以及利用—處理器, 二康偵測訊號之變化’調整螢幕顯示内容所使用之顏色數。並且, A境光之亮度增加時,減少所使狀顏色數。 p少所使狀顏色數上,可先讀出儲存單元中各顏色區塊 色’紐致使螢幕利用各顏色區塊之代表顏色顯示内 :…、t ’各代表顏色係為其崎應之顏色區制所有顏色中之 • 糾’於減少較社純數上,也可叹纽各顏色區塊 之所有顏色巾選擇—顏色作為此顏色區塊之絲,然後再致 使螢幕利用各顏色區塊之代表顏色顯示内容。 代表顏㈣選擇方式可如各顏色區财之所有顏色十之任 意一顏色作域表腕。或者是,財親區塊之財顏色令之 與相鄰之顏色區塊的色差效果相對較大之―顏色作為代表顏色。 或者是’以各顏色區塊之所有顏色中之所使狀腕數調整後所 201227709 顯示出的視覺效果與調整前的差異較小之_顏色作為代表顏色。 本發明又揭露-種制可讀取儲存媒體,其包含—程式碼。 當處理器讀取並執行此程式後,可完成如前述之顏色數調整方法。 本發明又揭露-種電腦程式產品,其具有—電職式。當處 理β讀取並執行此電腦程式時,可完成如前述之顏色數調整方法。 本發明又揭露-種顏色數調㈣統,適—電子設備。此 電子設備具有用以顯示内容的一螢幕。 根據本發明之顏色數調整系統包括偵測模組以及調整模組。 調整模組電性連接至偵測模組。 於此,偵測模組用以偵測電子設備所在之環境光並產生偵測 訊號。調整模組用以根據偵測訊號之變化調整螢幕顯示内容所使 用之顏色數。其中,當環境光亮度增加時,調整模組會減少所使 用之顏色數。 根據本發明之顏色數調整系統可更包括儲存單元。此儲存單 元儲存有電子設備之顯示系統所支援的所有顏色數所區分出的多 個顏色區塊以及各顏色區塊所對應的代表顏色。其中,當環境光 亮度增加時,調整模組可致使螢幕利用各顏色區塊之代表顏色來 顯示内容。 根據本發明之顏色數調整系統可更包括選擇單元。選擇單元 可將電子設備之顯示系統所支援的所有顏色數區分為多個顏色區 塊’且於各顏色區塊之所有顏色中選擇一顏色作為此顏色區塊之 代表顏色,其中,當環境光亮度增加時’調整模組致使螢幕利用 各顏色區塊之代表顏色來顯示内容。 201227709 综上所述’根據本發明之顏色數罐方法、衫統、電腦可 讀取儲存媒體及電腦程式產品,其可應用於具有勞幕的電子裝 置’以致使電子裝置可域魏光的光_度,自_整調整並 螢幕於顯示内容時所使用的顏色數。於此,於此,係透過偵測環 境光的光線強度’並於環触的紐強錢強時,調降用以顯干 内容的顏色數’來致使色彩間的色差增加,進而提升顯示出來的 内容的可讀性。 【實施方式】 圖-係為根據本發明第—實施例之顏色數調整系統觸的示 意圖。 參照圖- ’此顏色數調整系统1〇〇適用於具有螢幕21〇的電 子設備。 此電子稍可為獨立式顯示裝置或是設置有顯示螢幕之電子 設備。獨立式顯稀置可為數位她、電子示看板、或電視牆等 裝置。此電子設備可騎機、智慧手機(s_ phQne)、個人數 位助理(PDA)、電子詞典、筆記型電腦、平板電腦、影音撥放 器、導航裝置、或具有顯示面板之電器等。 此顏色數調㈣統1GG包括伽彳模組11()以及調整模組13〇。 調整模組130電性連接於制模組11〇與電子設備的榮幕21〇 之間。 侧模組130的感測面可設置於應用之電子設備的外殼的特 疋位置’以1制職子設備所在魏之環境光駐。較佳地, 201227709 偵測模組130的感測面可設置於離螢幕210較近的位置(例如: 螢幕210的周邊),藉以更準確地反映影響螢幕210顯示效果的 環境光給電子設備。 於此,偵測模組130可偵測電子設備所在環境之環境光,並 且將感測到的環境光的光線強度以量化的方式反映給調整模組 130 ’即’產生對應環境光之一偵測訊號給調整模組13〇。 調整模組130再分析接收到的偵測訊號,並根據偵測訊號之 變化調整螢幕210於顯示内容時所使用之顏色數。其中,當調整 模組130由接收到的偵測訊號得知環境光的亮度增加時,調整模 組130減少螢幕21〇於顯示内容時所使用之顏色數。 於此,調整模組130可調降螢幕210的顏色數的設定值,來 致使螢幕210當前顯示内容的顏色數降低。或者,調整模組⑽ 可是先預處理欲顯示的内容,以先調整内容的資料中與顯示之顏 色數相關之記錄,再提供給螢幕210進行顯示,來致使螢幕2ι〇 當前顯示内容的顏色數降低。 於本發明巾,係透過降低肋顯示内容的顏色數,來致使色 彩間的色差增加,進而提升顯示出來的内容的可讀性。 ,外,偵測模組110以及調整模組13〇可由一個或多個處理 器搭配-感測器而實現。也就是,可將相應偵測模組仙以及調 整模組130的魏之財碼儲絲齡單元或魏可讀取儲存媒 體中,再藉由-個或多個處理器讀取並執行此程式碼,以控制感 測器的運作及進行訊號處理,進而實現偵測模組11〇以及調整模 組130。 ' 201227709 以一處理器為例,參照圖二及圖三,此顏色數調整系統l〇〇 應用於一電子設備200。 在一些實施例中,螢幕210與偵測模組的感測器23〇係嵌設 在電子設備200的殼體2〇2上’且兩者係設置於殼體2〇2的同一 側。於此,電子設備200的殼體202會顯露出螢幕21〇的顯示面 以及感測器230的感測面。 電子設備200内部的處理器250電性連接至感測器23〇、榮幕 21〇及儲存單it 27〇。處理器MO可控制感測器现的運作與榮幕 21〇的運作。並且,處理器250射讀取儲存單元27〇内所儲存的 程=並執行之。處理器25〇根據所執行之程式碼致使感測器23〇 進行%境光的偵測,並接收且分析來自感測器23G的偵測訊號。 當發現反映出環境光之亮度增加之_訊號的變化時,處理器 則減少螢幕210於顯示内容時所使用的顏色數。於此,雖以一處 理器為例進行說明’然此非本發明之關,即可依據實際採用之 軟體和/或硬體的狀況由-個或多個處理器來進行上述處理器25〇 . 所實施之運作。 -—由^述可得’減本發明—實施例之顏色數罐方法適用於 電子设備。此電子設備具有用以顯示内容之—螢幕。 <參照圖四,此顏色數調整方法具有下列步驟。_對應電子 设備所在之環境光並產生對應環境光之偵測訊號(咖),以及利 用一處理器根據偵測訊號之變化,調整螢幕顯示内容所使用之顏 ,數(S330)。其中’當環境光之亮度增加時減少所使用之顏色 201227709 雖然於圖四巾册製出—次驗的絲然而此非本發明之 限制於實際應用上’於開始執行相應於本發明之程式後可反 覆執行步驟S3H)及步驟S33〇直至結束執行程式。 再者’具有相應於根據本發明之顏色數調整方法之程式竭之 電腦程式可齡在_電腦程式產品巾,當處理器2%以直接或間 接的方式棘此電齡式域行此電職式後,可完成根據本發 明之顏色數調整方法4 —些實_中,所述電腦程式產品可經 由網路下載至電子設備。 請合併參照圖-及圖四,於此,偵晒組13〇可持續進行電 子設備200外部的光線強度的感測動作,並且產生相應於環境光 的光線強度之偵測訊號給調整模組13〇(S31〇)。 。請再參照圖五’調整模組130可包括訊號接收單元l3i、分析 單元133、比較單元135及改變單元137。 偵測模組110、峨接收單元m、分析單元133、比較單元 135及改變單元137依序電性連接。分析單元133還電性連接至一 儲存單元270。 於儲存單元270中預先儲存有-預設值。於實施上,此預設 值與前述之程式碼可儲存在單—儲存單元中,或是分卿存二儲 存單元中。 訊號接收單元131可接收來自_模組11〇的偵測訊號,並 傳送給分析單元133進行分析。 分析單元133可利用偵測訊號分析相鄰的二時間點所侧得 絲強度的變化(S331)。也就是說,分析單元U3比較當前的光 201227709 線強度與前一個時間點的光線強度’以了解環境光的強度是否產 生改變。舉例而言,相鄰的二時間點之間的時間差可小於或等於1 秒且大於〇秒。 當分析單元133發現相鄰的二時間點所偵測得光線強度的變 化為變大(即’環境光的強度增強)時,致使比較單元135讀出 儲存單元270中儲存之預設值’並進行相鄰的二時間點的光線強 度的變化量與預設值之間的比較(S333)。並且’當相鄰的二時間 點的光線強度的變化量大於預設值(步驟334)時,比較單元135 會致使改變單元137進行螢幕210當前顯示内容所使用的顏色數 的調降(步驟335)。 於執行螢幕210當前顯示内容所使用的顏色數的調降上,調 整模組130可直接進行顏色數的調整,來降低螢幕21〇於顯示内 谷時所使用的顏色數。舉例來說,由以電子設備的顯示系統所支 援的所由顏色來顯示内容資料變更為以電子設備的顯示系統所支 援的顏色巾之部分顏色來齡内容資料。以筆記魏腦為例,假 設筆記型電腦_示系統係個24位元絲示顏色,醜示系統 共可支援4M種顏色。於調降顏色數時,可為只使用整個種顏 色當中的-部分或-個子絲進行顯示。例如,使用整個種 顏色當中的4096色或使用其中256色等。也就是說,對於支援顯 =顏色數為24位色的4M個顏色_示系統來說,螢幕的顏色數 疋24位兀’以二原色(RGB)表示方式來表示每個•點(像素)需 要3_個Byte (位元組),且每個代表8位元。3個_分別 表不R (紅)、G (綠)及B (藍),則每種顏色都有〇_255個可以 201227709 選得值。當調整模組130進行調降顏色數時,期可將每個顏色值 得3個Byte的低4位元通通置零,此時24位色就轉為相當於12 位色。此時,相當於將RGB中每個Byte的8個有效位元變為4 個(因為低4位元都設定為零)。也就是,原來8個位元可表示的 256種顏色變為4個位元為有效,此時就只能以4個位元來表示出 16種顏色。整個RGB系統也就是變成只能表示ΐ6χ16χ16 = 4〇96 種顏色。實際執行上’相當於將RGB三原色中接近的16種顏色以 一種顏色來表示。以R (紅)為例,R的0-15經轉換(調降)後 都變成了 0X00’而16-31經轉換後都變成了 οχιό。因此,每個Byte 表示的顏色數的減少,而整個RGB表示的顏色數也就漸少。也就 是說’可透過將每個Byte的8個有效位元中的特定位元(一個或 多個)置零來達到降低所使用的顏色數。如此一來,螢幕上顯示内 谷的母個顏色之間的色差也會隨之增加,進而讓螢幕上内容之間 的反差增加,因而提高内容的辨識度。 其中,顯示系統所支援的顏色可由其色域來決定,而色域則 係由組成顯示系統之組成構件(軟體和/或硬體)共同決定的。 此外,可先於儲存單元270中儲存各種光線強度範圍與其所 對應之適用騎使用_色數之對訊。也就是說,儲存單元 27〇儲存有錄光、_度棚、多個咖的顏色數以及纽光線強 度範圍和適帛的顏色數的纟镜關係。此對應資訊可以資料庫或對 應表等形式進行儲存。此外,此對應資訊亦可另存在其他儲存單 。也就是說,於實施上’此_資贿前述之程式碼可儲存 在單-儲存單元+,或是分別儲存二儲存單元中。並且,此對應 12 201227709 資訊與前述之預設值可儲存在單一儲存單元中,或是分別儲存二 儲存單元中。當比較單元135確認欲進行調降顏色數時(相鄰的 二時間點的光線強度的變化量大於預設值),比較單元135根據 偵測訊號取得相應當前光線強度的適用的顏色數,以提供改變單 元137作為改變顏色數的依據。也就是說,改變單元η?可將螢 ' 幕或内容的顏色數調降為適用的顏色數》 於-實施例中,可預先將電子設備綱的顯示系統所支援的 所有顏色數ϋ分為複數個顏色區塊,並且將每_顏色區塊指定一 代表顏色。其巾,各顏色區塊的代表顏色係為區分為此顏色區塊 之所有顏色中之一顏色。 請參照圖-及圖六,換言之,可預先將所區分出來的顏色區 塊與各自指定之代表顏色的對應關係儲存在儲存單元27〇中 (S302)。於實施上’顏色區塊與各自指定之代表顏色的對應關 係與刖述之程式碼可儲存在單一儲存單元中,或是分別儲存二儲 存單兀中。並且,顏色區塊與各自指定之代表顏色的對應關係與 •剛述之預③值可儲存在單-儲存單元中,或是分別儲存二儲存單 元中。 »月再搭配參照圖七,於減少所使用之顏色數時,調整模組j3〇 (的改變單元137)從儲存單元270中讀出各顏色區塊之代表顏色 (S3351),並且致使螢幕21〇利用各顏色區塊之代表顏色來顯示 内容(S3353)。 另外,調整模組13〇亦可以於減少所使用之顏色數時,再進 行各顏色區塊的代表顏色的選取。 13 201227709 請參照圖八,調整模組130可更包括選擇單元139。選擇單元 139電性連接於比較單元135及改變單元137之間。 請搭配參湖九,當比鮮元135確定要進行減少所使用之 顏色數(變化量大於預設值)時,選擇單元139會針對各個顏色 區塊,於每-顏色區塊所包含之所有顏色中選擇一顏色作為各自 所指定之代表顏色(S3352)。然後’選擇單元139將各顏色區塊 與其代表顏色提供給改變單元137,以致使改變單元137據以致使 螢幕210利用各顏色區塊之代表顏色顯示内容(幻353)。於此, 改變單70 137可以藉由根據各顏色區塊與其代表顏色改變勞幕 210的顏色顯示蚊或欲處糊示内容(改麵示内容的顏色資 料),來致使螢幕210利用各顏色區塊之代表顏色顯示内容。 其中,代表顏色的選擇方式可為下列三種方式中之任一種。 以各顏色區塊中之所有顏色中之任意一顏色作為代表顏色。或者 疋’以各顏&區塊之所有顏色中之與相鄰之顏色區塊的色差效果 相對較大之-顏色作域表齡。或者是,以各顏色區塊之所有 顏色中之所使用之顏色數調整後所顯示出的視覺效果與調整前的 差異較小之一顏色作為代表顏色。 舉例來說’-般來說,電子設備的顯示系統可以支援很多種 紅色,以可支援5種紅色(橙紅、粉紅、紫紅、黑紅和深紅)為 例。於調整前’内容中各種紅色資料則是螢幕21G以所屬的顏色 進行顯示。飾’當調整模組13G發現環境光的強度變強時,則 致使螢幕21G以較少的顏色數進行顯示。此時,内容中各種紅色 資料榮幕210均以同-種紅色來顯示,例如:螢幕將原來的 201227709 橙紅、粉紅、紫紅、黑紅和深紅的内容資料都顯示成橙紅。 也就是說,在將使用256種顏色進行顯示調整為使用64種顏 色進行顯示時,就是將每一個顏色區塊用一種顏色(代表顏色) 代替這種顏色周圍的3種顏色。 例如:使用256種顏色顯示時,在一顏色區塊中的四種顏色 的色值分別是OxAO、OxAl、0xA2及0xA3。當調整為使用64種 顏色顯示時,可以用這四種顏色(ΟχΑΟ、ΟχΑΙ、0χΑ2及0χΑ3) 中的任何一個顏色(OxAO、OxAl、0χΑ2或0χΑ3 )來代替。同樣, 對於使用256種顏色顯示時的另一顏色區塊中的四種顏色(色值 分別是0xA4、0xA5、0xA6及0xA7),當變為使用64種顏色來顯 示時,也可以用它們之中任何一種顏色(〇χΑ4、0χΑ5、0χΑ6或 0χΑ7 )來顯示這四種顏色(〇χΑ4、〇χΑ5、0χΑ6及0χΑ7 )。 於此,當選擇用OxAO來代替ΟχΑΟ、OxAl、0xA2和〇χΑ3時, 對於另一顏色區塊中的四種顏色,則選擇用〇χΑ4來代替QxA4、 〇xA5、0χΑ6和0xA7。並以此類推其他顏色區塊。 • 而當用0xA2來代替OxAO、OxAl、0χΑ2及0xA3時,對於另 一顏色區塊中的四種顏色,則選擇用ΟχΑό來代替0χΑ4、0χΑ5、 〇xA6和〇χΑ7。並以此類推其他顏色區塊。 也就是說,參照圖十,在調整時,可由調整模組13〇於内容 的顏色寫入勞幕210 a夺,將各顏色區塊以其所具有的一顏色的色 值替代其所具有的所有顏色的色值,來減少顯軸容所使用之顏 色數(S355’)。並且,於選擇代表顏色時,可選擇每—顏色區塊 中相同排列位置的顏色做為代表顏色。即,不同的顏色區塊可以 201227709 相同的方法來選擇的代表顏色。其中,在進行調整時,整個顏色 系統所能支援的所有顏色可以以特定數量依序區分為多個顏色區 塊。換言之,劃分出的每個顏色區塊可具有相同數量的顏色。 於顏色代替上,以二顏色區塊為例。第一顏色區塊具有四種 顏色’其色值分別是0χΑ0、0χΑ1、〇χΑ2及0xA3。而第二顏色區 塊也具有四種顏色’其色值分別是0χΑ4、〇χΑ5、〇χΑ6和〇χΑ7。 當前晝面是以256種顏色來顯示的,現在要調整為以64種顏 色來顯示時,原來的色值0χΑ〇、0χΑ卜0xA2、QxA3、、 0xA6 及 0χΑ7 要變為 OxAO、ΟχΑΟ、ΟχΑΟ、ΟχΑΟ、ΟχΜ、〇χΜ、 0χΑ4及〇χΑ4。於調整時,是將螢幕21〇的整個晝面刷新一次, 將所有點的顏色最低兩位置設置為〇。同時,在處於使用64種顏 色顯示的這種狀態下時,是將所有寫到螢幕2〗〇上的顏色數值最 低兩位置為〇。也就是說,若選擇以0χΑ1來代替〇χΑ〇、〇χΑ1、 0xA2 及 0χΑ3,並且以 〇χΑ5 來代替 〇χΑ4、0χΑ5、0χΑ6 及 0χΑ7, 於實際調整的過程中,則是將所有寫到螢幕2ΐ〇上的顏色數值最 低兩位置設置為0x1。 若是將使用256種顏色顯示調整為使用8種顏色顯示,也就 是原來的8種顏色用一種顏色來代替。例如:將〇χΑ〇、〇χΑ^ 0xA2、0xA3、0xA4、0χΑ5、0xA6 及 0xA7 用 〇χΑ3 來代替,並且 0xA8、0χΑ9、ΟχΑΑ、ΟχΑΒ、OxAC、OxAD、ΟχΑΕ、〇xAF 用 ΟχΑΒ 來代替。於實際調整的過程中,則是將所有顯示到螢幕2i〇上的 顏色數值最低3位置設置為〇χ3。 換言之,可在將顏色寫入到螢幕210上時,進行使用顏色數 201227709 的調整。 在一些實施例中,調整模組130可選擇性透過調降螢幕21〇 或内容的色彩品質的設定值’來降低螢幕210於顯示内容時所使 用的顏色數。 舉例來說,螢幕210或内容的色彩品質的設定值可具有多種 顏色數’以256位元、32位元以及16位元為例。若螢幕21〇當前 的色彩品質的設定值係為32位元,在偵測到環境光變強達預設程 度時,調整模組130即會將螢幕210當前的色彩品質的設定值變 更為16位元,以致使螢幕210改以16位元進行内容資料的顯示。 於此,色彩品質的調降程度可為從當前的色彩品質的等級調 低-等級’或是調低特定數量之等級(可透過預先設定決定)。 另外,亦可先於儲存單元27〇中儲存各種光線強度範圍與其 所對應之適用的色彩品質之對應資訊。也就是說,儲存單元挪 儲存有多個光線強度範圍、多個適用的色彩品質以及多組光線強 度範圍和顧的色彩品質的對應關係4對應資訊可以資料庫或 ,應表等形式進行儲存。此外,此對應資訊亦可另存在其他儲存 早元中。於實施上’此對應資訊與前述之程式碼可儲存在單一儲 料元中’献分職存二儲存單材。並且,崎鮮訊與前 ^預設值可儲存在單-儲存單材,或是分·存二儲存單元 m 1碰触13G藉由細彳職確認要進行難時,調整模組 270 、、:^質。祕,調整模M13G再根據搜尋出之適用的 201227709 色彩品質選擇性調整螢幕210於顯示内容時所使用的色彩品質。 於此,調整模組130可將搜尋出之適用的色彩品質與螢幕當前使 用的色彩品質(即,調整前的色彩品質)相互比較。當適用的色 彩品質大於當前的色彩品質(即,調整前的色彩品質)時,調整 模組130再進行螢幕210當前顯示内容的色彩品質(即,所使用 的色彩品質)的調整。於此,調整模組13()可將螢幕210的色彩 品質或内容的的色彩品質調整成適用的色彩品質,以致使所使用 的色彩品質降低。 另外,請參照回圖三,還可提供一輸入介面29〇給使用者進 行儲存單元270中之資料的編輯,例如:預設值的設定、顏色區 塊與各自指定之代表顏色的對應關係的設定、色彩品質的調降等 級的設定、資料庫的訓練、或對應表的設定等。 舉例來說’使用者可藉由輸入介面290來設定儲存單元270 中所儲存之光線強度範圍與適用的色彩品質的對應資訊。即,透 過輸入介面192新增之相互對應的光線強度範圍與適用的色彩品 質,或疋修改已存於儲存單元19〇中的光線強度範圍和/或適用的 色彩品質。 练上所述,根據本發明之顏色數調整方法、其系統、電腦可 讀取儲存媒體及電腦程式產品,其可應用於具有營幕的電子裝 置,以致使電子裝置可依據環境光的光線強度,自動調整調整其 螢幕於顯示内容時所使用的顏色數。於此,於此,係透過偵測環 兄光的光線強度,並於環境光的光線強度變強時,調降用以顯示 内容的顏色數’來致使色彩_色差增加,進而提升顯示出來的 201227709 内容的可讀性。 以限 雖然本發明以前述之較佳實施例揭露如上,然其並非用 定本^明’任域f相像技藝者,在不脫離本發日把精神和^ 田可作些許之更動與麟,因此本發明之專利保護朗須視 本說明書所社巾料概騎界定者鱗。 、 【圖式簡單說明】 圖-係為根據本發明第—實細之顏色數調録統的概要結 構圖。 ^ 圖-係為應用本發明-實施例之電子設備的外觀示意圖。 圖三係為應用本發明-實施例之電子設備的概要結構圖。 圖四係為根據本發明第—實施例之顏色數調整方法的概要流 程圖。 圖五係為第一實施例之調整模組的概要結構圖。 圖六係為根據本發明第二實施例之顏色數調整方法的概要流 程圖。 圖七係為第一實施例之步驟S335的概要流程圖。 圖八係為第二實施例之調整模組的概要結構圖。 圖九係為第二實施例之步驟S335的概要流程圖。 ®十係為根據本第二實酬之顏色數健方法的概要流 程圖。 201227709 【主要元件符號說明】 100 顏色數調整系統 110 偵測模組 130 判斷模組 131 訊號接收單元 133 分析單元 135 比較單元 137 改變模組 139 選擇單元 200 電子設備 202 殼體 210 螢幕 230 感測器 250 處理器 270 儲存單元 290 輸入介面201227709 VI. Description of the Invention: [Technical Field] The present invention is a technique for adjusting the color number, a system thereof, a computer readable storage medium, and a computer program product. [Prior Art] Mobile phones, smart phones, personal digital assistants (pDA), electronic dictionaries, notebook computers, flat (four) brains, audio and video dialing (four) and guide weaving devices and other electronic devices with display devices In the accounting system, the content on the screen of the room can be clearly seen in the room, but when the outdoors is outside, the outside light is enhanced, and the content on the screen becomes unclear. Such a situation in which the contents of the electronic device cannot be clearly seen due to changes in external light conditions often occurs in life. This kind of If happens because the object can be seen clearly and is closely related to the lighting conditions of the surrounding environment. The sample _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The light that is emitted or reflected into the human eye is more, so the content of the screen can be seen clearly; when the electronic dictionary is taken outdoors, the outdoor sunlight is usually strong, and the anti-human_interference light will be compared. There are so many that the inner valley of the display of _ immediately becomes unclear under the condition that the outdoor light is strong. For external light transitions, users often have little or no notice of adjustments to the backlight settings, so that in the case of strong external light, the electronic device is difficult to operate due to the difficult identification of the 201227709 display, or even impossible operating. SUMMARY OF THE INVENTION The above invention provides a method for adjusting the number of colors, a basin body, and a computer program product, thereby solving the problem that the prior art reduces the readability of the display content in the ice. The method for adjusting the number of colors disclosed in the present invention is applicable to a sub-device having a screen for displaying content. # 1甭甭电=Tree-like pure branch contains: _ occupational electronic equipment is located and generates corresponding ambient light-detection signal; and utilization-processor, the change of the second detection signal is used to adjust the display content of the screen The number of colors. Moreover, when the brightness of the A-state light is increased, the number of colors to be made is reduced. When the number of p colors is small, the color of each color block in the storage unit can be read first. The screen is displayed in the representative color of each color block: ..., t 'the color of each representative is the color of the color In all the colors of the district system, you can use the color of the color block as the color of the color block, and then use the color blocks. The content is displayed on behalf of the color. The representative color (4) can be selected as the color of all colors in each color area. Or, the color of the wealthy block makes the color difference effect of the adjacent color block relatively large as the representative color. Or, the color that is displayed after the adjustment of the number of wrists in all the colors of each color block is smaller than the color before the adjustment is used as the representative color. The invention further discloses a readable storage medium comprising - a code. When the processor reads and executes the program, the color number adjustment method as described above can be completed. The invention further discloses a computer program product having an electric job. When the processing of β reads and executes the computer program, the color number adjustment method as described above can be completed. The invention further discloses a color number adjustment (four) system, suitable - electronic equipment. The electronic device has a screen for displaying content. The color number adjustment system according to the present invention includes a detection module and an adjustment module. The adjustment module is electrically connected to the detection module. The detection module is configured to detect ambient light where the electronic device is located and generate a detection signal. The adjustment module is used to adjust the number of colors used by the display content according to the change of the detection signal. Among them, when the ambient light brightness increases, the adjustment module will reduce the number of colors used. The color number adjustment system according to the present invention may further include a storage unit. The storage unit stores a plurality of color blocks distinguished by the number of colors supported by the display system of the electronic device and representative colors corresponding to the respective color blocks. Wherein, when the ambient light level is increased, the adjustment module can cause the screen to display the content using the representative color of each color block. The color number adjustment system according to the present invention may further include a selection unit. The selection unit can divide all the color numbers supported by the display system of the electronic device into a plurality of color blocks' and select a color among all the colors of the color blocks as the representative color of the color block, wherein, when the ambient light When the brightness is increased, the 'adjustment module causes the screen to display the content using the representative color of each color block. 201227709 In summary, the color number can method, the shirt system, the computer readable storage medium and the computer program product according to the present invention can be applied to an electronic device having a screen to cause the electronic device to have a light of the field. _ degrees, the number of colors used to display and display the content. In this case, by detecting the light intensity of the ambient light and reducing the number of colors used to display the content when the ring is strong, the color difference between the colors is increased, thereby improving the display. The readability of the content. [Embodiment] Fig. - is a schematic diagram of a color number adjustment system according to a first embodiment of the present invention. Referring to the figure - 'This color number adjustment system 1' is suitable for an electronic device having a screen 21A. The electronic device can be a stand-alone display device or an electronic device provided with a display screen. The stand-alone display can be a digital device such as a digital display, an electronic display board, or a video wall. This electronic device can be used for rides, smart phones (s_phQne), personal digital assistants (PDAs), electronic dictionaries, notebooks, tablets, video players, navigation devices, or appliances with display panels. This color number adjustment (4) system 1GG includes a gamma module 11 () and an adjustment module 13 〇. The adjustment module 130 is electrically connected between the module 11 and the gate 21 of the electronic device. The sensing surface of the side module 130 can be placed at a special location of the outer casing of the electronic device to be used. Preferably, the sensing surface of the detection module 130 of the 201227709 can be disposed at a position closer to the screen 210 (for example, the periphery of the screen 210), so as to more accurately reflect the ambient light that affects the display effect of the screen 210 to the electronic device. The detection module 130 can detect the ambient light of the environment in which the electronic device is located, and reflect the sensed light intensity of the ambient light to the adjustment module 130 in a quantitative manner to generate a corresponding ambient light. The test signal is given to the adjustment module 13〇. The adjustment module 130 then analyzes the received detection signal and adjusts the number of colors used by the screen 210 to display the content according to the change of the detection signal. When the adjustment module 130 knows that the brightness of the ambient light is increased by the received detection signal, the adjustment module 130 reduces the number of colors used by the screen 21 when displaying the content. Here, the adjustment module 130 can adjust the set value of the number of colors of the screen 210 to reduce the number of colors of the current display content of the screen 210. Alternatively, the adjustment module (10) may pre-process the content to be displayed, first adjusting the record related to the displayed color number in the data of the content, and then providing the display to the screen 210 to cause the screen 2 to display the color of the currently displayed content. reduce. In the towel of the present invention, the color difference between the colors is increased by reducing the number of colors of the display contents of the ribs, thereby improving the readability of the displayed content. The detection module 110 and the adjustment module 13 can be implemented by one or more processor collocation-sensors. That is, the corresponding detection module and the Weizhi Cai code storage age unit or Wei can read the storage medium of the adjustment module 130 can be read and executed by one or more processors. The detection module 11A and the adjustment module 130 are implemented by controlling the operation of the sensor and performing signal processing. '201227709 Taking a processor as an example, referring to FIG. 2 and FIG. 3, the color number adjustment system is applied to an electronic device 200. In some embodiments, the screen 210 and the sensor 23 of the detection module are embedded on the housing 2〇2 of the electronic device 200 and both are disposed on the same side of the housing 2〇2. Here, the housing 202 of the electronic device 200 exposes the display surface of the screen 21〇 and the sensing surface of the sensor 230. The processor 250 inside the electronic device 200 is electrically connected to the sensor 23, the gate 21, and the storage unit. The processor MO controls the operation of the sensor and the operation of the screen. Moreover, the processor 250 reads the program stored in the storage unit 27 and executes it. The processor 25 causes the sensor 23 to detect the % ambient light based on the executed code, and receives and analyzes the detection signal from the sensor 23G. When it is found that the change in the signal reflecting the increase in the brightness of the ambient light is detected, the processor reduces the number of colors used by the screen 210 when displaying the content. Here, although a processor is taken as an example for description, it is not the invention, and the processor 25 can be implemented by one or more processors depending on the actual software and/or hardware conditions. The operation of the implementation. - The method of subtracting the present invention from the description of the invention - the color number can method of the embodiment is applicable to electronic equipment. This electronic device has a screen for displaying content. < Referring to FIG. 4, this color number adjustment method has the following steps. _ Corresponding to the ambient light where the electronic device is located and generating a detection signal (coffee) corresponding to the ambient light, and using a processor to adjust the color used by the screen display content according to the change of the detection signal (S330). Wherein 'the color used when the brightness of the ambient light is increased is reduced 201227709. Although it is produced in the fourth edition of the towel, the second test is not limited to the practical application of the present invention after the execution of the program corresponding to the present invention. Step S3H) and step S33〇 may be repeatedly executed until the execution of the program ends. Furthermore, the computer program having the function corresponding to the color number adjustment method according to the present invention can be used in a computer program product towel, and when the processor 2% directly or indirectly, the electric age domain is used for this electric service. After the formula, the color number adjustment method 4 according to the present invention can be completed, and the computer program product can be downloaded to the electronic device via the network. Please refer to FIG. 4 and FIG. 4 , where the detection group 13 can continuously perform the sensing action of the light intensity outside the electronic device 200 and generate a detection signal corresponding to the light intensity of the ambient light to the adjustment module 13 . 〇 (S31〇). . Referring to FIG. 5 again, the adjustment module 130 may include a signal receiving unit l3i, an analyzing unit 133, a comparing unit 135, and a changing unit 137. The detecting module 110, the receiving unit m, the analyzing unit 133, the comparing unit 135 and the changing unit 137 are electrically connected in sequence. The analyzing unit 133 is also electrically connected to a storage unit 270. The preset value is stored in advance in the storage unit 270. In practice, the preset value and the aforementioned code may be stored in a single-storage unit or in a separate storage unit. The signal receiving unit 131 can receive the detection signal from the _module 11 , and transmit it to the analysis unit 133 for analysis. The analyzing unit 133 can analyze the change in the strength of the side of the adjacent two time points by using the detection signal (S331). That is, the analyzing unit U3 compares the current light intensity of the 201227709 line with the light intensity of the previous time point to see if the intensity of the ambient light changes. For example, the time difference between two adjacent time points may be less than or equal to 1 second and greater than leap seconds. When the analyzing unit 133 finds that the change of the detected light intensity is increased in the adjacent two time points (ie, the intensity of the ambient light is enhanced), the comparing unit 135 is caused to read the preset value stored in the storage unit 270. A comparison between the amount of change in the light intensity of the adjacent two time points and the preset value is performed (S333). And when the amount of change in the light intensity of the adjacent two time points is greater than the preset value (step 334), the comparing unit 135 causes the changing unit 137 to perform the adjustment of the number of colors used by the screen 210 to display the content (step 335). ). In the adjustment of the number of colors used to execute the current display content of the screen 210, the adjustment module 130 can directly adjust the number of colors to reduce the number of colors used by the screen 21 when displaying the valley. For example, the display of the content material by the color supported by the display system of the electronic device is changed to a portion of the color of the color towel supported by the display system of the electronic device. Take the note Weibo as an example, suppose the notebook computer _ display system is a 24-bit silk color, the ugly system can support 4M colors. When the color number is reduced, it can be displayed using only the - part or - the filaments of the entire color. For example, use 4096 colors among the entire colors or use 256 colors among them. That is to say, for the 4M color display system that supports the display of the color number of 24-bit color, the number of colors of the screen is 24 bits 兀 'in terms of two primary colors (RGB) to represent each point (pixel) 3_ Bytes (bytes) are required, and each represents 8 bits. 3 _ respectively, not R (red), G (green) and B (blue), each color has 〇 255 can be selected 201227709 value. When the adjustment module 130 performs the color reduction, the period can be set to zero by the lower 4 bits of each color value of 3 Bytes, and the 24-bit color is converted to the equivalent 12-bit color. At this time, it is equivalent to changing the 8 valid bits of each Byte in RGB to 4 (since the lower 4 bits are set to zero). That is to say, the original 256 colors that can be represented by 8 bits become 4 bits, and only 16 colors can be represented by 4 bits. The entire RGB system becomes only ΐ6χ16χ16 = 4〇96 colors. The actual execution is equivalent to representing 16 colors close to the RGB three primary colors in one color. Taking R (red) as an example, the 0-15 of R is converted to 0X00' after being converted (adjusted), and 16-31 is converted to οχιό after conversion. Therefore, the number of colors represented by each Byte is reduced, and the number of colors represented by the entire RGB is gradually reduced. That is to say, the number of colors used can be reduced by zeroing a specific bit (one or more) of the 8 valid bits of each Byte. As a result, the color difference between the mother colors of the inner valleys on the screen will also increase, which will increase the contrast between the content on the screen, thus improving the content recognition. Among them, the color supported by the display system can be determined by its color gamut, and the color gamut is determined by the components (software and/or hardware) that make up the display system. In addition, the pair of light intensity ranges corresponding to the applicable riding use_color number can be stored in the storage unit 270. That is to say, the storage unit 27 〇 stores the 纟 mirror relationship of the recording light, the _ shed, the number of colors of the plurality of coffees, and the range of the light intensity and the appropriate number of colors. This correspondence information can be stored in the form of a database or a corresponding table. In addition, there may be other storage orders for this corresponding information. That is to say, in the implementation, the aforementioned code can be stored in the single-storage unit + or separately stored in the two storage units. Moreover, the corresponding 12 201227709 information and the aforementioned preset values may be stored in a single storage unit or separately stored in two storage units. When the comparing unit 135 confirms that the color number is to be adjusted (the amount of change of the light intensity of the adjacent two time points is greater than the preset value), the comparing unit 135 obtains the applicable color number of the corresponding current light intensity according to the detecting signal, to The changing unit 137 is provided as a basis for changing the number of colors. That is to say, changing the unit η? can reduce the number of colors of the screen or the content of the content to the applicable number of colors. In the embodiment, all the numbers of colors supported by the display system of the electronic device can be divided into A plurality of color blocks, and each _ color block is assigned a representative color. Its towel, the representative color of each color block is to distinguish one of the colors of all the colors of this color block. Referring to Figs. 6 and 6, in other words, the correspondence between the distinguished color blocks and the respective designated representative colors may be stored in the storage unit 27A in advance (S302). The code of the corresponding relationship between the color block and the respective designated representative colors and the description may be stored in a single storage unit or separately stored in the second storage unit. Moreover, the correspondence between the color blocks and the respective designated representative colors and the pre-three values just described may be stored in the single-storage unit or separately stored in the two storage units. Referring to FIG. 7 again, when the number of colors used is reduced, the adjustment module j3〇 (change unit 137) reads out the representative color of each color block from the storage unit 270 (S3351), and causes the screen 21 to be caused.显示 The content is displayed using the representative color of each color block (S3353). In addition, the adjustment module 13 can also select the representative color of each color block when reducing the number of colors used. 13 201227709 Referring to FIG. 8 , the adjustment module 130 may further include a selection unit 139 . The selecting unit 139 is electrically connected between the comparing unit 135 and the changing unit 137. Please match with the lake IX. When the number of colors used by the 139 is determined to be reduced (the amount of change is greater than the preset value), the selection unit 139 will be included for each color block for each color block. A color is selected as the representative color specified by each of the colors (S3352). The 'selection unit 139' then supplies each color block and its representative color to the changing unit 137, so that the changing unit 137 accordingly causes the screen 210 to display the content using the representative color of each color block (magic 353). Here, the change sheet 70 137 can cause the screen 210 to utilize each color area by displaying the mosquito or the desired content (the color data of the changed content) according to the color of each color block and its representative color changing screen 210. The representative color of the block shows the content. Among them, the representative color can be selected in any of the following three ways. Any one of all colors in each color block is used as a representative color. Or 疋' the color difference effect of the adjacent color blocks among all the colors of each color & block is relatively large - the color is the domain age. Alternatively, one of the visual effects adjusted by the number of colors used in all the colors of the respective color blocks is smaller than the one before the adjustment as the representative color. For example, the display system of an electronic device can support a wide variety of red colors to support five types of red (orange, pink, magenta, black, and crimson). The various red data in the pre-adjustment content is displayed on the screen 21G in its own color. When the adjustment module 13G finds that the intensity of the ambient light becomes strong, the screen 21G is caused to display in a small number of colors. At this time, the various red data honor screens 210 in the content are displayed in the same kind of red color. For example, the screen displays the original 201227709 orange red, pink, purple red, black red and deep red content data into orange red. That is to say, when the display is adjusted using 256 colors to display with 64 colors, each color block is replaced with one color (representative color) for the three colors around the color. For example, when displaying in 256 colors, the color values of the four colors in a color block are OxAO, OxAl, 0xA2, and 0xA3, respectively. When adjusted to use 64 color displays, you can use any of these four colors (ΟχΑΟ, ΟχΑΙ, 0χΑ2, and 0χΑ3) instead of OxAO, OxAl, 0χΑ2, or 0χΑ3. Similarly, for the four colors in the other color block when the 256 colors are displayed (the color values are 0xA4, 0xA5, 0xA6, and 0xA7, respectively), when they are displayed using 64 colors, they can also be used. Any of the colors (〇χΑ4, 0χΑ5, 0χΑ6, or 0χΑ7) to display these four colors (〇χΑ4, 〇χΑ5, 0χΑ6, and 0χΑ7). Here, when OxAO is selected instead of ΟχΑΟ, OxAl, 0xA2, and 〇χΑ3, for four colors in another color block, 〇χΑ4 is selected instead of QxA4, 〇xA5, 0χΑ6, and 0xA7. And so on to push other color blocks. • When 0xA2 is used instead of OxAO, OxAl, 0χΑ2, and 0xA3, for the four colors in the other color block, ΟχΑό is used instead of 0χΑ4, 0χΑ5, 〇xA6, and 〇χΑ7. And so on to push other color blocks. That is to say, referring to FIG. 10, during the adjustment, the color of the content can be written into the screen 210 by the adjustment module 13, and each color block is replaced with the color value of a color it has. The color values of all colors to reduce the number of colors used to display the axis (S355'). Also, when the representative color is selected, the color of the same arrangement position in each color block can be selected as the representative color. That is, different color blocks can be selected in the same way as 201227709. Among them, when the adjustment is made, all the colors that the entire color system can support can be sequentially divided into a plurality of color blocks by a specific number. In other words, each of the divided color blocks can have the same number of colors. For color substitution, take a two-color block as an example. The first color block has four colors' whose color values are 0χΑ0, 0χΑ1, 〇χΑ2, and 0xA3, respectively. The second color block also has four colors' whose color values are 0χΑ4, 〇χΑ5, 〇χΑ6, and 〇χΑ7, respectively. The current face is displayed in 256 colors. Now, when it is adjusted to display in 64 colors, the original color values 0χΑ〇, 0χΑ0xA2, QxA3, 0xA6, and 0χΑ7 become OxAO, ΟχΑΟ, ΟχΑΟ, ΟχΑΟ, ΟχΜ, 〇χΜ, 0χΑ4 and 〇χΑ4. During the adjustment, the entire surface of the screen 21〇 is refreshed once, and the lowest two positions of all the points are set to 〇. At the same time, when in the state in which 64 colors are displayed, the lowest two values of the color values written on the screen 2 are 〇. In other words, if you choose to replace 〇χΑ〇, 〇χΑ 1, 0xA2, and 0χΑ3 with 0χΑ1, and replace 〇χΑ4, 0χΑ5, 0χΑ6, and 0χΑ7 with 〇χΑ5, in the actual adjustment process, all write to the screen. The lowest color value on the 2 ΐ〇 is set to 0x1. If you use 256 color displays to adjust to 8 colors, the original 8 colors are replaced with one color. For example, 〇χΑ〇, 〇χΑ^ 0xA2, 0xA3, 0xA4, 0χΑ5, 0xA6, and 0xA7 are replaced with 〇χΑ3, and 0xA8, 0χΑ9, ΟχΑΑ, ΟχΑΒ, OxAC, OxAD, ΟχΑΕ, 〇xAF are replaced with ΟχΑΒ. In the actual adjustment process, the lowest 3 position of the color value displayed on the screen 2i is set to 〇χ3. In other words, the adjustment using the number of colors 201227709 can be performed when the color is written on the screen 210. In some embodiments, the adjustment module 130 can selectively reduce the number of colors used by the screen 210 when displaying content by reducing the screen color threshold of the screen 21 or the color quality of the content. For example, the setting value of the color quality of the screen 210 or the content may have a plurality of color numbers' as exemplified by 256 bits, 32 bits, and 16 bits. If the current color quality setting value of the screen 21 is 32 bits, the adjustment module 130 changes the current color quality setting value of the screen 210 to 16 when the ambient light intensity is detected to be a preset level. The bit is changed so that the screen 210 is changed to display the content data by 16 bits. Here, the degree of color quality reduction can be adjusted from the current color quality level to - level or down to a specific number (which can be determined by a preset). In addition, corresponding information of various light intensity ranges and corresponding applicable color qualities may be stored in the storage unit 27A. That is to say, the storage unit stores a plurality of light intensity ranges, a plurality of applicable color qualities, and a plurality of sets of light intensity ranges and a color quality correspondence relationship. 4 The corresponding information can be stored in a database or a form. In addition, this corresponding information can also exist in other storage early days. In the implementation, the corresponding information and the aforementioned code can be stored in a single storage unit. Moreover, the pre-set value of the smattering signal and the front-end can be stored in the single-storage material, or the storage unit m1 and the storage unit m1 are in contact with the 13G, and it is difficult to adjust the module 270, :^Quality. The M3G adjusts the color quality used by the screen 210 to display content based on the searched 201227709 color quality. Here, the adjustment module 130 can compare the color quality that is searched for and the color quality currently used by the screen (ie, the color quality before adjustment). When the applicable color quality is greater than the current color quality (i.e., the color quality before the adjustment), the adjustment module 130 performs the adjustment of the color quality of the currently displayed content of the screen 210 (i.e., the color quality used). Here, the adjustment module 13() can adjust the color quality of the screen 210 or the color quality of the content to an appropriate color quality, so that the color quality used is lowered. In addition, referring back to FIG. 3, an input interface 29 can also be provided to the user to edit the data in the storage unit 270, for example, setting of a preset value, and correspondence between color blocks and respective designated representative colors. Setting, setting of the color quality downgrade level, training of the database, or setting of the correspondence table. For example, the user can set the corresponding information of the range of light intensity stored in the storage unit 270 and the applicable color quality through the input interface 290. That is, the range of light intensity corresponding to each other added to the input interface 192 and the applicable color quality, or the range of light intensity that has been stored in the storage unit 19A and/or the applicable color quality. According to the present invention, the color number adjustment method, the system thereof, the computer readable storage medium and the computer program product can be applied to an electronic device having a screen, so that the electronic device can be based on the light intensity of the ambient light. , automatically adjusts the number of colors used by the screen to display content. In this case, by detecting the light intensity of the ring light, and when the light intensity of the ambient light becomes stronger, the number of colors used to display the content is decreased to cause the color_color difference to increase, thereby improving the displayed 201227709 The readability of the content. Although the present invention has been disclosed above in the preferred embodiment of the foregoing, it is not intended to be a subject of the art, and the spirit and the field may be changed to a certain extent without departing from the present day. The patent protection of the present invention is subject to the definition of the scale of the body of the article. BRIEF DESCRIPTION OF THE DRAWINGS Fig. - is a schematic diagram of a color number recording system according to the first embodiment of the present invention. ^图- is a schematic view of the appearance of an electronic device to which the present invention is applied. Figure 3 is a schematic block diagram of an electronic device to which the present invention is applied. Fig. 4 is a schematic flow chart showing a method of adjusting the number of colors according to the first embodiment of the present invention. Figure 5 is a schematic block diagram of the adjustment module of the first embodiment. Fig. 6 is a schematic flow chart showing a method of adjusting the number of colors according to the second embodiment of the present invention. Figure 7 is a schematic flow chart of step S335 of the first embodiment. Fig. 8 is a schematic structural view of an adjustment module of the second embodiment. Figure 9 is a schematic flow chart of step S335 of the second embodiment. ® Ten is a summary flow chart of the method based on the second color gain. 201227709 [Main component symbol description] 100 color number adjustment system 110 detection module 130 judgment module 131 signal receiving unit 133 analysis unit 135 comparison unit 137 change module 139 selection unit 200 electronic device 202 housing 210 screen 230 sensor 250 processor 270 storage unit 290 input interface

Claims (1)

201227709 七、申請專利範圍: 1·-種顏色數調整方法,義於—電子設備,該電子設備具有用 以顯示内容之-螢幕,該顏色數調整方法包含: __魏子設騎在之魏光,並鼓賴該環境光 之一彳貞測訊號;以及 利用-處理器’根據該摘測訊號之變化,調整該榮幕顯示 内容所使用之顏色數; 其中’當該環境光之亮度增加時,減少所使用之該顏色數。 2. 如s青求項1所述之顏色數調整方法,其中該電子設備的顯示系 統所支援的所有顏色數區分為複數個顏色區塊,且該減少所使 用之該顏色數的步驟,包括:從一儲存單元中讀出各該顏色區 塊之該代表顏色;以及致使該螢幕利用各該顏色區塊之代表顏 色顯示該内谷,其中各該代表顏色係為所對應之該顏色區塊之 複數個顏色中之一。 3. 如請求項2所述之顏色數調整方法,其中各該代表顏色係為所 - 對應之該顏色區塊之複數個顏色中與相鄰之該顏色區塊的色 - 差效果相對較大之顏色,或所對應之該顏色區塊之複數個顏色 中所使用之該顏色數調整後所顯示出的視覺效果與調整前的 差異較小之顏色其中之一。 4. 如請求項1所述之顏色數調整方法,其中該電子設備之顯示系 統所支援的所有顏色數區分為複數個顏色區塊,且該減少戶斤I 用之該顏色數的步驟包括:於各該顏色區塊之該些顏色中選擇 一顏色作為該顏色區塊之代表顏色;以及致使該螢幕利用各該 21 201227709 顏色區塊之代表顏色顯示該内容。 5·如請求項4所述之顏色數調整方法,其中於各該顏色區塊之該 些顏色中選擇-顏色作為該顏色區塊之代表顏色的步驟包括 選擇與相鄰之顏色區塊的色差效果姆較大之顏色作為該代 表顏色’或選擇該顯示褒置所使用之該顏色數調整後所顯示出 的視覺效果與織前的差異較小之顏色作為該代表顏色。 6. 如請求項1所述之顏色數調整方法,其中該電子設備之顯示系 統所支援騎有顏色數區分為複數個齡區塊,且該減少所使 用之該顏色數的步驟包括:於該内容的顏色寫入該螢幕時,將 各該顏色區塊以該顏色區塊所具有的一顏色的色值替代該顏 色區塊所具有的所有顏色的色值。 7. -種電腦可讀取儲存媒體,包含程式碼,當—處理器讀取並執 行該程式碼後,可完成如請求項丨所述之顏色數調整方法。 8. -種電腦程式產品,當—處理器讀取並執行該電腦程式時,可 完成如請求項1所述之顏色數調整方法。 9· 一種顏色數調整系統,適用於一電子設備,該電子設備具有用 以顯示内容的-螢幕,該顏色數調整系統包括: 一偵測模組,用以偵測該電子設備所在之環境光,並產生 一偵測訊號;以及 -調整模組’紐連接至該侧獅,贱根據該偵測訊 號之變化,調整該螢幕顯示該内容所之顏色數,其中當該 ; 衣境光⑦度增加時’該調整模組減少所使用之該顏色數。 10.如請求項9所述之顏色數調整系統,更包括一儲存單元,儲存 22 201227709 有該電子設備之顯示系統所支援的所有顏色數所區分出的複 數個顏色區塊以及各該顏色區塊所對應的一代表顏色,其中當 該環境光亮度增加時,該調整模組致使該螢幕利用各該顏色區 塊之該代表顏色顯示該内容。 11. 如請求項10所述之顏色數調整系統,其中各該代表顏色係為 所對應之該顏色區塊之複數個顏色中之任一顏色、所對應之該 顏色區塊之複數個顏色中與相鄰之該顏色區塊的色差效果相 對較大之一顏色’或所對應之該顏色區塊之複數個顏色中該顯 示裝置所使用之該顏色數調整後所顯示出的視覺效果與調整 前的差異較小之一顏色其中之一。 12. 如請求項9所述之顏色數調整系統,其中該調整模組包括: 一選擇單元,用以針對將該電子設備之顯示系統所支援的 所有顏色數所區分成的複數個顏色區塊,從各該顏色區塊之該 些顏色中選擇一顏色作為該顏色區塊之代表顏色;以及 改變單元,當該環境光亮度增加時,該改變單元致使該 , 螢幕利用各該顏色區塊之該代表顏色顯示該内容。 丨3‘如請求項12所述之顏色數調整系統,其中該選擇單元係選擇 各該顏色區塊之該些顏色甲之任一顏色、各該顏色區塊之該些 顏色中之與相鄰之該顏色區塊的色差效果相對較大之一顏 色或各S亥顏色區塊之該些顏色中之所使用之該顏色數調整後 所顯示出的視覺效果與調整前的差異較小之一顏色其中之— 作為對應之該代表顏色。 14·如明求項9所述之顏色數調㈣統,其巾魏子設備之顯示系 23 201227709 統所支援的所有顏色數區分為複數個顏色區塊,且該調整模組 係於該内谷的顏色寫入該螢幕時,將各該顏色區塊以該顏色區 塊所具有的一顏色的色值替代該顏色區塊所具有的 的色值來減少顯示該内容所使用之該顏色數。 有顏色 24201227709 VII. Patent application scope: 1·-A method for adjusting the color number, meaning the electronic device, the electronic device has a screen for displaying content, and the method for adjusting the color number includes: __Wei Zi set up in Weiguang, And igniting one of the ambient light detection signals; and using the -processor' to adjust the number of colors used by the display of the honor screen according to the change of the measurement signal; wherein 'when the brightness of the ambient light increases, Reduce the number of colors used. 2. The method according to claim 1, wherein the number of colors supported by the display system of the electronic device is divided into a plurality of color blocks, and the step of reducing the number of colors used includes : reading the representative color of each color block from a storage unit; and causing the screen to display the inner valley by using a representative color of each color block, wherein each of the representative colors is the corresponding color block One of a plurality of colors. 3. The color number adjustment method according to claim 2, wherein each of the plurality of colors corresponding to the color block has a relatively large color-difference effect with the adjacent color block. The color, or the color number used in the plurality of colors corresponding to the color block, is one of the colors that are displayed after the adjustment of the visual effect and the difference before the adjustment. 4. The color number adjustment method according to claim 1, wherein the number of colors supported by the display system of the electronic device is divided into a plurality of color blocks, and the step of reducing the number of colors used by the user comprises: Selecting a color among the colors of each color block as a representative color of the color block; and causing the screen to display the content by using the representative color of each of the 21 201227709 color blocks. 5. The method according to claim 4, wherein the step of selecting a color as the representative color of the color block among the colors of the color blocks comprises selecting a color difference from the adjacent color block. The color having a larger effect is used as the representative color as the representative color or the color obtained by adjusting the number of colors used in the display device and having a smaller difference between the visual effect and the pre-woven color. 6. The color number adjustment method according to claim 1, wherein the display system supported by the display device of the electronic device is divided into a plurality of age blocks, and the step of reducing the number of colors used includes: When the color of the content is written to the screen, each color block replaces the color value of all colors of the color block with the color value of one color of the color block. 7. A computer readable storage medium containing a code. When the processor reads and executes the code, the color number adjustment method as described in the request item can be completed. 8. A computer program product, when the processor reads and executes the computer program, the color number adjustment method as described in claim 1 can be completed. A color number adjustment system is applicable to an electronic device, the electronic device has a screen for displaying content, and the color number adjustment system comprises: a detection module for detecting ambient light of the electronic device And generating a detection signal; and - an adjustment module 'News connected to the side lion, 调整 adjusting the number of colors of the content displayed by the screen according to the change of the detection signal, wherein; When added, the adjustment module reduces the number of colors used. 10. The color number adjustment system of claim 9, further comprising a storage unit, storing 22 201227709 a plurality of color blocks distinguished by the number of colors supported by the display system of the electronic device, and each of the color regions a representative color corresponding to the block, wherein when the brightness of the ambient light increases, the adjustment module causes the screen to display the content by using the representative color of each color block. 11. The color number adjustment system of claim 10, wherein each of the representative colors is any one of a plurality of colors of the corresponding color block, and a plurality of colors corresponding to the color block. The visual effect and adjustment displayed after adjusting the number of colors used by the display device in a color corresponding to the color difference of the color block adjacent to the adjacent color block or the corresponding color block The difference is one of the smaller ones before the color. 12. The color number adjustment system of claim 9, wherein the adjustment module comprises: a selection unit for dividing a plurality of color blocks for all color numbers supported by the display system of the electronic device Selecting a color from the colors of each color block as a representative color of the color block; and changing the unit, when the brightness of the ambient light increases, the changing unit causes the screen to utilize each of the color blocks The representative color displays the content. The color number adjustment system of claim 12, wherein the selection unit selects any one of the colors A of the color blocks, and the adjacent ones of the colors of the color blocks The color difference effect of the color block is relatively large. One of the colors or the color number used in each of the colors of each of the S-color blocks is adjusted to have a smaller difference between the visual effect and the adjustment. The color of it - as the corresponding representative color. 14· The color number adjustment (4) according to the item 9 of the invention, the display system of the towel Weizi device 23 201227709 The number of colors supported by the system is divided into a plurality of color blocks, and the adjustment module is included therein. When the color of the valley is written into the screen, each color block replaces the color value of the color block with the color value of the color block of the color block to reduce the number of colors used to display the content. . Available in color 24
TW100110459A 2010-12-29 2011-03-25 Method for adjusting color depth, adjusting system thereof, computer-readable storage media and computer program product TW201227709A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010061256 2010-12-29

Publications (1)

Publication Number Publication Date
TW201227709A true TW201227709A (en) 2012-07-01

Family

ID=46933366

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100110459A TW201227709A (en) 2010-12-29 2011-03-25 Method for adjusting color depth, adjusting system thereof, computer-readable storage media and computer program product

Country Status (1)

Country Link
TW (1) TW201227709A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607383B (en) * 2014-03-14 2017-12-01 Method for optically recognizing target's immediate response to improve recognition rate

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607383B (en) * 2014-03-14 2017-12-01 Method for optically recognizing target's immediate response to improve recognition rate

Similar Documents

Publication Publication Date Title
KR101958870B1 (en) Display control method and apparatus for power saving
CN106030503A (en) Adaptive video processing
US20170092229A1 (en) Ambient Display Adaptation For Privacy Screens
US9864612B2 (en) Techniques to customize a user interface for different displays
US20120313962A1 (en) Electronic device and method for generating graphical user interface thereof
KR101253213B1 (en) Method and apparatus for controlling video display in mobile terminal
JP2017526944A (en) Display mode selection by user profile or criteria hierarchy
CN109891484A (en) Display device and display methods
EP3293954A1 (en) Method and system for adjusting screen brightness
WO2011006386A1 (en) Method and apparatus for displaying the color of desktop text on mobile terminal
KR20150024650A (en) Method and apparatus for providing visualization of sound in a electronic device
US9210248B2 (en) Method and apparatus for displaying contact information based on an image embedded with contact information
CN102006440A (en) Image display device and image adjustment method
US20160266731A1 (en) Method, apparatus, and storage medium for playing control processing of audio file
KR20090111826A (en) Method and system for indicating links in a document
KR20200113521A (en) Display apparatus and the control method thereof
US9424757B2 (en) Method of playing music based on chords and electronic device implementing the same
CN1319421C (en) Detection and regulation method for LCD brightness
JP2010041640A (en) Projector, program, and information storage medium
KR102249910B1 (en) Electronic apparatus and ouput characteristic controlling method thereof
JP3339052B2 (en) Information processing apparatus, display environment changing method, and recording medium recording the method
TW201227709A (en) Method for adjusting color depth, adjusting system thereof, computer-readable storage media and computer program product
CN108845779B (en) Electronic device for adjusting brightness based on image gray scale and brightness adjusting method thereof
Yu et al. Color scheme adaptation to enhance user experience on smartphone displays leveraging ambient light
US20220375430A1 (en) Adjusting Signal Settings for a Display Using a Light Sensor