CN107026982A - The photographic method and mobile terminal of a kind of mobile terminal - Google Patents

The photographic method and mobile terminal of a kind of mobile terminal Download PDF

Info

Publication number
CN107026982A
CN107026982A CN201710363236.5A CN201710363236A CN107026982A CN 107026982 A CN107026982 A CN 107026982A CN 201710363236 A CN201710363236 A CN 201710363236A CN 107026982 A CN107026982 A CN 107026982A
Authority
CN
China
Prior art keywords
mobile terminal
focal length
picture area
picture
taking pictures
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
Application number
CN201710363236.5A
Other languages
Chinese (zh)
Other versions
CN107026982B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710363236.5A priority Critical patent/CN107026982B/en
Publication of CN107026982A publication Critical patent/CN107026982A/en
Application granted granted Critical
Publication of CN107026982B publication Critical patent/CN107026982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Abstract

The invention provides a kind of photographic method of mobile terminal and mobile terminal, the photographic method of the mobile terminal includes:Obtain the picture area that the photograph subject of user's selection needs to show;According to the size of the picture area, it is determined that the target focal length for taking pictures used;Taken pictures according to the target focal length, obtain target image.Therefore, the solution of the present invention, the photograph subject that can be selected according to user needs the size of the picture area shown, it is determined that used focal length of taking pictures, focal length is disposably adjusted to ideal to take pictures picture size, solve needs the problem of repeatedly scaling is to focus relatively complicated back and forth in the prior art.

Description

