TWI404043B - Display device and method for adjusting pictures - Google Patents
Display device and method for adjusting pictures Download PDFInfo
- Publication number
- TWI404043B TWI404043B TW98100720A TW98100720A TWI404043B TW I404043 B TWI404043 B TW I404043B TW 98100720 A TW98100720 A TW 98100720A TW 98100720 A TW98100720 A TW 98100720A TW I404043 B TWI404043 B TW I404043B
- Authority
- TW
- Taiwan
- Prior art keywords
- picture
- face area
- face
- adjusting
- module
- Prior art date
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本發明是關於一種對圖片進行調整的顯示裝置及方法。 The present invention relates to a display device and method for adjusting a picture.
現有技術下,隨著圖片處理技術的迅速發展,使得圖片的處理越來越方便,人們可以利用各種處理軟體如:Photoshop,ACDsee等,對圖片進行多種不同的處理,如對於如何將人物圖片中的人臉區域進行變瘦的調整,一般情況下,用戶的處理步驟為:首先用戶對人物圖片中的人臉區域進行選擇,接著用戶通過對人臉區域進行壓縮,使其縮小一比例,同時為了保持人物圖片尺寸的不變,就必須對人物圖片中的非人臉區域進行拉伸,使得非人臉區域的比例變大,從而達到了瘦臉的效果,但是在這種調整方式裏面,由於人為的操作方式太多,故使得調整後的人物圖片比例不太協調,整體看起來顯示效果不是很好。 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 softwares such as Photoshop, ACDsee, etc. to perform various processing on pictures, such as how to put characters in pictures. The face area is adjusted to be thinner. In general, the user's processing steps are as follows: first, the user selects a face area in the character picture, and then the user compresses the face area to reduce the ratio by a degree while In order to keep the size of the person's picture unchanged, it is necessary to stretch the non-face area in the picture of the person, so that the proportion of the non-face area becomes larger, thereby achieving the effect of face-lifting, but in this adjustment mode, There are too many artificial ways of operation, so the adjusted picture ratio of the characters is not very harmonious, and the overall appearance of the display is not very good.
有鑒於此,故需要提供一種對圖片進行調整的顯示裝置及方法,其可根據用戶的需求自動對所讀取的圖片進行相應的調整。 In view of this, it is necessary to provide a display device and method for adjusting a picture, which can automatically adjust the read picture according to the user's needs.
為了實現上述的目的,本發明提出一種對圖片進行調整的顯 示裝置,該顯示裝置包括一顯示單元、一存儲單元、一讀取模組、一圖片顯示模組、一功能表控制模組、一圖片劃分模組、一圖片調整模組、一存儲模組,該讀取模組用於從存儲單元或者外部的存儲裝置中讀取需要顯示的圖片;該圖片顯示模組,用於顯示該圖片,該功能表控制模組,用於提供一圖片調整操作功能表,並根據被選擇的功能表項確定調整方式;該圖片劃分模組,用於將所讀取的圖片在水準方向上劃分為人臉區域及非人臉區域;該圖片調整模組,用於根據該調整方式調整劃分分後的圖片各區域;該圖片顯示模組,還用於顯示調整後的圖片於顯示單元上;該存儲模組,用於存儲調整後的圖片於存儲單元中。 In order to achieve the above object, the present invention proposes an explicit adjustment of a picture. The display device includes a display unit, a storage unit, a reading module, a picture display module, a function table control module, a picture division module, a picture adjustment module, and a storage module. The reading module is configured to read a picture to be displayed from a storage unit or an external storage device; the picture display module is configured to display the picture, and the function control module is configured to provide a picture adjustment operation a function table, and determining an adjustment manner according to the selected function table item; the image division module is configured to divide the read picture into a face area and a non-face area in a horizontal direction; the picture adjustment module, The image display module is further configured to display the adjusted image on the display unit according to the adjustment mode; the storage module is configured to store the adjusted image in the storage unit. .
本發明還提供一種對人物圖片進行調整的方法,提供一記憶體,該記憶體中存儲多個待顯示的圖片;該方法還包括以下步驟:從記憶體中或者外部存儲裝置中讀取一圖片並顯示;提供一圖片調整操作功能表,根據被選擇的功能表項確定調整方式;劃分所顯示的圖片,將該圖片在水準方向上劃分為人臉區域及非人臉區域;根據該調整方式調整圖片劃分後的各區域;顯示調整後的圖片於顯示單元上;存儲調整後的圖片於存儲單元中。 The present invention also provides a method for adjusting a picture of a person, providing a memory in which a plurality of pictures to be displayed are stored; the method further comprising the steps of: reading a picture from the memory or an external storage device And displaying; providing a picture adjustment operation function table, determining an adjustment mode according to the selected function table item; dividing the displayed picture, dividing the picture into a face area and a non-face area in the horizontal direction; according to the adjustment manner Adjust each area after the picture is divided; display the adjusted picture on the display unit; store the adjusted picture in the storage unit.
相較於現有技術,本發明通過在圖片尺寸不變的情況下,根據用戶的需求,自動對所讀取的圖片進行相應的調整,達到用戶期望的效果。 Compared with the prior art, the present invention automatically adjusts the read picture according to the user's needs under the condition that the picture size is unchanged, and achieves the effect desired by the user.
100‧‧‧介面 100‧‧‧ interface
200‧‧‧存儲單元 200‧‧‧ storage unit
300‧‧‧顯示單元 300‧‧‧ display unit
400‧‧‧顯示單元 400‧‧‧ display unit
310‧‧‧讀取模組 310‧‧‧Reading module
320‧‧‧功能表控制模組 320‧‧‧Menu Control Module
330‧‧‧圖片劃分模組 330‧‧‧Image division module
340‧‧‧圖片調整模組 340‧‧‧ Picture Adjustment Module
350‧‧‧圖片顯示模組 350‧‧‧ Picture Display Module
360‧‧‧存儲模組 360‧‧‧Storage Module
S601‧‧‧讀取一圖片,並顯示 S601‧‧‧Read a picture and display it
S602‧‧‧提供一圖片調整功能表,並判斷是否選擇一功能表項 S602‧‧‧ provides a picture adjustment function table and judges whether to select a function menu item
S603‧‧‧一般處理方式 S603‧‧‧General treatment
S604‧‧‧劃分所讀取的圖片 S604‧‧‧Division of the pictures read
S605‧‧‧調整劃分後的圖片各區域 S605‧‧‧Adjust the divided areas of the picture
S606‧‧‧顯示調整後的圖片 S606‧‧‧ shows the adjusted picture
S607‧‧‧存儲調整後的圖片 S607‧‧‧Storage of adjusted images
圖1為對圖片進行調整的顯示裝置硬體結構圖;圖2為一實施例中圖片示意圖;圖3為一種對圖片進行調整的方法流程圖。 1 is a hardware structure diagram of a display device for adjusting a picture; FIG. 2 is a schematic diagram of a picture in an embodiment; and FIG. 3 is a flow chart of a method for adjusting a picture.
如圖1所示,為對圖片進行調整的顯示裝置硬體結構圖。該顯示裝置包括一介面100、一存儲單元200、一處理單元300、一顯示單元400。該介面100用於連接外部的存儲裝置(圖中未示),如數碼相機、U盤、移動硬碟,拍照手機等可存儲圖片的裝置。該介面100可為USB介面,1394介面等。該存儲單元200用於存儲顯示裝置中的圖片。該顯示單元400用於顯示圖片。 As shown in FIG. 1, it is a hardware structure diagram of a display device for adjusting a picture. The display device includes an interface 100, a storage unit 200, a processing unit 300, and a display unit 400. The interface 100 is used to connect an external storage device (not shown), such as a digital camera, a USB flash drive, a mobile hard disk, a camera phone, and the like, which can store pictures. The interface 100 can be a USB interface, a 1394 interface, or the like. The storage unit 200 is for storing pictures in the display device. The display unit 400 is for displaying a picture.
該處理單元200包括一讀取模組310、一功能表控制模組320、一圖片劃分模組330、一圖片調整模組340、一圖片顯示模組350、一存儲模組360。該讀取模組310用於從存儲單元200或者外部存儲裝置中讀取一待顯示的圖片。圖片顯示模組350顯示該圖片。 The processing unit 200 includes a reading module 310, a function table control module 320, a picture dividing module 330, a picture adjusting module 340, a picture display module 350, and a storage module 360. The reading module 310 is configured to read a picture to be displayed from the storage unit 200 or an external storage device. The picture display module 350 displays the picture.
該功能表控制模組320用於根據用戶通過輸入單元(圖未示)產生的操作提供一圖片調整操作功能表,並判斷用戶是否選擇了該圖片調整操作功能表的一功能表項,並確定被選擇功能表項對應的調整方式,產生相應的指令。在本實施方式中,圖片調整操作功能表包括人臉變瘦(S)功能表項及人臉變胖(P)功能表項分別對應人臉變瘦及人臉變胖的調整方式 ,每一功能表項可對應有快捷回復代碼。 The function 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 table item of the picture adjustment operation function table, and determines The adjustment method corresponding to the selected function item generates a corresponding instruction. In this embodiment, the picture adjustment operation function table includes a face thinning (S) function item and a face fatening (P) function item corresponding to the adjustment method of the face becoming thinner and the face getting fatter. Each function item can correspond to a quick reply code.
該圖片劃分模組330在識別到用戶選擇圖片調整操作功能表的一功能表項後,對所讀取的圖片進行劃分,在水準方向上將圖片劃分為人臉區域,及非人臉區域兩大部分。在本實施方式中,可首先檢測人臉所在的位置,接著以人臉所在的位置為人臉區域,在水準方向上將圖片劃分為人臉區域及非人臉區域。在此,對於人臉的檢測,可優先使用基於Adaboost演算法的人臉檢測技術,但其他人臉偵測方法也可以使用。在其他的實施方式中,也可以用戶自定義一劃分比例,將該劃分比例存儲於執行程式中,在圖片劃分模組330劃分圖片時,自動調用該劃分比例,將所讀取的圖片在水準方向上劃分為人臉區域及非人臉區域。 After identifying a function table item selected by the user to select a picture adjustment operation function table, the picture division module 330 divides the read picture, and divides the picture into a face area and a non-face area in the horizontal direction. most. In this embodiment, the location of the face may be detected first, and then the location where the face is located is the face region, and the image is divided into the face region and the non-face region in the horizontal direction. Here, for the detection of the face, the face detection technology 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.
該圖片調整模組340用於根據該調整方式對劃分後的圖片各區域進行相應的調整。在本實施方式中,由於功能表控制模組320提供給用戶的圖片調整操作功能表分別為人臉變瘦(S)功能表項及人臉變胖(P)功能表項,因此圖片調整模組340根據用戶所選擇的功能表項,對圖片中的人臉區域進行變瘦或變胖的相應調整。 The picture adjustment module 340 is configured to perform corresponding adjustment on each area of the divided picture according to the adjustment manner. In this embodiment, since the picture adjustment operation function table provided by the function table control module 320 to the user is a face thinning (S) function item and a face weighting (P) function item, the picture adjustment mode is The group 340 adjusts the face area in the picture to be thinner or fatter according to the function table item selected by the user.
如圖2所示,為該圖片中,人臉區域為A,其對應的尺寸大小為a,非人臉區域為B,其對應的尺寸大小為b。若圖片調整模組340接收到用戶選擇的人臉變瘦(S)的指令,則對圖片中的人臉區域進行變瘦調整,調整的方式為:從非人臉區域向人臉區域進行壓縮,使得人臉區域在圖片中的比例縮小m%, 同時為了保持圖片的尺寸不變,必須將非人臉區域進行放大,使得放大的比例n=a*m/b;若圖片調整模組340接收到用戶選擇的人臉變胖(P)的指令,則對圖片中的人臉區域進行變胖調整,調整的方式為:從人臉區域的兩側向非人臉區域進行放大,使得人臉區域在圖片中的比例放大m%,同時為了保持圖片的尺寸不變,必須將非人臉區域進行壓縮,使得縮小的比例n=a*m/b。 As shown in FIG. 2, in the picture, the face area is A, the corresponding size is a, the non-face area is B, and the corresponding size is b. If the picture adjustment module 340 receives the command of the face selected by the user to be thin (S), the face area in the picture is thinned and adjusted in such a manner as to compress from the non-face area to the face area. In order to reduce the proportion of the face area in the picture by m%, and in order to keep the size of the picture unchanged, the non-face area must be enlarged so that the scale of enlargement is n=a * m/b; if the picture adjustment module 340 After receiving the instruction that the face selected by the user becomes fat (P), 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, so that the person The proportion of the face 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 n=a * m/b.
該圖片顯示模組350用於將調整後的圖片顯示於顯示單元400上。 The picture display module 350 is configured to display the adjusted picture on the display unit 400.
該存儲模組360用於將調整後的圖片存儲於存儲單元200中。 The storage module 360 is configured to store the adjusted image in the storage unit 200.
如圖3所示,為一種對圖片進行調整的方法流程圖。 As shown in FIG. 3, it is a flow chart of a method for adjusting a picture.
讀取模組310從存儲單元200或者外部存儲裝置中讀取一需要顯示的人物圖片(步驟S601)。 The reading module 310 reads a person picture to be displayed from the storage unit 200 or the external storage device (step S601).
功能表控制模組320根據用戶通過輸入單元(圖未示)產生的操作,提供一圖片調整操作功能表,並判斷用戶是否選擇一操作功能表項(步驟S602)。 The menu control module 320 provides a picture adjustment 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 list item (step S602).
若判斷用戶沒有選擇一操作功能表項,則對其進行一般的處理,存儲或顯示等(步驟S603)。 If it is judged that the user has not selected an operation function list item, it is subjected to general processing, storage or display, etc. (step S603).
若判斷用戶對所讀取的圖片選擇了其中一功能表項,確定被選擇的調整方式,則圖片劃分模組330對所讀取的圖片進行劃分,將圖片在水準方向上劃分為人臉區域及非人臉區域( 步驟S604)。 If it is determined that the user selects one of the function entries for the read picture and determines the selected adjustment mode, the picture division module 330 divides the read picture, and divides the picture into a face area in the horizontal direction. And non-face areas ( Step S604).
圖片調整模組340根據該調整方式對劃分後的圖片各區域進行相應的調整,具體的調整步驟如圖2所述(步驟S605)。 The picture adjustment module 340 adjusts each area of the divided picture according to the adjustment mode, and the specific adjustment step is as shown in FIG. 2 (step S605).
圖片顯示模組350顯示調整後的圖片於顯示單元400上(步驟S606)。 The picture display module 350 displays the adjusted picture on the display unit 400 (step S606).
存儲模組360存儲調整後的圖片於存儲單元200中(步驟S607)。 The storage module 360 stores the adjusted image in the storage unit 200 (step S607).
100‧‧‧介面 100‧‧‧ interface
200‧‧‧存儲單元 200‧‧‧ storage unit
300‧‧‧顯示單元 300‧‧‧ display unit
400‧‧‧顯示單元 400‧‧‧ display unit
310‧‧‧讀取模組 310‧‧‧Reading module
320‧‧‧功能表控制模組 320‧‧‧Menu Control Module
330‧‧‧圖片劃分模組 330‧‧‧Image division module
340‧‧‧圖片調整模組 340‧‧‧ Picture Adjustment Module
350‧‧‧圖片顯示模組 350‧‧‧ Picture Display Module
360‧‧‧存儲模組 360‧‧‧Storage Module
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98100720A TWI404043B (en) | 2009-01-09 | 2009-01-09 | Display device and method for adjusting pictures |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98100720A TWI404043B (en) | 2009-01-09 | 2009-01-09 | Display device and method for adjusting pictures |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201027508A TW201027508A (en) | 2010-07-16 |
TWI404043B true TWI404043B (en) | 2013-08-01 |
Family
ID=44853236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW98100720A TWI404043B (en) | 2009-01-09 | 2009-01-09 | Display device and method for adjusting pictures |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI404043B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI276004B (en) * | 2000-07-31 | 2007-03-11 | Hewlett Packard Co | Method for automatically scaling an image |
US20080130992A1 (en) * | 2006-05-10 | 2008-06-05 | Sony Corporation | Setup-screen display controlling apparatus, server apparatus, image processing system, printing apparatus, image pickup apparatus, display apparatus, setup-screen display controlling method, program, and data structure |
TW200828262A (en) * | 2006-12-29 | 2008-07-01 | Hon Hai Prec Ind Co Ltd | Display apparatus and method |
-
2009
- 2009-01-09 TW TW98100720A patent/TWI404043B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI276004B (en) * | 2000-07-31 | 2007-03-11 | Hewlett Packard Co | Method for automatically scaling an image |
US20080130992A1 (en) * | 2006-05-10 | 2008-06-05 | Sony Corporation | Setup-screen display controlling apparatus, server apparatus, image processing system, printing apparatus, image pickup apparatus, display apparatus, setup-screen display controlling method, program, and data structure |
TW200828262A (en) * | 2006-12-29 | 2008-07-01 | Hon Hai Prec Ind Co Ltd | Display apparatus and method |
Also Published As
Publication number | Publication date |
---|---|
TW201027508A (en) | 2010-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102022444B1 (en) | Method for synthesizing valid images in mobile terminal having multi camera and the mobile terminal therefor | |
US8379059B2 (en) | Portable electronic device and method for adjusting display orientation of the portable electronic device | |
US20080112648A1 (en) | Image processor and image processing method | |
US8411171B2 (en) | Apparatus and method for generating image including multiple people | |
TWI250796B (en) | Display method and preview method for display apparatus | |
CN107357540B (en) | Display direction adjusting method and mobile terminal | |
EP3125524A1 (en) | Mobile terminal and method for controlling the same | |
WO2017202170A1 (en) | Method and device for video compression and electronic device | |
US20120287163A1 (en) | Scaling of Visual Content Based Upon User Proximity | |
JP2021524957A (en) | Image processing methods and their devices, terminals and computer programs | |
KR20150119621A (en) | display apparatus and image composition method thereof | |
KR20170019823A (en) | Method for processing image and electronic device supporting the same | |
KR20080105723A (en) | Terminal and method for taking image thereof | |
WO2017088714A1 (en) | Mobile terminal and three-dimensional image generation method therefor | |
EP3104304B1 (en) | Electronic apparatus and method of extracting still images | |
CN112135191A (en) | Video editing method, device, terminal and storage medium | |
CN114140342A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN101751686A (en) | Display device and method for adjusting picture | |
US10009545B2 (en) | Image processing apparatus and method of operating the same | |
WO2015143857A1 (en) | Photograph synthesis method and terminal | |
US9374525B2 (en) | Shooting apparatus and shooting method | |
US10122937B2 (en) | Method and apparatus for processing image obtained by camera | |
TWI404043B (en) | Display device and method for adjusting pictures | |
CN112235650A (en) | Video processing method, device, terminal and storage medium | |
US9659355B1 (en) | Applying corrections to regions of interest in image data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |