201027508 六、發明說明: 【發明所屬之技術領域】 本發明是關於一種對圖片進行調整的顯示裝置及方法。 【先前技術】 現有技術下,隨著圖片處理技術的迅速發展,使得圖片的處 理越來越方便,人們可以利用各種處理軟體如:ph〇t〇sh〇p,ACDsee 等,對圖片進行多種不同的處理,如對於如何將人物圖片中的人201027508 VI. Description of the Invention: [Technical Field] The present invention relates to a display device and method for adjusting a picture. [Prior Art] Under the prior art, with the rapid development of image processing technology, the processing of pictures is more and more convenient, and people can use various processing software such as: ph〇t〇sh〇p, ACDsee, etc. to perform various kinds of pictures. Processing, such as how to put people in the picture of a person
臉區域進行變瘦的調整,一般情況下,用戶的處理步驟為·首先 用戶對人物®片中的人臉區域進行選擇,接著用戶通過對人臉區 域進行壓縮,使其縮小-比例,同時為了保持人物圖片尺寸的不 變’就必賴人_#中_人臉區域進行鱗,使得非人臉區 域的比例變大,從而達到了瘦臉的效果,但是在這種調整方式裏 面’由於人為的操作方式太多,故使得調整後的人物圖片比例不 太協調,整體看起來顯示效果不是很好。 【發明内容】 、有鐾於此’㈣要提供—種_片進行調整的顯示裝置及; 法’其可根彻戶的絲自崎所讀取的則進行相應的調整。 —為了實現上述的目的,本發明提出—種對圖片進行調整㈣ 不裝置,該顯示裝置包括—顯示單元、一存儲單元、一讀取模龟 -圖片顯示模組、—功能表控制模组、一圖片劃分模組、一圖 圖片,該功能表抑制捃知m 用於顯不驾The face area is adjusted to be thinner. In general, the user's processing steps are: First, the user selects the face area in the person's tablet, and then the user compresses the face area to reduce the scale, and at the same time Keeping the size of the person's picture unchanged' will be scaled in the _# _ face area, making the proportion of the non-face area larger, thus achieving the effect of face-lifting, but in this adjustment method 'because of artificial There are too many ways to operate, so the adjusted picture ratio of the characters is not very harmonious, and the overall appearance of the display is not very good. SUMMARY OF THE INVENTION In view of the above, (d) a display device for adjusting the film to be provided, and a method for correcting the read by the method of the Kawasaki. In order to achieve the above object, the present invention proposes to adjust (4) no picture, and the display device comprises: a display unit, a storage unit, a read mold turtle-picture display module, a function table control module, A picture division module, a picture picture, the function table suppresses the knowledge m for display
模用於提供—圖片調整操作功能表,M 201027508 :根據被選獅舰表項確定調整方式;棚# tj分模組,用於將 -所讀取的圖片在水準方向上劃分為人臉區域及非人臉區域;該圖 -片調整模組’用於根據該調整方式調整劃分後的圖片各區域;該 -圖片顯不模組,還用於顯示調整後的圖片於顯示單元上;該存儲 模組,用於存儲調整後的圖片於存儲單元中。 本發明還提供-種對人物圖片進行調整的方法,提供一記憶 體,該記舰巾存料個待顯示關财法還包括以下步驟: ❸從記憶體中或者外部存儲裂置中讀取一圖片並顯示;提供一圖片 調整操作魏表’根據被選擇的魏表項確物整枝;劃分所 顯示的圖片,將該圖片在水準方向上劃分為人臉區域及非人臉區 域,根據該調整方式調細片齡後的各區域;顯示調整後的圖 片於顯不單元上;存儲職後的圖牌械單元中。 相較于現有技術,本發明通過在圖片尺寸不變的情況下根 戶的$求自動對所讀取的圖片進行相應的調整,達到 ©期望的效果。 【實施方式】 -圖1所不’為對圖片進行調整的顯示裝置硬體結構圖 =置包括—介面_、—存儲單元·、—處理單元300、 如早元4G0。該介面励用於連接外部的存館裝置(圖中未示 ^碼相機、U #、移綱,撕解侧圖片的震】 ⑼面100可為USB介面,1394介面等。該 _示裝W。術私· 201027508 、一功能表控制模組The mode is used to provide the picture adjustment operation function table, M 201027508: the adjustment mode is determined according to the selected lion ship item; the shed #tj sub-module is used to divide the read picture into the face area in the horizontal direction. And the non-face area; the picture-sheet adjustment module is configured to adjust each area of the divided picture according to the adjustment manner; the image-displaying module is further configured to display the adjusted picture on the display unit; The storage module is configured to store the adjusted image in the storage unit. The invention also provides a method for adjusting a picture of a person, and providing a memory, the method for storing the ship towel to be displayed further comprises the following steps: 读取 reading one from the memory or the external storage cleavage The picture is displayed; a picture adjustment operation is provided. The Wei table 'is based on the selected Wei table item; the picture displayed is divided, and the picture is divided into a face area and a non-face area in the horizontal direction, according to the adjustment The mode is to adjust the area after the age of the slice; the adjusted picture is displayed on the display unit; in the map device unit after the job is stored. Compared with the prior art, the present invention automatically adjusts the read picture by the root of the picture without changing the size of the picture to achieve the desired effect. [Embodiment] - FIG. 1 is a display device hardware structure diagram for adjusting a picture = a device-interface, a memory cell, a processing unit 300, and an early element 4G0. The interface is used to connect to an external storage device (the camera is not shown in the figure, U #, 移目, tearing off the side of the picture) (9) The surface 100 can be a USB interface, a 1394 interface, etc. The _ shows W私私·201027508, a function table control module
讀取模組310用於從存儲單元2〇〇或 該處理單元200包括一讀取模組31〇、一功 320、一圖片劃分模組330 組350、一存儲模組360。 者外部存儲裝置中讀取-待顯示的圖片。圖片顯示模組35〇顯示 該圖片。 該功能表控制模組320用於根據用戶通過輸入單元(圖未示) 產生的操作提供一圖片調整操作功能表,並判斷用戶是否選擇了 ® §亥圖片調整操作功能表的一功能表項,並確定被選擇功能表項對 應的調整方式’產生相躺指令。在本實施方式巾,圖片調整操 作功能表包括人臉變痩(S)功能表項及人臉變胖(p)功能表項分別 對應人臉變瘦及人臉變胖的調整方式,每一功能表項可對應有快 捷回復代碼。 該圖片劃分模組330在識別到用戶選擇圖片調整操作功能表 的一功能表項後,對所讀取的圖片進行劃分,在水準方向上將圖 ® 片劃分為人臉區域,及非人臉區域兩大部分。在本實施方式中, 可首先檢測人臉所在的位置,接著以人臉所在的位置為人臉區 域’在水準方向上將圖片劃分為人臉區域及非人臉區域。在此, 對於人臉的檢測,可優先使用基於Adaboost演算法的人臉檢測技 術’但其他人臉偵測方法也可以使用。在其他的實施方式中,也 可以用戶自定義一劃分比例,將該劃分比例存儲於執行程式中, 在圖片劃分模組330劃分圖片時,自動調用該劃分比例,將所讀 取的圖片在水準方向上劃分為人臉區域及非人臉區域。 201027508 : 該圖片調整模組34G用於根據該調整方式對劃分後的圖片各 _區域進行相應的調整。在本實施方式中,由於功能表控麵組娜 -提供㈣戶_片調絲作功能表分別為人臉變痩(s)功能表項 -及人臉變胖(P)功能表項,因此圖片調整模組34〇根據用戶所選擇 的功能表項’對圖片中的人臉區域進行變瘦或變胖的相應調整。 如圖2所示’為該圖片中,人臉_為A,其對應的尺寸大 小為a,非人臉區域為B,其對應的尺寸大小為b。若圖片調整模 ❹組340接收到用戶選擇的人臉變瘦(s)的指令,則對圖片中的人臉 區域進行變痩調整,調㈣方式為:從非人臉區域向人臉區域進 行壓縮,使得人臉_在圖片中的比例縮小祕,同時為了保持 圖片的尺寸不變’必須將非人臉區域進行放大,使得放大的比例 n=a*m/b;若圖片調整模組34〇接收到用戶選擇的人臉變胖⑺的指 令,則對圖片中的人臉區域進行變胖調整,調整的方式為:從人 臉區域的兩侧向非人臉區域進行放大,使得人臉區域在圖片中的 ®比例放大m%,同時為了保持圖片的尺寸不變,必須將非人臉區 域進行壓縮,使得縮小的比例nrfm/b。 該圖片顯示模組350用於將調整後的圖片顯示於顯示單元 400上。 …、 該存儲模組360用於將調整後的圖片存儲於存儲單元如〇中 如圖3所示’為一種對圖片進行調整的方法流程圖。 讀取模組310從存儲單元200或者外部存館裝置中&取兩 要顯示的人物圖片(步驟S601)。 201027508 : 功能表控制模組320根據用戶通過輸入單元(圖未示)產生 -的操作,提供—圖片輕操作功能表,並判_戶是否選擇一操 - 作功能表項(步驟S602)。 - *判斷用戶沒有選擇—操作功能表項,珊其進行—般的處 理’存儲或顯示等(步驟S6〇3)。 若判斷用戶對所讀取的圖片選擇了其中一功能表項,確定被 選擇的調整方式,則則劃分模組33G騎讀取_片進行劃分, #將圖片在水準方向上劃分為人臉區域及非人臉區域(步驟臟)。 圖片調整模組340根據該調整方式對劃分後的圖片各區域進 行相應的調整’具_調整步驟如圖2所述(步驟%⑹。 圖片顯示模組350顯示調整後的圖片於顯示單元_上(步 驟 S606)。 存儲模組36〇存儲調整後的圖片於存儲單元中(步驟 S607)〇 φ 【圖式簡單說明】 圖1為對圖片進行調整的顯示裝置硬體結構圖; 圖2為一實施例中圖片示意圖; 圖3為-種對圖片進行調整的方法流程圖; 【主要元件符號說明】 接口 100 200 300 存儲單元 處理單元 顯示單元 400 201027508 : 讀取模組 310 . 功能表控制模組 320 ^ 圖片劃分模組 330 . 圖片調整模組 340 圖片顯示模組 350 存儲模組 360 讀取一圖片,並顯示 S601 φ 提供一圖片調整功能表,並判斷是否選擇一功能表項S602 一般處理方式 S603 劃分所讀取的圖片 S604 調整劃分後的圖片各區域 S605 顯示調整後的圖片 S606 存儲調整後的圖片 S607 φ 8The reading module 310 is configured to receive from the storage unit 2 or the processing unit 200 includes a reading module 31, a function 320, a picture dividing module 330 group 350, and a storage module 360. The image to be displayed is read in the external storage device. The picture display module 35〇 displays the picture. The menu control module 320 is configured to provide a picture adjustment operation function table according to an operation generated by the user through an input unit (not shown), and determine whether the user selects a function item of the ® 图片 图片 picture adjustment operation function table. And determine the adjustment method corresponding to the selected function item to generate a lying instruction. In the embodiment, the picture adjustment operation function table includes a face change (S) function item and a face weight change (p) function item, respectively, corresponding to the adjustment method of the face becoming thinner and the face getting fat, respectively. The menu item can correspond to a quick reply code. After identifying a function item of the picture selection operation function table, the picture division module 330 divides the read picture, and divides the picture into a face area and a non-face in the horizontal direction. Two parts of the region. In the present embodiment, the position where the face is located may be detected first, and then the position where the face is located as the face area' is divided into a face area and a non-face area in the level direction. Here, for the detection of the face, the face detection technique based on the Adaboost algorithm can be preferentially used', but other face detection methods can also be used. In other embodiments, the user may customize a division ratio, and store the division ratio in the execution program. When the image division module 330 divides the image, the division ratio is automatically called, and the read image is at the level. The direction is divided into a face area and a non-face area. 201027508: The picture adjustment module 34G is configured to perform corresponding adjustment on each of the divided pictures according to the adjustment manner. In the present embodiment, since the function table control group Na-providing (four) household _ film adjustment function table is a face change (s) function item - and a face fat (P) function item, The picture adjustment module 34 adjusts the face area in the picture to be thinner or fatter according to the function item selected by the user. As shown in Fig. 2, in the picture, the face _ is A, the corresponding size is a, the non-face area is B, and the corresponding size is b. If the picture adjustment module group 340 receives the instruction that the face selected by the user is thin (s), the face area in the picture is changed, and the mode is adjusted from the non-face area to the face area. Compression, so that the proportion of the face _ in the picture is reduced, and in order to keep the size of the picture unchanged, the non-face area must be enlarged so that the scale of the enlargement is n=a*m/b; if the picture adjustment module 34 〇 Receiving the command that the face selected by the user becomes fat (7), the face area in the picture is adjusted to be fat, and the adjustment is performed by zooming in from the two sides of the face area to the non-face area to make the face The area of the area in the picture is magnified by m%, and in order to keep the size of the picture unchanged, the non-face area must be compressed so that the scale of the reduction is nrfm/b. The picture display module 350 is configured to display the adjusted picture on the display unit 400. ..., the storage module 360 is configured to store the adjusted image in a storage unit such as 〇 as shown in FIG. 3 as a flowchart of a method for adjusting a picture. The reading module 310 takes two person pictures to be displayed from the storage unit 200 or the external storage device (step S601). 201027508: The function table control module 320 provides a picture light operation function table according to an operation generated by the user through an input unit (not shown), and determines whether the user selects an operation function item (step S602). - * Judging that the user has not selected - operating the function list item, and performing the general processing 'storage or display, etc. (step S6〇3). If it is determined that the user selects one of the function table items for the read picture and determines the selected adjustment mode, the dividing module 33G rides the read_slice to divide, and # divides the picture into the face area in the horizontal direction. And non-face areas (steps are dirty). The picture adjustment module 340 performs corresponding adjustment on each divided area of the picture according to the adjustment mode. The adjustment step is as shown in FIG. 2 (step % (6). The picture display module 350 displays the adjusted picture on the display unit_ (Step S606) The storage module 36 stores the adjusted picture in the storage unit (step S607) 〇 φ [Simplified description of the drawing] Fig. 1 is a view showing a hardware structure of a display device for adjusting a picture; FIG. 3 is a schematic diagram of a method for adjusting a picture; [Description of main component symbols] Interface 100 200 300 Storage unit processing unit display unit 400 201027508 : Reading module 310 . Function table control module 320 ^ picture division module 330. picture adjustment module 340 picture display module 350 storage module 360 reads a picture, and displays S601 φ provides a picture adjustment function table, and determines whether to select a function table item S602 general processing mode S603 Dividing the read picture S604 Adjusting the divided picture area S605 Displaying the adjusted picture S606 Storing the adjusted picture S607 φ 8