CN105430258B - A kind of method and apparatus of self-timer group photo - Google Patents

A kind of method and apparatus of self-timer group photo Download PDF

Info

Publication number
CN105430258B
CN105430258B CN201510727210.5A CN201510727210A CN105430258B CN 105430258 B CN105430258 B CN 105430258B CN 201510727210 A CN201510727210 A CN 201510727210A CN 105430258 B CN105430258 B CN 105430258B
Authority
CN
China
Prior art keywords
face
group photo
person
recognition
frame
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
CN201510727210.5A
Other languages
Chinese (zh)
Other versions
CN105430258A (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 CN201510727210.5A priority Critical patent/CN105430258B/en
Publication of CN105430258A publication Critical patent/CN105430258A/en
Priority to PCT/CN2016/102848 priority patent/WO2017071532A1/en
Application granted granted Critical
Publication of CN105430258B publication Critical patent/CN105430258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a kind of methods of self-timer group photo, which is characterized in that the method includes the steps:Under self-timer group photo pattern, based on the face of the recognition of face person that determines group photo;Position relationship between the person's face that determines group photo;When the position relationship between judging the face of group photo person is suitble to shooting to take a group photo, triggering camera is shot.The present invention can improve the convenience of terminal user's self-timer group photo and the quality of group photo picture.

Description

A kind of method and apparatus of self-timer group photo
Technical field
The present invention relates to the method and apparatus that field of terminal technology more particularly to a kind of self-timer are taken a group photo.
Background technology
It generally requires that third party's help is allowed to take pictures or by camera when two people (for example, lovers) need self-timer to take a group photo Timing photography function is taken pictures using front camera.But above method more or less has some shortcomings.Because many times Be not desired to trouble other people, the operating time periodically taken pictures is relatively long, while using front camera when holds mobile phone with one hand Camera button is also clicked on, operate inconvenience, and easily causes float of taking pictures.
Therefore, how a kind of solution of easily self-timer group photo is provided, is the technical issues that need to address.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of method and apparatus of self-timer group photo, it is intended to improve user certainly Clap the convenience of group photo and the quality of group photo picture.
To achieve the above object, the method for a kind of self-timer group photo provided by the invention, applied to terminal, the described method includes Step:
Under self-timer group photo pattern, based on the face of the recognition of face person that determines group photo;
Position relationship between the person's face that determines group photo;
When the position relationship between judging the face of group photo person is suitble to shooting to take a group photo, triggering camera is shot.
Optionally, the position relationship between the definite group photo person face, including:
Determining group photo, whether the facial of person is on same focal plane and whether close to each other;
Position relationship between the face for judging group photo person is suitble to shooting to take a group photo, including:
Judge that the face of group photo person is on same focal plane and close to each other.
Optionally, whether the face of the definite group photo person is on same focal plane, including:
If the area of the corresponding recognition of face frame of face of two group photo persons is more than first threshold than r, two are judged The face of group photo person is on same focal plane;If the area of the corresponding recognition of face frame of face of two group photo persons is smaller than r In or equal to first threshold, then judge that the face of two group photo persons is not on same focal plane;
Wherein, the area of the corresponding recognition of face frame of face of two group photo persons is the recognition of face of the first group photo person than r The area s2, s1 of the recognition of face frame of the area s1 of frame divided by the second group photo person are less than or equal to s2.
Optionally, whether the face of the definite group photo person is close to each other, including:
Calculate the close degree t of two group photo person faces;
If the close degree t of two group photo person faces is more than second threshold, judging group photo, person is close to each other;If two The close degree t of a group photo person face is less than or equal to second threshold, then judging group photo, person is not close to each other;
Wherein, the close degree t for calculating two group photo person faces, may be employed in the following manner and is calculated:
Wherein, the central point of the recognition of face frame of the first group photo person be A1, the center of the recognition of face frame of the second group photo person It is B1 to put, and the intersection point of the recognition of face frame of the central point line of the recognition of face frame of two group photo persons and the first group photo person is A2, The intersection point of the central point line of the recognition of face frame of two group photo persons and the recognition of face frame of the second group photo person is B2, A1 points and B1 For the distance of point for s, the distance of A1 points and A2 points is da, and the distance of B1 points and B2 points is db.
Optionally, the face based on the recognition of face person that determines group photo, including:
Recognition of face is carried out to the face of reference object, it is when the face number identified is more than one, area is maximum Face of the face that is focused on of two recognition of face frames as group photo person.
In addition, to achieve the above object, the present invention also provides a kind of device of self-timer group photo, applied to terminal, including:
Face detection module, under self-timer group photo pattern, based on the face of the recognition of face person that determines group photo;
Position computation module, for the position relationship between the person's face that determines group photo;
Taking module, for when the position relationship between judging the face of group photo person is suitble to shooting to take a group photo, triggering camera It is shot.
Optionally, the position computation module, for the position relationship between the person's face that determines group photo, including:It determines to close Whether whether the face of shadow person on same focal plane and close to each other;
The taking module is suitble to shooting to take a group photo for the position relationship between the face for the person that judges group photo, including:Judge The face of group photo person is on same focal plane and close to each other.
Optionally, the position computation module, for determining group photo, whether the facial of person is in same focal plane, bag It includes:
If the area of the corresponding recognition of face frame of face of two group photo persons is more than first threshold than r, two are judged The face of group photo person is on same focal plane;If the area of the corresponding recognition of face frame of face of two group photo persons is smaller than r In or equal to first threshold, then judge that the face of two group photo persons is not on same focal plane;
Wherein, the area of the corresponding recognition of face frame of face of two group photo persons is the recognition of face of the first group photo person than r The area s2, s1 of the recognition of face frame of the area s1 of frame divided by the second group photo person are less than or equal to s2.
Optionally, the position computation module, it is whether close to each other for the face for the person that determines group photo, including:
Calculate the close degree t of two group photo person faces;
If the close degree t of two group photo person faces is more than second threshold, judging group photo, person is close to each other;If two The close degree t of a group photo person face is less than or equal to second threshold, then judging group photo, person is not close to each other;
Wherein, the close degree t for calculating two group photo person faces, may be employed in the following manner and is calculated:
Wherein, the central point of the recognition of face frame of the first group photo person be A1, the center of the recognition of face frame of the second group photo person It is B1 to put, and the intersection point of the recognition of face frame of the central point line of the recognition of face frame of two group photo persons and the first group photo person is A2, The intersection point of the central point line of the recognition of face frame of two group photo persons and the recognition of face frame of the second group photo person is B2, A1 points and B1 For the distance of point for s, the distance of A1 points and A2 points is da, and the distance of B1 points and B2 points is db.
Optionally, the face detection module, for the face based on the recognition of face person that determines group photo, including:
Recognition of face is carried out to the face of reference object, it is when the face number identified is more than one, area is maximum Face of the face that is focused on of two recognition of face frames as group photo person.
The method and apparatus of a kind of self-timer group photo provided by the invention, using between recognition of face person's face of judging group photo Position relationship, when group photo person face mutually by it is closer and when on same focal plane, terminal triggering camera is clapped automatically According to the mode simple operation of this self-timer group photo can improve user experience and photographic quality.
Description of the drawings
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal;
Fig. 2 is the schematic diagram for supporting the communication system to communicate between mobile terminal of the present invention;
Fig. 3 is the method flow diagram that a kind of self-timer of the embodiment of the present invention is taken a group photo.
Fig. 4 is that schematic diagram of the face close to degree is calculated in formula (1-1).
Fig. 5 is the schematic device that a kind of self-timer of the embodiment of the present invention is taken a group photo.
Fig. 6 is the method flow diagram that a kind of self-timer of specific example of the present invention is taken a group photo.
Fig. 7 is corresponding photo one in specific example of the present invention.
Fig. 8 is corresponding photo two in specific example of the present invention.
Specific embodiment
Understand to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the case where there is no conflict, in the embodiment and embodiment in the application Feature can mutually be combined.
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 representing the suffix of such as " module ", " component " or " unit " of element only for being conducive to the explanation of the present invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention can 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), guider 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 except being used in particular for moving Outside 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 can 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 assemblies, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, it is at least one in 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 can 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 can 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), the Radio Data System of forward link media (MediaFLO@), 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 in server and/or receive from it radio signal.Such radio signal can lead to including voice 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 can 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 for supporting the module of short range communication.Some examples of short-range communication technology include indigo plant Tooth TM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybee TM etc..
Location information module 115 is for checking or obtaining the module of the location information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated from three or more satellites Range information and correct time information and for the Information application triangulation of calculating, so as to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended for the method for calculation position and temporal information using three Star and the error that the position calculated 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 used to receive audio or video signal.A/V input units 120 can 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 (voice 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 voice data.Audio that treated (voice) data can be converted in the case of telephone calling model For the output of the form 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) generate during audio signal is sended and received or Person disturbs.
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 can include keyboard, metal dome, touch Plate (for example, sensitive component of detection variation of resistance, pressure, capacitance etc. caused by by contact), 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 to control 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 can 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) be connected with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can store to verify that user uses each of mobile terminal 100 It plants information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card, therefore, know Other device can be connected 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 message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 may be used as allowing through it by electricity Power provides to the path of mobile terminal 100 from pedestal or may be used as allowing to pass through it from the various command signals that pedestal inputs It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal may be used as identifying that mobile terminal 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 can include display Unit 151, dio Output Modules 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 be shown with conversing or other communicating (for example, text messaging, multimedia file 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 the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 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 It is a kind of.Some in these displays may be constructed such that transparence so that user to be allowed 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 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, Speech recognition mode, broadcast reception mode are receiving or in memory 160 by wireless communication unit 110 when under isotypes The voice data transducing audio signal of middle storage and output are sound.Moreover, dio Output Modules 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 performs. Dio Output Modules 152 can 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..In addition to audio or video exports, alarm unit 153 can provide output with the generation of notification event in a different manner.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list Member 153 can provide tactile output (that is, vibrating) 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 dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., 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 on the vibrations of various modes and audio signal exported when touching and be applied to touch-screen Data.
Memory 160 can 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 be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 performs and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 can include reproducing (or playback) more matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180 or can be structured as and control Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed 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 Appropriate electric power 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.Implement 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 Programming gate array (FPGA), processor, microcontroller, microprocessor, are designed to perform function described herein controller 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 be with allowing to perform 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 appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed 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 send data it is all if any Line and wireless communication system and satellite-based communication system operate.
The communication system that can be operated referring now to Fig. 2 descriptions mobile terminal wherein according to the present invention.
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 can include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any one of several known interfaces, the interface include such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially away from BS270.Alternatively, each subregion can by be used for diversity reception two or more Antenna covers.Each BS270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals It is at least one in 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 to obtain desired positioning letter with satellite 300 Breath.It substitutes GPS tracking techniques or outside 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, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 receives each anti- It is handled to link signal in specific BS270.The data of acquisition are forwarded to relevant BSC275.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, provide to form the additional route service of interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form 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 method for the present invention is proposed.
As shown in figure 3, the method that the embodiment of the present invention proposes a kind of self-timer group photo, applied to terminal, including:
S301, under self-timer group photo pattern, based on the face of the recognition of face person that determines group photo;
Wherein, the face based on the recognition of face person that determines group photo, including:
Recognition of face is carried out to the face of reference object, it is when the face number identified is more than one, area is maximum Face of the face that is focused on of two recognition of face frames as group photo person;
S302, the position relationship between the person's face that determines group photo;
Wherein, the position relationship between the definite group photo person face, including:
Determining group photo, whether the facial of person is on same focal plane and whether close to each other;
Wherein, whether the face of the definite group photo person is on same focal plane, including:
If the area of the corresponding recognition of face frame of face of two group photo persons is more than first threshold than r, two are judged The face of group photo person is on same focal plane;If the area of the corresponding recognition of face frame of face of two group photo persons is smaller than r In or equal to first threshold, then judge that the face of two group photo persons is not on same focal plane;
Wherein, the area of the corresponding recognition of face frame of face of two group photo persons is the recognition of face of the first group photo person than r The area s2, s1 of the recognition of face frame of the area s1 of frame divided by the second group photo person are less than or equal to s2;
Wherein, the first threshold is 0.8;
Wherein, whether the face of the definite group photo person is close to each other, including:
Calculate the close degree t of two group photo person faces;
If the close degree t of two group photo person faces is more than second threshold, judging group photo, person is close to each other;If two The close degree t of a group photo person face is less than or equal to second threshold, then judging group photo, person is not close to each other;
Wherein, the close degree t for calculating two group photo person faces, may be employed in the following manner and is calculated:
Wherein, as shown in figure 4, the central point of the recognition of face frame of the first group photo person is A1, the face of the second group photo person is known The central point of other frame is B1, the recognition of face frame of the central point line of the recognition of face frame of two group photo persons and the first group photo person Intersection point is A2, and the central point line of the recognition of face frame of two group photo persons and the intersection point of the recognition of face frame of the second group photo person are The distance of B2, A1 point and B1 points is s, and the distance of A1 points and A2 points is da, and the distance of B1 points and B2 points is db;
Wherein, the distance between 2 points can be by the use of pixel as linear module;
Wherein, the second threshold is 0.8;
S303, when the position relationship between judging the face of group photo person is suitble to shooting to take a group photo, triggering camera is shot.
Wherein, the position relationship between the face for judging group photo person is suitble to shooting to take a group photo, including:
Judge that the face of group photo person is on same focal plane and close to each other;
Wherein, the triggering camera is shot, including:Prompt tone is sent, and triggers camera and is shot.
As shown in figure 5, an embodiment of the present invention provides a kind of device of self-timer group photo, applied to terminal, which is characterized in that Including:
Face detection module 501, under self-timer group photo pattern, based on the face of the recognition of face person that determines group photo;
Position computation module 502, for the position relationship between the person's face that determines group photo;
Taking module 503, for when the position relationship between judging the face of group photo person is suitble to shooting to take a group photo, triggering phase Machine is shot.
Wherein, position computation module 502, for the position relationship between the person's face that determines group photo, including:
Determining group photo, whether the facial of person is on same focal plane and whether close to each other.
Wherein, taking module 503 are suitble to shooting to take a group photo for the position relationship between the face for the person that judges group photo, including:
Judge that the face of group photo person is on same focal plane and close to each other.
Wherein, position computation module 502, for determining group photo, whether the facial of person is in same focal plane, including:
If the area of the corresponding recognition of face frame of face of two group photo persons is more than first threshold than r, two are judged The face of group photo person is on same focal plane;If the area of the corresponding recognition of face frame of face of two group photo persons is smaller than r In or equal to first threshold, then judge that the face of two group photo persons is not on same focal plane;
Wherein, the area of the corresponding recognition of face frame of face of two group photo persons is the recognition of face of the first group photo person than r The area s2, s1 of the recognition of face frame of the area s1 of frame divided by the second group photo person are less than or equal to s2.
Wherein, position computation module 502, it is whether close to each other for the face for the person that determines group photo, including:
Calculate the close degree t of two group photo person faces;
If the close degree t of two group photo person faces is more than second threshold, judging group photo, person is close to each other;If two The close degree t of a group photo person face is less than or equal to second threshold, then judging group photo, person is not close to each other.
Wherein, position computation module 502 for calculating the close degree t of two group photo person faces, may be employed with lower section Formula is calculated:
Wherein, as shown in figure 4, the central point of the recognition of face frame of the first group photo person is A1, the face of the second group photo person is known The central point of other frame is B1, the recognition of face frame of the central point line of the recognition of face frame of two group photo persons and the first group photo person Intersection point is A2, and the central point line of the recognition of face frame of two group photo persons and the intersection point of the recognition of face frame of the second group photo person are The distance of B2, A1 point and B1 points is s, and the distance of A1 points and A2 points is da, and the distance of B1 points and B2 points is db.
Wherein, face detection module 501, for the face based on the recognition of face person that determines group photo, including:
Recognition of face is carried out to the face of reference object, it is when the face number identified is more than one, area is maximum Face of the face that is focused on of two recognition of face frames as group photo person.
Wherein, taking module 503 are shot for triggering camera, including:Prompt tone is sent, and triggers camera progress Shooting.
Specific example
As shown in fig. 6, by taking mobile phone as an example, a kind of method of self-timer group photo specifically includes following steps:
Step S601, user select self-timer group photo pattern;
Step S602, handset identity face number;
Step S603 judges that face number is to perform step S604 whether more than one, otherwise return to step S602;
Step S604 selects face corresponding face frame of two face frames as group photo person of area maximum;
Step S605, the area for calculating the two face frames selected compare r;
Wherein, r=s1/s2, s1 are the area of first man face frame, and s2 is the area of second face frame, s1 be less than or Equal to s2;
Step S606, judges whether r is more than first threshold, is to perform step S607, otherwise return to step S602;
Wherein, the first threshold is 0.8;
Step S607 calculates the close degree of two faces;
It is remote that the absolute distance of two faces on the image is smaller when taking pictures, and when closely taking pictures, two faces exist Absolute distance on image is larger.In order to accurately judge the different close degree taken pictures apart from lower two faces, it is necessary to will The size of face also includes calculating.Therefore, face is judged using the size of face frame and the ratio of the distance between face Close to degree.
Close degree t between two human faces is calculated using the following formula, specifically:
Wherein, as shown in figure 4, the central point of first man face frame is A1, the central point of second face frame is B1, two The central point line of face frame and the intersection point of first man face frame are A2, the central point line and second face of two face frames The intersection point of frame is B2, and the distance of A1 points and B1 points is s, and the distance of A1 points and A2 points is da, and the distance of B1 points and B2 points is db;Its In, the distance between 2 points can be by the use of pixel as linear module;
By taking Fig. 7 as an example, da is 188 pixels, and db is 224 pixels, and s is 896 pixels, then can calculate two human faces Close degree t be (188+224)/896=45.9%;
By taking Fig. 8 as an example, da is 336 pixels, and db is 320 pixels, and s is 640 pixels, calculates the close of two human faces Degree t is (336+320)/640=102.5%;
Step S608, judges whether the close degree t between two human faces is more than second threshold, is to perform step S609;
Wherein, the second threshold is 0.8;
By taking Fig. 7 as an example, the close degree t between two human faces is 45.9%, much smaller than 80%, illustrates the face of two people also It is not close enough, do not meet the condition of shooting group photo;
By taking Fig. 8 as an example, the close degree t between two human faces is 102.5%, more than 80%, illustrates the face foot of two people It is enough close, meet the condition of shooting group photo.
Step S609 sends prompt tone, triggering camera shooting group photo;
The method and apparatus for the self-timer group photo that above-described embodiment provides, using between recognition of face person's face of judging group photo Position relationship, when group photo person face mutually by it is closer and when on same focal plane, terminal triggering camera is clapped automatically According to the mode simple operation of this self-timer group photo can improve user experience and photographic quality.
It should be noted that herein, term " comprising ", "comprising" 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 not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do 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 such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform 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 The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of method of self-timer group photo, applied to terminal, which is characterized in that the method includes the steps:
Under self-timer group photo pattern, based on the face of the recognition of face person that determines group photo;
Determining group photo, whether person's face on same focal plane and close to each other;
It is in the face for judging group photo person on same focal plane and when close to each other, triggering camera is shot;
Whether the face of the definite group photo person is close to each other, including:
Calculate the close degree t of two group photo person faces;
When the close degree t of two group photo person faces is more than predetermined threshold value, judge that group photo person's face is close to each other;Wherein,
<mrow> <mi>t</mi> <mo>=</mo> <mfrac> <mrow> <mi>d</mi> <mi>a</mi> <mo>+</mo> <mi>d</mi> <mi>b</mi> </mrow> <mi>s</mi> </mfrac> <mo>;</mo> </mrow>
Wherein, if the central point of the recognition of face frame of the first group photo person is A1, the central point of the recognition of face frame of the second group photo person For B1, the intersection point of the recognition of face frame of the central point line of the recognition of face frame of two group photo persons and the first group photo person is A2, two The intersection point of the central point line of the recognition of face frame of a group photo person and the recognition of face frame of the second group photo person is B2;
S is the distance of the A1 points and B1 points, and da is the distance of the A1 points and A2 points, db be the B1 points with B2 points away from From.
2. the method as described in claim 1, it is characterised in that:
Whether the face of the definite group photo person is on same focal plane, including:
If the area of the corresponding recognition of face frame of face of two group photo persons is more than first threshold than r, two group photos are judged The face of person is on same focal plane;If the area of the corresponding recognition of face frame of face of two group photo persons be less than than r or Equal to first threshold, then judge that the face of two group photo persons is not on same focal plane;
Wherein, the area of the corresponding recognition of face frame of face of two group photo persons is the recognition of face frame of the first group photo person than r The area s2, s1 of the recognition of face frame of area s1 divided by the second group photo person are less than or equal to s2.
3. method as claimed in claim 1 or 2, it is characterised in that:
The face based on the recognition of face person that determines group photo, including:
Recognition of face is carried out to the face of reference object, when the face number identified is more than one, by the two of area maximum Face of the face that a recognition of face frame is focused on as group photo person.
4. a kind of device of self-timer group photo, applied to terminal, which is characterized in that including:
Face detection module, under self-timer group photo pattern, based on the face of the recognition of face person that determines group photo;
Position computation module, for determining group photo, whether person on same focal plane and close to each other;
Taking module, for judge group photo person face be on same focal plane and when close to each other, trigger camera into Row shooting;
Whether the face of the definite group photo person is close to each other, including:
Calculate the close degree t of two group photo person faces;
When the close degree t of two group photo person faces is more than predetermined threshold value, judge that group photo person's face is close to each other;Wherein,
<mrow> <mi>t</mi> <mo>=</mo> <mfrac> <mrow> <mi>d</mi> <mi>a</mi> <mo>+</mo> <mi>d</mi> <mi>b</mi> </mrow> <mi>s</mi> </mfrac> <mo>;</mo> </mrow>
Wherein, if the central point of the recognition of face frame of the first group photo person is A1, the central point of the recognition of face frame of the second group photo person For B1, the intersection point of the recognition of face frame of the central point line of the recognition of face frame of two group photo persons and the first group photo person is A2, two The intersection point of the central point line of the recognition of face frame of a group photo person and the recognition of face frame of the second group photo person is B2;
S is the distance of the A1 points and B1 points, and da is the distance of the A1 points and A2 points, db be the B1 points with B2 points away from From.
5. device as claimed in claim 4, it is characterised in that:
The position computation module, for determining group photo, whether the facial of person is in same focal plane, including:
If the area of the corresponding recognition of face frame of face of two group photo persons is more than first threshold than r, two group photos are judged The face of person is on same focal plane;If the area of the corresponding recognition of face frame of face of two group photo persons be less than than r or Equal to first threshold, then judge that the face of two group photo persons is not on same focal plane;
Wherein, the area of the corresponding recognition of face frame of face of two group photo persons is the recognition of face frame of the first group photo person than r The area s2, s1 of the recognition of face frame of area s1 divided by the second group photo person are less than or equal to s2.
6. device as described in claim 4 or 5, it is characterised in that:
The face detection module, for the face based on the recognition of face person that determines group photo, including:
Recognition of face is carried out to the face of reference object, when the face number identified is more than one, by the two of area maximum Face of the face that a recognition of face frame is focused on as group photo person.
CN201510727210.5A 2015-10-30 2015-10-30 A kind of method and apparatus of self-timer group photo Active CN105430258B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510727210.5A CN105430258B (en) 2015-10-30 2015-10-30 A kind of method and apparatus of self-timer group photo
PCT/CN2016/102848 WO2017071532A1 (en) 2015-10-30 2016-10-21 Group selfie photography method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510727210.5A CN105430258B (en) 2015-10-30 2015-10-30 A kind of method and apparatus of self-timer group photo

Publications (2)

Publication Number Publication Date
CN105430258A CN105430258A (en) 2016-03-23
CN105430258B true CN105430258B (en) 2018-06-01

Family

ID=55508161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510727210.5A Active CN105430258B (en) 2015-10-30 2015-10-30 A kind of method and apparatus of self-timer group photo

Country Status (2)

Country Link
CN (1) CN105430258B (en)
WO (1) WO2017071532A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430258B (en) * 2015-10-30 2018-06-01 努比亚技术有限公司 A kind of method and apparatus of self-timer group photo
CN106231200B (en) * 2016-08-29 2018-12-11 广东欧珀移动通信有限公司 A kind of photographic method and device
CN106355549A (en) * 2016-09-30 2017-01-25 北京小米移动软件有限公司 Photographing method and equipment
CN109040643B (en) * 2018-07-18 2021-04-20 奇酷互联网络科技(深圳)有限公司 Mobile terminal and remote group photo method and device
CN111246078A (en) * 2018-11-29 2020-06-05 北京小米移动软件有限公司 Image processing method and device
CN112200023B (en) * 2020-09-24 2023-03-28 上海新氦类脑智能科技有限公司 Crowd interaction based intelligent image acquisition and interaction method, system, terminal and medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4344622B2 (en) * 2004-01-29 2009-10-14 富士フイルム株式会社 Digital camera
JP4656331B2 (en) * 2006-12-27 2011-03-23 富士フイルム株式会社 Imaging apparatus and imaging method
JP5060233B2 (en) * 2007-09-25 2012-10-31 富士フイルム株式会社 Imaging apparatus and automatic photographing method thereof
JP5144422B2 (en) * 2007-09-28 2013-02-13 富士フイルム株式会社 Imaging apparatus and imaging method
KR101362765B1 (en) * 2007-11-07 2014-02-13 삼성전자주식회사 Photographing device and control method of the photographing device
JP4944055B2 (en) * 2008-03-19 2012-05-30 富士フイルム株式会社 Imaging apparatus and imaging control method
CN103186763B (en) * 2011-12-28 2017-07-21 富泰华工业(深圳)有限公司 Face identification system and method
CN102932596A (en) * 2012-10-26 2013-02-13 广东欧珀移动通信有限公司 Photographing method and device and mobile terminal
CN105430258B (en) * 2015-10-30 2018-06-01 努比亚技术有限公司 A kind of method and apparatus of self-timer group photo

Also Published As

Publication number Publication date
CN105430258A (en) 2016-03-23
WO2017071532A1 (en) 2017-05-04

Similar Documents

Publication Publication Date Title
CN106502693B (en) A kind of image display method and device
CN106231087B (en) A kind of method and apparatus of front and back sides dual-screen display device false-touch prevention
CN104735255B (en) Multi-screen display method and system
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN104731512B (en) The method, apparatus and terminal that picture is shared
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN104935044B (en) Charging method and charging unit
CN106097284B (en) A kind of processing method and mobile terminal of night scene image
CN104821990B (en) Intelligent terminal realizes the method and intelligent terminal of shutdown alarm clock
CN104679890B (en) Picture method for pushing and device
CN104735254B (en) terminal screen locking method and system
CN106412328B (en) A kind of method and apparatus obtaining field feedback
CN107135298A (en) Call blocking method and apparatus
CN106851114A (en) A kind of photo shows, photo generating means and method, terminal
CN106791016A (en) A kind of photographic method and terminal
CN107071161A (en) The aggregation display method and mobile terminal of icon in a kind of status bar
CN105049610B (en) A kind of input method and terminal
CN106550133A (en) Calling identification device 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
CN106161790A (en) A kind of mobile terminal and control method thereof
CN106125898A (en) The method and device of screen rotation
CN106227454B (en) A kind of touch trajectory detection system and method
CN106897010A (en) Touch screen terminal and control method
CN106792644A (en) Mobile terminal, server and information processing method

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