CN104732218B - The method and device that image is shown - Google Patents

The method and device that image is shown Download PDF

Info

Publication number
CN104732218B
CN104732218B CN201510150269.2A CN201510150269A CN104732218B CN 104732218 B CN104732218 B CN 104732218B CN 201510150269 A CN201510150269 A CN 201510150269A CN 104732218 B CN104732218 B CN 104732218B
Authority
CN
China
Prior art keywords
image
matched
target photo
facial
facial image
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
CN201510150269.2A
Other languages
Chinese (zh)
Other versions
CN104732218A (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 CN201510150269.2A priority Critical patent/CN104732218B/en
Publication of CN104732218A publication Critical patent/CN104732218A/en
Application granted granted Critical
Publication of CN104732218B publication Critical patent/CN104732218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of method that image is shown, the method that image is shown includes step:Obtain preset standard faces image;Target Photo is obtained, and obtains the display area of all facial images to be matched on Target Photo;In display area, standard faces image and facial image to be matched are subjected to matching degree analysis;If there is target facial image to reach threshold value with standard faces images match degree in Target Photo, it is determined that position of the target facial image in Target Photo shows position to the designated position of display screen according to preset display scale.The present invention further discloses a kind of devices that image is shown.The present invention by obtaining standard faces image and Target Photo first, then obtains the display area of all facial images to be matched on Target Photo;Further according to display area, matching standard faces image and facial image to be matched are conducive to the character image that user accurately and fast searches needs from the picture comprising numerous character images.

Description

The method and device that image is shown
Technical field
The present invention relates to the method and devices that technical field of picture display more particularly to image are shown.
Background technology
On an electronic device when browsing pictures, often due to the limitation of display screen physical size so that user be difficult to from On photo in numerous head portraits, oneself desired target is found.For example, will be from a hundreds of people's being shown on mobile phone screen In group photo, the position of a certain friend is found, that is a very troublesome engineering.
Invention content
It is a primary object of the present invention to propose a kind of method that image is shown, it is intended to which solution needs to amplify on a small screen Search the problem of image difficulty.
To achieve the above object, the method that a kind of image provided by the invention is shown, the method that described image is shown include Step:
Obtain preset standard faces image;
Target Photo is obtained, and obtains the display area of all facial images to be matched on Target Photo;
In the display area, the standard faces image and the facial image to be matched are subjected to matching degree point Analysis;
If there is target facial image to reach threshold value with standard faces images match degree in the Target Photo, it is determined that described Position of the target facial image in Target Photo shows the position to the finger of display screen according to preset display scale Positioning is set.
Preferably, described the step of obtaining the display area of all facial images to be matched on Target Photo, specifically includes:
Receive the Target Photo that user uploads;
The Target Photo is parsed, the display area of all facial images to be matched on the Target Photo is obtained;
According to the display area of all facial images to be matched, generation records all face figures to be matched The position table of image position;It is described according to display area, match the step of the standard faces image and the facial image to be matched Suddenly it specifically includes:
According to the position table, the standard faces image is matched with all facial images to be matched one by one.
Preferably, position of the target facial image in Target Photo is determined, according to preset display scale, by institute's rheme It sets and shows the Target Photo as screen center.
Preferably, the step of acquisition standard faces image specifically includes:
Receive the standard faces image that user uploads;Or
The shooting instruction for receiving user, shoots corresponding face.
In addition, to achieve the above object, the present invention also proposes a kind of device that image is shown, the device that described image is shown Including:
Acquisition module, for obtaining preset standard faces image;
Locating module for obtaining Target Photo, and obtains the viewing area of all facial images to be matched on Target Photo Domain;
Matching module is used in the display area, by the standard faces image and the facial image to be matched Carry out matching degree analysis;
Display module, if for thering is target facial image and standard faces images match degree to reach threshold in the Target Photo Value, it is determined that position of the target facial image in Target Photo shows the position according to preset display scale To the designated position of display screen.
Preferably, the locating module includes:
Receiving unit, the Target Photo for receiving user's upload;
Resolution unit obtains all facial images to be matched on the Target Photo for parsing the Target Photo The display area;
Generation unit, for the display area according to all facial images to be matched, generation records all institutes State the position table of facial image position to be matched;The matching module is specifically used for according to the position table, by the standard people Face image is matched with all facial images to be matched one by one.
Preferably, position of the target facial image in Target Photo is determined, according to preset display scale, by institute's rheme It sets and shows the Target Photo as screen center.
Preferably, the acquisition module includes:
Receiving unit, the standard faces image for receiving user's upload;Or
Shooting unit, the shooting instruction for receiving user shoot corresponding face.
The present invention by obtaining standard faces image and Target Photo first, then obtains all people to be matched on Target Photo The display area of face image;Further according to display area, matching standard faces image and facial image to be matched;When standard faces figure When as with facial image successful match to be matched, the facial image to be matched of successful match is shown according to preset display scale, Be conducive to the character image that user accurately and fast searches needs from the picture comprising numerous character images, to be conducive to Improve the experience of user.
Description of the drawings
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow diagram for the method first embodiment that image of the present invention is shown;
Fig. 4 is the flow diagram for the method second embodiment that image of the present invention is shown;
Fig. 5 is the high-level schematic functional block diagram for the device first embodiment that image of the present invention is shown;
Fig. 6 is the high-level schematic functional block diagram for the device second embodiment that image of the present invention is shown.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention 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 be conducive to the present invention explanation, 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, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
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 via broadcast channel from external broadcast management server Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information that the server or reception of broadcast singal and/or broadcast related information generate before And send it to the server of terminal.Broadcast singal may include TV broadcast singals, 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 of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored 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 the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by 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 (I rDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module of the location information for checking or obtaining 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, to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended using three for the method for calculating position and temporal information 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 units 120 are for receiving audio or video signal.A/V input units 120 may include 121 He of camera Microphone 1220, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain static map The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110 It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case of telephone calling model For the format output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement various types Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or Person interferes.
User input unit 130 can generate key input data to control each of mobile terminal according to order input by user Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, sensitive component of detection variation of resistance, pressure, capacitance 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, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense The sliding-type phone is to open or close.In addition, sensing unit 140 can detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which may include proximity sensor 1410, to be combined below Touch screen is described this.
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 store to 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 with identification module can (hereinafter referred to as " identification device ") take the form of smart card therefore to 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 the transmission 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 provides to the path of mobile terminal 100 from pedestal or may be used as that the various command signals inputted from pedestal is allowed 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 Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).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 Download etc.) relevant user interface (U I) or graphic user interface (GU I).When mobile terminal 100 is in video calling mould When formula or image capture mode, display unit 151 can show the image of capture and/or the image of reception, video is shown or The UI or GUI etc. of image and correlation function.
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 be watched 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, which can be used for detecting, to be touched 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 that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode 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 loud speaker, 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 exports, alarm unit 153 can provide output with the generation of notification event in different ways.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.It is exported by tactile as offer, 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 be stored about when the vibration and audio signal for touching the various modes that the when of being applied to touch screen exports 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 memories 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 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control Device 180 processed detaches.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure Piece 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 with use such as computer software, hardware or any combination thereof calculating 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 be stored in memory 160 and be executed by controller 180.
So far, oneself according to its function through describing mobile terminal.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 present invention 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 transmission data it is all if any Line and wireless communication system and satellite-based communication system operate.
The communication system that mobile terminal wherein according to the present invention can operate is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.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 figure 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) 2800MSC 280 are configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC 280 is also structured to be formed with the BSC 275 that can be couple to base station 270 via back haul link and connect Mouthful.Back haul link can be constructed according to any one of several known interfaces, and the interface includes such as E 1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple as shown in Figure 2 BSC2750。
Each BS 270 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 BS 270.Alternatively, each subregion can by two for diversity reception or more Multiple antennas covers.Each BS 270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency It composes (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS 270 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 BSC 275 and at least one BS 270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be referred to as 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 BT 295 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, any number of satellite can be utilized to obtain useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning Breath.It substitutes GPS tracking techniques or except GPS tracking techniques, the other of the position that can track mobile terminal can be used Technology.In addition, at least one GPS satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminals 100 Road signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Each of reception of certain base station 270 Reverse link signal is handled in specific BS 270.The data of acquisition are forwarded to relevant BSC 275.BSC is provided The mobile management function for the resource allocation and the coordination including the soft switching process between BS 270 conversed.BSC 275 will also be received To data be routed to MSC280, the additional route service for forming interface with PSTN 290 is provided.Similarly, PSTN290 and MSC 280 form interface, and MSC and BSC 275 forms interface, and BSC 275 correspondingly control BS270 with by Forward link signals are sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each implementation of method that image of the present invention is shown is proposed Example.
As shown in figure 3, Fig. 3 is the flow diagram for the method first embodiment that image of the present invention is shown, the present invention first Embodiment proposes that a kind of method that image is shown, the method which shows include:
S10:Obtain standard faces image;
User's browsing pictures on mobile terminals, when browsing to one and including the group photo photo of hundreds of people, user wants to look for To position of certain friend in photo, the dress of the browsing photo of setting on mobile terminals can be opened by gesture or voice It sets.
Mobile terminal is firstly the need of the head portrait for obtaining the user people to be searched, i.e. standard faces image.And mobile terminal obtains The mode of standard faces image is taken to have very much, the standard faces image that can be in real time uploaded by receiving user;It can also pass through It instructs according to the user's choice, passage path inquiry etc. obtains standard faces image from the local picture library of user;If with The friend at family is on the scene, and mobile terminal can also obtain standard faces image by the photo mode of live shooting.Certainly, in movement During terminal obtains standard faces image, the generated time of the standard faces image of acquisition for mobile terminal, it should want as possible It is close with the generated time of the picture of browsing.In the present embodiment, in such a way that user uploads or is taken on site, Ke Yizhun Really, efficiently obtain standard faces image, be conducive to user fast and accurately search in Target Photo with standard faces image The image matched.
S20:Target Photo is obtained, and obtains the display area of all facial images to be matched on Target Photo;
After obtaining standard faces image, mobile terminal also needs to determine that the picture to be searched of user, i.e. user prepare to look into The position where friend in any pictures is looked for, the picture of the determined lookup of user is Target Photo, the target figure in the present embodiment Piece is by taking the group photo of the hundreds of people mentioned above as an example.After acquisition for mobile terminal to Target Photo, pass through image recognition skill Art identifies all people's face image in Target Photo, and determines the display area of every facial image, i.e., under current state, The relative position of each facial image on a display screen.Wherein, in order to distinguish the difference between facial image and facial image, mesh The facial image marked on a map in piece is known as facial image to be matched.It is to be matched by every in determining Target Photo in the present embodiment The position of facial image provides necessary condition for matching process hereinafter.
S30:According to display area, matching standard faces image will be marked with facial image to be matched that is, in display area Quasi- facial image carries out matching degree analysis with facial image to be matched;
According to the display area of the facial image to be matched above obtained, standard faces image is waited for Target Photo Matching facial image is matched one by one.Matched mode has very much, in the present embodiment, by scanning standard facial image and waits for Facial image is matched to realize the two matching.In the present embodiment, by first determining the position of image to be matched, standard is then matched Facial image and facial image to be matched so that mobile in the matching process of standard faces image and facial image to be matched Terminal can accurately find the region belonging to each facial image to be matched, avoid the entire screen of mobile terminal and go to scan, Be conducive to improve the matching efficiency of standard faces image and facial image to be matched.
S40:If standard faces image and facial image successful match to be matched, then show according to preset display scale The facial image to be matched of successful match even has target facial image to reach with standard faces images match degree in Target Photo Threshold value, it is determined that position of the target facial image in Target Photo shows position to display according to preset display scale The designated position of screen;
When standard faces image and facial image successful match to be matched, the facial image to be matched of successful match is pressed Preset display scale amplification, and amplified facial image to be matched is made into centering process.Wherein, according to preset display ratio Example is shown there are many approach of the facial image to be matched of successful match, can all amplify whole Target Photo, then Include in the center of display screen by facial image to be matched;The facial image to be matched of successful match can also only be amplified, or Then the facial image to be matched and the Target Photo in the preset range of periphery for amplifying successful match show matching facial image In the center of display screen.
In the present embodiment, by obtaining standard faces image and Target Photo first, then obtains and needed on Target Photo Match the display area of facial image;Further according to display area, matching standard faces image and facial image to be matched;Work as standard When facial image is with facial image successful match to be matched, the face to be matched of successful match is shown according to preset display scale Image is conducive to the character image that user accurately and fast searches needs from the picture comprising numerous character images, to have Conducive to the experience of raising user.
As shown in figure 4, Fig. 4 is the flow diagram for the method second embodiment that image of the present invention is shown, in above-mentioned implementation On the basis of example, step S20 is specifically included:
S21:Receive the Target Photo that user uploads;
Mobile terminal receives the Target Photo of user's upload first, and user uploads there are many modes of Target Photo, can be with It, can also be from network high in the clouds invocation target picture according to the invocation target picture from local picture library is prompted.If there are many ways It is to pay the utmost attention to factor with the clarity of Target Photo to be obtained when diameter obtains Target Photo.
S22:Target Photo is parsed, the display area of all facial images to be matched on Target Photo is obtained;
After obtaining the Target Photo that user uploads, acquired Target Photo is analyzed, is waited for all on Target Photo Matching facial image identifies, and records the current display area of facial image to be matched on a display screen, and respectively waits for Match the relative position relation between facial image.In the present embodiment, by obtaining facial image to be matched on Target Photo Display area so that standard faces image can accurately find facial image to be matched, to be conducive to improve in matching Standard faces image and the direct matching efficiency of facial image to be matched.
S23:According to the display area of all facial images to be matched, generation records all facial image positions to be matched Position table.
According to the relative position relation between the display area and facial image to be matched of the facial image to be matched of record, Generate the position table for recording the relative position relation between all facial image positions to be matched and facial image to be matched.This reality It applies in example, by generating position table so that standard faces image can be realized during matched according to position table, is conducive to Standard faces image is quickly matched with each facial image to be matched successively.
On the basis of the above embodiments, step S30 is specifically included:
In the matching process, the area of the screen shared by each facial image to be matched is calculated according to position table first, and The minimum rectangle frame for surrounding facial image to be matched is generated, that is, is directed to each one rectangle frame of Face image synthesis to be matched, square The length of shape frame is equal with the maximum length of facial image to be matched, and the width of rectangle frame and the maximum of facial image to be matched are wide It spends equal so that facial image to be matched is located just in rectangle frame;Further according to position table, standard faces image is made to match one by one Facial image to be matched in each rectangle frame, i.e., further according to position table fall into a trap record each facial image to be matched position and Position relationship between facial image to be matched, calculate the highest matching order of matching efficiency makes mark further according to matching order Quasi- facial image is matched with the facial image to be matched in each rectangle frame.In the present embodiment, still in a manner of scanning It is matched, the scanning during, the rectangle frame due to surrounding facial image to be matched has minimized, so that Pixel quantity minimum to be treated in scanning process.
In the present embodiment, the minimum rectangle frame of facial image to be matched is surrounded by generating, reducing in matching process needs The area of Target Photo to be processed is conducive to improve standard faces figure to reduce the quantity for thinking pixel to be processed As the matching efficiency with facial image to be matched.
On the basis of the above embodiments, step S40 is specifically included:
During standard faces image and facial image to be matched are matched one by one, when standard faces image is waited for a certain When matching facial image successful match, according to preset display scale, show facial image to be matched to designated position.It is above-mentioned pre- If display scale be:Surround the area of the rectangle frame of the facial image to be matched of successful match, the area with entire display screen Ratio, such as display scale be 1:3.The calculating of this ratio needs the physical length size and broad-ruler in view of display screen It is very little, i.e., in the display scale for receiving user preset, the size and display scale according to display screen are needed, calculates encirclement The length dimension and width dimensions of rectangle frame with successful facial image to be matched.Calculating waiting for for display successful match After area size with facial image, the predeterminated position in display screen is arranged in display area by the instruction further according to user.Work as mark When quasi- facial image is with a certain facial image successful match to be matched, the rectangle frame for surrounding facial image to be matched is amplified, and The mobile rectangle frame is extremely overlapped with display area.In the present embodiment, the facial image to be matched of successful match is shown centered on.This In embodiment, by according to preset display scale, showing the facial image to be matched of successful match to designated position, favorably It is timely found in user and observes the facial image to be matched.When user has found matched incorrect, can continue to match.
The present invention further provides a kind of devices that image is shown.
With reference to Fig. 5, Fig. 5 is the high-level schematic functional block diagram for the device first embodiment that image of the present invention is shown;
The device that the image of the present embodiment is shown includes:
Acquisition module 10, for obtaining standard faces image;
User's browsing pictures on mobile terminals, when browsing to one and including the group photo photo of hundreds of people, user wants to look for To position of certain friend in photo, the dress of the browsing photo of setting on mobile terminals can be opened by gesture or voice It sets.
Acquisition module includes:Receiving unit, the standard faces image for receiving user's upload;Or shooting unit, it is used for The face specified according to the shooting instruction of user, shooting user.
Mobile terminal is firstly the need of the head portrait for obtaining the user people to be searched, i.e. standard faces image.And mobile terminal obtains The mode of standard faces image is taken to have very much, the standard faces image that can be in real time uploaded by receiving user;It can also pass through It instructs according to the user's choice, passage path inquiry etc. obtains standard faces image from the local picture library of user;If with The friend at family is on the scene, and mobile terminal can also obtain standard faces image by the photo mode of live shooting.Certainly, in movement During terminal obtains standard faces image, the generated time of the standard faces image of acquisition for mobile terminal, it should want as possible It is close with the generated time of the picture of browsing.In the present embodiment, in such a way that user uploads or is taken on site, Ke Yizhun Really, efficiently obtain standard faces image, be conducive to user fast and accurately search in Target Photo with standard faces image The image matched.
Locating module 20 for obtaining Target Photo, and obtains the display of all facial images to be matched on Target Photo Region;
After obtaining standard faces image, mobile terminal also needs to determine that the picture to be searched of user, i.e. user prepare to look into The position where friend in any pictures is looked for, the picture of the determined lookup of user is Target Photo, the target figure in the present embodiment Piece is by taking the group photo of the hundreds of people mentioned above as an example.After acquisition for mobile terminal to Target Photo, pass through image recognition skill Art identifies all people's face image in Target Photo, and determines the display area of every facial image, i.e., under current state, The relative position of each facial image on a display screen.Wherein, in order to distinguish the difference between facial image and facial image, mesh The facial image marked on a map in piece is known as facial image to be matched.It is to be matched by every in determining Target Photo in the present embodiment The position of facial image provides necessary condition for matching process hereinafter.
Matching module 30, for according to display area, matching standard faces image and facial image to be matched, that is, showing In region, standard faces image and facial image to be matched are subjected to matching degree analysis;
According to the display area of the facial image to be matched above obtained, standard faces image is waited for Target Photo Matching facial image is matched one by one.Matched mode has very much, in the present embodiment, by scanning standard facial image and waits for Facial image is matched to realize the two matching.In the present embodiment, by first determining the position of image to be matched, standard is then matched Facial image and facial image to be matched so that mobile in the matching process of standard faces image and facial image to be matched Terminal can accurately find the region belonging to each facial image to be matched, avoid the entire screen of mobile terminal and go to scan, Be conducive to improve the matching efficiency of standard faces image and facial image to be matched.
Display module 40, if for standard faces image and facial image successful match to be matched, then according to preset Display scale shows facial image to be matched, even has target facial image to be reached with standard faces images match degree in Target Photo To threshold value, it is determined that position of the target facial image in Target Photo shows position to aobvious according to preset display scale The designated position of display screen.
When standard faces image and facial image successful match to be matched, the facial image to be matched of successful match is pressed Preset display scale amplification, and amplified facial image to be matched is made into centering process.Wherein, according to preset display ratio Example is shown there are many approach of the facial image to be matched of successful match, can all amplify whole Target Photo, then Include in the center of display screen by facial image to be matched;The facial image to be matched of successful match can also only be amplified, or Then the facial image to be matched and the Target Photo in the preset range of periphery for amplifying successful match show matching facial image In the center of display screen.
In the present embodiment, by obtaining standard faces image and Target Photo first, then obtains and needed on Target Photo Match the display area of facial image;Further according to display area, matching standard faces image and facial image to be matched;Work as standard When facial image is with facial image successful match to be matched, the face to be matched of successful match is shown according to preset display scale Image is conducive to the character image that user accurately and fast searches needs from the picture comprising numerous character images, to have Conducive to the experience of raising user.
With reference to Fig. 6, Fig. 6 is the high-level schematic functional block diagram for the device second embodiment that image of the present invention is shown, in above-mentioned reality On the basis of applying example, locating module 20 includes:
Receiving unit 21, the Target Photo for receiving user's upload;
Mobile terminal receives the Target Photo of user's upload first, and user uploads there are many modes of Target Photo, can be with It, can also be from network high in the clouds invocation target picture according to the invocation target picture from local picture library is prompted.If there are many ways It is to pay the utmost attention to factor with the clarity of Target Photo to be obtained when diameter obtains Target Photo.
Resolution unit 22 obtains the viewing area of all facial images to be matched on Target Photo for parsing Target Photo Domain;
After obtaining the Target Photo that user uploads, acquired Target Photo is analyzed, is waited for all on Target Photo Matching facial image identifies, and records the current display area of facial image to be matched on a display screen, and respectively waits for Match the relative position relation between facial image.In the present embodiment, by obtaining facial image to be matched on Target Photo Display area so that standard faces image can accurately find facial image to be matched, to be conducive to improve in matching Standard faces image and the direct matching efficiency of facial image to be matched.
Generation unit 23, for the display area according to all facial images to be matched, generation records all people to be matched The position table of face image position.
According to the relative position relation between the display area and facial image to be matched of the facial image to be matched of record, Generate the position table for recording the relative position relation between all facial image positions to be matched and facial image to be matched.This reality It applies in example, by generating position table so that standard faces image can be realized during matched according to position table, is conducive to Standard faces image is quickly matched with each facial image to be matched successively.
On the basis of the above embodiments, matching module 30 is specifically used for:
According to position table, standard faces image matches all facial images to be matched one by one.In the matching process, root first According to position table, the area of the screen shared by each facial image to be matched is calculated, and generates and surrounds facial image to be matched most Small rectangle frame is directed to each one rectangle frame of Face image synthesis to be matched, the length of rectangle frame and facial image to be matched Maximum length it is equal, the width of rectangle frame is equal with the maximum width of facial image to be matched so that facial image to be matched It is located just in rectangle frame;Further according to position table, standard faces image is made to match the face to be matched in each rectangle frame one by one Image, i.e., further according to position table fall into a trap record each facial image to be matched position and facial image to be matched between position Relationship calculates the highest matching order of matching efficiency, further according to matching order, makes in standard faces image and each rectangle frame Facial image to be matched matched.It in the present embodiment, is matched still in a manner of scanning, in the process of scanning In, the rectangle frame due to surrounding facial image to be matched has minimized, so that the picture to be treated in scanning process Vegetarian refreshments quantity minimizes.
In the present embodiment, the minimum rectangle frame of facial image to be matched is surrounded by generating, reducing in matching process needs The area of Target Photo to be processed is conducive to improve standard faces figure to reduce the quantity for thinking pixel to be processed As the matching efficiency with facial image to be matched.
On the basis of the above embodiments, display module 40 is specifically used for:
According to preset display scale, show facial image to be matched to designated position.In standard faces image and wait for With facial image it is matched one by one during, when standard faces image and a certain facial image successful match to be matched, according to Preset display scale shows facial image to be matched to designated position.Above-mentioned preset display scale is:Surround successful match Facial image to be matched rectangle frame area, the ratio with the area of entire display screen, for example, display scale be 1:3.This The calculating of ratio needs the physical length size and width dimensions in view of display screen, i.e., in the display ratio for receiving user preset When example, the size and display scale according to display screen are needed, calculates the rectangle for the facial image to be matched for surrounding successful match The length dimension and width dimensions of frame.After calculating the area size of facial image to be matched of display successful match, then root Display area is arranged to the predeterminated position in display screen according to the instruction of user.When standard faces image and a certain face figure to be matched When as successful match, the rectangle frame for surrounding facial image to be matched is amplified, and the mobile rectangle frame is extremely overlapped with display area. In the present embodiment, the facial image to be matched of successful match is shown centered on.In the present embodiment, pass through waiting for successful match With facial image according to preset display scale, display to designated position is conducive to user and timely finds and observe this to wait for With facial image.When user has found matched incorrect, can continue to match.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only 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 this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of method that image is shown, which is characterized in that the method that described image is shown includes step:
Obtain preset standard faces image;
Target Photo is obtained, and obtains the display area of all facial images to be matched on Target Photo;
In the display area, the standard faces image and the facial image to be matched are subjected to matching degree analysis;
If there is target facial image to reach threshold value with standard faces images match degree in the Target Photo, it is determined that the target Position of the facial image in Target Photo shows the position to the specific bit of display screen according to preset display scale It sets;
Wherein, described the step of obtaining the display area of all facial images to be matched on Target Photo, specifically includes:
Receive the Target Photo that user uploads;
The Target Photo is parsed, the display area of all facial images to be matched on the Target Photo is obtained;
According to the display area of all facial images to be matched, generation records all facial image positions to be matched The position table set.
2. the method that image as described in claim 1 is shown, which is characterized in that according to display area, match the standard faces Image is specifically included with the step of facial image to be matched:
According to the position table, the standard faces image is matched with all facial images to be matched one by one.
3. the method that image as described in claim 1 is shown, which is characterized in that the determining target facial image is in Target Photo In position the position was shown to the step of designated position of display screen and is specifically included according to preset display scale:
Position of the target facial image in Target Photo is determined, according to preset display scale, using the position as screen Center shows the Target Photo.
4. the method that image as described in claim 1 is shown, which is characterized in that the step of acquisition standard faces image is specific Including:
Receive the standard faces image that user uploads;Or
The shooting instruction for receiving user, shoots corresponding face.
5. a kind of device that image is shown, which is characterized in that the device that described image is shown includes:
Acquisition module, for obtaining preset standard faces image;
Locating module for obtaining Target Photo, and obtains the display area of all facial images to be matched on Target Photo;
Matching module, in the display area, the standard faces image and the facial image to be matched to be carried out Matching degree is analyzed;
Display module, if for thering is target facial image and standard faces images match degree to reach threshold value in the Target Photo, Then determine position of the target facial image in Target Photo, according to preset display scale, by the position show to The designated position of display screen;
Wherein, the locating module includes:
Receiving unit, the Target Photo for receiving user's upload;
Resolution unit obtains the display of all facial images to be matched on the Target Photo for parsing the Target Photo Region;
Generation unit, for according to the display areas of all facial images to be matched, generation records all described wait for Match the position table of facial image position.
6. the device that image as claimed in claim 5 is shown, which is characterized in that the matching module is specifically used for according to institute's rheme Table is set, the standard faces image is matched with all facial images to be matched one by one.
7. the device that image as claimed in claim 5 is shown, which is characterized in that the display module is specifically used for determining target person Position of the face image in Target Photo shows the mesh according to preset display scale using the position as screen center It marks on a map piece.
8. the device that image as claimed in claim 5 is shown, which is characterized in that the acquisition module includes:
Receiving unit, the standard faces image for receiving user's upload;Or
Shooting unit, the shooting instruction for receiving user shoot corresponding face.
CN201510150269.2A 2015-03-31 2015-03-31 The method and device that image is shown Active CN104732218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510150269.2A CN104732218B (en) 2015-03-31 2015-03-31 The method and device that image is shown

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510150269.2A CN104732218B (en) 2015-03-31 2015-03-31 The method and device that image is shown

Publications (2)

Publication Number Publication Date
CN104732218A CN104732218A (en) 2015-06-24
CN104732218B true CN104732218B (en) 2018-09-04

Family

ID=53456092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510150269.2A Active CN104732218B (en) 2015-03-31 2015-03-31 The method and device that image is shown

Country Status (1)

Country Link
CN (1) CN104732218B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100642B (en) * 2015-07-30 2018-11-20 努比亚技术有限公司 Image processing method and device
KR101972331B1 (en) * 2017-08-29 2019-04-25 키튼플래닛 주식회사 Image alignment method and apparatus thereof
CN114679591A (en) * 2021-12-30 2022-06-28 广州方硅信息技术有限公司 Video proportion switching method, device and medium for live broadcast room and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118510A (en) * 2011-03-17 2011-07-06 宇龙计算机通信科技(深圳)有限公司 Contact correlation method, server and mobile terminal
CN202309884U (en) * 2011-10-28 2012-07-04 深圳市迪威泰实业有限公司 Intelligent image-picking and photographing integrated machine with portrait identifying and tracking functions
CN103049734A (en) * 2011-10-12 2013-04-17 杜惠红 Method and system for finding person in public place

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4367663B2 (en) * 2007-04-10 2009-11-18 ソニー株式会社 Image processing apparatus, image processing method, and program
EP2207342B1 (en) * 2009-01-07 2017-12-06 LG Electronics Inc. Mobile terminal and camera image control method thereof
CN102025827A (en) * 2009-09-22 2011-04-20 鸿富锦精密工业(深圳)有限公司 Communication device and photo display-based conversation method thereof
JP2012186670A (en) * 2011-03-07 2012-09-27 Ricoh Co Ltd Imaging device, imaging method, and imaging program
CN103873755B (en) * 2012-12-14 2017-06-16 鸿富锦精密工业(深圳)有限公司 Jump portrait system and method
CN103500220B (en) * 2013-10-14 2017-02-22 大连民族学院 Method for recognizing persons in pictures

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118510A (en) * 2011-03-17 2011-07-06 宇龙计算机通信科技(深圳)有限公司 Contact correlation method, server and mobile terminal
CN103049734A (en) * 2011-10-12 2013-04-17 杜惠红 Method and system for finding person in public place
CN202309884U (en) * 2011-10-28 2012-07-04 深圳市迪威泰实业有限公司 Intelligent image-picking and photographing integrated machine with portrait identifying and tracking functions

Also Published As

Publication number Publication date
CN104732218A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN106502693B (en) A kind of image display method and device
CN105160264B (en) Photo encryption device and method
CN104679890B (en) Picture method for pushing and device
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN105718071A (en) Terminal and method for recommending associational words in input method
CN105120054B (en) Information processing method and mobile terminal
CN106850941A (en) Method, photo taking and device
CN106534552B (en) Mobile terminal and its photographic method
CN105049582B (en) A kind of save set of calling record, method and display methods
CN104735254B (en) terminal screen locking method and system
CN106412328B (en) A kind of method and apparatus obtaining field feedback
CN106383707A (en) Picture display method and system
CN104732218B (en) The method and device that image is shown
CN105262953B (en) A kind of mobile terminal and its method of control shooting
CN104915230B (en) application control method and device
CN105183346B (en) Image display apparatus and method
CN106791149A (en) A kind of method of mobile terminal and control screen
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN105049916A (en) Video recording method and device
CN105391864B (en) Device and method based on pressure control mobile terminal vibration
CN106792644A (en) Mobile terminal, server and information processing method
CN104751074B (en) Image display processing method and device
CN106569670A (en) Application processing apparatus and method
CN106534498A (en) Control device and method of application folder and mobile terminal
CN105721757A (en) Device and method for adjusting photographing parameters

Legal Events

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