CN105681654A - Photographing method and mobile terminal - Google Patents

Photographing method and mobile terminal Download PDF

Info

Publication number
CN105681654A
CN105681654A CN201610018532.7A CN201610018532A CN105681654A CN 105681654 A CN105681654 A CN 105681654A CN 201610018532 A CN201610018532 A CN 201610018532A CN 105681654 A CN105681654 A CN 105681654A
Authority
CN
China
Prior art keywords
target area
photo
mobile terminal
finder
module
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.)
Pending
Application number
CN201610018532.7A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610018532.7A priority Critical patent/CN105681654A/en
Publication of CN105681654A publication Critical patent/CN105681654A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23216Control of parameters, e.g. field or angle of view of camera via graphical user interface, e.g. touchscreen

Abstract

The invention discloses a mobile terminal. The mobile terminal comprises an area determining module, wherein after the mobile terminal enters a photographing mode, if an area setting operation of a user in the viewing frame of the display interface of the mobile terminal is detected, the area determining module determines a target area according to the area setting operation. The mobile terminal also comprises an obtaining and storing module, wherein if a photographing instruction is detected, the first picture of the viewing frame and the second picture of the target area are obtained. The invention also discloses a photographing method. The method and the mobile terminal are simple and convenient in operation; and the user experience is improved.

Description

