CN106303044B - A kind of mobile terminal and obtain the method to coke number - Google Patents

A kind of mobile terminal and obtain the method to coke number Download PDF

Info

Publication number
CN106303044B
CN106303044B CN201610688291.7A CN201610688291A CN106303044B CN 106303044 B CN106303044 B CN 106303044B CN 201610688291 A CN201610688291 A CN 201610688291A CN 106303044 B CN106303044 B CN 106303044B
Authority
CN
China
Prior art keywords
pixel
focusing window
mobile terminal
acquisition
geometric center
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610688291.7A
Other languages
Chinese (zh)
Other versions
CN106303044A (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.)
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 CN201610688291.7A priority Critical patent/CN106303044B/en
Publication of CN106303044A publication Critical patent/CN106303044A/en
Priority to PCT/CN2017/092693 priority patent/WO2018032917A1/en
Application granted granted Critical
Publication of CN106303044B publication Critical patent/CN106303044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/32Means for focusing
    • G03B13/34Power focusing
    • G03B13/36Autofocus systems
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

A kind of mobile terminal is announced herein and obtains the method to coke number, this method comprises: the brightness value for each pixel that the focusing window in acquisition for mobile terminal current frame image is included;The brightness value of each pixel of acquisition is filtered to obtain the filter value of the brightness value of each pixel;Determine the corresponding weighted value of each pixel;According to the filter value of the brightness value of each pixel of acquisition weighted value calculating current frame image corresponding with each pixel determined to coke number.The embodiment of the present invention improves the accuracy of focusing, and the user experience is improved.

Description

