CN106303044A - A kind of mobile terminal and the acquisition method to coke number - Google Patents

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

Info

Publication number
CN106303044A
CN106303044A CN201610688291.7A CN201610688291A CN106303044A CN 106303044 A CN106303044 A CN 106303044A CN 201610688291 A CN201610688291 A CN 201610688291A CN 106303044 A CN106303044 A CN 106303044A
Authority
CN
China
Prior art keywords
pixel
module
focusing window
mobile terminal
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610688291.7A
Other languages
Chinese (zh)
Other versions
CN106303044B (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

Announcing a kind of mobile terminal herein and obtain the method to coke number, the method includes: the brightness value of each pixel that the focusing window in acquisition for mobile terminal current frame image is comprised;The brightness value of each pixel obtained is filtered obtaining the filter value of the brightness value of each pixel;Determine the weighted value that each pixel is corresponding;The weighted value calculating current frame image that the filter value of brightness value according to each pixel obtained is corresponding with each pixel determined to coke number.The embodiment of the present invention improves the accuracy of focusing, improves Consumer's Experience.

Description

A kind of mobile terminal and the acquisition method to coke number
Technical field
The present embodiments relate to but be not limited to intelligent terminal's technology, a kind of mobile terminal and the acquisition side to coke number Method.
Background technology
In the mobile terminal supporting auto-focusing, find out image the most clear time corresponding image distance process be referred to as focusing. Wherein, focus process comprises the following steps:
First, the brightness value of each pixel that the focusing window in current frame image is comprised is obtained;
Secondly, the brightness value of each pixel obtained is filtered obtaining 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 referred to as contrast Value) and record the current lens position corresponding with FV:
F V = Σ i = 1 n Q ( i ) - - - ( 1 )
Wherein, FV represent current frame image to coke number;Q (i) represents the filter value of the brightness value of ith pixel point;N table Show the total quantity of the pixel that described focusing window comprised;
Finally, selecting the FV of maximum in all of FV, the lens location of its correspondence is the most clear position.
But, in above-mentioned focus process, if focusing window is too big, in focusing window, the proportion of background image increases, shadow Ring the accuracy to coke number;If focusing window is too small, destination object (needing the object of focusing) easily deviates window, also can shadow Ring the accuracy to coke number.Therefore, how to improve the accuracy to coke number and become the problem needing solution badly.
Summary of the invention
This application provides a kind of mobile terminal and obtain the method to coke number, it is possible to increase the accuracy of focusing, promoting Consumer's Experience.
In order to reach the application purpose, embodiments provide a kind of mobile terminal, including: acquisition module, filtering Module, first determine module and computing module;Wherein,
Acquisition module, for obtaining the brightness value of each pixel that the focusing window in current frame image is comprised;
Filtration module, for being filtered obtaining the brightness of each pixel to the brightness value of each pixel obtained The filter value of value;
First determines module, for determining the weighted value that each pixel is corresponding;
Computing module, for filter value and each pixel determined of the brightness value according to each pixel obtained Corresponding weighted value calculate current frame image to coke number.
Alternatively, this mobile terminal also includes: detection module and second determines module;Wherein,
Described detection module, meets pre-conditioned external command for detecting whether exist;Meet when detecting the presence of During pre-conditioned external command, determine that module sends the first notice to described second;Default bar is met when being not detected by existence During the external command of part, determine that module sends the second notice to described second;Correspondingly,
Described second determines module, for receiving the first notice from described detection module, obtains external command Primary importance information;Positional information according to the external command obtained determines described focusing window;Receive from described detection Second notice of module, using predeterminable area as described focusing window.
Alternatively, described first determine module specifically for:
Determine the geometric center point of described focusing window;
Obtain the second position information of each pixel that described focusing window is comprised, and described focusing window is several 3rd positional information of what central point;
Described second position information and described 3rd positional information according to obtaining calculate described focusing window respectively and are wrapped Distance between each pixel and the geometric center point of described focusing window that contain;
The weighted value that described each pixel is corresponding is determined according to the distance calculated.
Alternatively, described computing module according to below equation calculate current frame image to coke number:
F V = Σ i = 1 n w ( i ) Q ( i )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) table Show the filter value of the brightness value of ith pixel point;N represents the total quantity of the pixel that described focusing window comprised.
Alternatively, described first determines that module determines, according to below equation, the weighted value that described each pixel is corresponding:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ]
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and described focusing window Distance between the geometric center point of mouth;Exp represents exponential function;A, b all represent constant;δ represents tuning tuning parameter.
The embodiment of the present invention additionally provides a kind of acquisition method to coke number, is applied in focus process, including:
The brightness value of each pixel that the focusing window in acquisition for mobile terminal current frame image is comprised;
The brightness value of each pixel obtained is filtered obtaining the filter value of the brightness value of each pixel;
Determine the weighted value that each pixel is corresponding;
The weighted value that the filter value of brightness value according to each pixel obtained is corresponding with each pixel determined Calculate current frame image to coke number.
Alternatively, before the brightness value of each pixel comprised in described acquisition focusing window, the method also includes:
Described movement detects whether to exist eventually and meets pre-conditioned external command;When detect the presence of meet pre-conditioned External command time, obtain external command primary importance information;Positional information according to the external command obtained determines described Focusing window;
When be not detected by existing meet pre-conditioned external command time, using predeterminable area as described focusing window.
Alternatively, the described weighted value determining that each pixel is corresponding includes:
Determine the geometric center point of described focusing window;
Obtain the second position information of each pixel that described focusing window is comprised, and described focusing window is several 3rd positional information of what central point;
Described second position information and described 3rd positional information according to obtaining calculate described focusing window respectively and are wrapped Distance between each pixel and the geometric center point of described focusing window that contain;
The weighted value that described each pixel is corresponding is determined according to the distance calculated.
Alternatively, according to below equation calculate current frame image to coke number:
F V = Σ i = 1 n w ( i ) Q ( i )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) table Show the filter value of the brightness value of ith pixel point;N represents the total quantity of the pixel that described focusing window comprised.
Alternatively, determine, according to below equation, the weighted value that described each pixel is corresponding:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ]
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and described focusing window Distance between the geometric center point of mouth;Exp represents exponential function;A, b all represent constant;δ represents 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 comprised Brightness value;The brightness value of each pixel obtained is filtered obtaining the filter value of the brightness value of each pixel; Determine the weighted value that each pixel is corresponding;The filter value of the brightness value according to each pixel obtained is each with determine Weighted value corresponding to pixel calculate current frame image to coke number.The embodiment of the present invention improves the accuracy of focusing, promotes Consumer's Experience.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the application;
Fig. 2 is the schematic diagram of the communication system communicated between support the application mobile terminal;
Fig. 3 is the structural representation of the application mobile terminal;
Fig. 4 is the flow chart that the application obtains the method to 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 that the application obtains the embodiment of the method to coke number.
Detailed description of the invention
Below in conjunction with drawings and Examples, technical scheme is described in detail.
The mobile terminal realizing each embodiment of the application is described referring now to accompanying drawing.In follow-up description, use For representing the suffix explanation only for the beneficially present invention of such as " module ", " parts " or " unit " of element, itself Not specific meaning.Therefore, " module " can mixedly use with " parts ".
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and consolidating of such as numeral TV, desk computer etc. Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, mobile except being used in particular for Outside the element of purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the application.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all groups illustrated Part.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 mobile terminal 100 and wireless communication system Or the radio communication between network.Such as, wireless communication unit can include broadcast reception module 111, mobile communication module 112, at least one in wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcasting management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be to generate and send Broadcast singal and/or the server of broadcast related information or the broadcast singal generated before receiving and/or broadcast related information And send it to the server of terminal.Broadcast singal can include that TV broadcast singal, radio signals, data are broadcasted Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass 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, and such as, it can be with the electronics of DMB (DMB) Program guide (EPG), the form of electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H) and exist.Broadcast Receiver module 111 can be broadcasted by using various types of broadcast systems to receive signal.Especially, broadcast reception module 111 Can be by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video wide Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcast reception module 111 may be constructed such that and is adapted to provide for extensively Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcast reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals to base station (such as, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can include that voice leads to Words 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 be internally or externally It is 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 indigo plant ToothTM, 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.Positional information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates from three or more satellites Range information and correct time information and for the Information application triangulation calculated, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, the method use three being used for calculating position and temporal information is defended Star and by using the position and the error of temporal information that other satellite correction calculates.Additionally, GPS module 115 Velocity information can be calculated 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 He Mike 122, the camera 121 static images to being obtained by image capture apparatus in Video Capture pattern or image capture mode Or the view data of video processes.Picture frame after process may be displayed on display unit 151.Process through camera 121 After picture frame can be stored in memorizer 160 (or other storage medium) or via wireless communication unit 110 carry out send out Send, two or more cameras 121 can be provided according to the structure of mobile terminal.Mike 122 can be in telephone calling model, note Record pattern, speech recognition mode etc. operational mode receives sound (voice data) via mike, and can be by so Acoustic processing be voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model can The form output of mobile communication base station it is sent to via mobile communication module 112.Mike 122 can implement various types of making an uproar Sound eliminates (or suppression) algorithm and with the noise of elimination (or suppression) generation during receiving and send audio signal or does Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user's input Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close 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 Orientation, the acceleration or deceleration of mobile terminal 100 of 100 move and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense This sliding-type phone opens or cuts out.It addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples 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 nothing Line FPDP, memory card port, for connect have the port of device of identification module, audio frequency input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses each of mobile terminal 100 Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..It addition, the device (hereinafter referred to as " identifying device ") with identification module can be to take the form of smart card, therefore, know Other device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 may be used for receive from The input (such as, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements or may be used between mobile terminal and external device (ED) transmit data.
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing electricity by it Power provides the path of mobile terminal 100 from base or can serve as allowing from the various command signals of base input by it It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from various command signals or the electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner Go out signal (such as, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, it is in electricity when mobile terminal 100 During words call mode, display unit 151 can show and call or other (such as, text messaging, multimedia file that communicate Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show image and/or the image of reception of capture, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can 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 A kind of.Some in these display may be constructed such that transparence is watched from outside with permission user, and this is properly termed as transparent Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal receive pattern, call mode, logging mode, Time under the isotype such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or at memorizer 160 The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide with mobile The audio frequency output (such as, call signal receives sound, message sink sound etc.) that the specific function that terminal 100 performs is relevant. Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 100.Typical event is permissible Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm unit 153 can provide output with the generation of notification event in a different manner.Such as, alarm unit 153 can be with the form of vibration Output is provided, when receiving calling, message or some other entrance communication (incoming communication), alarm list Unit 153 can provide sense of touch output (that is, vibration) to notify to user.By providing such sense of touch to export, even if When the mobile phone of user is in the pocket of user, user also is able to identify the generation of various event.Alarm unit 153 is also The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can Temporarily to store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And And, memorizer 160 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal Data.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store Device (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 execution memorizer with by network The network storage device cooperation of the storage function of 160.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice call, data Control that communication, video calling etc. are relevant and process.It addition, controller 180 can include for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that with control Device 180 separates.Controller 180 can perform pattern recognition process, with the handwriting input that will perform on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Suitable electric power needed for part and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implementing for hardware, 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 Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language Implementing, 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, will describe such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the application can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 100 may be constructed such that utilize via frame or packet transmission data all if any Line and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the mobile terminal of the application is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, communication system use Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face relates to cdma communication system, but such teaching 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 and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to and the BSC275 formation interface that can be couple to base station 270 via back haul link. If back haul link can construct according to any one in the interface that Ganji 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 BSC275.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or the sky of sensing specific direction Each subregion that line covers is radially away from BS270.Or, each subregion can be by for two or more of diversity reception Antenna covers.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 System (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 claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal operated by broadcsting transmitter (BT) 295 100.Broadcast reception module 111 is arranged on mobile terminal 100 and sentences the broadcast that reception is sent by BT295 as shown in Figure 1 Signal.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtain useful Location information.GPS module 115 is generally configured to coordinate with satellite 300 to obtain the location letter wanted as shown in Figure 1 Breath.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other of position of mobile terminal can be followed the tracks of Technology.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 from various mobile terminals 100 Signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Certain base station 270 receive each instead Processed in specific BS270 to link signal.The data obtained are forwarded to the BSC275 being correlated with.BSC provides call Resource distribution and the mobile management function of the coordination of soft switching process included between BS270.The number that BSC275 also will receive According to being routed to MSC280, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, MSC Yu BSC275 forms interface, and BSC275 correspondingly controls BS270 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 is the structural representation of the application mobile terminal, as it is shown on figure 3, include: acquisition module 30, filtration module 31, First determines module 32 and computing module 33.Wherein,
Acquisition module 30, for obtaining the brightness value of each pixel that the focusing window in current frame image is comprised.
Filtration module 31, for being filtered obtaining the bright of each pixel to the brightness value of each pixel obtained The filter value of angle value.
First determines module 32, for determining the weighted value that each pixel is corresponding.
Wherein, first determine module 32 specifically for:
Determine the geometric center point of focusing window;
Obtain the second position information of each pixel that focusing window is comprised, and the geometric center point of focusing window The 3rd positional information;
Second position information and the 3rd positional information according to obtaining calculate each pixel that focusing window is comprised respectively Distance between point and the geometric center point of focusing window;
The weighted value that each pixel is corresponding is determined according to the distance calculated.
Wherein, first determines that module 32 determines, according to formula (2), the weighted value that each pixel is corresponding:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ] - - - ( 2 )
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and focusing window Distance between geometric center point;Exp represents exponential function;A, b all represent constant;δ represents tuning (tuning) parameter.
Wherein, a, b, δ are all the default values of the system setting of mobile terminal, and as a could be arranged to 1, b could be arranged to 2 Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, if desired forLimitThe weight that the pixel in edge region is corresponding is relative The weight that the pixel of zone line is corresponding is lower, then turn δ down, otherwise then tune up δ.It should be noted that about how to arrange A, b, δ belong to conventional techniques means well-known to those skilled in the art, and here is omitted, is not intended to limit the application.
It should be noted that ρ (i) the least (i.e. the nearest away from geometric center point), w (i) is the biggest;ρ (i) is the biggest (i.e. away from several What central point is the most remote), w (i) is the least.
Computing module 33, for filter value and each pixel determined of the brightness value according to each pixel obtained The weighted value that point is corresponding calculate current frame image to coke number.
Wherein, computing module 33 according to formula (3) calculate current frame image to coke number:
F V = Σ i = 1 n w ( i ) Q ( i ) - - - ( 3 )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) table Show the filter value of the brightness value of ith pixel point;N represents the total quantity of the pixel that focusing window comprised.
Alternatively, this mobile terminal also includes: detection module 34 and second determines module 35.Wherein,
Detection module 34, meets pre-conditioned external command for detecting whether exist;When detect the presence of meet pre- If during the external command of condition, determining that module 35 sends the first notice to second;When be not detected by existing meet pre-conditioned During external command, determine that module 35 sends the second notice to second;Correspondingly,
Second determines module 35, for receiving the first notice of self-detection module 34, obtains the first of external command Positional information;Positional information according to the external command obtained determines focusing window;Receive the second of self-detection module 34 Notice, using predeterminable area as focusing window.
Wherein, second determines according to the positional information of the external command obtained, module 35 determines that focusing window includes:
By pixel corresponding for the positional information of the external command to obtain as geometric center point, and withCircle for radius Shape or square covered region are as focusing area;
Wherein, L is the length of side of display screen of mobile terminal;C is greater than the natural number of 1.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, such as, c could be arranged to 2, It can also be provided that 3.
Wherein, square rectangle or square are included.
Wherein, when focusing area is rectangle,Represent is the half of this rectangular minor face, this rectangular length While be more thanWhen circle is ellipse,Represent is the minor axis radius of this ellipse, and the major axis radius of this ellipse is big In
Wherein, the predeterminable area circle with the geometric center point of the display screen of mobile terminal as geometric center point or side Shape.
Preferred embodiment, the mobile terminal in this preferred embodiment includes: detection module 34, second determines module 35, obtain Delivery block 30, filtration module 31, first determine module 32 and computing module 33.Wherein,
Detection module 34, meets pre-conditioned external command for detecting whether exist;When detect the presence of meet pre- If during the external command of condition, determining that module 35 sends the first notice to second;When be not detected by existing meet pre-conditioned During external command, determine that module 35 sends the second notice to second.
Second determines module 35, for receiving the first notice of self-detection module 34, obtains the first of external command Positional information;Positional information according to the external command obtained determines focusing window;Receive the second of self-detection module 34 Notice, using predeterminable area as focusing window.
Wherein, second determines according to the positional information of the external command obtained, module 35 determines that focusing window includes:
By pixel corresponding for the positional information of the external command to obtain as geometric center point, and withCircle for radius Shape or square covered region are as focusing area;
Wherein, L is the length of side of display screen of mobile terminal;C is greater than the natural number of 1.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, such as, c could be arranged to 2, It can also be provided that 3.
Wherein, square rectangle or square are included.
Wherein, when focusing area is rectangle,Represent is the half of this rectangular minor face, this rectangular length While be more thanWhen circle is ellipse,Represent is the minor axis radius of this ellipse, and the major axis radius of this ellipse is big In
Wherein, the predeterminable area circle with the geometric center point of the display screen of mobile terminal as geometric center point or side Shape.
Acquisition module 30, for obtaining the brightness value of each pixel that the focusing window in current frame image is comprised.
Filtration module 31, for being filtered obtaining the bright of each pixel to the brightness value of each pixel obtained The filter value of angle value.
First determines module 32, for determining the weighted value that each pixel is corresponding.
Wherein, first determine module 32 specifically for:
Determine the geometric center point of focusing window;
Obtain the second position information of each pixel that focusing window is comprised, and the geometric center point of focusing window The 3rd positional information;
Second position information and the 3rd positional information according to obtaining calculate each pixel that focusing window is comprised respectively Distance between point and the geometric center point of focusing window;
The weighted value that each pixel is corresponding is determined according to the distance calculated.
Wherein, first determines that module 32 determines, according to formula (2), the weighted value that each pixel is corresponding:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ] - - - ( 2 )
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and focusing window Distance between geometric center point;Exp represents exponential function;A, b all represent constant;δ represents tuning (tuning) parameter.
Wherein, a, b, δ are all the default values of the system setting of mobile terminal, and as a could be arranged to 1, b could be arranged to 2 Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, if desired forLimitThe weight that the pixel in edge region is corresponding is relative The weight that the pixel of zone line is corresponding is lower, then turn δ down, otherwise then tune up δ.It should be noted that about how to arrange A, b, δ belong to conventional techniques means well-known to those skilled in the art, and here is omitted, is not intended to limit the application.
It should be noted that ρ (i) the least (i.e. the nearest away from geometric center point), w (i) is the biggest;ρ (i) is the biggest (i.e. away from several What central point is the most remote), w (i) is the least.
Computing module 33, for filter value and each pixel determined of the brightness value according to each pixel obtained The weighted value that point is corresponding calculate current frame image to coke number.
Wherein, computing module 33 according to formula (3) calculate current frame image to coke number:
F V = Σ i = 1 n w ( i ) Q ( i ) - - - ( 3 )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) table Show the filter value of the brightness value of ith pixel point;N represents the total quantity of the pixel that focusing window comprised.
For the mobile terminal shown in Fig. 3, this application provides corresponding method as shown in Figure 4.
Fig. 4 is the flow chart that the application obtains the method to coke number, is applied in focus process, as shown in Figure 4, is directed to Every two field picture of photographic head output is performed both by following steps:
Step 401: the brightness value of each pixel that the focusing window in acquisition for mobile terminal current frame image is comprised.
Alternatively, before step 401, the method also includes:
Move to detect whether to exist eventually and meet pre-conditioned external command;When detect the presence of meet pre-conditioned outside During portion's instruction, obtain the primary importance information of external command;Positional information according to the external command obtained determines focusing window;
When be not detected by existing meet pre-conditioned external command time, using predeterminable area as focusing window.
Wherein, meet pre-conditioned external command to include: single-click operation or double click operation.
Wherein, determine that focusing window includes according to the positional information of the external command obtained:
By pixel corresponding for the positional information of the external command to obtain as geometric center point, and withCircle for radius Shape or square covered region are as focusing area;
Wherein, L is the length of side of display screen of mobile terminal;C is greater than the natural number of 1.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, such as, c could be arranged to 2, It can also be provided that 3.
Wherein, square rectangle or square are included.
Wherein, when focusing area is rectangle,Represent is the half of this rectangular minor face, this rectangular length While be more thanWhen circle is ellipse,Represent is the minor axis radius of this ellipse, and the major axis radius of this ellipse is big In
As shown in Fig. 5 (a), L can be the length of side of the left and right side of the display screen of mobile terminal;As shown in Fig. 5 (b), L can also be the length of side of the upper and lower side of the display screen of mobile terminal.
Wherein, the predeterminable area circle with the geometric center point of the display screen of mobile terminal as geometric center point or side Shape.
Step 402: the brightness value of each pixel obtained is filtered obtaining the brightness value of each pixel Filter value.
Step 403: determine the weighted value that each pixel is corresponding.
Wherein, step 403 specifically includes:
Determine the geometric center point of focusing window;
Obtain the second position information of each pixel that focusing window is comprised, and the geometric center point of focusing window The 3rd positional information;
Second position information and the 3rd positional information according to obtaining calculate each pixel that focusing window is comprised respectively Distance between point and the geometric center point of focusing window;
The weighted value that each pixel is corresponding is determined according to the distance calculated.
Wherein, determine, according to formula (2), the weighted value that each pixel is corresponding:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ] - - - ( 2 )
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and focusing window Distance between geometric center point;Exp represents exponential function;A, b all represent constant;δ represents tuning tuning parameter.
Wherein, a, b, δ are all the default values of the system setting of mobile terminal, and as a could be arranged to 1, b could be arranged to 2 Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, if desired forLimitThe weight that the pixel in edge region is corresponding is relative The weight that the pixel of zone line is corresponding is lower, then turn δ down, otherwise then tune up δ.It should be noted that about how to arrange A, b, δ belong to conventional techniques means well-known to those skilled in the art, and here is omitted, is not intended to limit the application.
It should be noted that ρ (i) the least (i.e. the nearest away from geometric center point), w (i) is the biggest;ρ (i) is the biggest (i.e. away from several What central point is the most remote), w (i) is the least.
Alternatively, calculating respectively between each pixel and the geometric center point of focusing window that focusing window is comprised Distance before, obtain focusing window geometric center point the 3rd positional information after, the method also includes:
Carry out coordinate system conversion with the 3rd positional information of the geometric center point of the focusing window obtained for zero, obtain Take multiple 4th positional informationes that the second position information after the conversion of multiple coordinate system is corresponding;
Calculate the distance between multiple 4th positional information and zero respectively;
The weighted value that each pixel is corresponding is determined according to the distance calculated.
It should be noted that second position information includes multiple, several pixel is i.e. had just to have several second position information, Several second position information is had just to have several 4th positional information.
Step 404: the filter value according to the brightness value of each pixel obtained is corresponding with each pixel determined Weighted value calculate current frame image to coke number.
Wherein, according to formula (3) calculate current frame image to coke number:
F V = Σ i = 1 n w ( i ) Q ( i ) - - - ( 3 )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) table Show the filter value of the brightness value of ith pixel point;N represents the total quantity of the pixel that focusing window comprised.
It should be noted that ρ (i) the least (i.e. the nearest away from geometric center point), w (i) is the biggest, and ρ (i) is the biggest (i.e. away from several What central point is the most remote), w (i) is the least, thus can realize increasing the weight away from the near filter value of geometric center point, reduce The weight of the filter value away from geometric center point remote (marginal area), thus reduce the impact of the background image at edge, effectively Avoid the erroneous judgement that focusing object off-center causes.
In the application embodiment, it is determined by the weighted value that each pixel is corresponding, and according to each picture obtained The filter value of the brightness value of the vegetarian refreshments weighted value corresponding with each pixel determined calculate current frame image to coke number, from And improve the accuracy of focusing, improve Consumer's Experience.
For the mobile terminal in preferred embodiment, this application provides corresponding method as shown in Figure 6.
Fig. 6 is the flow chart that the application obtains the embodiment of the method to coke number, is applied in focus process, such as Fig. 6 institute Show, including:
Step 600: movement detects whether to exist eventually and meets pre-conditioned external command.When detect the presence of meet default During the external command of condition, proceed to step 601;When be not detected by existing meet pre-conditioned external command time, proceed to step 603。
Wherein, meet pre-conditioned external command to include: single-click operation or double click operation.
Step 601: obtain the primary importance information of external command.
Step 602: determine focusing window according to the positional information of the external command obtained.
Step 602 specifically includes:
By pixel corresponding for the positional information of the external command to obtain as geometric center point, and withCircle for radius Shape or square covered region are as focusing area;
Wherein, L is the length of side of display screen of mobile terminal;C is greater than the natural number of 1.
It should be noted that the default value that the system that c is mobile terminal is arranged according to demand, such as, c could be arranged to 2, It can also be provided that 3.
Wherein, square rectangle or square are included.
Wherein, when focusing area is rectangle,Represent is the half of this rectangular minor face, this rectangular length While be more thanWhen circle is ellipse,Represent is the minor axis radius of this ellipse, and the major axis radius of this ellipse is big In
As shown in Fig. 5 (a), L can be the length of side of the left and right side of the display screen of mobile terminal;As shown in Fig. 5 (b), L can also be the length of side of the upper and lower side of the display screen of mobile terminal.
Step 603: using predeterminable area as focusing window.
Wherein, the predeterminable area circle with the geometric center point of the display screen of mobile terminal as geometric center point or side Shape.
Step 604: the brightness value of each pixel that the focusing window in acquisition for mobile terminal current frame image is comprised.
Step 605: the brightness value of each pixel obtained is filtered obtaining the brightness value of each pixel Filter value.
Step 606: determine the weighted value that each pixel is corresponding.
Wherein, step 606 specifically includes:
Determine the geometric center point of focusing window;
Obtain the second position information of each pixel that focusing window is comprised, and the geometric center point of focusing window The 3rd positional information;
Second position information and the 3rd positional information according to obtaining calculate each pixel that focusing window is comprised respectively Distance between point and the geometric center point of focusing window;
The weighted value that each pixel is corresponding is determined according to the distance calculated.
Wherein, determine, according to formula (2), the weighted value that each pixel is corresponding:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ] - - - ( 2 )
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and focusing window Distance between geometric center point;Exp represents exponential function;A, b all represent constant;δ represents tuning tuning parameter.
Wherein, a, b, δ are all the default values of the system setting of mobile terminal, and as a could be arranged to 1, b could be arranged to 2 Or 3 or 4 etc., δ can be configured according to the demand of photographed scene, if desired forLimitThe weight that the pixel in edge region is corresponding is relative The weight that the pixel of zone line is corresponding is lower, then turn δ down, otherwise then tune up δ.It should be noted that about how to arrange A, b, δ belong to conventional techniques means well-known to those skilled in the art, and here is omitted, is not intended to limit the application.
It should be noted that ρ (i) the least (i.e. the nearest away from geometric center point), w (i) is the biggest;ρ (i) is the biggest (i.e. away from several What central point is the most remote), w (i) is the least.
Alternatively, calculating respectively between each pixel and the geometric center point of focusing window that focusing window is comprised Distance before, obtain focusing window geometric center point the 3rd positional information after, the method also includes:
Carry out coordinate system conversion with the 3rd positional information of the geometric center point of the focusing window obtained for zero, obtain Take multiple 4th positional informationes that the second position information after the conversion of multiple coordinate system is corresponding;
Calculate the distance between multiple 4th positional information and zero respectively;
The weighted value that each pixel is corresponding is determined according to the distance calculated.
It should be noted that second position information includes multiple, several pixel is i.e. had just to have several second position information, Several second position information is had just to have several 4th positional information.
It should be noted that second position information includes multiple, several pixel is i.e. had just to have several second position information.
Step 607: the filter value according to the brightness value of each pixel obtained is corresponding with each pixel determined Weighted value calculate current frame image to coke number.
Wherein, according to formula (3) calculate current frame image to coke number:
F V = Σ i = 1 n w ( i ) Q ( i ) - - - ( 3 )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) table Show the filter value of the brightness value of ith pixel point;N represents the total quantity of the pixel that focusing window comprised.
It should be noted that ρ (i) the least (i.e. the nearest away from geometric center point), w (i) is the biggest, and ρ (i) is the biggest (i.e. away from several What central point is the most remote), w (i) is the least, thus can realize increasing the weight away from the near filter value of geometric center point, reduce The weight of the filter value away from geometric center point remote (marginal area), thus reduce the impact of the background image at edge, effectively Avoid the erroneous judgement that focusing object off-center causes.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this The process of key element, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step in said method can be instructed by program Related hardware (such as processor) completes, and described program can be stored in computer-readable recording medium, as read only memory, Disk or CD etc..Alternatively, all or part of step of above-described embodiment can also use one or more integrated circuit Realize.Correspondingly, each module/unit in above-described embodiment can realize to use the form of hardware, such as, pass through integrated circuit Realize its corresponding function, it would however also be possible to employ the form of software function module realizes, such as, perform to be stored in by processor Program/instruction in reservoir realizes its corresponding function.The present invention is not restricted to the knot of the hardware and software of any particular form Close.
These are only the preferred embodiment of the application, not thereby limit the scope of the claims of the application, every utilize this Shen Please the equivalent structure made of description and accompanying drawing content or equivalence flow process conversion, or be directly or indirectly used in other relevant skills Art field, is the most in like manner included in the scope of patent protection of the application.