Photographic method and mobile terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of photographic method and mobile terminal.
Background technology
Along with developing rapidly of communication technology, the camera of smart mobile phone, pixel scale, phase place focusing speed, photo post processing effect all rapidly promoted. But, after one photo of shooting, from this photo, if desired extract a part of image, it is necessary to spend the longer time to perform lookup, the operation of the series of complex such as editor, selection, preservation, operation complexity height, Consumer's Experience is unfriendly.
Summary of the invention
Present invention is primarily targeted at a kind of photographic method of proposition and mobile terminal, it is intended to solve the disagreeableness problem of Consumer's Experience that in prior art, the operation complexity height of extraction unit partial image brings from the photo shot.
For achieving the above object, a kind of mobile terminal provided by the invention, described mobile terminal includes:
Area determination module, for after mobile terminal enters exposal model, if detecting, user region in the view-finder of described mobile terminal display interface arranges operation, then arrange operation according to described region and determine target area;
Obtain and preserve module, if for photographing instruction being detected, then obtaining and preserve the first photo of described view-finder and the second photo of described target area.
Alternatively, described mobile terminal also includes:
Display module, for after described area determination module determines described target area, shows the preview effect of preset filter in described view-finder in other regions except described target area;
Determining module, if for detecting that the selection of filter is operated by described user, and described selection operation meets preset condition, it is determined that photographing instruction detected;
And described acquisition and preserve module specifically for:
Obtain according to the target filter selected and preserve the first photo of described view-finder and the second photo of described target area.
Alternatively, described acquisition and preserve module, including:
First obtains and preserves module, for being processed according to described target filter by the image in the described view-finder obtained, obtains and preserves described first photo;
Second obtains and preserves module, for according to described first photograph acquisition the second photo preserving described target area.
Alternatively, described second obtain and preserve module specifically for:
From described first photo, extract the pixel value of all pixels being in described target area, utilize the pixel value of described all pixels to generate described second photo, and preserve described second photo;
Or, the pixel value of the pixel being in outside described target area in described first photo is set to presetted pixel value, obtains described second photo, and preserve described second photo.
Alternatively, described mobile terminal also includes:
Described setting after target area is determined in operation according to described region also includes:
Mobile module, for, after described area determination module determines described target area, if the described user drag operation to described target area being detected, then moving position in described view-finder, the described target area according to described drag operation.
Alternatively, described region arranges operation and includes slip touch operation;
Then described area determination module includes:
Track determines module, for after described mobile terminal enters exposal model, if user's slip touch operation in the view-finder of described mobile terminal display interface being detected, it is determined that described slip touch operation sliding trace in described view-finder;
Shape determination module, for arranging the regular shape that rule determines that described sliding trace is corresponding in described view-finder according to the region preset, the region surrounded by described regular shape is as described target area.
For achieving the above object, the present invention also provides for a kind of photographic method, and described method includes:
After mobile terminal enters exposal model, if detecting, user region in the view-finder of described mobile terminal display interface arranges operation, then arrange operation according to described region and determine target area;
If photographing instruction being detected, then obtain and preserve the first photo of described view-finder and the second photo of described target area.
Alternatively, described setting after target area is determined in operation according to described region also includes:
Described view-finder shows in other regions except described target area the preview effect of preset filter;
If detecting, the selection of filter is operated by described user, and described selection operation meets preset condition, it is determined that photographing instruction detected;
And the second photo of described acquisition and the first photo and described target area that preserve described view-finder includes:
Obtain according to the target filter selected and preserve the first photo of described view-finder and the second photo of described target area.
Alternatively, the described target filter according to selection obtains and preserves the first photo of described view-finder and the second photo of described target area, including:
Image in the described view-finder obtained is processed according to described target filter, obtains and preserve described first photo;
According to described first photograph acquisition the second photo preserving described target area.
Alternatively, described according to described first photograph acquisition and preserve the second photo of described target area and include:
From described first photo, extract the pixel value of all pixels being in described target area, utilize the pixel value of described all pixels to generate described second photo, and preserve described second photo;
Or, the pixel value of the pixel being in outside described target area in described first photo is set to presetted pixel value, obtains described second photo, and preserve described second photo.
Alternatively, described setting after target area is determined in operation according to described region also includes:
If the described user drag operation to described target area being detected, then move position in described view-finder, the described target area according to described drag operation.
Alternatively, described region arranges operation and includes slip touch operation;
Then described operation is set according to described region determines target area, including:
Determine described slip touch operation sliding trace in described view-finder;
Arranging, according to default region, the regular shape that rule determines that described sliding trace is corresponding in described view-finder, the region surrounded by described regular shape is as described target area.
In the mobile terminal that the present invention proposes, inclusion region determines module, obtain and preserve module, wherein, after mobile terminal enters exposal model, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then area determination module arranges operation according to region and determines target area, if photographing instruction being detected, then obtain and preserve module and obtain and preserve the first photo of view-finder and the second photo of target area, making just can to needing the target area extracting image to be configured before taking pictures, the second photo of this target area can be obtained after end of taking pictures, easy and simple to handle, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic diagram of the functional module of mobile terminal in first embodiment of the invention;
Fig. 4 is the schematic diagram of the functional module of mobile terminal in second embodiment of the invention;
Fig. 5 a to Fig. 5 b is the schematic diagram at the interface of view-finder in the embodiment of the present invention;
Fig. 6 is the schematic diagram of the refinement functional module of area determination module 301 in the second embodiment shown in Fig. 4 of the present invention;
Fig. 7 is the schematic diagram of sliding trace in view-finder in the embodiment of the present invention;
Fig. 8 a to Fig. 8 c is the schematic diagram of sliding trace and regular shape in the embodiment of the present invention;
Fig. 9 is the schematic diagram of the acquisition in the second embodiment shown in Fig. 4 of the present invention and the refinement functional module preserving module 302;
Fig. 9 a to Fig. 9 c is the schematic diagram of target area in the embodiment of the present invention;
Figure 10 is the schematic flow sheet of photographic method in third embodiment of the invention;
Figure 11 is the schematic flow sheet of photographic method in fourth embodiment of the invention;
Figure 12 is the schematic flow sheet of the refinement step of step 1102 in the 4th embodiment shown in Figure 11 of the present invention;
Figure 13 is the schematic flow sheet of the refinement step of step 1104 in the 4th embodiment shown in Figure 11 of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing. In follow-up description, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for being conducive to the explanation of the present invention, itself do not have specific meaning. Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners. Such as, the terminal described in the present invention can include the mobile terminal of such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as numeral TV, desk computer etc. Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for the element of mobile purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal realizing each one optional mobile terminal of embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user input unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 etc. Fig. 1 illustrates the mobile terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated. Can alternatively implement more or less of assembly. Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network. Such as, wireless communication unit 110 can include at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 manages server via broadcast channel from external broadcasting and receives broadcast singal and/or broadcast related information. Broadcast channel can include satellite channel and/or terrestrial channel. Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or broadcast singal that reception is previously created and/or broadcast related information and send it to the server of terminal. Broadcast singal can include TV broadcast singal, radio signals, data broadcasting signal etc. And, broadcast singal may further include the broadcast singal combined with TV or radio signals. Broadcast related information can also provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112. Broadcast singal can exist in a variety of manners, such as, it can exist with the electronic program guides (EPG) of DMB (DMB), the form of the electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H). Broadcast reception module 111 can be passed through to use various types of broadcast systems to receive signal broadcast. Especially, broadcast reception module 111 can be passed through to use such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), forward link media (MediaFLO) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receive digital broadcasting. Broadcast reception module 111 may be constructed such that the various broadcast systems and above-mentioned digit broadcasting system that are adapted to provide for broadcast singal. The broadcast singal and/or the broadcast related information that receive via broadcast reception module 111 can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals at least one in base station (such as, access point, node B etc.), exterior terminal and server and/or receives from it radio signal. Such radio signal can include voice call signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internally or externally be couple to terminal. Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the module for supporting junction service. Some examples of short-range communication technology include bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal. The typical case of positional information module is GPS (global positioning system). According to current technology, GPS module calculates from the range information of three or more satellites and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude with highly accurately calculate three-dimensional current location information. Currently, the method for calculating position and temporal information uses three satellites and the error by the position using an other satellite correction to calculate and temporal information. Additionally, GPS module can calculate velocity information by Continuous plus current location information in real time.
A/V input block 120 is used for receiving audio or video signal. A/V input block 120 can include camera 121 and mike 122, and the view data of the camera 121 static images to being obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes. Picture frame after process may be displayed on display unit 151. Picture frame after camera 121 processes can be stored in memorizer 160 (or other storage medium) or be transmitted via wireless communication unit 110, it is possible to provide two or more cameras 1210 according to the structure of mobile terminal. Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by mike 122. Audio frequency (voice) data after process can be converted to the form output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model. Mike 122 can implement various types of noise elimination (or suppression) algorithm to eliminate (or suppression) in the noise received and produce in the process of transmission audio signal or interference.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input. User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electric capacity etc. the sensitive component of change), roller, rocking bar etc. Especially, when touch pad is superimposed upon on display unit 151 as a layer, it is possible to form touch screen.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, mobile terminal 100 acceleration or deceleration move and direction etc., and generate the order of operation for controlling mobile terminal 100 or signal. Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense this sliding-type phone and open or close.It addition, sensing unit 140 can detect power subsystem 190 and whether provide whether electric power or interface unit 170 couple with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through. Such as, external device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port of the device with identification module, audio frequency input/output (I/O) port, video i/o port, ear port etc. Identification module can be that storage is for verifying that user uses the various information of mobile terminal 100 and can include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc. It addition, the device (hereinafter referred to " identifying device ") with identification module can take the form of smart card, therefore, identify that device can be connected with mobile terminal 100 via port or other connecting device. Interface unit 170 may be used for receiving from the input (such as, data message, electric power etc.) of external device (ED) and the one or more elements being transferred in mobile terminal 100 by the input received or may be used for transmission data between mobile terminal and external device (ED).
Additionally, when mobile terminal 100 is connected with external base, interface unit 170 can serve as and allows to provide the path of mobile terminal 100 or can serve as to allow to be transferred to the path of mobile terminal from the various command signals of base input by it from base electric power by it. May serve as whether identification mobile terminal is accurately fitted within the signal base from the various command signals of base input or electric power. Output unit 150 is configured to provide output signal (such as, audio signal, video signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner. Output unit 150 can include display unit 151 etc.
Display unit 151 may be displayed on the information processed in mobile terminal 100. Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show the user interface (UI) relevant with call or other communicate (such as, text messaging, multimedia file download etc.) or graphic user interface (GUI). When being in video calling pattern or image capture mode when mobile terminal 100, display unit 151 can show the image of image and/or the reception caught, UI or GUI illustrating video or image and correlation function etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch screen time, display unit 151 can serve as input equipment and output device. Display unit 151 can include at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. Some in these display may be constructed such that transparence is to allow user to watch from outside, and this is properly termed as transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc. According to the specific embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch input pressure and touch input position and touch input area.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can temporarily store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output. And, memorizer 160 can store the vibration about the various modes exported when touching and being applied to touch screen and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium includes flash memory, hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. And, mobile terminal 100 can be connected the network storage device cooperation of the storage function performing memorizer 160 with by network.
Controller 180 generally controls the overall operation of mobile terminal. Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process. It addition, controller 180 can include the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can construct in controller 180, or it is so structured that separates with controller 180. Controller 180 can perform pattern recognition process, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides the suitable electric power operated needed for each element and assembly.
Various embodiment described herein can to use such as computer software, hardware or its any combination of computer-readable medium to implement. Hardware is implemented, embodiment described herein can pass through to use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, at least one that is designed to perform in the electronic unit of function described herein to implement, in some cases, such embodiment can be implemented in controller 180. Implementing for software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation. Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function. Below, for the sake of brevity, by the slide type mobile terminal in the various types of mobile terminals describing such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily. Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that utilization operates via such as wired and wireless communication system and the satellite-based communication system of frame or packet transmission data.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer. Such as, the air interface used by communication system includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and UMTS (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc. As non-limiting example, as explained below relates to cdma communication system, but such instruction is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280. MSC280 is configured to form interface with Public Switched Telephony Network (PSTN) 290. MSC280 is also structured to and the BSC275 formation interface that can be couple to base station 270 via back haul link. Back haul link can construct according to any one in some interfaces that oneself knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL. It will be appreciated that system as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or target area), by each subregion of multidirectional antenna or the antenna covering pointing to specific direction radially away from BS270. Or, each subregion can be covered by two or more antennas for diversity reception. Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel. BS270 can also be referred to as base station transceiver subsystem (BTS) or other equivalent terms. In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270. Base station can also be referred to as " cellular station ". Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal 100 of operation by broadcsting transmitter (BT) 295. Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal that reception is sent by BT295. In fig. 2 it is shown that several global positioning systems (GPS) satellite 300. Satellite 300 helps to position at least one in multiple mobile terminals 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtains useful location information. Positional information module 115 as shown in Figure 1 is generally configured to coordinate the location information wanted with acquisition with satellite 300, and the typical case of this positional information module 115 is GPS. Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other technology of the position of mobile terminal can be followed the tracks of. It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminals 100. Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of. Each reverse link signal that certain base station 270 receives is processed in specific BS270. ?espectful rose neon ? bitter edible plant ascarid ? 8. ? Hui Di Guo SC275. BSC provides call resource distribution and the mobile management function of the coordination of soft switching process included between BS270. The data received also are routed to MSC280 by BSC275, and it provides the extra route service for forming interface with PSTN290. Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly controls BS270 so that forward link signals to be sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, it is proposed to each embodiment of the inventive method.
Due in prior art shooting one photo after, from this photo, if desired extract a part of image, it is necessary to spend the longer time to perform the operation of a series of duplications such as lookup, editor, selection and preservation, operation complexity height, Consumer's Experience is unfriendly.
For this, the present invention provides a solution, it is possible to effectively simplifies the operation from photograph acquisition parts of images, improves Consumer's Experience.
Refer to Fig. 3, for the schematic diagram of the functional module of mobile terminal in first embodiment of the invention, including: area determination module 301, obtain and preserve module 302.
Wherein, area determination module 301, for after mobile terminal enters exposal model, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then arrange operation according to region and determine target area;
In embodiments of the present invention, all having camera application program in mobile terminal, user can start this camera application program by the icon of the camera application program on click mobile terminal so that mobile terminal enters exposal model.
Wherein, mobile terminal, after entering exposal model, its display interface will show view-finder.
In embodiments of the present invention, mobile terminal is the mobile terminal with touch screen, user can pass through finger or screen touch pen or other can be mutual with mobile terminal object in the view-finder of the display interface of mobile terminal, carry out region operation be set, and if mobile terminal detects that user region in the view-finder of its display interface arranges operation, area determination module 301 will arrange operation according to this region and determine target area.
In embodiments of the present invention, it can be slip touch operation that region arranges operation, or clicking operation etc., if it is slip touch operation that this region arranges operation, then area determination module 301 can determine target area according to the sliding trace of this slip touch operation, if this region arranges operation for clicking operation, then area determination module 301 will determine target area according to this clicking operation position in view-finder. Such as: if clicking operation comprises a position, then using this position as center, presetting length determines the target area of circle as radius, if this clicking operation comprises two positions, then the line of these two positions is determined as the diagonal of rectangle the target area of rectangle, if this clicking operation comprises not three positions in the same horizontal line, in the target area that these three positions are determined as three summits of triangle triangle.
Wherein, user performs region when arranging operation in view-finder, watching for the ease of user and arrange effect, mobile terminal arranges, according to region, the target area that operation obtains by showing in view-finder, and user can pass through deletion action and delete the unsatisfied target area of user.
It should be noted that, in embodiments of the present invention, if user performs many sub-regions in view-finder and arranges operation, then the area determination module 301 in mobile terminal generates a corresponding target area by arranging operation according to each region, therefore, target area in the embodiment of the present invention can be target area can also be two or more target area, if and there is completely overlapped target area, then using completely overlapped target area as a target area, if target area is not exclusively overlapping, then by not exclusively overlapping target area as independent target area.
Obtain and preserve module 302, if for photographing instruction being detected, then obtaining and preserve the first photo of view-finder and the second photo of target area.
In embodiments of the present invention, mobile terminal is after determining target area, if photographing instruction being detected, then obtains and preservation module 302 obtains and preserve the first photo of view-finder and the second photo of target area.
In embodiments of the present invention, after mobile terminal enters exposal model, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then area determination module 301 arranges operation according to this region and determines target area, and if photographing instruction detected, then obtain and preserve module 302 and obtain and preserve the first photo of this view-finder and the second photo of target area, making just can to needing the target area extracting image to be configured before taking pictures, the second photo of this target area can be obtained after end of taking pictures, easy and simple to handle, improve Consumer's Experience.
Refer to Fig. 4, for the schematic diagram of the functional module of mobile terminal in second embodiment of the invention, including the area determination module 301 in first embodiment as shown in Figure 3, obtain and preserve module 302, and similar to the content described in first embodiment shown in Fig. 3, do not repeat herein.
In embodiments of the present invention, mobile terminal also includes: display module 401, determine module 402, mobile module 403.
Wherein, display module 401, for after area determination module 301 determines target area, view-finder shows in other regions except target area the preview effect of preset filter;
Confirm whether user has completed the setting of target area for the ease of mobile terminal, after user arranges operation setting target area by region in view-finder, can pass through to click the region ACK button of display on display interface, to confirm the setting being complete target area, also illustrate that area determination module 301 completes the determination of target area simultaneously.
In embodiments of the present invention, after area determination module 301 determines target area, display module 401 will show the preview effect of preset filter in other region except target area in view-finder.
Wherein, preset filter may include that standard, black and white, vividly, in the past, the isotype such as morning twilight, autumn scenery, minute surface, flake. And the surrounding that preset filter can be centered around target area is shown. And the preview effect of preset filter is shown in the regional extent of filter.
It is only a target area for target area, refers to Fig. 5 a and Fig. 5 b, for the schematic diagram at the interface of view-finder in the embodiment of the present invention. Wherein, the rectangle frame of the filter in Fig. 5 a is the regional extent of filter, and the circular frame of the filter in Fig. 5 b is the regional extent of filter.
In embodiments of the present invention, it is determined that module 402, if for detecting that the selection of filter is operated by user, and operation is selected to meet preset condition, it is determined that photographing instruction to be detected;
And obtain and preserve module 302 specifically for:
Obtain and preserve the first photo of view-finder and the second photo of target area according to the target filter selected.
In embodiments of the present invention, after mobile terminal shows preset filter in view-finder, the preset filter in view-finder can be selected by user, and if detect that the selection of filter is operated by user, and this selection operation meets preset condition, it is determined that photographing instruction detected.
Wherein, selecting operation can be pressing operation, and is on the target filter being pressed against in view-finder user and selecting.
Wherein, meeting preset condition can be user when performing pressing operation, and the force value of this pressing operation is more than preset pressure value, or pressing duration is more than preset duration, or, force value more than preset pressure value and pressing duration more than preset duration.
Therefore, in embodiments of the present invention, user can pass through perform pressing operation and make this pressing operation meet the mode of preset condition, realize the selection of filter and triggering of taking pictures, and be only realized the selection of filter and triggering of taking pictures by a pressing operation, operate and trigger action of taking pictures without the selection performing filter respectively, it is possible to the operation that the effective user of saving performs, improve Consumer's Experience.
Wherein, if filter is not carried out selecting operation by user, and click directly on button of taking pictures, then obtain and preserve module 302 using the filter of default mode as target filter, obtain and preserve the second photo of the first photo in view-finder and target area, wherein, the filter of this default mode is preferably mode standard.
In embodiments of the present invention, mobile terminal also includes:
Mobile module 403, for after area determination module 301 determines target area, if detecting user's drag operation to target area, then according to drag operation moving object region position in view-finder.
In embodiments of the present invention, area determination module 301 is after determining target area, in order to provide the user with better experience, target area in view-finder can be carried out drag operation by user, and if the drag operation of user detected, then mobile module 403 is according to drag operation moving object region position in view-finder so that target area can on customer satisfaction system position.
Wherein, if target area is carried out drag operation by user, have shown that preset filter in view-finder, then user is in the process in drag target region, and the change of the position along with target area is changed by mobile terminal by controlling this preset filter.
In embodiments of the present invention, after mobile terminal enters exposal model, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then area determination module 301 arranges operation according to this region and determines target area, and in view-finder, the preview effect of preset filter in other regions except target area, is shown by display module 401, if detecting, the selection of filter is operated by user, and this selection operation meets preset condition, then determine that module 402 is determined and photographing instruction detected, and obtained and preserve the first photo of this view-finder and the second photo of target area by obtaining and preserve module 302, making just can to needing the target area extracting image to be configured before taking pictures, the second photo of this target area can be obtained after end of taking pictures, and can pass through to select to have operated the selection of filter and triggering of taking pictures, easy and simple to handle, improve Consumer's Experience. additionally, user can also pass through drag operation changes position in view-finder, target area, it is possible to provide the user better operating experience, meet the user demand of user.
Refer to Fig. 6, for the schematic diagram of the refinement functional module of area determination module 301 in the second embodiment shown in Fig. 4 of the present invention, including: track determines module 601, shape determination module 602;
Wherein, track determines module 601, for after mobile terminal enters exposal model, if user's slip touch operation in the view-finder of mobile terminal display interface being detected, it is determined that slip touch operation sliding trace in view-finder;
Shape determination module 602, for arranging the regular shape that rule determines that sliding trace is corresponding in view-finder according to the region preset, the region surrounded by regular shape is as target area.
In embodiments of the present invention, after mobile terminal enters exposal model, if user's slip touch operation in the view-finder of mobile terminal display interface being detected, then track determines that module 601 will determine this slip touch operation sliding trace in view-finder, and shape determination module 602 arranges, according to default region, the regular shape that rule determines that sliding trace is corresponding in view-finder, the region surrounded by regular shape is as target area.
Concrete, mobile terminal will set up two-dimensional coordinate system in view-finder, for instance can using the summit in the upper left corner of view-finder as coordinate origin, and the direction extended to the right by this initial point is as X-axis positive direction, and the direction that initial point downwardly extends is as Y-axis positive direction.
Track determines that module 601 will determine the slip touch operation sliding trace in view-finder minima X1 and maximum X2 in X-direction, and the minima Y1 and maximum Y2 in Y direction so that shape determination module 602 can utilize X1, X2, Y1 and Y2 to determine regular shape. Refer to Fig. 7, for the schematic diagram of sliding trace in view-finder in the embodiment of the present invention.
Wherein, having different regions for different regular shapes and arrange rule, shape determination module 602 will determine that the region which regular shape sliding trace specifically meets corresponding arranges rule.
Such as: if sliding trace meets first condition, then can determine that the regular shape that sliding trace is corresponding is rectangle, this first condition is as follows:
X2-X1 > A, and Y2-Y1 > B; And,
( X 2 - X 1 ) 2 + ( Y 2 - Y 1 ) 2 2 ≥ X 2 - X 1 And ( X 2 - X 1 ) 2 + ( Y 2 - Y 1 ) 2 2 ≥ Y 2 - Y 1
Wherein, A and B is default constant.
Referring to Fig. 8 a, for the schematic diagram of sliding trace in the embodiment of the present invention Yu regular shape, wherein, left side is sliding trace, and right side is based on the rectangle that sliding trace is determined.
Again such as: if sliding trace meets second condition, it is determined that the regular shape that sliding trace is corresponding is circular, and this second condition is as follows:
X2-X1=Y2-Y1=0;
And ( X 2 - X 1 ) 2 + ( Y 2 - Y 1 ) 2 2 = X 2 - X 1
Referring to Fig. 8 b, for the schematic diagram of sliding trace in the embodiment of the present invention Yu regular shape, wherein, left side is sliding trace, and right side is based on the circle that sliding trace is determined.
Again such as: if sliding trace meets third condition, it is determined that the regular shape that sliding trace is corresponding is triangle, and this third condition is as follows:
X2=X1 and Y2=Y1 and Y2-Y1 > C; Or; Y2=Y1 and X2=X1 and X2-X1 > D
Wherein, C and D is default constant.
Referring to Fig. 8 c, for the schematic diagram of sliding trace in the embodiment of the present invention Yu regular shape, wherein, left side is sliding trace, and right side is based on the triangle that sliding trace is determined.
It should be noted that in embodiments of the present invention, be only for regular shape be rectangle, circle and triangle illustrate, in actual applications, it is also possible to determine other regular shape based on sliding trace, do not limit herein.
In embodiments of the present invention, by determining regular shape based on the sliding trace of user's slip touch operation in view-finder, enabling the region surrounded by this regular shape is as target area, it is possible to effectively determine target area.
Refer to Fig. 9, for the acquisition in the second embodiment shown in Fig. 4 of the present invention and the schematic diagram of refinement functional module preserving module 302, including: first obtains and preserve module 901, second obtains and preservation module 902.
Wherein, first obtains and preserves module 901, for being processed according to target filter by the image in the view-finder of acquisition, obtains and preserves the first photo;
Second obtains and preserves module 902, for according to the first photograph acquisition the second photo preserving target area.
And second obtain and preserve module 902 specifically for: from the first photo, extract the pixel value of all pixels being in target area, utilize the pixel value of all pixels to generate the second photo, and preserve the second photo; Or, the pixel value of the pixel being in outside target area in the first photo is set to presetted pixel value, obtains the second photo, and preserve the second photo.
In embodiments of the present invention, detecting that the selection of filter is operated by user, and this selection operation meets preset condition, then the image in the view-finder of acquisition is processed by the first acquisition and preservation module 901 according to target filter, obtain the first photo, and preserve this first photo.
Wherein, after preserving the first photo, mobile terminal will determine the positional information of each pixel in this first photo.
It should be noted that when mobile terminal determines target area in view-finder, it is determined that target area positional information in view-finder. Second obtains and preserve module 902 can utilize the positional information of the pixel in the first photo to determine that pixel is whether in target area with target area positional information in view-finder.
In order to make it easy to understand, target area when being shaped as different regular shape is described in detail below, second obtains and preserve module determines the pixel whether method in target area, refers to Fig. 9 a-9c, for the schematic diagram of target area in the embodiment of the present invention.
In fig. 9 a, target area is rectangle, the respectively P1 (x1 of the apex coordinate on its diagonal, y1) and P2 (x2, y2), for pixel P (Xd, Yd), will determine that this pixel P is whether in the scope of target area as follows:
1, determine rectangle central point C (x, y), wherein, x=(x1+x2)/2, y=(y1+y2)/2;
2, central point C to the wide distance d1 of rectangle and the central point distance d2 to the length of rectangle is calculated;
Wherein, d1=(x2-x1)/2, d2=(y2-y1)/2;
3, the distance d of pixel P (Xd, Yd) to central point C is determined;
Wherein, d = ( X d - x ) 2 + ( Y d - y ) 2 2
If 4 d > d1 and d > d2, it is determined that pixel P is outside target area;
If d<d1 or d>d2, and x1≤Xd≤x2, and y1≤Yd≤y2, then this pixel P is in target area.
In figure 9b, target area is circular, its center of circle be P (x, y), radius is R, for pixel P (Xd, Yd), can determine that this pixel P (Xd, Yd) is whether in target area as follows:
1, pixel P (Xd, Yd) and center of circle P (x, the distance d between y) are determined;
Wherein, d = ( X d - x ) 2 + ( Y d - y ) 2 2 ;
If 2 d > R, then pixel P (Xd, Yd) is outside target area;
If d≤R, then pixel P (Xd, Yd) is in target area.
In Fig. 9 c, target area is triangle, the coordinate on its three summits respectively A (x1, y1), B (x2, y2) and C (x3, y3), for pixel P (Xd, Yd), can determine that this pixel P (Xd, Yd) is whether in target area as follows:
1, determine that three summits of triangle are to the vector of pixel P (Xd, Yd), are respectively as follows:
P A &RightArrow; = ( x 1 - X d , y 1 - Y d ) ;
P B &RightArrow; = ( x 2 - X d , y 2 - Y d ) ;
P C &RightArrow; = ( x 3 - X d , y 3 - Y d ) ;
2, calculate the multiplication cross of above-mentioned vector, be respectively as follows:
If 3Just it is all, or is all negative, it is determined that pixel P (Xd, Yd) is in target area;
IfIn have just have negative, it is determined that pixel P (Xd, Yd) is not in target area.
In embodiments of the present invention, by what the figure in view-finder was processed according to target filter, obtain the first photo, and according to this first photograph acquisition and the second photo preserving target area, make it possible to after once photo taking process, the second photo in the target area of pre-editing of taking pictures can be obtained, without obtaining this second photo by editing and processing upon taking a picture, can effectively save the operation of user, improve the experience of user.
Referring to Figure 10, for the schematic flow sheet of photographic method in third embodiment of the invention, the method includes:
Step 1001, entering after exposal model at mobile terminal, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then arrange operation according to region and determine target area;
In embodiments of the present invention, all having camera application program in mobile terminal, user can start this camera application program by the icon of the camera application program on click mobile terminal so that mobile terminal enters exposal model.
Wherein, mobile terminal, after entering exposal model, its display interface will show view-finder.
In embodiments of the present invention, mobile terminal is the mobile terminal with touch screen, user can pass through finger or screen touch pen or other can be mutual with mobile terminal object in the view-finder of the display interface of mobile terminal, carry out region operation be set, if and mobile terminal detects that user region in the view-finder of its display interface arranges operation, operation will be arranged according to this region and determine target area.
In embodiments of the present invention, it can be slip touch operation that region arranges operation, or clicking operation etc., if it is slip touch operation that this region arranges operation, then mobile terminal can determine target area according to the sliding trace of this slip touch operation, if this region arranges operation for clicking operation, then mobile terminal will determine target area according to this clicking operation position in view-finder. Such as: if clicking operation comprises a position, then using this position as center, presetting length determines the target area of circle as radius, if this clicking operation comprises two positions, then the line of these two positions is determined as the diagonal of rectangle the target area of rectangle, if this clicking operation comprises not three positions in the same horizontal line, in the target area that these three positions are determined as three summits of triangle triangle.
Wherein, user performs region when arranging operation in view-finder, watching for the ease of user and arrange effect, mobile terminal arranges, according to region, the target area that operation obtains by showing in view-finder, and user can pass through deletion action and delete the unsatisfied target area of user.
It should be noted that, in embodiments of the present invention, if user performs many sub-regions in view-finder and arranges operation, then mobile terminal arranges operation according to each region and generates a corresponding target area, therefore, target area in the embodiment of the present invention can be target area can also be two or more target area, if and there is completely overlapped target area, then using completely overlapped target area as a target area, if target area is not exclusively overlapping, then by not exclusively overlapping target area as independent target area.
If step 1002 detects photographing instruction, then obtain and preserve the first photo of view-finder and the second photo of target area.
In embodiments of the present invention, mobile terminal is after determining target area, if photographing instruction being detected, then obtains and preserve the first photo of view-finder and the second photo of target area.
In embodiments of the present invention, after mobile terminal enters exposal model, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then operation is set according to this region and determines target area, and if photographing instruction detected, then obtain and preserve the first photo of this view-finder and the second photo of target area, making just can to needing the target area extracting image to be configured before taking pictures, the second photo of this target area can be obtained after end of taking pictures, easy and simple to handle, improve Consumer's Experience.
Referring to Figure 11, for the schematic flow sheet of photographic method in fourth embodiment of the invention, the method includes:
Step 1101, entering after exposal model at mobile terminal, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then arrange operation according to region and determine target area;
The content that step 1101 describes to step 1001 in the 3rd embodiment shown in Figure 10 is similar, does not repeat herein.
Step 1102, in view-finder, in other regions except target area, show the preview effect of preset filter;
Confirm whether user has completed the setting of target area for the ease of mobile terminal, after user arranges operation setting target area by region in view-finder, can pass through to click the region ACK button of display on display interface, to confirm the setting being complete target area, also illustrate that the determination having been completed target area simultaneously.
In embodiments of the present invention, after determining target area, mobile terminal will show the preview effect of preset filter in other region except target area in view-finder.
Wherein, preset filter may include that standard, black and white, vividly, in the past, the isotype such as morning twilight, autumn scenery, minute surface, flake. And the surrounding that preset filter can be centered around target area is shown. And the preview effect of preset filter is shown in the regional extent of filter.
It is only a target area for target area, refers to Fig. 5 a and Fig. 5 b, for the schematic diagram at the interface of view-finder in the embodiment of the present invention. Wherein, the rectangle frame of the filter in Fig. 5 a is the regional extent of filter, and the circular frame of the filter in Fig. 5 b is the regional extent of filter.
If step 1103 detects that the selection of filter is operated by user, and operation is selected to meet preset condition, it is determined that photographing instruction to be detected;
Step 1104, obtain and preserve the second photo of the first photo of view-finder and target area according to the target filter selected.
In embodiments of the present invention, after mobile terminal shows preset filter in view-finder, the preset filter in view-finder can be selected by user, and if detect that the selection of filter is operated by user, and this selection operation meets preset condition, it is determined that photographing instruction detected.
Wherein, selecting operation can be pressing operation, and is on the target filter being pressed against in view-finder user and selecting.
Wherein, meeting preset condition can be user when performing pressing operation, and the force value of this pressing operation is more than preset pressure value, or pressing duration is more than preset duration, or, force value more than preset pressure value and pressing duration more than preset duration.
Therefore, in embodiments of the present invention, user can pass through perform pressing operation and make this pressing operation meet the mode of preset condition, realize the selection of filter and triggering of taking pictures, and be only realized the selection of filter and triggering of taking pictures by a pressing operation, operate and trigger action of taking pictures without the selection performing filter respectively, it is possible to the operation that the effective user of saving performs, improve Consumer's Experience.
Wherein, if filter is not carried out selecting operation by user, and button of taking pictures is clicked directly on, then mobile terminal using the filter of default mode as target filter, obtaining and preserve the second photo of the first photo in view-finder and target area, wherein, the filter of this default mode is preferably mode standard.
In embodiments of the present invention, after mobile terminal enters exposal model, if detecting, user region in the view-finder of mobile terminal display interface arranges operation, then operation is set according to this region and determines target area, and in view-finder, in other regions except target area, show the preview effect of preset filter, if detecting, the selection of filter is operated by user, and this selection operation meets preset condition, then determine and photographing instruction detected, and obtain and preserve the first photo of this view-finder and the second photo of target area, making just can to needing the target area extracting image to be configured before taking pictures, the second photo of this target area can be obtained after end of taking pictures, and can pass through to select to have operated the selection of filter and triggering of taking pictures, easy and simple to handle, improve Consumer's Experience.
Preferably, in the embodiment of the present invention, mobile terminal after arranging operation and determining target area according to region, it is also possible to performs following steps:
If user's drag operation to target area being detected, then according to drag operation moving object region position in view-finder.
In embodiments of the present invention, after determining target area, in order to provide the user with better experience, target area in view-finder can be carried out drag operation by user, and if the drag operation of user detected, then according to drag operation moving object region position in view-finder so that target area can on customer satisfaction system position.
Wherein, if target area is carried out drag operation by user, have shown that preset filter in view-finder, then user is in the process in drag target region, and the change of the position along with target area is changed by mobile terminal by controlling this preset filter.
Collecting in the embodiment of the present invention, user can pass through drag operation and change position in view-finder, target area, it is possible to provides the user better operating experience, meets the user demand of user.
Refer to Figure 12, for the schematic flow sheet of the refinement step of step 1102 in the 4th embodiment shown in Figure 11 of the present invention, including:
Step 1201, determine slip touch operation sliding trace in view-finder;
The region that step 1202, basis are preset arranges the regular shape that rule determines that sliding trace is corresponding in view-finder, and the region surrounded by regular shape is as target area.
In embodiments of the present invention, after mobile terminal enters exposal model, if user's slip touch operation in the view-finder of mobile terminal display interface being detected, then will determine this slip touch operation sliding trace in view-finder, and the regular shape that rule determines that sliding trace is corresponding in view-finder is set according to default region, the region surrounded by regular shape is as target area.
Concrete, mobile terminal will set up two-dimensional coordinate system in view-finder, for instance can using the summit in the upper left corner of view-finder as coordinate origin, and the direction extended to the right by this initial point is as X-axis positive direction, and the direction that initial point downwardly extends is as Y-axis positive direction.
Mobile terminal determines the slip touch operation sliding trace in view-finder minima X1 and maximum X2 in X-direction, and the minima Y1 and maximum Y2 in Y direction so that shape determination module 602 can utilize X1, X2, Y1 and Y2 to determine regular shape. Refer to Fig. 7, for the schematic diagram of sliding trace in view-finder in the embodiment of the present invention.
Wherein, having different regions for different regular shapes and arrange rule, mobile terminal will determine that the region which regular shape sliding trace specifically meets corresponding arranges rule.
Such as: if sliding trace meets first condition, then can determine that the regular shape that sliding trace is corresponding is rectangle, this first condition is as follows:
X2-X1 > A, and Y2-Y1 > B; And,
( X 2 - X 1 ) 2 + ( Y 2 - Y 1 ) 2 2 &GreaterEqual; X 2 - X 1 And ( X 2 - X 1 ) 2 + ( Y 2 - Y 1 ) 2 2 &GreaterEqual; Y 2 - Y 1
Wherein, A and B is default constant.
Referring to Fig. 8 a, for the schematic diagram of sliding trace in the embodiment of the present invention Yu regular shape, wherein, left side is sliding trace, and right side is based on the rectangle that sliding trace is determined.
Again such as: if sliding trace meets second condition, it is determined that the regular shape that sliding trace is corresponding is circular, and this second condition is as follows:
X2-X1=Y2-Y1=0
And ( X 2 - X 1 ) 2 + ( Y 2 - Y 1 ) 2 2 = X 2 - X 1
Referring to Fig. 8 b, for the schematic diagram of sliding trace in the embodiment of the present invention Yu regular shape, wherein, left side is sliding trace, and right side is based on the circle that sliding trace is determined.
Again such as: if sliding trace meets third condition, it is determined that the regular shape that sliding trace is corresponding is triangle, and this third condition is as follows:
X2=X1 and Y2=Y1 and Y2-Y1 > C; Or; Y2=Y1 and X2=X1 and X2-X1 > D
Wherein, C and D is default constant.
Referring to Fig. 8 c, for the schematic diagram of sliding trace in the embodiment of the present invention Yu regular shape, wherein, left side is sliding trace, and right side is based on the triangle that sliding trace is determined.
It should be noted that in embodiments of the present invention, be only for regular shape be rectangle, circle and triangle illustrate, in actual applications, it is also possible to determine other regular shape based on sliding trace, do not limit herein.
In embodiments of the present invention, by determining regular shape based on the sliding trace of user's slip touch operation in view-finder, enabling the region surrounded by this regular shape is as target area, it is possible to effectively determine target area.
Refer to Figure 13, for the schematic flow sheet of the refinement step of step 1104 in the 4th embodiment shown in Figure 11 of the present invention, including:
Step 1301, the image in the view-finder of acquisition is processed according to target filter, obtain and preserve the first photo;
Step 1302, according to the first photograph acquisition the second photo preserving target area.
Wherein, according to the first photograph acquisition and preserve the second photo of target area and include in step 1302: extract the pixel value of all pixels being in target area from the first photo, the pixel value utilizing all pixels generates the second photo, and preserves the second photo; Or, the pixel value of the pixel being in outside target area in the first photo is set to presetted pixel value, obtains the second photo, and preserve the second photo.
In embodiments of the present invention, detecting that the selection of filter is operated by user, and this selection operation meets preset condition, then the image in the view-finder of acquisition is processed by mobile terminal according to target filter, obtains the first photo, and preserves this first photo.
Wherein, after preserving the first photo, mobile terminal will determine the positional information of each pixel in this first photo.
It should be noted that when mobile terminal determines target area in view-finder, it is determined that target area positional information in view-finder.Mobile terminal can utilize the positional information of the pixel in the first photo and target area positional information in view-finder to determine that pixel is whether in target area.
In order to make it easy to understand, target area when being shaped as different regular shape is described in detail below, second obtains and preserve module determines the pixel whether method in target area, refers to Fig. 9 a-9c, for the schematic diagram of target area in the embodiment of the present invention.
In fig. 9 a, target area is rectangle, the respectively P1 (x1 of the apex coordinate on its diagonal, y1) and P2 (x2, y2), for pixel P (Xd, Yd), will determine that this pixel P is whether in the scope of target area as follows:
1, determine rectangle central point C (x, y), wherein, x=(x1+x2)/2, y=(y1+y2)/2;
2, central point C to the wide distance d1 of rectangle and the central point distance d2 to the length of rectangle is calculated;
Wherein, d1=(x2-x1)/2, d2=(y2-y1)/2;
3, the distance d of pixel P (Xd, Yd) to central point C is determined;
Wherein, d = ( X d - x ) 2 + ( Y d - y ) 2 2
If 4 d > d1 and d > d2, it is determined that pixel P is outside target area;
If d<d1 or d>d2, and x1≤Xd≤x2, and y1≤Yd≤y2, then this pixel P is in target area.
In figure 9b, target area is circular, its center of circle be P (x, y), radius is R, for pixel P (Xd, Yd), can determine that this pixel P (Xd, Yd) is whether in target area as follows:
1, pixel P (Xd, Yd) and center of circle P (x, the distance d between y) are determined;
Wherein, d = ( X d - x ) 2 + ( Y d - y ) 2 2 ;
If 2 d > R, then pixel P (Xd, Yd) is outside target area;
If d≤R, then pixel P (Xd, Yd) is in target area.
In Fig. 9 c, target area is triangle, the coordinate on its three summits respectively A (x1, y1), B (x2, y2) and C (x3, y3), for pixel P (Xd, Yd), can determine that this pixel P (Xd, Yd) is whether in target area as follows:
1, determine that three summits of triangle are to the vector of pixel P (Xd, Yd), are respectively as follows:
P A &RightArrow; = ( x 1 - X d , y 1 - Y d ) ;
P B &RightArrow; = ( x 2 - X d , y 2 - Y d ) ;
P C &RightArrow; = ( x 3 - X d , y 3 - Y d ) ;
2, calculate the multiplication cross of above-mentioned vector, be respectively as follows:
If 3Just it is all, or is all negative, it is determined that pixel P (Xd, Yd) is in target area;
IfIn have just have negative, it is determined that pixel P (Xd, Yd) is not in target area.
In embodiments of the present invention, by what the figure in view-finder was processed according to target filter, obtain the first photo, and according to this first photograph acquisition and the second photo preserving target area, make it possible to after once photo taking process, the second photo in the target area of pre-editing of taking pictures can be obtained, without obtaining this second photo by editing and processing upon taking a picture, can effectively save the operation of user, improve the experience of user.
It should be noted that, in this article, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or device not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or device. When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of this key element, method, article or device.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to above-described embodiment method and realize, hardware can certainly be passed through, but in a lot of situation, the former is embodiment more preferably. Based on such understanding, the part that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, server, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (12)

1. a mobile terminal, it is characterised in that described mobile terminal includes:
Area determination module, for after mobile terminal enters exposal model, if detecting, user region in the view-finder of described mobile terminal display interface arranges operation, then arrange operation according to described region and determine target area;
Obtain and preserve module, if for photographing instruction being detected, then obtaining and preserve the first photo of described view-finder and the second photo of described target area.
2. mobile terminal according to claim 1, it is characterised in that
Described mobile terminal also includes:
Display module, for after described area determination module determines described target area, shows the preview effect of preset filter in described view-finder in other regions except described target area;
Determining module, if for detecting that the selection of filter is operated by described user, and described selection operation meets preset condition, it is determined that photographing instruction detected;
And described acquisition and preserve module specifically for:
Obtain according to the target filter selected and preserve the first photo of described view-finder and the second photo of described target area.
3. mobile terminal according to claim 2, it is characterised in that described acquisition and preservation module, including:
First obtains and preserves module, for being processed according to described target filter by the image in the described view-finder obtained, obtains and preserves described first photo;
Second obtains and preserves module, for according to described first photograph acquisition the second photo preserving described target area.
4. mobile terminal according to claim 3, it is characterised in that described second obtain and preserve module specifically for:
From described first photo, extract the pixel value of all pixels being in described target area, utilize the pixel value of described all pixels to generate described second photo, and preserve described second photo;
Or, the pixel value of the pixel being in outside described target area in described first photo is set to presetted pixel value, obtains described second photo, and preserve described second photo.
5. the mobile terminal according to Claims 1-4 any one, it is characterised in that described mobile terminal also includes:
Described setting after target area is determined in operation according to described region also includes:
Mobile module, for, after described area determination module determines described target area, if the described user drag operation to described target area being detected, then moving position in described view-finder, the described target area according to described drag operation.
6. the mobile terminal according to Claims 1-4 any one, it is characterised in that described region arranges operation and includes slip touch operation;
Then described area determination module includes:
Track determines module, for after described mobile terminal enters exposal model, if user's slip touch operation in the view-finder of described mobile terminal display interface being detected, it is determined that described slip touch operation sliding trace in described view-finder;
Shape determination module, for arranging the regular shape that rule determines that described sliding trace is corresponding in described view-finder according to the region preset, the region surrounded by described regular shape is as described target area.
7. a photographic method, it is characterised in that described method includes:
After mobile terminal enters exposal model, if detecting, user region in the view-finder of described mobile terminal display interface arranges operation, then arrange operation according to described region and determine target area;
If photographing instruction being detected, then obtain and preserve the first photo of described view-finder and the second photo of described target area.
8. method according to claim 7, it is characterised in that described setting after target area is determined in operation according to described region also includes:
Described view-finder shows in other regions except described target area the preview effect of preset filter;
If detecting, the selection of filter is operated by described user, and described selection operation meets preset condition, it is determined that photographing instruction detected;
And the second photo of described acquisition and the first photo and described target area that preserve described view-finder includes:
Obtain according to the target filter selected and preserve the first photo of described view-finder and the second photo of described target area.
9. method according to claim 8, it is characterised in that the described target filter according to selection obtains and preserves the first photo of described view-finder and the second photo of described target area, including:
Image in the described view-finder obtained is processed according to described target filter, obtains and preserve described first photo;
According to described first photograph acquisition the second photo preserving described target area.
10. method according to claim 9, it is characterised in that described according to described first photograph acquisition and preserve the second photo of described target area and include:
From described first photo, extract the pixel value of all pixels being in described target area, utilize the pixel value of described all pixels to generate described second photo, and preserve described second photo;
Or, the pixel value of the pixel being in outside described target area in described first photo is set to presetted pixel value, obtains described second photo, and preserve described second photo.
11. according to the method described in claim 7 to 10 any one, it is characterised in that described setting after target area is determined in operation according to described region also includes:
If the described user drag operation to described target area being detected, then move position in described view-finder, the described target area according to described drag operation.
12. according to the method described in claim 7 to 10 any one, it is characterised in that described region arranges operation and includes slip touch operation;
Then described operation is set according to described region determines target area, including:
Determine described slip touch operation sliding trace in described view-finder;
Arranging, according to default region, the regular shape that rule determines that described sliding trace is corresponding in described view-finder, the region surrounded by described regular shape is as described target area.
CN201610018532.7A 2016-01-12 2016-01-12 Photographing method and mobile terminal Pending CN105681654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610018532.7A CN105681654A (en) 2016-01-12 2016-01-12 Photographing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610018532.7A CN105681654A (en) 2016-01-12 2016-01-12 Photographing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN105681654A true CN105681654A (en) 2016-06-15

Family

ID=56300256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610018532.7A Pending CN105681654A (en) 2016-01-12 2016-01-12 Photographing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105681654A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791413A (en) * 2016-12-29 2017-05-31 努比亚技术有限公司 A kind of image collecting device and method
CN106941589A (en) * 2017-03-30 2017-07-11 努比亚技术有限公司 Find a view photographic method and device
WO2019161752A1 (en) * 2018-02-26 2019-08-29 维沃移动通信有限公司 Photographing method and mobile terminal
CN111917980A (en) * 2020-07-29 2020-11-10 Oppo(重庆)智能科技有限公司 Photographing control method and device, storage medium and electronic equipment
CN112087570A (en) * 2019-06-14 2020-12-15 北京小米移动软件有限公司 Image shooting method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN103763475A (en) * 2014-01-28 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Photographing method and device
CN104079824A (en) * 2014-06-27 2014-10-01 宇龙计算机通信科技(深圳)有限公司 Displaying method, device and terminal for view-finding image
CN104378545A (en) * 2013-08-16 2015-02-25 中兴通讯股份有限公司 Photographing processing method and system
CN104574491A (en) * 2015-01-20 2015-04-29 成都品果科技有限公司 Multi-lattice special effect rendering method and system based on mobile terminal platform
CN104796594A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Preview interface special effect real-time presenting method and terminal equipment
CN105100603A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Photographing triggering device embedded in intelligent terminal and method of triggering photographing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN104378545A (en) * 2013-08-16 2015-02-25 中兴通讯股份有限公司 Photographing processing method and system
CN104796594A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Preview interface special effect real-time presenting method and terminal equipment
CN103763475A (en) * 2014-01-28 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Photographing method and device
CN104079824A (en) * 2014-06-27 2014-10-01 宇龙计算机通信科技(深圳)有限公司 Displaying method, device and terminal for view-finding image
CN104574491A (en) * 2015-01-20 2015-04-29 成都品果科技有限公司 Multi-lattice special effect rendering method and system based on mobile terminal platform
CN105100603A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Photographing triggering device embedded in intelligent terminal and method of triggering photographing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791413A (en) * 2016-12-29 2017-05-31 努比亚技术有限公司 A kind of image collecting device and method
CN106941589A (en) * 2017-03-30 2017-07-11 努比亚技术有限公司 Find a view photographic method and device
WO2019161752A1 (en) * 2018-02-26 2019-08-29 维沃移动通信有限公司 Photographing method and mobile terminal
CN112087570A (en) * 2019-06-14 2020-12-15 北京小米移动软件有限公司 Image shooting method and device, electronic equipment and readable storage medium
CN111917980A (en) * 2020-07-29 2020-11-10 Oppo(重庆)智能科技有限公司 Photographing control method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN104750420B (en) Screenshotss method and device
CN106502693A (en) A kind of method for displaying image and device
CN105430168A (en) Mobile terminal and file sharing method
CN105681654A (en) Photographing method and mobile terminal
CN106130734A (en) The control method of mobile terminal and control device
CN106909274B (en) Image display method and device
CN105100603A (en) Photographing triggering device embedded in intelligent terminal and method of triggering photographing device
CN104821988A (en) Screen division method and device of mobile terminal
CN105761211A (en) Method and device for splicing frames of mobile terminal
CN105760057A (en) Screenshot device and method
CN105159594A (en) Touch photographing device and method based on pressure sensor, and mobile terminal
CN105681582A (en) Control color adjusting method and terminal
CN105243126A (en) Cross-screen screen capture method and apparatus
CN104898940A (en) Picture processing method and device
CN106850941A (en) Method, photo taking and device
CN105718200A (en) Page switching device and method based on pressure sensor, and terminal
CN104917965A (en) Shooting method and device
CN105357367A (en) Keystroke identification device and method based on pressure sensor
CN105718137A (en) Screen capturing method and mobile terminal
CN105739873A (en) Screen capturing method and terminal
CN104915139A (en) Automatic adjusting method and device for brightness of display interface
CN105956999A (en) Thumbnail generating device and method
CN104750389B (en) The method and device of display picture
CN105242483A (en) Focusing realization method and device and shooting realization method and device
CN107168612A (en) A kind of image acquisition method and terminal

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615

RJ01 Rejection of invention patent application after publication