A kind of mobile terminal and obtain the method to coke number
Technical field
The present embodiments relate to but be not limited to intelligent terminal technology, espespecially a kind of mobile terminal and obtain to the side of coke number Method.
Background technique
In the mobile terminal for supporting auto-focusing, find out image it is clearest when corresponding image distance process be known as focusing. Wherein, focus process the following steps are included:
Firstly, obtaining the brightness value for each pixel that the focusing window in current frame image is included;
Secondly, being filtered the brightness value of each pixel of acquisition to obtain the filtering of the brightness value of each pixel Value;
Then, according to formula (1) calculate current frame image to coke number (FV, Focus Value) (or be contrast Value) and record current lens position corresponding with FV:
Wherein, FV indicate current frame image to coke number;Q (i) indicates the filter value of the brightness value of ith pixel point;N table Show the total quantity for the pixel that the focusing window is included;
Finally, selecting maximum FV in all FV, corresponding lens location is clearest position.
But in above-mentioned focus process, if focusing window is too big, the specific gravity of background image increases in focusing window, shadow Ring the accuracy to coke number;If focusing window is too small, target object (object for needing to focus) is easy to deviate window, also can shadow Ring the accuracy to coke number.Therefore, the problem of urgent need to resolve is become to the accuracy of coke number how is improved.
Summary of the invention
This application provides a kind of mobile terminal and the method to coke number is obtained, the accuracy of focusing is can be improved, is promoted User experience.
In order to reach the application purpose, the embodiment of the invention provides a kind of mobile terminals, comprising: obtains module, filtering Module, the first determining module and computing module;Wherein,
Obtain module, the brightness value for each pixel that the focusing window for obtaining in current frame image is included;
Filter module, the brightness value for each pixel to acquisition are filtered to obtain the brightness of each pixel The filter value of value;
First determining module, for determining the corresponding weighted value of each pixel;
Computing module, for according to the filter value of the brightness value of each pixel of acquisition and each pixel determined Corresponding weighted value calculate current frame image to coke number.
Optionally, mobile terminal further include: detection module and the second determining module;Wherein,
The detection module, for detecting whether in the presence of the external command for meeting preset condition;Meet when detecting the presence of When the external command of preset condition, the second determining module of Xiang Suoshu sends the first notice;Meet default item when being not detected to exist When the external command of part, the second determining module of Xiang Suoshu sends the second notice;Correspondingly,
Second determining module obtains external command for receiving the first notice from the detection module First location information;The focusing window is determined according to the location information of the external command of acquisition;It receives from the detection Second notice of module, using predeterminable area as the focusing window.
Optionally, first determining module is specifically used for:
Determine the geometric center point of the focusing window;
Obtain each pixel that the focusing window is included second location information and the focusing window it is several The third place information of what central point;
The focusing window is calculated separately according to the second location information of acquisition and the third place information to be wrapped The distance between the geometric center point of each pixel and the focusing window that contain;
The corresponding weighted value of each pixel is determined according to calculated distance.
Optionally, the computing module calculate according to the following formula current frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) table Show the filter value of the brightness value of ith pixel point;N indicates the total quantity for the pixel that the focusing window is included.
Optionally, first determining module determines the corresponding weighted value of each pixel according to the following formula:
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and the focusing window The distance between the geometric center point of mouth;Exp indicates exponential function;A, b indicates constant;δ indicates tuning tuning parameter.
The embodiment of the invention also provides a kind of methods obtained to coke number, are applied in focus process, comprising:
The brightness value for each pixel that focusing window in acquisition for mobile terminal current frame image is included;
The brightness value of each pixel of acquisition is filtered to obtain the filter value of the brightness value of each pixel;
Determine the corresponding weighted value of each pixel;
According to the filter value of the brightness value of each pixel of acquisition weighted value corresponding with each pixel determined Calculate current frame image to coke number.
Optionally, before the brightness value for each pixel that the acquisition focusing window is included, this method further include:
The mobile final inspection is surveyed with the presence or absence of the external command for meeting preset condition;Meet preset condition when detecting the presence of External command when, obtain the first location information of external command;According to the determination of the location information of the external command of acquisition Focusing window;
When being not detected in the presence of the external command for meeting preset condition, using predeterminable area as the focusing window.
Optionally, the corresponding weighted value of each pixel of the determination includes:
Determine the geometric center point of the focusing window;
Obtain each pixel that the focusing window is included second location information and the focusing window it is several The third place information of what central point;
The focusing window is calculated separately according to the second location information of acquisition and the third place information to be wrapped The distance between the geometric center point of each pixel and the focusing window that contain;
The corresponding weighted value of each pixel is determined according to calculated distance.
Optionally, according to the following formula calculate current frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) table Show the filter value of the brightness value of ith pixel point;N indicates the total quantity for the pixel that the focusing window is included.
Optionally, the corresponding weighted value of each pixel is determined according to the following formula:
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and the focusing window The distance between the geometric center point of mouth;Exp indicates exponential function;A, b indicates constant;δ indicates tuning tuning parameter.
The embodiment of the present invention includes: each pixel that the focusing window in acquisition for mobile terminal current frame image is included Brightness value;The brightness value of each pixel of acquisition is filtered to obtain the filter value of the brightness value of each pixel; Determine the corresponding weighted value of each pixel;According to the filter value of the brightness value of each pixel of acquisition and each of determine The corresponding weighted value of pixel calculate current frame image to coke number.The embodiment of the present invention improves the accuracy of focusing, is promoted User experience.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the hardware structural diagram for realizing each embodiment one optional mobile terminal of the application;
Fig. 2 is the schematic diagram for supporting the communication system communicated between the application mobile terminal;
Fig. 3 is the structural schematic diagram of the application mobile terminal;
Fig. 4 is flow chart of the application acquisition to the method for coke number;
Fig. 5 (a) is the schematic diagram one of the side of the display screen of the application mobile terminal;
Fig. 5 (b) is the schematic diagram two of the side of the display screen of the application mobile terminal;
Fig. 6 is the flow chart for the embodiment that the application is obtained to the method for coke number.
Specific embodiment
Technical solution of the present invention is described in detail below in conjunction with accompanying drawings and embodiments.
The mobile terminal of each embodiment of the application is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware structural diagram for realizing each embodiment one optional mobile terminal of the application.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 122, camera 121 is to the static images obtained in video acquisition mode or image capture mode by image capture apparatus Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121 Picture frame afterwards can store in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 It send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note Sound (audio data) is received via microphone in record mode, speech recognition mode etc. operational mode, and can will in this way Acoustic processing be audio data.Audio that treated (voice) data can be converted in the case where telephone calling model can The format output of mobile communication base station is sent to via mobile communication module 112.Various types of make an uproar can be implemented in microphone 122 Sound eliminates (or inhibition) algorithm to eliminate the noise or do that (or inhibition) generates during sending and receiving audio signal It disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may 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.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the application can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
The communication system that can be wherein operated according to the mobile terminal of the application is described referring now to Fig. 2.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC275 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the application method is proposed.
Fig. 3 be the application mobile terminal structural schematic diagram, as shown in Figure 3, comprising: obtain module 30, filter module 31, First determining module 32 and computing module 33.Wherein,
Obtain module 30, the brightness value for each pixel that the focusing window for obtaining in current frame image is included.
Filter module 31, the brightness value for each pixel to acquisition are filtered to obtain the bright of each pixel The filter value of angle value.
First determining module 32, for determining the corresponding weighted value of each pixel.
Wherein, the first determining module 32 is specifically used for:
Determine the geometric center point of focusing window;
Obtain the second location information for each pixel that focusing window is included and the geometric center point of focusing window The third place information;
Each pixel that focusing window is included is calculated separately according to the second location information of acquisition and the third place information The distance between point and the geometric center point of focusing window;
The corresponding weighted value of each pixel is determined according to calculated distance.
Wherein, the first determining module 32 determines the corresponding weighted value of each pixel according to formula (2):
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and focusing window The distance between geometric center point;Exp indicates exponential function;A, b indicates constant;δ indicates tuning (tuning) parameter.
Wherein, a, b, δ are the default values of the system setting of mobile terminal, can be set to 2 as a can be set to 1, b Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, such as be neededSideThe corresponding weight of the pixel in edge region is opposite The corresponding weight of the pixel of intermediate region is lower, then turns δ down, on the contrary then tune up δ.It should be noted that on how to be arranged A, b, δ belong to conventional techniques well-known to those skilled in the art, and details are not described herein again, are not intended to limit the application.
It should be noted that ρ (i) is smaller (i.e. closer away from geometric center point), w (i) is bigger;ρ (i) is bigger (i.e. away from several What central point is remoter), w (i) is just smaller.
Computing module 33, for according to the filter value of the brightness value of each pixel of acquisition and each pixel determined The corresponding weighted value of point calculate current frame image to coke number.
Wherein, computing module 33 is according to formula (3) calculating current frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) table Show the filter value of the brightness value of ith pixel point;N indicates the total quantity for the pixel that focusing window is included.
Optionally, mobile terminal further include: detection module 34 and the second determining module 35.Wherein,
Detection module 34, for detecting whether in the presence of the external command for meeting preset condition;When detect the presence of meet it is pre- If when the external command of condition, sending the first notice to the second determining module 35;Meet preset condition when being not detected to exist When external command, the second notice is sent to the second determining module 35;Correspondingly,
Second determining module 35 obtains the first of external command for receiving the first notice for carrying out self-detection module 34 Location information;Focusing window is determined according to the location information of the external command of acquisition;It receives and comes the second of self-detection module 34 Notice, using predeterminable area as focusing window.
Wherein, the second determining module 35 determines that focusing window includes: according to the location information of the external command of acquisition
By using the corresponding pixel of the location information of the external command of acquisition as geometric center point, and withFor the circle of radius Shape or rectangular covered region are as focusing area;
Wherein, L is the side length of the display screen of mobile terminal;C is greater than 1 natural number.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, for example, c can be set to 2, It may be set to be 3.
Wherein, rectangular includes rectangle or square.
Wherein, when focusing area is rectangle,What is indicated is the half of the rectangular short side, the rectangular length While being greater thanWhen circle is ellipse,What is indicated is the minor axis radius of the ellipse, and the major axis radius of the ellipse is big In
Wherein, predeterminable area is using the geometric center point of the display screen of mobile terminal as the circle of geometric center point or side Shape.
Preferred embodiment, the mobile terminal in the preferred embodiment include: detection module 34, the second determining module 35, obtain Modulus block 30, filter module 31, the first determining module 32 and computing module 33.Wherein,
Detection module 34, for detecting whether in the presence of the external command for meeting preset condition;When detect the presence of meet it is pre- If when the external command of condition, sending the first notice to the second determining module 35;Meet preset condition when being not detected to exist When external command, the second notice is sent to the second determining module 35.
Second determining module 35 obtains the first of external command for receiving the first notice for carrying out self-detection module 34 Location information;Focusing window is determined according to the location information of the external command of acquisition;It receives and comes the second of self-detection module 34 Notice, using predeterminable area as focusing window.
Wherein, the second determining module 35 determines that focusing window includes: according to the location information of the external command of acquisition
By using the corresponding pixel of the location information of the external command of acquisition as geometric center point, and withFor the circle of radius Shape or rectangular covered region are as focusing area;
Wherein, L is the side length of the display screen of mobile terminal;C is greater than 1 natural number.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, for example, c can be set to 2, It may be set to be 3.
Wherein, rectangular includes rectangle or square.
Wherein, when focusing area is rectangle,What is indicated is the half of the rectangular short side, the rectangular length While being greater thanWhen circle is ellipse,What is indicated is the minor axis radius of the ellipse, and the major axis radius of the ellipse is big In
Wherein, predeterminable area is using the geometric center point of the display screen of mobile terminal as the circle of geometric center point or side Shape.
Obtain module 30, the brightness value for each pixel that the focusing window for obtaining in current frame image is included.
Filter module 31, the brightness value for each pixel to acquisition are filtered to obtain the bright of each pixel The filter value of angle value.
First determining module 32, for determining the corresponding weighted value of each pixel.
Wherein, the first determining module 32 is specifically used for:
Determine the geometric center point of focusing window;
Obtain the second location information for each pixel that focusing window is included and the geometric center point of focusing window The third place information;
Each pixel that focusing window is included is calculated separately according to the second location information of acquisition and the third place information The distance between point and the geometric center point of focusing window;
The corresponding weighted value of each pixel is determined according to calculated distance.
Wherein, the first determining module 32 determines the corresponding weighted value of each pixel according to formula (2):
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and focusing window The distance between geometric center point;Exp indicates exponential function;A, b indicates constant;δ indicates tuning (tuning) parameter.
Wherein, a, b, δ are the default values of the system setting of mobile terminal, can be set to 2 as a can be set to 1, b Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, such as be neededSideThe corresponding weight of the pixel in edge region is opposite The corresponding weight of the pixel of intermediate region is lower, then turns δ down, on the contrary then tune up δ.It should be noted that on how to be arranged A, b, δ belong to conventional techniques well-known to those skilled in the art, and details are not described herein again, are not intended to limit the application.
It should be noted that ρ (i) is smaller (i.e. closer away from geometric center point), w (i) is bigger;ρ (i) is bigger (i.e. away from several What central point is remoter), w (i) is just smaller.
Computing module 33, for according to the filter value of the brightness value of each pixel of acquisition and each pixel determined The corresponding weighted value of point calculate current frame image to coke number.
Wherein, computing module 33 is according to formula (3) calculating current frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) table Show the filter value of the brightness value of ith pixel point;N indicates the total quantity for the pixel that focusing window is included.
For mobile terminal shown in Fig. 3, this application provides corresponding methods as shown in Figure 4.
Fig. 4 is flow chart of the application acquisition to the method for coke number, is applied in focus process, as shown in figure 4, being directed to Every frame image of camera output is performed both by following steps:
Step 401: the brightness value for each pixel that the focusing window in acquisition for mobile terminal current frame image is included.
Optionally, before step 401, this method further include:
Mobile final inspection is surveyed with the presence or absence of the external command for meeting preset condition;Meet the outer of preset condition when detecting the presence of When portion instructs, the first location information of external command is obtained;Focusing window is determined according to the location information of the external command of acquisition;
When being not detected in the presence of the external command for meeting preset condition, using predeterminable area as focusing window.
Wherein, the external command for meeting preset condition includes: single-click operation or double click operation.
Wherein, determine that focusing window includes: according to the location information of the external command of acquisition
By using the corresponding pixel of the location information of the external command of acquisition as geometric center point, and withFor the circle of radius Shape or rectangular covered region are as focusing area;
Wherein, L is the side length of the display screen of mobile terminal;C is greater than 1 natural number.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, for example, c can be set to 2, It may be set to be 3.
Wherein, rectangular includes rectangle or square.
Wherein, when focusing area is rectangle,What is indicated is the half of the rectangular short side, the rectangular length While being greater thanWhen circle is ellipse,What is indicated is the minor axis radius of the ellipse, and the major axis radius of the ellipse is big In
As shown in Fig. 5 (a), L can be the side length of the left and right side of the display screen of mobile terminal;As shown in Fig. 5 (b), L is also possible to the side length of the upper and lower side of the display screen of mobile terminal.
Wherein, predeterminable area is using the geometric center point of the display screen of mobile terminal as the circle of geometric center point or side Shape.
Step 402: the brightness value of each pixel of acquisition is filtered to obtain the brightness value of each pixel Filter value.
Step 403: determining the corresponding weighted value of each pixel.
Wherein, step 403 specifically includes:
Determine the geometric center point of focusing window;
Obtain the second location information for each pixel that focusing window is included and the geometric center point of focusing window The third place information;
Each pixel that focusing window is included is calculated separately according to the second location information of acquisition and the third place information The distance between point and the geometric center point of focusing window;
The corresponding weighted value of each pixel is determined according to calculated distance.
Wherein, the corresponding weighted value of each pixel is determined according to formula (2):
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and focusing window The distance between geometric center point;Exp indicates exponential function;A, b indicates constant;δ indicates tuning tuning parameter.
Wherein, a, b, δ are the default values of the system setting of mobile terminal, can be set to 2 as a can be set to 1, b Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, such as be neededSideThe corresponding weight of the pixel in edge region is opposite The corresponding weight of the pixel of intermediate region is lower, then turns δ down, on the contrary then tune up δ.It should be noted that on how to be arranged A, b, δ belong to conventional techniques well-known to those skilled in the art, and details are not described herein again, are not intended to limit the application.
It should be noted that ρ (i) is smaller (i.e. closer away from geometric center point), w (i) is bigger;ρ (i) is bigger (i.e. away from several What central point is remoter), w (i) is just smaller.
Optionally, it is calculating separately between the focusing window each pixel for being included and the geometric center point of focusing window Distance before, obtain focusing window geometric center point the third place information after, this method further include:
Coordinate system conversion is carried out by coordinate origin of the third place information of the geometric center point of the focusing window of acquisition, is obtained Corresponding multiple 4th location informations of second location information after taking multiple coordinate systems to convert;
Calculate separately the distance between multiple 4th location informations and coordinate origin;
The corresponding weighted value of each pixel is determined according to calculated distance.
It should be noted that second location information include it is multiple, that is, having several pixels just has several second location informations, Having several second location informations just has several 4th location informations.
Step 404: corresponding with each pixel determined according to the filter value of the brightness value of each pixel of acquisition Weighted value calculate current frame image to coke number.
Wherein, according to formula (3) calculating current frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) table Show the filter value of the brightness value of ith pixel point;N indicates the total quantity for the pixel that focusing window is included.
It should be noted that ρ (i) is smaller (i.e. closer away from geometric center point), w (i) is bigger, and ρ (i) is bigger (i.e. away from several What central point is remoter), w (i) is just smaller, thus may be implemented to increase the weight away from the close filter value of geometric center point, reduces The weight of filter value away from geometric center point remote (fringe region), to reduce the influence of the background image at edge, effectively It avoids focusing object and deviates erroneous judgement caused by center.
In the application embodiment, pass through the corresponding weighted value of each pixel of determination, and each picture according to acquisition Corresponding with each pixel the determined weighted value of the filter value of the brightness value of vegetarian refreshments calculate current frame image to coke number, from And the accuracy of focusing is improved, the user experience is improved.
For the mobile terminal in preferred embodiment, this application provides corresponding methods as shown in FIG. 6.
Fig. 6 is the flow chart for the embodiment that the application is obtained to the method for coke number, is applied in focus process, such as Fig. 6 institute Show, comprising:
Step 600: mobile final inspection is surveyed with the presence or absence of the external command for meeting preset condition.When detect the presence of meet it is default When the external command of condition, it is transferred to step 601;When being not detected in the presence of the external command for meeting preset condition, it is transferred to step 603。
Wherein, the external command for meeting preset condition includes: single-click operation or double click operation.
Step 601: obtaining the first location information of external command.
Step 602: focusing window is determined according to the location information of the external command of acquisition.
Step 602 specifically includes:
By using the corresponding pixel of the location information of the external command of acquisition as geometric center point, and withFor the circle of radius Shape or rectangular covered region are as focusing area;
Wherein, L is the side length of the display screen of mobile terminal;C is greater than 1 natural number.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, for example, c can be set to 2, It may be set to be 3.
Wherein, rectangular includes rectangle or square.
Wherein, when focusing area is rectangle,What is indicated is the half of the rectangular short side, the rectangular length While being greater thanWhen circle is ellipse,What is indicated is the minor axis radius of the ellipse, and the major axis radius of the ellipse is big In
As shown in Fig. 5 (a), L can be the side length of the left and right side of the display screen of mobile terminal;As shown in Fig. 5 (b), L is also possible to the side length of the upper and lower side of the display screen of mobile terminal.
Step 603: using predeterminable area as focusing window.
Wherein, predeterminable area is using the geometric center point of the display screen of mobile terminal as the circle of geometric center point or side Shape.
Step 604: the brightness value for each pixel that the focusing window in acquisition for mobile terminal current frame image is included.
Step 605: the brightness value of each pixel of acquisition is filtered to obtain the brightness value of each pixel Filter value.
Step 606: determining the corresponding weighted value of each pixel.
Wherein, step 606 specifically includes:
Determine the geometric center point of focusing window;
Obtain the second location information for each pixel that focusing window is included and the geometric center point of focusing window The third place information;
Each pixel that focusing window is included is calculated separately according to the second location information of acquisition and the third place information The distance between point and the geometric center point of focusing window;
The corresponding weighted value of each pixel is determined according to calculated distance.
Wherein, the corresponding weighted value of each pixel is determined according to formula (2):
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and focusing window The distance between geometric center point;Exp indicates exponential function;A, b indicates constant;δ indicates tuning tuning parameter.
Wherein, a, b, δ are the default values of the system setting of mobile terminal, can be set to 2 as a can be set to 1, b Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, such as be neededSideThe corresponding weight of the pixel in edge region is opposite The corresponding weight of the pixel of intermediate region is lower, then turns δ down, on the contrary then tune up δ.It should be noted that on how to be arranged A, b, δ belong to conventional techniques well-known to those skilled in the art, and details are not described herein again, are not intended to limit the application.
It should be noted that ρ (i) is smaller (i.e. closer away from geometric center point), w (i) is bigger;ρ (i) is bigger (i.e. away from several What central point is remoter), w (i) is just smaller.
Optionally, it is calculating separately between the focusing window each pixel for being included and the geometric center point of focusing window Distance before, obtain focusing window geometric center point the third place information after, this method further include:
Coordinate system conversion is carried out by coordinate origin of the third place information of the geometric center point of the focusing window of acquisition, is obtained Corresponding multiple 4th location informations of second location information after taking multiple coordinate systems to convert;
Calculate separately the distance between multiple 4th location informations and coordinate origin;
The corresponding weighted value of each pixel is determined according to calculated distance.
It should be noted that second location information include it is multiple, that is, having several pixels just has several second location informations, Having several second location informations just has several 4th location informations.
It should be noted that second location information include it is multiple, that is, having several pixels just has several second location informations.
Step 607: corresponding with each pixel determined according to the filter value of the brightness value of each pixel of acquisition Weighted value calculate current frame image to coke number.
Wherein, according to formula (3) calculating current frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) table Show the filter value of the brightness value of ith pixel point;N indicates the total quantity for the pixel that focusing window is included.
It should be noted that ρ (i) is smaller (i.e. closer away from geometric center point), w (i) is bigger, and ρ (i) is bigger (i.e. away from several What central point is remoter), w (i) is just smaller, thus may be implemented to increase the weight away from the close filter value of geometric center point, reduces The weight of filter value away from geometric center point remote (fringe region), to reduce the influence of the background image at edge, effectively It avoids focusing object and deviates erroneous judgement caused by center.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program Related hardware (such as processor) is completed, and described program can store in computer readable storage medium, as read-only memory, Disk or CD etc..Optionally, one or more integrated circuits also can be used in all or part of the steps of above-described embodiment It realizes.Correspondingly, each module/unit in above-described embodiment can take the form of hardware realization, such as pass through integrated circuit It realizes its corresponding function, can also be realized in the form of software function module, such as be stored in and deposited by processor execution Program/instruction in reservoir realizes its corresponding function.The present invention is not limited to the knots of the hardware and software of any particular form It closes.
The above is only preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all to utilize this Shen Please equivalent structure or equivalent flow shift made by specification and accompanying drawing content, be applied directly or indirectly in other relevant skills Art field similarly includes in the scope of patent protection of the application.

