CN102375715B - Method and device for automatically adjusting lens - Google Patents

Method and device for automatically adjusting lens Download PDF

Info

Publication number
CN102375715B
CN102375715B CN201010262444.4A CN201010262444A CN102375715B CN 102375715 B CN102375715 B CN 102375715B CN 201010262444 A CN201010262444 A CN 201010262444A CN 102375715 B CN102375715 B CN 102375715B
Authority
CN
China
Prior art keywords
image
lens image
user
lens
described user
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.)
Active
Application number
CN201010262444.4A
Other languages
Chinese (zh)
Other versions
CN102375715A (en
Inventor
刁旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ERDO TECHNOLOGY Co Ltd
Original Assignee
BEIJING ERDO TECHNOLOGY 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 BEIJING ERDO TECHNOLOGY Co Ltd filed Critical BEIJING ERDO TECHNOLOGY Co Ltd
Priority to CN201010262444.4A priority Critical patent/CN102375715B/en
Publication of CN102375715A publication Critical patent/CN102375715A/en
Application granted granted Critical
Publication of CN102375715B publication Critical patent/CN102375715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for automatically adjusting lens images, wherein the method comprises the steps of: determining the lens images which are required to be displayed by a user in the same scene image, wherein the scene image comprises a plurality of the lens images; obtaining the width and height of the scene image; and adjusting the lens images which are required by the user according to the width and height of the scene image. The caricature can be quickly and accurately adjusted through adopting the method and the device for automatically adjusting the lens images.

Description

Automatically adjust method and the device of camera lens
Technical field
The present invention relates to a kind of method and device of automatic adjustment camera lens.
Background technology
In order to show caricature in mobile phone or various terminal; often need multiple camera lenses (hereinafter referred to as lens image) to show a scene (hereinafter referred to as scene image); the story of a play or opera that the number of shots of automatically distributing for the first time due to system not necessarily meets mobile phone cartoon represents; conventionally the more unnecessary camera lenses of meeting, so need to delete one or several camera lens when editor.
In correlation technique, user is being thought to necessary, or the camera lens that needs of user is when adjust, and often needs manual adjustment, but that the method is adjusted the time is long, and Adjusting accuracy is lower.
Summary of the invention
Caricature is adjusted the problem that the time is long and Adjusting accuracy is lower and proposed the present invention when the caricature in scene being edited in correlation technique, for this reason, fundamental purpose of the present invention is to provide a kind of method of automatic adjustment camera lens, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of method of automatic adjustment camera lens.According to the method for automatic adjustment camera lens of the present invention, comprise: determine the lens image that in Same Scene image, user need to show, wherein, scene image comprises multiple lens image; Obtain width and the height of scene image; And according to the lens image of the width of scene image and height control user needs.
To achieve these goals, according to a further aspect in the invention, provide a kind of device of automatic adjustment camera lens.This device comprises: determination module, and for the lens image of determining that Same Scene image user need to show, wherein, scene image comprises multiple lens image; Acquisition module, for obtaining width and the height of scene image; And adjusting module, for the lens image needing according to the width of scene image and height control user.
By the present invention, adopt the lens image of determining that in Same Scene image, user need to show, wherein, scene image comprises multiple lens image; Obtain width and the height of scene image; And according to the lens image of the width of scene image and height control user needs, solved when the caricature in scene is edited in correlation technique caricature has been adjusted to the problem that the time is long and Adjusting accuracy is lower, and then reached the effect of rapidly and accurately caricature being adjusted.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the schematic diagram of the device of the automatic adjustment camera lens of first embodiment of the invention;
Fig. 2 is according to the process flow diagram of the method for the automatic adjustment camera lens of the embodiment of the present invention;
Fig. 3 is according to the schematic diagram of the device of the automatic adjustment camera lens of second embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Fig. 1 is according to the schematic diagram of the device of the automatic adjustment camera lens of the embodiment of the present invention.As shown in the figure, this device of automatically adjusting camera lens comprises determination module 102, acquisition module 104 and adjusting module 106.
Wherein, the lens image of determination module 102 for determining that Same Scene image user need to show, wherein, described scene image comprises multiple lens image; Acquisition module 104 is for obtaining width and the height of described scene image; And the lens image of adjusting module 106 for needing according to user described in the width of described scene image and height control.
Fig. 2 is according to the process flow diagram of the method for the automatic adjustment camera lens of the embodiment of the present invention.As shown in Figure 2, the method comprises that following step S202 is to step S206:
Step S202, determines the lens image that in Same Scene image, user need to show, wherein, scene image comprises multiple lens image;
For example, can adopt following methods to determine the lens image that the user in Same Scene image needs:
The image that user is selected is defined as the image that user needs; And/or
By user from scene image after deletion lens image remaining lens image be defined as the lens image that user needs.
In this step, the device that can be above-mentioned automatic adjustment camera lens judges to determine the needed lens image of user according to user's operation, can be the direct selection according to user, also directly be defined as user and delete remaining lens image after partial lens image.
Step S204, obtain scene image width and height; And
Step S206, according to the lens image of the width of scene image and height control user needs.
In the method, automatically adjust the device of camera lens and carry out successively above-mentioned operation, this device of automatically adjusting camera lens can be adjusted according to user's the lens image exactly user being needed swift to operate.
Preferably, said method also comprises: whether the lens image that judges user's needs is one; And be one in the lens image of user's needs, the lens image that user is needed is adjusted into the width identical with scene image and identical height.
Preferably, said method also comprises: whether the lens image that judges user's needs is multiple; The lens image needing in the case of user be multiple, judge the arrangement mode of the lens image of user needs; The lens image needing in the case of user be horizontal, the height of lens image that adjusting user needs equals the height of scene image; The lens image needing in the case of user be longitudinal, the width of lens image that adjusting user needs equals the width of scene image.
Wherein, the lens image needing in the case of user be multiple, judge that the arrangement mode of the lens image of user needs comprises: the width by the width of the lens image of user's needs divided by scene image, obtains the first numerical value; The height of the lens image that user is needed, divided by the height of scene image, obtains second value; Wherein, when the first numerical value is greater than second value, determine that the arrangement mode of the lens image that user needs is for laterally, when the first numerical value is less than second value, the arrangement mode of determining the lens image that user needs is for longitudinally.
For example, deleting after unnecessary camera lens, when remaining camera lens is 1, obtain width and the height value of scene, make camera lens frame comprise whole scene completely on height and width.
Delete after unnecessary camera lens, when remaining camera lens is greater than 1, obtain width and the height value of scene, judge that scene is horizontal or longitudinal.Standard is: currentitem object width is divided by the width of picture, if be greater than the height of currentitem object height divided by picture, so just think that scene is laterally, the height of just automatically adjusting camera lens frame equals scene height, is then arranged in order in order camera lens below.If currentitem object width divided by the width of picture, is less than the height of currentitem object height divided by picture, so just think that scene is longitudinally, the width of just automatically adjusting camera lens frame equals scene width, is then arranged in order in order remaining camera lens.
It should be noted that, the above-mentioned user who mentions can be a user, can be also multiple users.
It should be noted that, in the step shown in the process flow diagram of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Fig. 3 is according to the schematic diagram of the device of the automatic adjustment camera lens of second embodiment of the invention.
The difference of this embodiment and the first embodiment is mainly, determination module comprises that first determines that submodule and/or second determines submodule.
Wherein, first determines submodule, for the image that user is selected, is defined as the image that user needs; And/or second determine submodule, for user's remaining lens image from scene image deletion lens image after being defined as to the lens image of user needs.
This device of automatically adjusting camera lens can also comprise: the first judge module, for judging whether the lens image that user needs is one, wherein, adjusting module is one for the lens image needing in the case of user, and the lens image that user is needed is adjusted into the width identical with scene image and identical height.
Preferably, the device of above-mentioned automatic adjustment camera lens also comprises: the second judge module, for judging whether the lens image that user needs is multiple; The 3rd judge module, in the case of user need lens image be multiple, judge the arrangement mode of the lens image of user's needs, wherein, adjusting module in the case of user need lens image be horizontal, the height of lens image that adjusting user needs equals the height of scene image, and the lens image needing in the case of user be longitudinal, the width of adjusting the lens image that user needs equals the width of scene image.
The 3rd judge module can also comprise: the first computing module, for the width divided by scene image by the width of the lens image of user's needs, obtains the first numerical value; The second computing module, for the height divided by scene image by the height of the lens image of user's needs, obtains second value; Judge submodule, for when the first numerical value is greater than second value, determine that the arrangement mode of the lens image that user needs is for laterally, when the first numerical value is less than second value, the arrangement mode of determining the lens image that user needs is for longitudinally.
The present invention shows image rightly by adjusting the position of camera lens and size on mobile phone screen: judge camera lens number, when camera lens number is 1, make camera lens frame highly and comprise whole scene completely on width; When camera lens number is greater than 1, width by camera lens is horizontal or longitudinal divided by the scene that relatively judges of the height of scene with respect to camera lens divided by the width of scene and the height of camera lens, automatically the height of adjusting camera lens frame while being horizontal when scene equals the height of scene, afterwards the camera lens of order after arranging; Automatically the width of adjusting camera lens frame while being longitudinal when scene equals the width of scene, afterwards the camera lens of order after arranging.
As can be seen from the above description, method and apparatus provided by the invention can be adjusted according to user's the lens image exactly user being needed swift to operate.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (4)

1. a method of automatically adjusting camera lens, is characterized in that, comprising:
Determine the lens image that in Same Scene image, user need to show, wherein, described scene image comprises multiple lens image;
Obtain width and the height of described scene image; And
The lens image needing according to user described in the width of described scene image and height control;
Wherein, the step of the described lens image needing according to user described in the width of described scene image and height control comprises: in the lens image of described user's needs, be one, the lens image that described user is needed is adjusted into the width identical with described scene image and identical height; The lens image needing in the case of described user be multiple, judge the arrangement mode of the lens image that described user needs; The lens image needing in the case of described user be transversely arranged, the height of adjusting the lens image that described user needs equals the height of described scene image; Lens image at described user's needs is longitudinal arrangement, and the width of adjusting the lens image of described user's needs equals the width of described scene image;
The lens image needing in the case of described user be multiple, judge that the arrangement mode of the lens image that described user needs comprises: the width by the width of the lens image of described user's needs divided by described scene image, obtains the first numerical value; The height of the lens image that described user is needed, divided by the height of described scene image, obtains second value; Wherein, when described the first numerical value is greater than described second value, determine that the arrangement mode of the lens image that described user needs is for laterally, when described the first numerical value is less than described second value, the arrangement mode of determining the lens image that described user needs is for longitudinally.
2. method according to claim 1, is characterized in that, determines that the lens image that the user in Same Scene image needs comprises:
The image that described user is selected is defined as the image that described user needs; And/or
By described user from described scene image after deletion lens image remaining lens image be defined as the lens image that described user needs.
3. a device of automatically adjusting camera lens, is characterized in that, comprising:
Determination module, for the lens image of determining that Same Scene image user need to show, wherein, described scene image comprises multiple lens image;
Acquisition module, for obtaining width and the height of described scene image; And
Adjusting module, for the lens image needing according to user described in the width of described scene image and height control;
Described adjusting module comprises: the first judge module, for judging whether the lens image that described user needs is one, wherein, described adjusting module is one for the lens image needing in the case of described user, and the lens image that described user is needed is adjusted into the width identical with described scene image and identical height; The second judge module, for judging whether the lens image that described user needs is multiple; The 3rd judge module, the lens image needing in the case of described user be multiple, judge the arrangement mode of the lens image of described user's needs, wherein, described adjusting module for the lens image needing in the case of described user be transversely arranged, the height of adjusting the lens image of described user's needs equals the height of described scene image, and be longitudinal arrangement in the lens image of described user's needs, the width of adjusting the lens image of described user's needs equals the width of described scene image;
Wherein, described the 3rd judge module comprises: the first computing module, for the width divided by described scene image by the width of the lens image of described user's needs, obtains the first numerical value; The second computing module, for the height divided by described scene image by the height of the lens image of described user's needs, obtains second value; Judge submodule, for when described the first numerical value is greater than described second value, determine that the arrangement mode of the lens image that described user needs is for laterally, when described the first numerical value is less than described second value, the arrangement mode of determining the lens image that described user needs is for longitudinally.
4. device according to claim 3, is characterized in that, described determination module comprises:
First determines submodule, for the image that described user is selected, is defined as the image that described user needs; And/or
Second determines submodule, the lens image needing for described user remaining lens image after described scene image deletion lens image being defined as to described user.
CN201010262444.4A 2010-08-25 2010-08-25 Method and device for automatically adjusting lens Active CN102375715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010262444.4A CN102375715B (en) 2010-08-25 2010-08-25 Method and device for automatically adjusting lens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010262444.4A CN102375715B (en) 2010-08-25 2010-08-25 Method and device for automatically adjusting lens

Publications (2)

Publication Number Publication Date
CN102375715A CN102375715A (en) 2012-03-14
CN102375715B true CN102375715B (en) 2014-04-16

Family

ID=45794366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010262444.4A Active CN102375715B (en) 2010-08-25 2010-08-25 Method and device for automatically adjusting lens

Country Status (1)

Country Link
CN (1) CN102375715B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0884698A1 (en) * 1997-06-09 1998-12-16 Eastman Kodak Company Method of optimising the filling of an editing medium with digital images of variable sizes, and with preservation of the size ratios
US6741270B1 (en) * 2000-01-19 2004-05-25 Xerox Corporation Systems and methods scaling a captured image using predetermined scale information
US6825860B1 (en) * 2000-09-29 2004-11-30 Rockwell Automation Technologies, Inc. Autoscaling/autosizing user interface window
CN1703725A (en) * 2002-10-15 2005-11-30 精工爱普生株式会社 Panorama synthesis processing of a plurality of image data
CN1846250A (en) * 2003-09-03 2006-10-11 奥林巴斯株式会社 Image display apparatus, image display program, image display method, and recording medium for recording the image display program
CN101494716A (en) * 2007-08-10 2009-07-29 夏普株式会社 Image formation device, image formation method, and computer-readable recording medium recording image formation program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0884698A1 (en) * 1997-06-09 1998-12-16 Eastman Kodak Company Method of optimising the filling of an editing medium with digital images of variable sizes, and with preservation of the size ratios
US6741270B1 (en) * 2000-01-19 2004-05-25 Xerox Corporation Systems and methods scaling a captured image using predetermined scale information
US6825860B1 (en) * 2000-09-29 2004-11-30 Rockwell Automation Technologies, Inc. Autoscaling/autosizing user interface window
CN1703725A (en) * 2002-10-15 2005-11-30 精工爱普生株式会社 Panorama synthesis processing of a plurality of image data
CN1846250A (en) * 2003-09-03 2006-10-11 奥林巴斯株式会社 Image display apparatus, image display program, image display method, and recording medium for recording the image display program
CN101494716A (en) * 2007-08-10 2009-07-29 夏普株式会社 Image formation device, image formation method, and computer-readable recording medium recording image formation program

Also Published As

Publication number Publication date
CN102375715A (en) 2012-03-14

Similar Documents

Publication Publication Date Title
US20220166961A1 (en) Content Presentation Method, Content Presentation Mode Push Method, and Intelligent Terminal
US9491366B2 (en) Electronic device and image composition method thereof
CN103209291A (en) Method, apparatus and device for controlling automatic image shooting
US9179070B2 (en) Method for adjusting focus position and electronic apparatus
CN104333748A (en) Method, device and terminal for obtaining image main object
CN102523376A (en) Shooting equipment and method
JP2018513992A (en) System and method for continuous autofocus
CN105247567B (en) A kind of image focusing device, method, system and non-transient program storage device again
CN105049728A (en) Method and device for acquiring shot image
CN109040596B (en) Method for adjusting camera, mobile terminal and storage medium
CN104978750B (en) Method and apparatus for handling video file
CN105376490A (en) Mode switching method, mode switching apparatus and terminal device using mode switching method
CN111835982B (en) Image acquisition method, image acquisition device, electronic device, and storage medium
CN107710736A (en) Aid in the method and system of user's capture images or video
CN113411498A (en) Image shooting method, mobile terminal and storage medium
CN111105434A (en) Motion trajectory synthesis method and electronic equipment
CN103079033A (en) Photographing method and device
CN103945116A (en) Apparatus and method for processing image in mobile terminal having camera
US10573277B2 (en) Display device, display system, and non-transitory recording medium, to adjust position of second image in accordance with adjusted zoom ratio of first image
US20170310872A1 (en) Image dynamic range adjustment method, terminal, and storage medium
CN105657262A (en) Image processing method and apparatus
CN112948048A (en) Information processing method, information processing device, electronic equipment and storage medium
CN105827936B (en) A kind of image processing method and mobile terminal
CN109788199B (en) Focusing method suitable for terminal with double cameras
CN102375715B (en) Method and device for automatically adjusting lens

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Diao Xudong

Inventor after: Jia Songtao

Inventor before: Diao Xudong

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: DIAO XUDONG TO: DIAO XUDONG JIA SONGTAO