Claims (10)

1. a mobile terminal, it is characterised in that including: acquisition module, filtration module, first determine module and computing module; Wherein,
Acquisition module, for obtaining the brightness value of each pixel that the focusing window in current frame image is comprised;
Filtration module, for being filtered obtaining the brightness value of each pixel to the brightness value of each pixel obtained Filter value;
First determines module, for determining the weighted value that each pixel is corresponding;
Computing module is corresponding with each pixel determined for the filter value of the brightness value according to each pixel obtained Weighted value calculate current frame image to coke number.
Mobile terminal the most according to claim 1, it is characterised in that this mobile terminal also includes: detection module and second Determine module;Wherein,
Described detection module, meets pre-conditioned external command for detecting whether exist;When detect the presence of meet default During the external command of condition, determine that module sends the first notice to described second;When be not detected by existing meet pre-conditioned During external command, determine that module sends the second notice to described second;Correspondingly,
Described second determines module, for receiving the first notice from described detection module, obtains the first of external command Positional information;Positional information according to the external command obtained determines described focusing window;Receive from described detection module Second notice, using predeterminable area as described focusing window.
Mobile terminal the most according to claim 1 and 2, it is characterised in that described first determine module specifically for:
Determine the geometric center point of described focusing window;
Obtain the second position information of each pixel that described focusing window is comprised, and in the geometry of described focusing window 3rd positional information of heart point;
Described second position information and described 3rd positional information according to obtaining calculate what described focusing window was comprised respectively Distance between the geometric center point of each pixel and described focusing window;
The weighted value that described each pixel is corresponding is determined according to the distance calculated.
Mobile terminal the most according to claim 3, it is characterised in that described computing module calculates current according to below equation Two field picture to coke number:
F V = Σ i = 1 n w ( i ) Q ( i )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) represents i-th The filter value of the brightness value of individual pixel;N represents the total quantity of the pixel that described focusing window comprised.
Mobile terminal the most according to claim 4, it is characterised in that described first determines that module determines according to below equation The weighted value that described each pixel is corresponding:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ]
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and described focusing window Distance between geometric center point;Exp represents exponential function;A, b all represent constant;δ represents tuning tuning parameter.
6. obtain the method to coke number, be applied in focus process, it is characterised in that including:
The brightness value of each pixel that the focusing window in acquisition for mobile terminal current frame image is comprised;
The brightness value of each pixel obtained is filtered obtaining the filter value of the brightness value of each pixel;
Determine the weighted value that each pixel is corresponding;
The weighted value that the filter value of the brightness value according to each pixel obtained is corresponding with each pixel determined calculates Current frame image to coke number.
Method the most according to claim 6, it is characterised in that at each pixel that described acquisition focusing window is comprised Brightness value before, the method also includes:
Described movement detects whether to exist eventually and meets pre-conditioned external command;When detect the presence of meet pre-conditioned outside During portion's instruction, obtain the primary importance information of external command;Positional information according to the external command obtained determines described focusing Window;
When be not detected by existing meet pre-conditioned external command time, using predeterminable area as described focusing window.
8. according to the method described in claim 6 or 7, it is characterised in that the described weighted value bag determining that each pixel is corresponding Include:
Determine the geometric center point of described focusing window;
Obtain the second position information of each pixel that described focusing window is comprised, and in the geometry of described focusing window 3rd positional information of heart point;
Described second position information and described 3rd positional information according to obtaining calculate what described focusing window was comprised respectively Distance between the geometric center point of each pixel and described focusing window;
The weighted value that described each pixel is corresponding is determined according to the distance calculated.
Method the most according to claim 8, it is characterised in that according to below equation calculate current frame image to coke number:
F V = Σ i = 1 n w ( i ) Q ( i )
Wherein, FV represent current frame image to coke number;W (i) represents the weighted value that ith pixel point is corresponding;Q (i) represents i-th The filter value of the brightness value of individual pixel;N represents the total quantity of the pixel that described focusing window comprised.
Method the most according to claim 9, it is characterised in that determine that described each pixel is corresponding according to below equation Weighted value:
w ( i ) = a × exp [ - ( ρ ( i ) ) 2 bδ 2 ]
Wherein, w (i) represents the weighted value that ith pixel point is corresponding;ρ (i) represents ith pixel point and described focusing window Distance between geometric center point;Exp represents exponential function;A, b all represent constant;δ represents tuning tuning parameter.
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 true CN106303044A (en) 2017-01-04
CN106303044B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018032917A1 (en) * 2016-08-18 2018-02-22 努比亚技术有限公司 Mobile terminal, method for obtaining focus value, and computer readable storage medium
CN110334635A (en) * 2019-06-28 2019-10-15 Oppo广东移动通信有限公司 Main body method for tracing, device, electronic equipment and computer readable storage medium
CN111767752A (en) * 2020-06-11 2020-10-13 网易宝有限公司 Two-dimensional code identification method and device
CN112351197A (en) * 2020-09-25 2021-02-09 南京酷派软件技术有限公司 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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018032917A1 (en) * 2016-08-18 2018-02-22 努比亚技术有限公司 Mobile terminal, method for obtaining focus value, and computer readable storage medium
CN110334635A (en) * 2019-06-28 2019-10-15 Oppo广东移动通信有限公司 Main body method for tracing, device, electronic equipment and computer readable storage medium
CN110334635B (en) * 2019-06-28 2021-08-31 Oppo广东移动通信有限公司 Subject tracking method, apparatus, electronic device and computer-readable storage medium
CN111767752A (en) * 2020-06-11 2020-10-13 网易宝有限公司 Two-dimensional code identification method and device
CN112351197A (en) * 2020-09-25 2021-02-09 南京酷派软件技术有限公司 Shooting parameter adjusting method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2018032917A1 (en) 2018-02-22
CN106303044B (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN105163042B (en) A kind of apparatus and method for blurring processing depth image
CN106231087A (en) A kind of method and apparatus of positive and negative dual-screen display device false-touch prevention
CN106130734A (en) The control method of mobile terminal and control device
CN106210328A (en) Information display device and method
CN106331499A (en) Focusing method and shooting equipment
CN106097284A (en) The processing method of a kind of night scene image and mobile terminal
CN105138261A (en) Shooting parameter adjustment apparatus and method
CN106168879A (en) A kind of method that double-sided screen is mutual and terminal
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106254628A (en) A kind of mobile terminal and multi-display method
CN104951229B (en) Screenshot method and device
CN107016639A (en) A kind of image processing method and device
CN105242483B (en) The method and apparatus that a kind of method and apparatus for realizing focusing, realization are taken pictures
CN106250081A (en) A kind of display packing based on double screen terminal and device
CN106131274A (en) Mobile terminal control device and method
CN106303044A (en) A kind of mobile terminal and the acquisition method to coke number
CN106250276A (en) A kind of mobile terminal and control method thereof
CN106250130A (en) A kind of mobile terminal and the method for response button operation
CN106791149A (en) A kind of method of mobile terminal and control screen
CN106161790A (en) A kind of mobile terminal and control method thereof
CN106683613A (en) Display method and terminal
CN104731484B (en) The method and device that picture is checked
CN106790994A (en) The triggering method and mobile terminal of control
CN106254783A (en) Moving object image pickup method and device
CN106412158A (en) Character photographing method and device

Legal Events

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