Claims (10)

1. a kind of mobile terminal characterized by comprising obtain module, filter module, the first determining module and computing module; Wherein,
Obtain module, the brightness value for each pixel that the focusing window for obtaining in current frame image is included;
Filter module, the brightness value for each pixel to acquisition are filtered to obtain the brightness value of each pixel Filter value;
First determining module, for determining the corresponding weighted value of each pixel;
Computing module, the filter value for the brightness value according to each pixel of acquisition are corresponding with each pixel determined Weighted value calculate current frame image to coke number;
First determining module is specifically used for:
Determine the geometric center point of the focusing window;
It obtains in the second location information for each pixel that the focusing window is included and the geometry of the focusing window The third place information of heart point;
Calculating separately the focusing window according to the second location information of acquisition and the third place information is included The distance between the geometric center point of each pixel and the focusing window;
The corresponding weighted value of each pixel is determined according to calculated distance;
First determining module determines the corresponding weighted value of each pixel according to the following formula:
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and the focusing window The distance between geometric center point;Exp indicates exponential function;A, b indicates constant;δ indicates tuning tuning parameter, if edge The corresponding weight of the pixel in region weight corresponding with respect to the pixel of intermediate region is lower, then turns δ down, if fringe region The corresponding weight of pixel weight corresponding with respect to the pixel of intermediate region is higher, then tunes up δ.
2. mobile terminal according to claim 1, which is characterized in that the mobile terminal further include: detection module and second Determining module;Wherein,
The detection module, for detecting whether in the presence of the external command for meeting preset condition;When detect the presence of meet it is default When the external command of condition, the second determining module of Xiang Suoshu sends the first notice;Meet preset condition when being not detected to exist When external command, the second determining module of Xiang Suoshu sends the second notice;Correspondingly,
Second determining module obtains the first of external command for receiving the first notice from the detection module Location information;The focusing window is determined according to the location information of the external command of acquisition;It receives from the detection module Second notice, using predeterminable area as the focusing window.
3. mobile terminal according to claim 2, which is characterized in that the external command for meeting preset condition includes: Single-click operation or double click operation;
Second determining module determines that focusing window includes: according to the location information of the external command of acquisition
By using the corresponding pixel of the location information of the external command of acquisition as geometric center point, and withFor radius circle or Rectangular covered region is as focusing area;
Wherein, L is the side length of the display screen of mobile terminal;C is greater than 1 natural number;
The predeterminable area is using the geometric center point of the display screen of mobile terminal as the round or rectangular of geometric center point.
4. mobile terminal according to claim 1, which is characterized in that the computing module calculates currently according to the following formula Frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) indicates i-th The filter value of the brightness value of a pixel;N indicates the total quantity for the pixel that the focusing window is included.
5. mobile terminal according to claim 1 or 4, which is characterized in that first determining module is calculating separately pair Before the distance between geometric center point of each pixel and focusing window that burnt window is included, focusing window is being obtained After the third place information of geometric center point, it is also used to:
Coordinate system conversion is carried out by coordinate origin of the third place information of the geometric center point of the focusing window of acquisition, is obtained more Corresponding multiple 4th location informations of second location information after a coordinate system conversion;
Calculate separately the distance between multiple 4th location informations and coordinate origin;
The corresponding weighted value of each pixel is determined according to calculated distance.
6. a kind of method obtained to coke number, is applied in focus process characterized by comprising
The brightness value for each pixel that focusing window in acquisition for mobile terminal current frame image is included;
The brightness value of each pixel of acquisition is filtered to obtain the filter value of the brightness value of each pixel;
Determine the corresponding weighted value of each pixel;
It is calculated according to the filter value of the brightness value of each pixel of acquisition weighted value corresponding with each pixel determined Current frame image to coke number;
The corresponding weighted value of each pixel of determination includes:
Determine the geometric center point of the focusing window;
It obtains in the second location information for each pixel that the focusing window is included and the geometry of the focusing window The third place information of heart point;
Calculating separately the focusing window according to the second location information of acquisition and the third place information is included The distance between the geometric center point of each pixel and the focusing window;
The corresponding weighted value of each pixel is determined according to calculated distance;
The corresponding weighted value of each pixel is determined according to the following formula:
Wherein, w (i) indicates the corresponding weighted value of ith pixel point;ρ (i) indicates ith pixel point and the focusing window The distance between geometric center point;Exp indicates exponential function;A, b indicates constant;δ indicates tuning tuning parameter, if edge The corresponding weight of the pixel in region weight corresponding with respect to the pixel of intermediate region is lower, then turns δ down, if fringe region The corresponding weight of pixel weight corresponding with respect to the pixel of intermediate region is higher, then tunes up δ.
7. according to the method described in claim 6, it is characterized in that, each pixel for being included in the acquisition focusing window Brightness value before, this method further include:
The mobile terminal detects whether there is the external command for meeting preset condition;Meet preset condition when detecting the presence of When external command, the first location information of external command is obtained;It is described right to be determined according to the location information of the external command of acquisition Burnt window;
When being not detected in the presence of the external command for meeting preset condition, using predeterminable area as the focusing window.
8. the method according to the description of claim 7 is characterized in that the external command for meeting preset condition includes: to click Operation or double click operation;
The location information of the external command according to acquisition determines that focusing window includes:
By using the corresponding pixel of the location information of the external command of acquisition as geometric center point, and withFor radius circle or Rectangular covered region is as focusing area;
Wherein, L is the side length of the display screen of mobile terminal;C is greater than 1 natural number;
The predeterminable area is using the geometric center point of the display screen of mobile terminal as the round or rectangular of geometric center point.
9. according to the method described in claim 6, it is characterized in that, according to the following formula calculate current frame image to coke number:
Wherein, FV indicate current frame image to coke number;W (i) indicates the corresponding weighted value of ith pixel point;Q (i) indicates i-th The filter value of the brightness value of a pixel;N indicates the total quantity for the pixel that the focusing window is included.
10. method according to claim 6 or 9, which is characterized in that
Before calculating separately at a distance between the geometric center point of each pixel that focusing window is included with focusing window, After obtaining the third place information of geometric center point of focusing window, it is also used to:
Coordinate system conversion is carried out by coordinate origin of the third place information of the geometric center point of the focusing window of acquisition, is obtained more Corresponding multiple 4th location informations of second location information after a coordinate system conversion;
Calculate separately the distance between multiple 4th location informations and coordinate origin;
The corresponding weighted value of each pixel is determined according to calculated distance.
CN201610688291.7A 2016-08-18 2016-08-18 A kind of mobile terminal and obtain the method to coke number Active CN106303044B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610688291.7A CN106303044B (en) 2016-08-18 2016-08-18 A kind of mobile terminal and obtain the method to coke number
PCT/CN2017/092693 WO2018032917A1 (en) 2016-08-18 2017-07-13 Mobile terminal, method for obtaining focus value, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610688291.7A CN106303044B (en) 2016-08-18 2016-08-18 A kind of mobile terminal and obtain the method to coke number

