CN105808180A - Picture adjustment method and system - Google Patents
Picture adjustment method and system Download PDFInfo
- Publication number
- CN105808180A CN105808180A CN201410843079.4A CN201410843079A CN105808180A CN 105808180 A CN105808180 A CN 105808180A CN 201410843079 A CN201410843079 A CN 201410843079A CN 105808180 A CN105808180 A CN 105808180A
- Authority
- CN
- China
- Prior art keywords
- face mask
- picture
- circumscribed circle
- user
- extracted
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Abstract
The invention discloses a picture adjustment method applied to an electronic apparatus. The method comprises the steps of obtaining a user image acquired by a camera device of the electronic apparatus according to a preset time interval; extracting a facial outline of a user from the obtained image by utilizing a facial characteristic extraction technology, and calculating a circumcircle of the extracted facial outline; obtaining a pre-stored circumcircle of a reference facial outline of the user from a storage device of the electronic apparatus; according to the circumcircle of the extracted facial outline and the circumcircle of the reference facial outline, calculating a picture adjustment proportion and an adjustment direction; and according to the picture adjustment proportion and the adjustment direction, adjusting the size of a picture browsed by the user in a display device of the electronic apparatus. The invention furthermore provides a picture adjustment system. According to the picture adjustment method and system, the picture in the display device of the electronic apparatus can be automatically zoomed in or out, so that the user does not need to manually operate the display device.
Description
Technical field
The present invention relates to the technical field that picture processes, particularly relate to a kind of picture adjusting method and system.
Background technology
The size of the display device of current electronic installation differs, and when browsing picture on undersized display device, not easily can read because word is too little.Such user must flow through manual touch control display device to carry out the amplification of picture.When user browses picture on the display device, because picture word is too big, when wanting to reduce picture, it is also necessary to manually touch control display device carries out reducing of picture, manual operation brings very big inconvenience to user.
Summary of the invention
In view of the foregoing, it is necessary to providing a kind of picture adjusting method and system, can automatically the picture on the display device of electronic installation be zoomed in or out, such user just without manual operation display device, brings convenience to user.
A kind of image regulating system method, is applied in electronic installation, and the method includes: obtaining step one, obtains the image of the user that the picture pick-up device of described electronic installation gathers according to prefixed time interval;Extraction step, utilizes face feature extractive technique to extract the face mask of user from acquired image, and calculates the circumscribed circle of the face mask extracted;Obtaining step two, obtains the circumscribed circle of the benchmark face mask of the user prestored from the storage device of electronic installation;Calculation procedure, calculates picture according to the circumscribed circle of the circumscribed circle of the face mask extracted and described benchmark face mask and adjusts ratio and adjustment direction;And set-up procedure, the size of the picture that user browses on the display device of electronic installation is adjusted according to described picture adjustment ratio and adjustment direction.
A kind of image regulating system, is applied in electronic installation, and this system includes: acquisition module, the image of the user that the picture pick-up device for obtaining described electronic installation gathers according to prefixed time interval;Extraction module, for utilizing face feature extractive technique to extract the face mask of user from acquired image, and calculates the circumscribed circle of the face mask extracted;Described acquisition module, is additionally operable to obtain the circumscribed circle of the benchmark face mask of the user prestored from the storage device of electronic installation;Computing module, the circumscribed circle for the circumscribed circle according to the face mask extracted and described benchmark face mask calculates picture adjustment ratio and adjustment direction;And adjusting module, for adjusting the size of the picture that user browses on the display device of electronic installation according to described picture adjustment ratio and adjustment direction.
Zooming in or out by detecting the picture changed on the display device to electronic installation of the face mask size of user compared to prior art, described picture adjusting method and system, such user just without manual operation display device, brings convenience to user.
Accompanying drawing explanation
Fig. 1 is the running environment schematic diagram of image regulating system preferred embodiment of the present invention.
Fig. 2 is the functional block diagram of image regulating system preferred embodiment of the present invention.
Fig. 3 is the flow chart of picture adjusting method preferred embodiment of the present invention.
Fig. 4 is the refinement flow chart of step S13 in Fig. 3.
Fig. 5 is the circumscribed circle first schematic diagram relative to the circumscribed circle of benchmark face mask of the face mask extracted.
Fig. 6 is the circumscribed circle second schematic diagram relative to the circumscribed circle of benchmark face mask of the face mask extracted.
Fig. 7 is the circumscribed circle the 3rd schematic diagram relative to the circumscribed circle of benchmark face mask of the face mask extracted.
Main element symbol description
Electronic installation | 1 |
Image regulating system | 10 |
Storage device | 11 |
Process equipment | 12 |
Display device | 13 |
Picture pick-up device | 14 |
Acquisition module | 100 |
Extraction module | 101 |
Computing module | 102 |
Adjusting module | 103 |
Following detailed description of the invention will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Detailed description of the invention
Consult shown in Fig. 1, be the running environment schematic diagram of image regulating system preferred embodiment of the present invention.Described image regulating system 10 runs in electronic installation 1.This electronic installation 1 also includes the storage device 11 being connected by data/address bus, and one or more processes equipment 12, display device 13 and picture pick-up device 14 etc..Described electronic installation 1 can be computer, mobile phone, PDA (PersonalDigitalAssistant, personal digital assistant), video camera, photographing unit etc..
Described image regulating system 10 includes one or more functional module (referring to Fig. 2) being made up of program code, each functional module is stored in described storage device 11, and performed by described process equipment 12, to implement function such as: zoom in or out by detecting the picture changed on the display device 13 to electronic installation 1 of the face mask size of user, such user just without manual operation display device 13, brings convenience to user.
Described storage device 11 is for storing the program code of each program segment in described image regulating system 10.This storage device 11 can be the storage facilities such as smart media card (smartmediacard), safe digital card (securedigitalcard), flash memory cards (flashcard).
Consulting shown in Fig. 2, in the present embodiment, the functional module of described image regulating system 10 includes: acquisition module 100, extraction module 101, computing module 102 and adjusting module 103.The concrete function of each module is described below with reference to Fig. 3.
Consult shown in Fig. 3, be the flow chart of picture adjusting method preferred embodiment of the present invention.According to different demands, in this flow chart, the order of step can change, and some step can be omitted.
Step S10, when user browses picture on the display device 13 of electronic installation 1, acquisition module 100 obtains the image of the user that picture pick-up device 14 gathers according to prefixed time interval (as every 5 seconds).
Step S11, extraction module 101 utilizes face feature extractive technique to extract the face mask of user from acquired image, and calculates the circumscribed circle of the face mask extracted.
Step S12, acquisition module 100 obtains the circumscribed circle of the benchmark face mask of the user prestored from storage device 11.
In the present embodiment, before performing step shown in Fig. 3, described image regulating system 10 provides the face mask of multiple different size of user to select to user, user chooses one from the face mask of the plurality of different size of user according to the reading hobby of oneself and is set to described benchmark face mask, described image regulating system 10 calculates the circumscribed circle of described benchmark face mask, and is stored in storage device 11 by the circumscribed circle of described benchmark face mask.
The corresponding reading distance of the face mask of each different size of user, for instance, less face mask correspondence one reading distance farther out, the corresponding nearer reading distance of bigger face mask.If user likes remote reading, it is possible to select less face mask as described benchmark face mask;If user likes near-distance reading, it is possible to select bigger face mask as described benchmark face mask.Reading distance corresponding to described benchmark face mask is reference range, and when the distance between user and electronic installation 1 is reference range, the picture size on display device 11 is best suitable for user.
Step S13, computing module 102 calculates picture according to the circumscribed circle of the face mask extracted and the circumscribed circle of described benchmark face mask and adjusts ratio and adjustment direction.
In the present embodiment, described computing module 102 calculate described picture adjust ratio process will describe in detail in the diagram.
As shown in Figure 4, it is the refinement flow chart of step S13 in Fig. 3 of the present invention.
Step S130, circumscribed circle and the circumscribed circle of described benchmark face mask according to the face mask extracted create two-dimensional coordinate system, in described two-dimensional coordinate system, distance between the center of the center of the circumscribed circle of the face mask extracted and the circumscribed circle of described benchmark face mask is predeterminable range, and described predeterminable range is not 0.
In the present embodiment, the center at the center of the circumscribed circle of the face mask extracted Yu the circumscribed circle of described benchmark face mask is connected into straight line by computing module 102, creating the straight line X-axis as described two-dimensional coordinate system of a parallel described straight line, the direction at the center that the positive direction of X-axis points to the circumscribed circle of the face mask extracted with the center of the circumscribed circle from benchmark face mask is consistent.Will be perpendicular to the straight line of the X-axis of the described two-dimensional coordinate system Y-axis as described two-dimensional coordinate system.
Such as, as shown in Fig. 5,6,7, A is the center of the circumscribed circle of described benchmark face mask, and B is the center of the circumscribed circle of the face mask extracted, and namely points to the positive direction that direction is X-axis of B from A.Distance between A and B is predeterminable range.
Step S131, the midpoint of the line segment that the center of the center of the circumscribed circle of face mask extracted and the circumscribed circle of described benchmark face mask of calculating in described two-dimensional coordinate system connects into.
Such as, as shown in Fig. 5,6,7, A is the center of the circumscribed circle of described benchmark face mask, and B is the center of the circumscribed circle of the face mask extracted, and the midpoint of straight line AB is C.
Step S132, calculates two internal common tangents of the circumscribed circle of the face mask extracted and the circumscribed circle of described benchmark face mask in described two-dimensional coordinate system, and calculates the intersection point of described two internal common tangents.
Such as, as it is shown in figure 5, the intersection point that D is two internal common tangents.As shown in Figure 6, E is the intersection point of two internal common tangents, as it is shown in fig. 7, F is be the intersection point of two internal common tangents.
Step S133, calculates the intersection point of described two internal common tangents relative to the side-play amount at the midpoint of described line segment and offset direction.
Described offset direction is the direction of the intersection point pointing to described two internal common tangents from the midpoint of described line segment, and described adjustment direction is consistent with offset direction.When the abscissa at midpoint of described line segment is more than the intersection point of described two internal common tangents, described offset direction is just;When the abscissa at midpoint of described line segment is less than the intersection point of described two internal common tangents, described offset direction is negative.
Such as, as it is shown in figure 5, some D overlaps with some C, described side-play amount is 0.As shown in Figure 6, described side-play amount is the distance between an E and some C, and described offset direction is from a C to a direction for E indication, for positive direction.As it is shown in fig. 7, described side-play amount is the distance between a F and some C, described offset direction is from a C to a direction for F indication, for negative direction.
Step S134, calculates picture according to described side-play amount and adjusts ratio.
In the present embodiment, described picture adjusts ratio and is multiplied by described side-play amount equal to k, and described k is more than 1.The value of described k is arranged according to self hobby by user, and when user is not provided with the value of described k, computing module 103 can arrange the default value value as k.Computing module 103 receives the value of the k of user setup, then calculates described picture and adjusts ratio.
Step S14, adjusting module 103 adjusts the size of the picture that user browses on display device 13 according to described picture adjustment ratio and adjustment direction.
In the present embodiment, when described offset direction is timing, adjustment direction is just, represents that user is more remote than reference range with the distance of electronic installation 1, and adjusting module 104 adjusts ratio according to described picture and the size of the picture browsed is amplified.Such as, as shown in Figure 6, offset direction is positive direction, and adjustment direction is just, it is necessary to the size of the picture browsed on display device 13 be amplified.
When described offset direction is for time negative, adjustment direction is negative, represents that user is nearer than reference range with the distance of electronic installation 1, and adjusting module 104 adjusts ratio according to described picture and the size of the picture browsed reduced.Such as, as it is shown in fig. 7, offset direction is negative direction, adjustment direction is negative, it is necessary to the size of the picture browsed on display device 13 reduced.
When described side-play amount is 0, adjusting module 104 is without making any adjustments the size of the picture browsed.
Finally it should be noted that, above example is only in order to illustrate technical scheme and unrestricted, although the present invention being described in detail with reference to preferred embodiment, the those of ordinary skill of this neighborhood is to be understood that, technical scheme can be modified or equivalent replacement, without deviating from the spirit and scope of technical solution of the present invention.
Claims (10)
1. a picture adjusting method, is applied in electronic installation, it is characterised in that the method includes:
Obtaining step one, obtains the image of the user that the picture pick-up device of described electronic installation gathers according to prefixed time interval;
Extraction step, utilizes face feature extractive technique to extract the face mask of user from acquired image, and calculates the circumscribed circle of the face mask extracted;
Obtaining step two, obtains the circumscribed circle of the benchmark face mask of the user prestored from the storage device of electronic installation;
Calculation procedure, calculates picture according to the circumscribed circle of the circumscribed circle of the face mask extracted and described benchmark face mask and adjusts ratio and adjustment direction;And
Set-up procedure, adjusts the size of the picture that user browses on the display device of electronic installation according to described picture adjustment ratio and adjustment direction.
2. picture adjusting method as claimed in claim 1, it is characterised in that the process calculating described picture adjustment ratio in described calculation procedure is:
Circumscribed circle and the circumscribed circle of described benchmark face mask according to the face mask extracted create two-dimensional coordinate system, distance between the center of the center of the circumscribed circle of the face mask extracted in described two-dimensional coordinate system and the circumscribed circle of described benchmark face mask is predeterminable range, and described predeterminable range is not 0;
In described two-dimensional coordinate system, the midpoint of the line segment that the center of the center of the circumscribed circle of the face mask that calculating is extracted and the circumscribed circle of described benchmark face mask connects into;
In described two-dimensional coordinate system, calculate two internal common tangents of the circumscribed circle of the face mask extracted and the circumscribed circle of described benchmark face mask, and calculate the intersection point of described two internal common tangents;
Calculating the intersection point of described two internal common tangents relative to the side-play amount at the midpoint of described line segment and offset direction, described adjustment direction is consistent with described offset direction;And
Calculate described picture according to described side-play amount and adjust ratio.
3. picture adjusting method as claimed in claim 2, it is characterised in that the direction at the center that the positive direction of the X-axis of described two-dimensional coordinate system points to the circumscribed circle of the face mask extracted with the center of the circumscribed circle from benchmark face mask is consistent.
4. picture adjusting method as claimed in claim 3, it is characterised in that in described set-up procedure, when described offset direction is timing, described adjustment direction is just, adjusts ratio according to described picture and the size of the picture browsed is amplified;
When described offset direction is for time negative, described adjustment direction is negative, adjusts ratio according to described picture and the size of the picture browsed is reduced.
5. distance detection method as claimed in claim 2, it is characterised in that described picture adjusts ratio and is multiplied by described side-play amount equal to k, and described k is more than 1.
6. an image regulating system, runs in electronic installation, it is characterised in that this system includes:
Acquisition module, the image of the user that the picture pick-up device for obtaining described electronic installation gathers according to prefixed time interval;
Extraction module, for utilizing face feature extractive technique to extract the face mask of user from acquired image, and calculates the circumscribed circle of the face mask extracted;
Described acquisition module, is additionally operable to obtain the circumscribed circle of the benchmark face mask of the user prestored from the storage device of electronic installation;
Computing module, the circumscribed circle for the circumscribed circle according to the face mask extracted and described benchmark face mask calculates picture adjustment ratio and adjustment direction;And
Adjusting module, for adjusting the size of the picture that user browses on the display device of electronic installation according to described picture adjustment ratio and adjustment direction.
7. image regulating system as claimed in claim 6, it is characterised in that the process calculating described picture adjustment ratio in described computing module is:
Circumscribed circle and the circumscribed circle of described benchmark face mask according to the face mask extracted create two-dimensional coordinate system, distance between the center of the center of the circumscribed circle of the face mask extracted in described two-dimensional coordinate system and the circumscribed circle of described benchmark face mask is predeterminable range, and described predeterminable range is not 0;
In described two-dimensional coordinate system, the midpoint of the line segment that the center of the center of the circumscribed circle of the face mask that calculating is extracted and the circumscribed circle of described benchmark face mask connects into;
In described two-dimensional coordinate system, calculate two internal common tangents of the circumscribed circle of the face mask extracted and the circumscribed circle of described benchmark face mask, and calculate the intersection point of described two internal common tangents;
Calculating the intersection point of described two internal common tangents relative to the side-play amount at the midpoint of described line segment and offset direction, described adjustment direction is consistent with described offset direction;And
Calculate described picture according to described side-play amount and adjust ratio.
8. image regulating system as claimed in claim 7, it is characterised in that the direction at the center that the positive direction of the X-axis of described two-dimensional coordinate system points to the circumscribed circle of the face mask extracted with the center of the circumscribed circle from benchmark face mask is consistent.
9. image regulating system as claimed in claim 8, it is characterised in that in described adjusting module, when described offset direction is timing, described adjustment direction is just, adjusts ratio according to described picture and the size of the picture browsed is amplified;
When described offset direction is for time negative, described adjustment direction is negative, adjusts ratio according to described picture and the size of the picture browsed is reduced.
10. distance detection system as claimed in claim 7, it is characterised in that described picture adjusts ratio and is multiplied by described side-play amount equal to k, and described k is more than 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410843079.4A CN105808180B (en) | 2014-12-30 | 2014-12-30 | Picture adjusting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410843079.4A CN105808180B (en) | 2014-12-30 | 2014-12-30 | Picture adjusting method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105808180A true CN105808180A (en) | 2016-07-27 |
CN105808180B CN105808180B (en) | 2020-08-18 |
Family
ID=56419893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410843079.4A Expired - Fee Related CN105808180B (en) | 2014-12-30 | 2014-12-30 | Picture adjusting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105808180B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170269A (en) * | 2017-12-26 | 2018-06-15 | 上海展扬通信技术有限公司 | A kind of image-scaling method and terminal |
CN112526989A (en) * | 2020-11-20 | 2021-03-19 | 广州极飞科技有限公司 | Agricultural unmanned vehicle navigation method and device, agricultural unmanned vehicle and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340521A (en) * | 2007-07-03 | 2009-01-07 | 佳能株式会社 | Image display control apparatus and method |
CN101465116A (en) * | 2009-01-07 | 2009-06-24 | 北京中星微电子有限公司 | Display equipment and control method thereof |
US20110074822A1 (en) * | 2009-09-28 | 2011-03-31 | Yao-Tsung Chang | Viewing Direction Determination Method, Viewing Direction Determination Apparatus, Image Processing Method, Image Processing Apparatus, Display Device and Electronic Device |
CN102043942A (en) * | 2009-10-12 | 2011-05-04 | 纬创资通股份有限公司 | Visual direction judging method, image processing method, image processing device and display device |
CN102237069A (en) * | 2010-05-05 | 2011-11-09 | 中国移动通信集团公司 | Method and device for preventing screen picture from dithering |
CN104122985A (en) * | 2013-04-29 | 2014-10-29 | 鸿富锦精密工业(深圳)有限公司 | Screen video image adjusting system and method |
CN104182114A (en) * | 2013-05-22 | 2014-12-03 | 辉达公司 | Method and system for adjusting image display direction of mobile equipment |
-
2014
- 2014-12-30 CN CN201410843079.4A patent/CN105808180B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340521A (en) * | 2007-07-03 | 2009-01-07 | 佳能株式会社 | Image display control apparatus and method |
CN101465116A (en) * | 2009-01-07 | 2009-06-24 | 北京中星微电子有限公司 | Display equipment and control method thereof |
US20110074822A1 (en) * | 2009-09-28 | 2011-03-31 | Yao-Tsung Chang | Viewing Direction Determination Method, Viewing Direction Determination Apparatus, Image Processing Method, Image Processing Apparatus, Display Device and Electronic Device |
CN102043942A (en) * | 2009-10-12 | 2011-05-04 | 纬创资通股份有限公司 | Visual direction judging method, image processing method, image processing device and display device |
CN102237069A (en) * | 2010-05-05 | 2011-11-09 | 中国移动通信集团公司 | Method and device for preventing screen picture from dithering |
CN104122985A (en) * | 2013-04-29 | 2014-10-29 | 鸿富锦精密工业(深圳)有限公司 | Screen video image adjusting system and method |
CN104182114A (en) * | 2013-05-22 | 2014-12-03 | 辉达公司 | Method and system for adjusting image display direction of mobile equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170269A (en) * | 2017-12-26 | 2018-06-15 | 上海展扬通信技术有限公司 | A kind of image-scaling method and terminal |
CN108170269B (en) * | 2017-12-26 | 2021-02-26 | 上海展扬通信技术有限公司 | Image zooming method and terminal |
CN112526989A (en) * | 2020-11-20 | 2021-03-19 | 广州极飞科技有限公司 | Agricultural unmanned vehicle navigation method and device, agricultural unmanned vehicle and storage medium |
CN112526989B (en) * | 2020-11-20 | 2023-11-21 | 广州极飞科技股份有限公司 | Agricultural unmanned vehicle navigation method and device, agricultural unmanned vehicle and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105808180B (en) | 2020-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105404863B (en) | Character features recognition methods and system | |
EP3276942B1 (en) | Electronic device and method for controlling the same | |
CN108898082B (en) | Picture processing method, picture processing device and terminal equipment | |
CN111325798B (en) | Camera model correction method, device, AR implementation equipment and readable storage medium | |
CN103824252A (en) | Picture processing method and system | |
CN105447034A (en) | Method and system for generating picture thumbnail | |
CN111062276A (en) | Human body posture recommendation method and device based on human-computer interaction, machine readable medium and equipment | |
CN109683756B (en) | Picture processing method and device, electronic equipment and storage medium | |
US20150146265A1 (en) | Method and apparatus for recognizing document | |
TW201439890A (en) | Method and system for adjusting fonts of an electronic device | |
CN107544686B (en) | Operation execution method and device | |
CN104765796A (en) | Image recognizing searching method and device | |
CN105808180A (en) | Picture adjustment method and system | |
CN108009273B (en) | Image display method, image display device and computer-readable storage medium | |
US8774556B2 (en) | Perspective correction using a reflection | |
CN104112130A (en) | Optical character recognition method and device | |
CN103347151B (en) | A kind of image processing method, device and terminal | |
CN104596509B (en) | Positioning method and system, and mobile terminal | |
CN104122978A (en) | Display frame adjusting system and method | |
CN105279229A (en) | Method for mobile terminal to identify clock time, and mobile terminal | |
CN113920083A (en) | Image-based size measurement method and device, electronic equipment and storage medium | |
KR20090084633A (en) | Method and apparatus for managing pictures | |
US10877641B2 (en) | Image adjustment method, apparatus, device and computer readable storage medium | |
TW201624265A (en) | System and method of adjusting pictures | |
CN103888670A (en) | Information processing method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200818 Termination date: 20211230 |
|
CF01 | Termination of patent right due to non-payment of annual fee |