The photographic method and mobile terminal of a kind of mobile terminal
Technical field
The present invention relates to the photographic method and mobile terminal in communication technology skill field, more particularly to a kind of mobile terminal.
Background technology
As taking photograph of intelligent mobile phone function more comes powerful so that camera function is numerous using day alien frequencies.Taking photograph of intelligent mobile phone mistake Cheng Zhongwei realizes preferable picture, it usually needs scaling of two fingers on screen completes focus adjustment, generally Reach that preferable picture also needs to focusing repeatedly back and forth.Operation so repeatedly is more complicated and cumbersome.
The content of the invention
The embodiment provides a kind of photographic method of mobile terminal and mobile terminal, to solve in the prior art Need the problem of repeatedly scaling is to focus relatively complicated back and forth.
The embodiment provides a kind of photographic method of mobile terminal, including:
Obtain the picture area that the photograph subject of user's selection needs to show;
According to the size of the picture area, it is determined that the target focal length for taking pictures used;
Taken pictures according to the target focal length, obtain target image.
Embodiments of the invention additionally provide a kind of mobile terminal, including:
Picture area determining module, for obtaining the picture area that the photograph subject of user's selection needs to show;
Focal length determining module, for the size according to the picture area, it is determined that the target focal length for taking pictures used;
Photo module, for being taken pictures according to the target focal length, obtains target image.
Embodiments of the invention additionally provide a kind of mobile terminal, including:Memory, processor and storage are on a memory And the computer program that can be run on a processor, shifting described above is realized described in the computing device during computer program Step in the photographic method of dynamic terminal.
The beneficial effect of the embodiment of the present invention is:
Embodiments of the invention, the photograph subject selected by obtaining user needs the picture area shown, and according to picture The size in face region determines the target focal length for taking pictures used, and then is taken pictures according to the target focal length of determination, obtains target Image.It follows that embodiments of the invention, the photograph subject that can be selected according to user needs the picture size shown, really Surely take pictures used focal length so that focal length can disposably be adjusted to ideal and taken pictures picture size, be solved in the prior art Need the problem of repeatedly scaling is to focus relatively complicated back and forth.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 represents a kind of flow chart of the photographic method of mobile terminal provided in an embodiment of the present invention;
Fig. 2 represents the flow chart of the photographic method of another mobile terminal provided in an embodiment of the present invention;
Fig. 3 represents that photograph subject needs the selection schematic diagram of the picture area shown in embodiments of the invention;
Fig. 4 represents the display schematic diagram of photograph subject after the adjustment of embodiments of the invention mid-focal length;
Fig. 5 represents a kind of one of structured flowchart of mobile terminal provided in an embodiment of the present invention;
Fig. 6 represents the two of the structured flowchart of a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 7 represents the structured flowchart of another mobile terminal provided in an embodiment of the present invention;
Fig. 8 represents the structured flowchart of another mobile terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of flow chart of the photographic method of mobile terminal, as shown in figure 1, the mobile terminal Photographic method comprise the following steps:
Step 101:Obtain the picture area that the photograph subject of user's selection needs to show.
Wherein, mobile terminal enter take pictures interface when, display screen shows the raw frames that camera lens is captured.If now, User only needs to catch a part for raw frames, then needs regulation shooting focal length to realize.And in embodiments of the invention, when User need regulation take pictures focal length when, can enter in mobile terminal and take pictures after preview interface, in the touch display screen of mobile terminal Upper selection photograph subject needs the picture area shown, i.e., one covering of selection is taken pictures on the touch display screen curtain of mobile terminal The target area of object, and the model of the target area then for photograph subject picture area to display after adjustment focal length Enclose.
For example, when user needs the enlarged drawing of one destination object of shooting, can be to display according to destination object Size, the target area of photograph subject can be completely covered in selection one on the display screen of mobile terminal;Or user needs , can be according to destination object size to display, in the aobvious of mobile terminal when shooting the downscaled images of destination object Selection one can cover certain a part of target area of photograph subject on display screen curtain.Wherein, no matter photograph subject needs It is exaggerated or reduced, the selected photograph subject of user needs the scope and the photograph subject of the picture area shown at least There is lap, can determine be mobile terminal preview interface of taking pictures in which photograph subject need to be exaggerated or contract It is small to be shot.
Step 102:According to the size of the picture area, it is determined that the target focal length for taking pictures used.
Wherein, the picture size shown by the same photograph subject shot under different focal lengths is different.Therefore, can basis Photograph subject needs the size of the picture area shown, to determine the target focal length for taking pictures used.Further, since target focal length It is to be determined according to the size of final photograph subject picture area to display, so, according to the target focal length of determination The image of the photograph subject of shooting, as preferable picture, therefore embodiments of the invention, can cause focus one to adjust Taken pictures picture size to ideal, it is to avoid what is repeatedly scaled back and forth is cumbersome.
Step 103:Taken pictures according to the target focal length, obtain target image.
Determined after target focal length, then can be taken pictures using the target focal length by above-mentioned steps 102, so as to Obtain the image for meeting user's needs.
Moreover it is preferred that a focal length automatic regulating switch is provided with the preview interface of taking pictures of the mobile terminal, it is described Method also includes:When the mobile terminal, which is in, takes pictures preview interface, detect whether the focal length automatic regulating switch is in Opening, and when the focal length automatic regulating switch is in opening, into step 101.Wherein, focal length is automatically adjusted The setting of switch, has provided the user different camera function selections, so as to meet the demand of taking pictures of more different users.
From the foregoing, embodiments of the invention, the photograph subject selected by obtaining user needs the picture area shown Domain, and the target focal length for determining to take pictures used according to the size of picture area, and then clapped according to the target focal length of determination According to acquisition target image.It follows that embodiments of the invention, the photograph subject that can be selected according to user needs what is shown Picture size, it is determined that used focal length of taking pictures so that focal length can disposably be adjusted to ideal and taken pictures picture size, be solved The problem of repeatedly scaling is to focus relatively complicated back and forth is needed in the prior art.
Embodiments of the invention additionally provide the photographic method of another mobile terminal, as shown in Fig. 2 the mobile terminal Photographic method includes following steps:
Step 201:When detecting the slide that user applies in the preview interface of taking pictures of mobile terminal, obtain described Slide the original position and end position of behaviour.
Wherein, can be any form of for the slide that user applies in the preview interface of taking pictures of mobile terminal The operation of slide, such as linear slide, camber line slide, but need to obtain original position and the termination of the slide Position, and it regard the line between original position and final position as the diagonal for determining rectangular area.
Step 202:Using the line between the original position and the end position as diagonal, a rectangle region is determined Domain.
Wherein, the diameter parallel of the length direction or width of the rectangular area and the mobile terminal.It is described to move The axis of dynamic terminal is the length direction of mobile terminal.I.e. the putting position of rectangular area on mobile terminals, can be square The length direction in shape region width parallel or rectangular area with the length direction of mobile terminal and mobile terminal Length direction it is parallel.
Step 203:The photograph subject rectangular area being defined as in the rectangular area needs the picture area shown Domain.
Wherein, mobile terminal enter take pictures interface when, display screen shows the raw frames that camera lens is captured.If now, User only needs to catch a part for raw frames, then needs regulation shooting focal length to realize.And in embodiments of the invention, when User need regulation take pictures focal length when, can enter in mobile terminal and take pictures after preview interface, in the touch display screen of mobile terminal Upper selection photograph subject needs the picture size shown, i.e., apply one on the photograph subject in preview interface of taking pictures and slide behaviour Make so that the line between the original position and end position of slide passes through photograph subject, so that being grasped according to sliding The rectangular area for making to determine can cover photograph subject.
For example, when user needs the enlarged drawing of one destination object of shooting, of the slide applied according to user Beginning position and end position determine rectangular area, it is necessary to which the target area of photograph subject is completely covered;Or user needs to clap When taking the photograph the downscaled images of destination object, the original position and end position of the slide applied according to user determine square Shape region is, it is necessary to cover certain part of photograph subject.Wherein, no matter photograph subject needs to be exaggerated or reduced, root At least there is weight with the photograph subject in the rectangular area that the original position and end position of the slide applied according to user are determined Folded part, can determine be mobile terminal preview interface of taking pictures in which photograph subject need to be exaggerated or reduce and carry out Shoot.
Specifically, for example, as shown in figure 3, the line segment between AB be the slide of user original position and Line between end position, then be the photograph subject needs in the rectangular area by cornerwise rectangular area of AB line segments The picture area of display.
Further, after step 202, in addition to:The rectangular area is shown in the preview interface of taking pictures Border.It will be shown according to determined by the slide that user applies in preview interface of taking pictures on the border of rectangular area, can To allow user to be expressly understood that, oneself selected photograph subject needs the picture size shown, consequently facilitating when user is dissatisfied It is adjusted with good groundsly.
In addition, in an embodiment of the present invention, determining to be used to represent photograph subject by the sliding trace of slide The rectangular area of the picture size of display is needed, wherein, it can just be completed because slide only needs to single finger, therefore, Relatively with the mode that two fingers are focused back and forth in the prior art, embodiments of the invention simplify focus adjustment The action of two fingers is needed, the regulation operation of user's focusing has been further facilitated.
Step 204:According to the picture size and the corresponding relation of focal length prestored, it is determined that big with the picture area Small corresponding target focal length.
Wherein, the picture size shown by the same photograph subject shot under different focal lengths is different.Therefore, can basis Photograph subject needs the size of the picture area shown, to determine the target focal length for taking pictures used.Further, since target focal length It is to be determined according to the size of final photograph subject picture area to display, so, according to the target focal length of determination The image of the photograph subject of shooting, as preferable picture, therefore embodiments of the invention, can cause focus one to adjust Taken pictures picture size to ideal, it is to avoid what is repeatedly scaled back and forth is cumbersome.
In addition, embodiments of the invention, predefine the focal length corresponding to different size of display picture, and be stored in shifting In dynamic terminal, it can be directly invoked during in order to be taken pictures so that the regulation of focal length is settled at one go.
Step 205:According to the target focal length, the preview image in the range of the picture area is obtained.
Wherein, in embodiments of the invention, determined by step 204 after the target focal length for taking pictures used, can be in mesh Mark under focal length, only obtain the preview image in the range of picture area, and ignore the preview image outside the regional extent.For example, When it is a rectangular area that photograph subject, which needs the picture shown, as shown in figure 3, then under target focal length, obtaining the rectangle region Image in domain, and ignore the preview image outside the rectangular area.
Step 206:The preview image got is included into the preview interface of taking pictures in mobile terminal.
By step 205 under target focal length, the picture area that the photograph subject being easily selected by a user needs to show is got In the range of preview image after, further the preview image got can be shown generally in preview interface of taking pictures, such as Fig. 4 It is shown.
Wherein, it can be seen from Fig. 3 and Fig. 4 contrast after focus adjustment, the whole preview interface of taking pictures of mobile terminal The photograph subject of the only user selection of middle display needs the image in the range of the picture area of display, so that user be not related to The image of the heart is removed in preview interface of taking pictures, and further meets the demand of taking pictures of user.
In addition, for determining after target focal length, the image preview mode in preview interface of taking pictures, it is not limited to This, can also obtain the image in whole preview interface of taking pictures, and shown directly under target focal length.
Step 207:When receiving the photographing instruction of user's input, it is displayed on described in the preview interface of taking pictures Preview image generates target image.
Wherein, after preview image after user watches the focus adjustment shown in preview interface of taking pictures, directly input Photographing instruction, it is possible to obtain corresponding target image.
Moreover it is preferred that a focal length automatic regulating switch is provided with the preview interface of taking pictures of the mobile terminal, it is described Method also includes:When the mobile terminal, which is in, takes pictures preview interface, detect whether the focal length automatic regulating switch is in Opening, and when the focal length automatic regulating switch is in opening, into step 201.Wherein, focal length is automatically adjusted The setting of switch, has provided the user different camera function selections, so as to meet the demand of taking pictures of more different users.
From the foregoing, embodiments of the invention, the slide applied on mobile terminals by user determines a square Shape region, and the target focal length for determining to take pictures used according to the size of rectangular area, so as under target focal length, gather rectangle Image in region is simultaneously shown in preview interface of taking pictures, and then when receiving the photographing instruction of user's input, generates target figure Picture.It follows that embodiments of the invention, being selected by single finger finally needs the size of picture to focus, and subtracts first Having changed focus adjustment needs the action of two fingers, while once reaching preferable picture, it is not necessary to multiple scaling back and forth, improves The Consumer's Experience for focus adjustment of taking pictures, one-time-reach-place.
Furthermore, it is necessary to explanation, for the regional extent of the picture shown for representing photograph subject to need, not office Rectangular area is limited to, can also be other regular shapes.
Embodiments of the invention additionally provide a kind of mobile terminal, as shown in figure 5, the mobile terminal 500 includes:
Picture area determining module 501, for obtaining the picture area that the photograph subject of user's selection needs to show;
Focal length determining module 502, for the size according to the picture area, it is determined that the target focal length for taking pictures used;
Photo module 503, for being taken pictures according to the target focal length, obtains target image.
Preferably, as shown in fig. 6, the picture area determining module 501, including:
Detection unit 5011 is operated, for detecting the slip behaviour that user applies in the preview interface of taking pictures of mobile terminal When making, the original position and end position for sliding behaviour is obtained;
Area determination unit 5012, for using the line between the original position and the end position as diagonal, Determine a rectangular area, the length direction or width of the rectangular area and the diameter parallel of the mobile terminal;
Picture area determining unit 5014, for the photograph subject being defined as the rectangular area in the rectangular area Need the picture area of display.
Preferably, as shown in fig. 6, the picture area determining module 501 also includes:
Border display unit 5013, the border for showing the rectangular area in the preview interface of taking pictures.
Preferably, the focal length determining module 502 specifically for:
According to the picture size and the corresponding relation of focal length prestored, it is determined that corresponding with the size of the picture area Target focal length.
Preferably, as shown in fig. 6, the photo module 503 includes:
Image acquisition unit 5031, for according to the target focal length, obtaining the preview graph in the range of the picture area Picture;
Image-display units 5032, for the preview image got to be included into preview circle of taking pictures in mobile terminal Face;
Image generation unit 5033, for when receiving the photographing instruction of user's input, be displayed on it is described take pictures it is pre- The preview image generation target image look in interface.
The mobile terminal 500 of the embodiment of the present invention, is taken pictures pair by what picture area determining module 501 obtained that user selects Picture area as shown in needing, so that size of the focal length determining module 502 according to the picture area is triggered, it is determined that institute of taking pictures The target focal length of use, and then make it that photo module 503 is taken pictures according to the target focal length of determination, obtain target image.By This understands that embodiments of the invention, the photograph subject that can be selected according to user needs the picture size shown, it is determined that institute of taking pictures The focal length of use so that focal length can disposably be adjusted to ideal and taken pictures picture size, solve needs repeatedly in the prior art The problem of scaling is to focus relatively complicated back and forth.
Embodiments of the invention additionally provide a kind of mobile terminal, including:Memory, processor and storage are on a memory And the computer program that can be run on a processor, shifting described above is realized described in the computing device during computer program Step in the photographic method of dynamic terminal.
Embodiments of the invention additionally provide a kind of mobile terminal, as shown in fig. 7, the mobile terminal 700 includes:At least one Individual processor 701, memory 702, at least one network interface 704, other users interface 703 and display module 706.It is mobile whole Each component in end 700 is coupled by bus system 705.It is understood that bus system 705 is used to realize these components Between connection communication.Bus system 705 is in addition to including data/address bus, in addition to power bus, controlling bus and state letter Number bus.But for the sake of clear explanation, various buses are all designated as bus system 705 in the figure 7.
Wherein, user interface 703 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 702 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 702 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 7021 and application program 7022.
Wherein, operating system 7021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.Application program 7022, includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 7022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 702, specifically, can be application The program stored in program 7022 or instruction.Wherein, processor 701 is used for the photograph subject needs display for obtaining user's selection Picture area;According to the size of the picture area, it is determined that the target focal length for taking pictures used;Carried out according to the target focal length Take pictures, obtain target image.
The method that the embodiments of the present invention are disclosed can apply in processor 701, or be realized by processor 701. Processor 701 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 702, processor 701 reads the information in memory 702, the step of completing the above method with reference to its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized by performing the module (such as process, function) of function described herein herein for software Described technology.Software code is storable in memory and by computing device.Memory can within a processor or Realized outside processor.
Alternatively, processor 701 is specific to use when the photograph subject for obtaining user's selection needs the picture area shown In:
When user interface 703 detects the slide that user applies in the preview interface of taking pictures of mobile terminal, obtain Take the original position and end position for sliding behaviour;
Using the line between the original position and the end position as diagonal, a rectangular area, the square are determined The length direction or width in shape region and the diameter parallel of the mobile terminal;
The photograph subject rectangular area being defined as in the rectangular area needs the picture area shown.
Alternatively, processor 701 is using the line between the original position and the end position as diagonal, it is determined that After one rectangular area, it is additionally operable to:
Control display module 706 shows the border of the rectangular area in the preview interface of taking pictures.
Alternatively, processor 701 is in the size according to the picture area, it is determined that take pictures used target focal length when, Specifically for:
According to the picture size and the corresponding relation of focal length prestored, it is determined that corresponding with the size of the picture area Target focal length.
Alternatively, processor 701 is taken pictures according to the target focal length, when obtaining target image, specifically for:
According to the target focal length, the preview image in the range of the picture area is obtained;
The preview image got is included into the preview interface of taking pictures in mobile terminal;
When user interface 703 receives the photographing instruction of user's input, it is displayed in the preview interface of taking pictures The preview image generates target image.
Mobile terminal 700 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
The mobile terminal 700 of the embodiment of the present invention, the photograph subject selected by obtaining user needs the picture area shown Domain, and the target focal length for determining to take pictures used according to the size of picture area, and then clapped according to the target focal length of determination According to acquisition target image.It follows that embodiments of the invention, the photograph subject that can be selected according to user needs what is shown Picture size, it is determined that used focal length of taking pictures so that focal length can disposably be adjusted to ideal and taken pictures picture size, be solved The problem of repeatedly scaling is to focus relatively complicated back and forth is needed in the prior art.
Embodiments of the invention additionally provide a kind of mobile terminal, and the mobile terminal can be mobile phone, tablet personal computer, individual Digital assistants (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..As shown in figure 8, the mobile terminal 800 Including radio frequency (Radio Frequency, RF) circuit 810, memory 820, input block 830, display unit 840, processor 860th, voicefrequency circuit 870, WiFi (Wireless Fidelity) modules 880 and power supply 890.
Wherein, input block 830 can be used for the numeral or character information for receiving user's input, and produce and mobile terminal The signal input that 800 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 830 can With including contact panel 831.Contact panel 831, also referred to as touch-screen, collect touch operation of the user on or near it (such as user uses the operations of any suitable object or annex on contact panel 831 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment means.Optionally, contact panel 831 may include touch detecting apparatus and touch controller Two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, Give the processor 860 again, and the order sent of reception processing device 860 and can be performed.Furthermore, it is possible to using resistance-type, The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 831.Except contact panel 831, input block 830 can also include other input equipments 832, and other input equipments 832 can include but is not limited to physical keyboard, function key One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 840 can be used for information and the movement for showing the information inputted by user or being supplied to user The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hairs The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 841.
It should be noted that contact panel 831 can cover display panel 841, touch display screen is formed, when touch display screen inspection Measure after the touch operation on or near it, processor 860 is sent to determine the type of touch event, with preprocessor 860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 860 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone Various pieces, software program and/or module in first memory 821 are stored in by operation or execution, and call storage Data in second memory 822, perform the various functions and processing data of mobile terminal 800, so as to mobile terminal 800 Carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/ Or the data in the second memory 822 so that the photograph subject that processor 860 obtains user's selection needs the picture area shown Domain;According to the size of the picture area, it is determined that the target focal length for taking pictures used;Taken pictures according to the target focal length, Obtain target image.
Alternatively, processor 860 is specific to use when the photograph subject for obtaining user's selection needs the picture area shown In:
When input block 830 detects the slide that user applies in the preview interface of taking pictures of mobile terminal, obtain Take the original position and end position for sliding behaviour;
Using the line between the original position and the end position as diagonal, a rectangular area, the square are determined The length direction or width in shape region and the diameter parallel of the mobile terminal;
The photograph subject rectangular area being defined as in the rectangular area needs the picture area shown.
Alternatively, processor 860 is using the line between the original position and the end position as diagonal, it is determined that After one rectangular area, it is additionally operable to:
Control display unit 840 shows the border of the rectangular area in the preview interface of taking pictures.
Alternatively, processor 860 is in the size according to the picture area, it is determined that take pictures used target focal length when, Specifically for:
According to the picture size and the corresponding relation of focal length prestored, it is determined that corresponding with the size of the picture area Target focal length
Alternatively, processor 860 is taken pictures according to the target focal length, when obtaining target image, specifically for:
According to the target focal length, the preview image in the range of the picture area is obtained;
The preview image got is included into the preview interface of taking pictures in mobile terminal;
When input block 830 receives the photographing instruction of user's input, it is displayed in the preview interface of taking pictures The preview image generates target image.
Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
The mobile terminal 800 of the embodiment of the present invention, the photograph subject selected by obtaining user needs the picture area shown Domain, and the target focal length for determining to take pictures used according to the size of picture area, and then clapped according to the target focal length of determination According to acquisition target image.It follows that embodiments of the invention, the photograph subject that can be selected according to user needs what is shown Picture size, it is determined that used focal length of taking pictures so that focal length can disposably be adjusted to ideal and taken pictures picture size, be solved The problem of repeatedly scaling is to focus relatively complicated back and forth is needed in the prior art.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (11)

1. a kind of photographic method of mobile terminal, it is characterised in that including:
Obtain the picture area that the photograph subject of user's selection needs to show;
According to the size of the picture area, it is determined that the target focal length for taking pictures used;
Taken pictures according to the target focal length, obtain target image.
2. according to the method described in claim 1, it is characterised in that the photograph subject for obtaining user's selection needs what is shown The step of picture area, including:
When detecting the slide that user applies in the preview interface of taking pictures of mobile terminal, the starting for sliding behaviour is obtained Position and end position;
Using the line between the original position and the end position as diagonal, a rectangular area, the rectangle region are determined The length direction or width in domain and the diameter parallel of the mobile terminal;
The photograph subject rectangular area being defined as in the rectangular area needs the picture area shown.
3. method according to claim 2, it is characterised in that described between the original position and the end position Line be diagonal, after the step of determining a rectangular area, methods described also includes:
The border of the rectangular area is shown in the preview interface of taking pictures.
4. according to the method described in claim 1, it is characterised in that the size according to the picture area, it is determined that taking pictures The step of target focal length used, including:
According to the picture size and the corresponding relation of focal length prestored, it is determined that target corresponding with the size of the picture area Focal length.
5. according to the method described in claim 1, it is characterised in that described to be taken pictures according to the target focal length, obtain mesh The step of logo image, including:
According to the target focal length, the preview image in the range of the picture area is obtained;
The preview image got is included into the preview interface of taking pictures in mobile terminal;
When receiving the photographing instruction of user's input, the preview image generation in the preview interface of taking pictures is displayed on Target image.
6. a kind of mobile terminal, it is characterised in that including:
Picture area determining module, for obtaining the picture area that the photograph subject of user's selection needs to show;
Focal length determining module, for the size according to the picture area, it is determined that the target focal length for taking pictures used;
Photo module, for being taken pictures according to the target focal length, obtains target image.
7. mobile terminal according to claim 6, it is characterised in that the picture area determining module, including:
Detection unit is operated, for detecting during slide that user applies in the preview interface of taking pictures of mobile terminal, is obtained Take the original position and end position for sliding behaviour;
Area determination unit, for using the line between the original position and the end position as diagonal, determining a square Shape region, the length direction or width of the rectangular area and the diameter parallel of the mobile terminal;
Picture area determining unit, for the photograph subject that the rectangular area is defined as in the rectangular area to be needed into display Picture area.
8. mobile terminal according to claim 7, it is characterised in that the picture area determining module also includes:
Border display unit, the border for showing the rectangular area in the preview interface of taking pictures.
9. mobile terminal according to claim 6, it is characterised in that the focal length determining module specifically for:
According to the picture size and the corresponding relation of focal length prestored, it is determined that target corresponding with the size of the picture area Focal length.
10. mobile terminal according to claim 6, it is characterised in that the photo module includes:
Image acquisition unit, for according to the target focal length, obtaining the preview image in the range of the picture area;
Image-display units, for the preview image got to be included into the preview interface of taking pictures in mobile terminal;
Image generation unit, for when receiving the photographing instruction of user's input, being displayed in the preview interface of taking pictures The preview image generation target image.
11. a kind of mobile terminal, it is characterised in that including:Memory, processor and store on a memory and can be in processor The computer program of upper operation, is realized as described in any one of Claims 1 to 5 described in the computing device during computer program Mobile terminal photographic method in step.
CN201710363236.5A 2017-05-22 2017-05-22 A kind of photographic method and mobile terminal of mobile terminal Active CN107026982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710363236.5A CN107026982B (en) 2017-05-22 2017-05-22 A kind of photographic method and mobile terminal of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710363236.5A CN107026982B (en) 2017-05-22 2017-05-22 A kind of photographic method and mobile terminal of mobile terminal

Publications (2)

Publication Number Publication Date
CN107026982A true CN107026982A (en) 2017-08-08
CN107026982B CN107026982B (en) 2019-05-17

Family

ID=59528450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710363236.5A Active CN107026982B (en) 2017-05-22 2017-05-22 A kind of photographic method and mobile terminal of mobile terminal

Country Status (1)

Country Link
CN (1) CN107026982B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259752A (en) * 2018-02-27 2018-07-06 北京智启科技有限公司 A kind of image pickup method and system
CN109274888A (en) * 2018-09-27 2019-01-25 惠州Tcl移动通信有限公司 A kind of method taken pictures, storage medium and mobile terminal
CN110602401A (en) * 2019-09-17 2019-12-20 维沃移动通信有限公司 Photographing method and terminal
CN112087579A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN112203013A (en) * 2020-08-31 2021-01-08 努比亚技术有限公司 Automatic zooming method, automatic zooming device, terminal and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808193A (en) * 2009-02-17 2010-08-18 奥林巴斯映像株式会社 Imaging device and imaging device control method
CN102404494A (en) * 2010-09-08 2012-04-04 联想(北京)有限公司 Electronic equipment and method for acquiring image in determined area
US20120120277A1 (en) * 2010-11-16 2012-05-17 Apple Inc. Multi-point Touch Focus
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN104869283A (en) * 2015-05-11 2015-08-26 联想(北京)有限公司 Shooting method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808193A (en) * 2009-02-17 2010-08-18 奥林巴斯映像株式会社 Imaging device and imaging device control method
CN102404494A (en) * 2010-09-08 2012-04-04 联想(北京)有限公司 Electronic equipment and method for acquiring image in determined area
US20120120277A1 (en) * 2010-11-16 2012-05-17 Apple Inc. Multi-point Touch Focus
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN104869283A (en) * 2015-05-11 2015-08-26 联想(北京)有限公司 Shooting method and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259752A (en) * 2018-02-27 2018-07-06 北京智启科技有限公司 A kind of image pickup method and system
CN109274888A (en) * 2018-09-27 2019-01-25 惠州Tcl移动通信有限公司 A kind of method taken pictures, storage medium and mobile terminal
CN109274888B (en) * 2018-09-27 2020-08-11 惠州Tcl移动通信有限公司 Photographing method, storage medium and mobile terminal
CN110602401A (en) * 2019-09-17 2019-12-20 维沃移动通信有限公司 Photographing method and terminal
CN112203013A (en) * 2020-08-31 2021-01-08 努比亚技术有限公司 Automatic zooming method, automatic zooming device, terminal and readable storage medium
CN112087579A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN112087579B (en) * 2020-09-17 2022-08-12 维沃移动通信有限公司 Video shooting method and device and electronic equipment

Also Published As

Publication number Publication date
CN107026982B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN106657793B (en) A kind of image processing method and mobile terminal
CN105847674B (en) A kind of preview image processing method and mobile terminal based on mobile terminal
CN106791400B (en) A kind of image display method and mobile terminal
CN107257439A (en) A kind of image pickup method and mobile terminal
CN107026982A (en) The photographic method and mobile terminal of a kind of mobile terminal
CN106998428A (en) The image pickup method and mobile terminal of a kind of mobile terminal
CN107395998A (en) A kind of image capturing method and mobile terminal
CN107147837A (en) The method to set up and mobile terminal of a kind of acquisition parameters
CN106648382B (en) A kind of picture browsing method and mobile terminal
CN106534685A (en) Panoramic image generation method and mobile terminal
CN106648035A (en) Image resolution adjusting method and mobile terminal
CN106791357A (en) A kind of image pickup method and mobile terminal
CN107390990A (en) The method of adjustment and mobile terminal of a kind of image
CN107181913A (en) A kind of photographic method and mobile terminal
CN107509030A (en) A kind of focusing method and mobile terminal
CN107395976A (en) A kind of acquisition parameters method to set up and mobile terminal
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN105959574B (en) A kind of photographic method and mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN107172347A (en) A kind of photographic method and terminal
CN106993139B (en) A kind of image pickup method and mobile terminal
CN106888354A (en) A kind of singlehanded photographic method and mobile terminal
CN106937054A (en) Take pictures weakening method and the mobile terminal of a kind of mobile terminal
CN106791422A (en) A kind of image processing method and mobile terminal
CN106911897A (en) A kind of determination method and mobile terminal for shooting focus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20171107

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant after: VIVO MOBILE COMMUNICATION CO., LTD.

Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant before: VIVO MOBILE COMMUNICATION CO., LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200527

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Co-patentee before: Wewo Mobile Communication Co. Ltd. Beijing branch

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right