Publications (2)

Publication Number Publication Date
CN106303044A CN106303044A (en) 2017-01-04
CN106303044B true CN106303044B (en) 2019-08-16

Family

ID=57661457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610688291.7A Active CN106303044B (en) 2016-08-18 2016-08-18 A kind of mobile terminal and obtain the method to coke number

Country Status (2)

Country Link
CN (1) CN106303044B (en)
WO (1) WO2018032917A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303044B (en) * 2016-08-18 2019-08-16 努比亚技术有限公司 A kind of mobile terminal and obtain the method to coke number
CN110334635B (en) * 2019-06-28 2021-08-31 Oppo广东移动通信有限公司 Subject tracking method, apparatus, electronic device and computer-readable storage medium
CN111767752B (en) * 2020-06-11 2022-09-23 网易宝有限公司 Two-dimensional code identification method and device
CN112351197B (en) * 2020-09-25 2022-10-21 南京酷派软件技术有限公司 Shooting parameter adjusting method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464323A (en) * 2002-06-13 2003-12-31 北京中星微电子有限公司 Process for automatic focusing
KR100577523B1 (en) * 2004-07-29 2006-05-10 매그나칩 반도체 유한회사 Apparatus for adaptive auto focus control and auto focus controlling method
CN101408709A (en) * 2007-10-10 2009-04-15 鸿富锦精密工业(深圳)有限公司 Image viewfinding device and automatic focusing method thereof
CN101605208A (en) * 2008-06-13 2009-12-16 富士胶片株式会社 Image processing equipment, imaging device, image processing method and program
CN102968772A (en) * 2012-12-04 2013-03-13 电子科技大学 Image defogging method based on dark channel information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6305290B2 (en) * 2014-09-16 2018-04-04 オリンパス株式会社 Image processing apparatus, imaging apparatus, and image processing method
CN106303044B (en) * 2016-08-18 2019-08-16 努比亚技术有限公司 A kind of mobile terminal and obtain the method to coke number

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464323A (en) * 2002-06-13 2003-12-31 北京中星微电子有限公司 Process for automatic focusing
KR100577523B1 (en) * 2004-07-29 2006-05-10 매그나칩 반도체 유한회사 Apparatus for adaptive auto focus control and auto focus controlling method
CN101408709A (en) * 2007-10-10 2009-04-15 鸿富锦精密工业(深圳)有限公司 Image viewfinding device and automatic focusing method thereof
CN101605208A (en) * 2008-06-13 2009-12-16 富士胶片株式会社 Image processing equipment, imaging device, image processing method and program
CN102968772A (en) * 2012-12-04 2013-03-13 电子科技大学 Image defogging method based on dark channel information

Also Published As

Publication number Publication date
WO2018032917A1 (en) 2018-02-22
CN106303044A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106502693B (en) A kind of image display method and device
CN106210328B (en) Information display device and method
CN106331499B (en) Focusing method and photographing device
CN105099870B (en) A kind of information push method and device
CN106097284B (en) A kind of processing method and mobile terminal of night scene image
CN105306457B (en) Data buffer storage device and method
CN106506858B (en) Star orbital prediction technique and device
CN106534693B (en) A kind of photo processing method, device and terminal
CN105786384B (en) A kind of adjusting focus installations and method
CN104679890B (en) Picture method for pushing and device
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106534552B (en) Mobile terminal and its photographic method
CN106131274B (en) Mobile terminal control device and method
CN106303044B (en) A kind of mobile terminal and obtain the method to coke number
CN104735254B (en) terminal screen locking method and system
CN105100408B (en) A kind of method and apparatus controlling mobile terminal
CN105262953B (en) A kind of mobile terminal and its method of control shooting
CN105187621B (en) The method, apparatus and terminal of message notifying
CN106683613A (en) Display method and terminal
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN106161790A (en) A kind of mobile terminal and control method thereof
CN109168029A (en) It is a kind of adjust resolution ratio method, equipment and computer can storage medium
CN106227454B (en) A kind of touch trajectory detection system and method
CN106792644A (en) Mobile terminal, server and information processing method
CN106651823A (en) Device and method for eliminating picture light spot and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant