CN105554285A - Processing method for taking photo of people, and intelligent mobile terminal - Google Patents

Processing method for taking photo of people, and intelligent mobile terminal Download PDF

Info

Publication number
CN105554285A
CN105554285A CN201510973510.1A CN201510973510A CN105554285A CN 105554285 A CN105554285 A CN 105554285A CN 201510973510 A CN201510973510 A CN 201510973510A CN 105554285 A CN105554285 A CN 105554285A
Authority
CN
China
Prior art keywords
personage
contour images
attitude
lines
contour
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510973510.1A
Other languages
Chinese (zh)
Other versions
CN105554285B (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 CN201510973510.1A priority Critical patent/CN105554285B/en
Publication of CN105554285A publication Critical patent/CN105554285A/en
Application granted granted Critical
Publication of CN105554285B publication Critical patent/CN105554285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • 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
    • 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/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a processing method for taking a photo of people. The processing method comprises the steps of acquiring a profile image of each people in a view interface; establishing a coordinate system in the view interface, calculating coordinate points of profile lines of the profile image of each people in the coordinate system, and determining whether the profile image of each people has positions of improper gestures according to a calculation result; and when a people profile image with improper gesture exists, marking positions of improper gestures in the people profile image in a preset manner. The invention also discloses an intelligent mobile terminal. According to the processing method for taking the photo of people and the intelligent mobile terminal, a photographer can find each to-be-photographed people with improper gesture in time, so as to remind the to-be-photographed people of adjusting the gesture in time, thereby preventing from taking photos with improper people gestures, greatly improving the quality of the photo and improving the user experience of taking photos.

Description

Processing method, the intelligent mobile terminal of shooting portrait photographs
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of processing method, the intelligent mobile terminal of taking portrait photographs.
Background technology
Current shooting technology is more and more extensive in the application of intelligent mobile terminal field, and nearly all intelligent mobile terminal all possesses camera function.Utilizing mobile terminal to take portrait photographs is when required course in the light people's life of great majority in this year.
In the process of taking pictures, people usually there will be the phenomenon that attitude is not just but known completely, and easily cause shooting shoulder high and low inconsistent, or the photo that the attitude such as the left and right inclination of head is not positive.Prevent the generation of this situation if want, need photographer's Timeliness coverage and remind one be shooted to adjust.
But when many by the personage that claps, reserved photo opporunity is short, photographer cannot the not positive one be shooted of each attitude of Timeliness coverage, can not give to remind timely, cause the photo shot just not occurring part personage attitude.
Summary of the invention
Main purpose of the present invention is to propose a kind of processing method, the intelligent mobile terminal of taking portrait photographs, being intended to solve photographer in prior art cannot the not positive one be shooted of each attitude of Timeliness coverage, can not give to remind timely, cause the photo shot to occur the technical problem that part personage attitude is not positive.
For achieving the above object, a kind of processing method of taking portrait photographs provided by the invention, the processing method of described shooting portrait photographs comprises step:
Each personage's contour images of finding a view in interface;
Finding a view, coordinate system is set up at interface, calculates lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determines whether there is the not positive position of attitude in each personage's contour images according to result of calculation;
When there is the not positive character contour image of attitude, then mark with the position that setting means is not positive to attitude in this character contour image.
Preferably, described attitude is not just: the left and right shoulder height of personage is inconsistent; Or the left and right inclination of personage's head.
Preferably, when described attitude be not just that the left and right shoulder height of personage is inconsistent, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine the coordinate points of left shoulder on respective profile lines in each personage's contour images, and right shoulder coordinate points on respective profile lines;
Calculate the average height value of the coordinate points of left shoulder on corresponding described lines of outline in each personage's contour images, and the first average height value of the coordinate points of described right shoulder on respective profile lines;
According to the size of each described average height value and corresponding described first average height value, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is inconsistent.
Preferably, when described attitude be not just that the left and right shoulder height of personage is inconsistent, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine face center in each personage's contour images;
For each personage's contour images, set up through corresponding described face center and be parallel to the translated line of the abscissa in coordinate system;
Control every bar translated line by the described face center of correspondence along the ordinate negative direction translation in coordinate system;
Calculate shoulder lines of outline and corresponding described translated line first intersect coordinate point in each personage's contour images;
Intersect the abscissa value of coordinate points and the size of the abscissa value of corresponding described face center according to described first in each personage's contour images, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is consistent.
Preferably, when described attitude be not just the left and right inclination of personage's head, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine face center in each personage's contour images;
For each personage's contour images, set up and pass through corresponding described central point and the straight line being parallel to the ordinate in coordinate system;
Calculate the face area of each described straight line arranged on left and right sides;
According to the size of the face area of each described straight line arranged on left and right sides, determine the whether left and right inclination of personage's head in the character contour image of each correspondence.
Preferably, when described attitude be not just the left and right inclination of personage's head, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine the intermediate point between ultra-left point in each personage's contour images on lines of outline and rightest point;
For each personage's contour images, set up through corresponding described intermediate point and be parallel to the first straight line of axis of ordinates in coordinate system;
Calculate the face area of each described first straight line arranged on left and right sides;
According to the size of the face area of each described first straight line arranged on left and right sides, determine the whether left and right inclination of personage's head in the character contour image of each correspondence.
Preferably, the character contour image that described acquisition is found a view in interface specifically comprises:
Each character contour panoramic picture of finding a view in interface;
Call openCV power function, remove the cavity in each described character contour panoramic picture and scattered white point, obtain each personage's contour images.
In addition, for achieving the above object, the present invention also proposes a kind of intelligent mobile terminal, and described intelligent mobile terminal comprises:
Acquisition module, for obtaining each personage's contour images of finding a view in interface;
Determination module, for setting up coordinate system at interface of finding a view, calculating lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determining whether there is the not positive position of attitude in each personage's contour images according to result of calculation;
Labeling module, for when there is the not positive character contour image of attitude, then marks with the position that setting means is not positive to attitude in this character contour image.
Preferably, described attitude is not just: the left and right shoulder height of personage is inconsistent; Or the left and right inclination of personage's head.
Preferably, when described attitude be not just that the left and right shoulder height of personage is inconsistent, described determination module comprises:
Determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines the coordinate points of left shoulder on respective profile lines in each personage's contour images, and right shoulder coordinate points on respective profile lines;
Computing unit, for calculating the average height value of the coordinate points of left shoulder on corresponding described lines of outline in each personage's contour images, and the first average height value of the coordinate points of described right shoulder on respective profile lines;
First determining unit, for the size according to each described average height value and corresponding described first average height value, determines that in the character contour image of each correspondence, whether the left and right shoulder height of personage is inconsistent.
Preferably, when described attitude be not just that the left and right shoulder height of personage is inconsistent, then described confirmation module comprises:
Second determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines face center in each personage's contour images;
Set up unit, for for each personage's contour images, set up through corresponding described face center and be parallel to the translated line of the abscissa in coordinate system;
Control unit, for controlling every bar translated line by the described face center of correspondence along the ordinate negative direction translation in coordinate system;
First computing unit, for calculating shoulder lines of outline and corresponding described translated line first intersect coordinate point in each personage's contour images;
3rd determining unit, for intersecting the abscissa value of coordinate points and the size of the abscissa value of corresponding described face center according to described first in each personage's contour images, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is consistent.
Preferably, when described attitude be not just the left and right inclination of personage's head, then described confirmation module comprises:
4th determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines face center in each personage's contour images;
First sets up unit, for for each personage's contour images, sets up and passes through corresponding described central point and the straight line being parallel to the ordinate in coordinate system;
Second computing unit, for calculating the face area of each described straight line arranged on left and right sides;
5th determining unit, for the size of the face area according to each described straight line arranged on left and right sides, determines the whether left and right inclination of personage's head in the character contour image of each correspondence.
Preferably, when described attitude be not just the left and right inclination of personage's head, then described determination module comprises:
6th determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines the intermediate point between ultra-left point in each personage's contour images on lines of outline and rightest point;
Second sets up unit, for for each personage's contour images, sets up through corresponding described intermediate point and is parallel to the first straight line of axis of ordinates in coordinate system;
3rd computing unit, for calculating the face area of each described first straight line arranged on left and right sides;
7th determining unit, for the size of the face area according to each described first straight line arranged on left and right sides, determines the whether left and right inclination of personage's head in the character contour image of each correspondence.
Preferably, described acquisition module, specifically for each character contour panoramic picture of finding a view in interface; And call openCV power function, remove the cavity in each described character contour panoramic picture and scattered white point, obtain each personage's contour images.
Processing method, the intelligent mobile terminal of the shooting portrait photographs that the present invention proposes, by each personage's contour images of finding a view in interface; Finding a view, coordinate system is set up at interface, calculates lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determines whether there is the not positive position of attitude in each personage's contour images according to result of calculation; When there is the not positive character contour image of attitude, then in the mode that the position that setting means is not positive to attitude in this character contour image marks, photographer can the not positive one be shooted of each attitude of Timeliness coverage, thus one be shooted can be reminded in time, it is made to adjust attitude in time, the photo effectively having stopped to shoot occurs the phenomenon that personage's attitude is not positive greatly increasing the shooting quality of photo, improves the experience effect that user takes pictures.
Accompanying drawing explanation
Fig. 1 is the hardware configuration signal of the intelligent mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of intelligent mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet of processing method one embodiment of shooting portrait photographs of the present invention;
Fig. 4 is attitude of working as of the present invention be not just that the left and right shoulder height of personage is inconsistent, and step S20 determines the first the processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images according to result of calculation;
Fig. 5 is character contour image schematic diagram of the present invention;
Fig. 6 is attitude of working as of the present invention be not just that the left and right shoulder height of personage is inconsistent, and step S20 determines according to result of calculation the second processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images;
Fig. 7 is another schematic diagram of character contour image of the present invention;
Fig. 8 is the another schematic diagram of character contour image of the present invention;
Fig. 9 is of the present invention when attitude is not just for the left and right inclination of personage's head, and step S20 determines the first the processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images according to result of calculation;
Figure 10 is the another schematic diagram of character contour image of the present invention;
Figure 11 is of the present invention when attitude is not just for the left and right inclination of personage's head, and step S20 determines according to result of calculation the second processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images;
Figure 12 is the another schematic diagram of character contour image of the present invention;
Figure 13 is intelligent mobile terminal one embodiment high-level schematic functional block diagram of the present invention;
Figure 14 is the concrete refinement high-level schematic functional block diagram of determination module in Figure 13;
Figure 15 is another concrete refinement high-level schematic functional block diagram of determination module in Figure 13;
Figure 16 is the another concrete refinement high-level schematic functional block diagram of determination module in Figure 13;
Figure 17 is the another concrete refinement high-level schematic functional block diagram of determination module in Figure 13.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The intelligent mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Intelligent mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as intelligent mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is intelligent mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the intelligent mobile terminal realizing each embodiment of the present invention.
Intelligent mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the intelligent mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of intelligent mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between intelligent mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) the digit broadcasting system receiving digital broadcast of Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of intelligent mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain intelligent mobile terminal.The typical case of positional information module is GPS (global positioning system).According to current technology, GPS calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of intelligent mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of intelligent mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of intelligent mobile terminal 100, (such as, intelligent mobile terminal 100 open or close state), the position of intelligent mobile terminal 100, user for intelligent mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of intelligent mobile terminal 100, the acceleration or deceleration of intelligent mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling intelligent mobile terminal 100.Such as, when intelligent mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with intelligent mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of intelligent mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with intelligent mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in intelligent mobile terminal 100 or may be used for transmitting data between intelligent mobile terminal and external device (ED).
In addition, when intelligent mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of intelligent mobile terminal 100 from base or can be used as the path that allows to be transferred to intelligent mobile terminal by it from the various command signals of base input.Identification intelligent mobile terminal can be used as from the various command signal of base input or electric power and whether be arranged on signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in intelligent mobile terminal 100.Such as, when intelligent mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When intelligent mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, intelligent mobile terminal 100 can comprise two or more display units (or other display unit), such as, intelligent mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at intelligent mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that intelligent mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loud speaker, buzzer etc.
Alarm unit 153 can provide and export that event informed to intelligent mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And intelligent mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of intelligent mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the intelligent mobile terminal according to its functional description.Below, for the sake of brevity, by the sliding-type intelligent mobile terminal that describes in various types of intelligent mobile terminals of such as folded form, board-type, oscillating-type, sliding-type intelligent mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the intelligent mobile terminal of any type, and is not limited to sliding-type intelligent mobile terminal.
Intelligent mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that intelligent mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple intelligent mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 2800.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the intelligent mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on intelligent mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple intelligent mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.Substitute GPS tracking technique or outside GPS tracking technique, other technology of the position of following the tracks of intelligent mobile terminal can be used.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various intelligent mobile terminal 100.Intelligent mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to intelligent mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
It is the schematic flow sheet of processing method one embodiment of shooting portrait photographs of the present invention see Fig. 3, Fig. 3.The processing method of taking portrait photographs described in the present embodiment comprises:
Step S10, each personage's contour images of finding a view in interface.
Each personage's contour images of finding a view described in this step in interface specifically comprises following process: each character contour panoramic picture of finding a view in interface; Call openCV power function, remove the cavity in each described character contour panoramic picture and scattered white point, obtain each personage's contour images.
Interface of finding a view described in the present embodiment can comprise personage's contour images, also can comprise two or more character contour image.
Step S20, finding a view, coordinate system is set up at interface, calculates lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determines whether there is the not positive position of attitude in each personage's contour images according to result of calculation.
In the image of character contour described in the present embodiment, attitude is not just: the left and right shoulder height of personage is inconsistent; Or the left and right inclination of personage's head.When described attitude be not just that personage is left, right shoulder height is inconsistent, describedly determines that the processing mode that whether there is the not positive position of attitude in each personage's contour images comprises two kinds according to result of calculation.See Fig. 4, Fig. 4 be of the present invention when attitude just for the left and right shoulder height of personage inconsistent, step S20 determines according to result of calculation the first the processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images.This first processing mode flow process is specially:
Step S21, according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine the coordinate points of left shoulder on respective profile lines in each personage's contour images, and right shoulder coordinate points on respective profile lines.
Be character contour image schematic diagram of the present invention see Fig. 5, Fig. 5.In the present embodiment, the coordinate points of left shoulder on respective profile lines can be determined in the following way: first according to the coordinate points of lines of outline in described coordinate system, determine high order end point A on this lines of outline; With coordinate points corresponding to this high order end for starting point, along moving to personage's cephalad direction on lines of outline, obtain a coordinate points every setting step-length.Calculate the difference (often group comprises two adjacent coordinate points) often organizing adjacent coordinates point, often organizing difference is that last coordinate points in corresponding group (coordinate points near head) ordinate value deducts the difference with a rear coordinate points ordinate value.Then each difference and the predetermined threshold value that calculate gained are compared, when from bottom to top continuously the difference of many group correspondences be all less than described predetermined threshold value, then think that last coordinate points is the left end point B in left shoulder lines of outline in this from bottom to top first group.Then with described left end point B for starting point, along moving to personage's cephalad direction on lines of outline, obtain a coordinate points every setting step-length, calculate the first difference often organizing adjacent coordinates point; Then each first difference and the first predetermined threshold value that calculate gained are compared, when the first difference that continuously many groups are corresponding from bottom to top is all greater than described first predetermined threshold value, then the rear coordinate points thinking in this from bottom to top first group is the right endpoint E in left shoulder lines of outline.Finally define described left end point B, described right endpoint E, and the left end point B obtained is the coordinate points of left shoulder in corresponding lines of outline with coordinate points C, the D between both right endpoint E.
In addition, determining that the coordinate points of right shoulder on corresponding lines of outline is consistent with determining the coordinate points principle of left shoulder on corresponding lines of outline, not repeating them here.
Step S22, calculate the average height value of the coordinate points of left shoulder on corresponding described lines of outline in each personage's contour images and the first average height value of the coordinate points of right shoulder on respective profile lines.
Step S23, size according to each described average height value and corresponding described first average height value, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is inconsistent.
Wherein, for a certain character contour image, when described average height value is greater than the first corresponding average height value, then determine that in this character contour image, the left shoulder height of personage is in right shoulder.When described average height value equals the first corresponding average height value, then determine that in this character contour image, the left and right shoulder height of personage is consistent; When described average height value is less than the first corresponding average height value, then determine that in this character contour image, the right shoulder height of personage is in left shoulder.
See Fig. 6, Fig. 6 be of the present invention when attitude just for the left and right shoulder height of personage inconsistent, step S20 determines according to result of calculation the second processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images.This second processing mode flow process is specially:
Step S201, according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine face center in each personage's contour images.
Step S202, for each personage's contour images, set up through corresponding described face center and be parallel to the translated line of the abscissa in coordinate system.
Step S203, control every bar translated line by the described face center of correspondence along the ordinate negative direction translation in coordinate system.
Step S204, calculate shoulder lines of outline and corresponding described translated line first intersect coordinate point in each personage's contour images.
Step S205, intersect the abscissa value of coordinate points and the size of the abscissa value of corresponding described face center according to described first in each personage's contour images, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is consistent.
For a certain character contour image in the present embodiment, be another schematic diagram of character contour image of the present invention see Fig. 7, Fig. 7.In Fig. 7, face center is F, and the first crossing coordinate points is G.When the described first abscissa value intersecting coordinate points G is greater than the abscissa value of corresponding face center F, then shows that the coordinate points G crossing with corresponding translated line first is on right shoulder lines of outline, show that in this character contour image, the right shoulder height of personage is in left shoulder; When the described first abscissa value intersecting coordinate points G is less than the abscissa value of corresponding face center F, then shows that the coordinate points G crossing with corresponding translated line first is on left shoulder lines of outline, show that in this character contour image, the left shoulder height of personage is in right shoulder.Be the another schematic diagram of character contour image of the present invention see Fig. 8, Fig. 8.When the coordinate points G that shoulder lines of outline in character contour lines is crossing with described translated line first is two, to be in respectively on left shoulder lines of outline and on right shoulder lines of outline on, show that in this character contour image, the left and right shoulder height of personage is consistent.
In the present embodiment, when described attitude be not just the left and right inclination of personage's head, the described processing mode according to whether there is the not positive position of attitude in result of calculation determination character contour image comprises two kinds.Be of the present invention when attitude is not just for the left and right inclination of personage's head see Fig. 9, Fig. 9, step S20 determines according to result of calculation the first the processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images.This first handling process is specially:
Step S101, according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine face center in each personage's contour images.
Step S102, for each personage's contour images, set up through corresponding described central point and be parallel to the straight line of the ordinate in coordinate system.
Step S103, calculate the face area of each described straight line arranged on left and right sides.
Step S104, size according to the face area of each described straight line arranged on left and right sides, determine the whether left and right inclination of personage's head in the character contour image of each correspondence.
In the present embodiment, for a certain character contour image, be the another schematic diagram of character contour image of the present invention see Figure 10, Figure 10.In Figure 10, face center is F, and on the left of described straight line, face area is greater than face area on the right side of straight line, then show that in this character contour image, personage's head is tilted to the left; On the left of described straight line, face area is less than face area on the right side of straight line, then show that in this character contour image, personage's head is tilted to the right; On the left of described straight line, face area equals face area on the right side of straight line, then show that in this character contour image, personage's head does not tilt.
Be of the present invention when attitude is not just for the left and right inclination of personage's head see Figure 11, Figure 11, step S20 determines according to result of calculation the second processing mode schematic flow sheet that whether there is the not positive position of attitude in each personage's contour images.This second processing mode flow process is specially:
Step S01, according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine the intermediate point between ultra-left point in each personage's contour images on lines of outline and rightest point.
Step S02, for each personage's contour images, set up through corresponding described intermediate point and be parallel to the first straight line of axis of ordinates in coordinate system.
Step S03, calculate the face area of each described first straight line arranged on left and right sides.
Step S04, size according to the face area of each described first straight line arranged on left and right sides, determine the whether left and right inclination of personage's head in the character contour image of each correspondence.
For a certain character contour image in the present embodiment, be the another schematic diagram of character contour image of the present invention see Figure 12, Figure 12.Ultra-left point in this Figure 12 in character contour image on lines of outline is J, rightest point K, and the intermediate point between ultra-left point and rightest point is L; On the left of described first straight line, face area is greater than face area on the right side of the first straight line, then show that in this character contour image, personage's head is tilted to the left; When on the left of described first straight line, face area is less than face area on the right side of described first straight line, then show that in this character contour image, personage's head is tilted to the right; On the left of described first straight line, face area equals face area on the right side of the first straight line, then show that in this character contour image, personage's head does not tilt.
Step S30, when there is the not positive character contour image of attitude, then to mark with the position that setting means is not positive to attitude in this character contour image.
This step S30 can show the position that in character contour image, attitude is not positive in highlighted mode, generate and show text prompt information; Or show in highlighted mode the position that in character contour image, attitude is not positive, generate and play information of voice prompt, inform the position that in photographer's character contour image, attitude is not positive, make photographer remind the not positive one be shooted of attitude to adjust attitude in time, guarantee to shoot high-quality photo.
The processing method of the shooting portrait photographs that above-described embodiment provides, by each personage's contour images of finding a view in interface; Finding a view, coordinate system is set up at interface, calculates lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determines whether there is the not positive position of attitude in each personage's contour images according to result of calculation; When there is the not positive character contour image of attitude, then in the mode that the position that setting means is not positive to attitude in this character contour image marks, photographer can the not positive one be shooted of each attitude of Timeliness coverage, thus one be shooted can be reminded in time, it is made to adjust attitude in time, the photo effectively having stopped to shoot occurs the phenomenon that personage's attitude is not positive greatly increasing the shooting quality of photo, improves the experience effect that user takes pictures.
The present invention further provides a kind of intelligent mobile terminal.Reference Figure 13, Figure 13 are intelligent mobile terminal one embodiment high-level schematic functional block diagram of the present invention.The intelligent mobile terminal 200 of the present embodiment comprises: acquisition module 210, determination module 220, labeling module 230.Wherein, described acquisition module 210, for obtaining each personage's contour images of finding a view in interface.Described determination module 220, for setting up coordinate system at interface of finding a view, calculating lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determining whether there is the not positive position of attitude in each personage's contour images according to result of calculation.Described labeling module 230, for when there is the not positive character contour image of attitude, then marks with the position that setting means is not positive to attitude in this character contour image.
In above-mentioned intelligent mobile terminal embodiment, described acquisition module 210, specifically for each character contour panoramic picture of finding a view in interface; And call openCV power function, remove the cavity in each described character contour panoramic picture and scattered white point, obtain each personage's contour images.
Interface of finding a view described in the present embodiment can comprise personage's contour images, also can comprise two or more character contour image.Described attitude is not just: the left and right shoulder height of personage is inconsistent; Or the left and right inclination of personage's head.
Described labeling module 230 can show the position that in character contour image, attitude is not positive in highlighted mode, generate and show text prompt information; Or show in highlighted mode the position that in character contour image, attitude is not positive, generate and play information of voice prompt, inform the position that in photographer's character contour image, attitude is not positive, make photographer remind the not positive one be shooted of attitude to adjust attitude in time, guarantee to shoot high-quality photo.
See the concrete refinement high-level schematic functional block diagram that Figure 14, Figure 14 are determination module in Figure 13.In the present embodiment, when described attitude be not just that the left and right shoulder height of personage is inconsistent, then described determination module 220 comprises: determining unit 221, computing unit 222, first determining unit 223.Wherein said determining unit 221, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine the coordinate points of left shoulder on respective profile lines in each personage's contour images, and right shoulder coordinate points on respective profile lines.Described computing unit 222, for calculating the average height value of the coordinate points of left shoulder on corresponding described lines of outline in each personage's contour images, and the first average height value of the coordinate points of described right shoulder on respective profile lines.First determining unit 223, for the size according to each described average height value and corresponding described first average height value, determines that in the character contour image of each correspondence, whether the left and right shoulder height of personage is inconsistent.
Be character contour image schematic diagram of the present invention see Fig. 5, Fig. 5.In the present embodiment, the coordinate points of left shoulder on respective profile lines can be determined in the following way: first according to the coordinate points of lines of outline in described coordinate system, determine high order end point A on this lines of outline; With coordinate points corresponding to this high order end for starting point, along moving to personage's cephalad direction on lines of outline, obtain a coordinate points every setting step-length.Calculate the difference (often group comprises two adjacent coordinate points) often organizing adjacent coordinates point, often organizing difference is that last coordinate points in corresponding group (coordinate points near head) ordinate value deducts the difference with a rear coordinate points ordinate value.Then each difference and the predetermined threshold value that calculate gained are compared, when from bottom to top continuously the difference of many group correspondences be all less than described predetermined threshold value, then think that last coordinate points is the left end point B in left shoulder lines of outline in this from bottom to top first group.Then with described left end point B for starting point, along moving to personage's cephalad direction on lines of outline, obtain a coordinate points every setting step-length, calculate the first difference often organizing adjacent coordinates point; Then each first difference and the first predetermined threshold value that calculate gained are compared, when the first difference that continuously many groups are corresponding from bottom to top is all greater than described first predetermined threshold value, then the rear coordinate points thinking in this from bottom to top first group is the right endpoint E in left shoulder lines of outline.Finally define described left end point B, described right endpoint E, and the left end point B obtained is the coordinate points of left shoulder in corresponding lines of outline with coordinate points C, the D between both right endpoint E.
In addition, determining that the coordinate points of right shoulder on corresponding lines of outline is consistent with determining the coordinate points principle of left shoulder on corresponding lines of outline, not repeating them here.
In the present embodiment, for a certain character contour image, when described average height value is greater than the first corresponding average height value, then determine that in this character contour image, the left shoulder height of personage is in right shoulder.When described average height value equals the first corresponding average height value, then determine that in this character contour image, the left and right shoulder height of personage is consistent; When described average height value is less than the first corresponding average height value, then determine that in this character contour image, the right shoulder height of personage is in left shoulder.
See another concrete refinement high-level schematic functional block diagram that Figure 15, Figure 15 are determination module in Figure 13.When described attitude be not just that the left and right shoulder height of personage is inconsistent, then described confirmation module 220 comprises: the second determining unit 21, set up unit 22, control unit 23, first computing unit 24, the 3rd determining unit 25.Wherein, described second determining unit 21, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines face center in each personage's contour images.Describedly set up unit 22, for for each personage's contour images, set up through corresponding described face center and be parallel to the translated line of the abscissa in coordinate system.Described control unit 23, for controlling every bar translated line by the described face center of correspondence along the ordinate negative direction translation in coordinate system.Described first computing unit 24, for calculating shoulder lines of outline and corresponding described translated line first intersect coordinate point in each personage's contour images.Described 3rd determining unit 25, for intersecting the abscissa value of coordinate points and the size of the abscissa value of corresponding described face center according to described first in each personage's contour images, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is consistent.
Be another schematic diagram of character contour image of the present invention see Fig. 7, Fig. 7.In Fig. 7, face center is F, and the first crossing coordinate points is G.For a certain character contour image in the present embodiment, when the described first abscissa value intersecting coordinate points G is greater than the abscissa value of corresponding face center F, then show that the coordinate points G crossing with corresponding translated line first is on right shoulder lines of outline, show that in this character contour image, the right shoulder height of personage is in left shoulder; When the described first abscissa value intersecting coordinate points G is less than the abscissa value of corresponding face center F, then shows that the coordinate points G crossing with corresponding translated line first is on left shoulder lines of outline, show that in this character contour image, the left shoulder height of personage is in right shoulder.Be the another schematic diagram of character contour image of the present invention see Fig. 8, Fig. 8.When the coordinate points G that shoulder lines of outline in character contour lines is crossing with described translated line first is two, to be in respectively on left shoulder lines of outline and on right shoulder lines of outline on, show that in this character contour image, the left and right shoulder height of personage is consistent.
See the another concrete refinement high-level schematic functional block diagram that Figure 16, Figure 16 are determination module in Figure 13.When described attitude be not just the left and right inclination of personage's head, then described confirmation module 220 comprises: the 4th determining unit 201, first sets up unit 202, second computing unit 203, the 5th determining unit 204.Wherein, described 4th determining unit 201, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines face center in each personage's contour images.Described first sets up unit 202, for for each personage's contour images, sets up and passes through corresponding described central point and the straight line being parallel to the ordinate in coordinate system.Described second computing unit 203, for calculating the face area of each described straight line arranged on left and right sides.Described 5th determines single 204 yuan, for the size of the face area according to each described straight line arranged on left and right sides, determines the whether left and right inclination of personage's head in the character contour image of each correspondence.
Be the another schematic diagram of character contour image of the present invention see Figure 10, Figure 10, in Figure 10, face center is F.In the present embodiment, for a certain character contour image, on the left of described straight line, face area is greater than face area on the right side of straight line, then show that in this character contour image, personage's head is tilted to the left; On the left of described straight line, face area is less than face area on the right side of straight line, then show that in this character contour image, personage's head is tilted to the right; On the left of described straight line, face area equals face area on the right side of straight line, then show that in this character contour image, personage's head does not tilt.
See the another concrete refinement high-level schematic functional block diagram that Figure 17, Figure 17 are determination module in Figure 13.When described attitude be not just the left and right inclination of personage's head in the present embodiment, then described determination module 220 comprises: the 6th determines that single 2201 yuan, second are set up unit 2202, the 3rd computing unit 2203, the 7th determining unit 2204.Wherein, described 6th determining unit 2201, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines the intermediate point between ultra-left point in each personage's contour images on lines of outline and rightest point.Described second sets up unit 2202, for for each personage's contour images, sets up through corresponding described intermediate point and is parallel to the first straight line of axis of ordinates in coordinate system.Described 3rd computing unit 2203, for calculating the face area of each described first straight line arranged on left and right sides.Described 7th determining unit 2204, for the size of the face area according to each described first straight line arranged on left and right sides, determines the whether left and right inclination of personage's head in the character contour image of each correspondence.
Be the another schematic diagram of character contour image of the present invention see Figure 12, Figure 12, the ultra-left point in this Figure 12 in character contour image on lines of outline is J, rightest point K, and the intermediate point between ultra-left point and rightest point is L.For a certain character contour image in the present embodiment, on the left of described first straight line, face area is greater than face area on the right side of the first straight line, then show that in this character contour image, personage's head is tilted to the left; When on the left of described first straight line, face area is less than face area on the right side of described first straight line, then show that in this character contour image, personage's head is tilted to the right; On the left of described first straight line, face area equals face area on the right side of the first straight line, then show that in this character contour image, personage's head does not tilt.
The intelligent mobile terminal 200 that above-described embodiment provides, by each personage's contour images of finding a view in interface; Finding a view, coordinate system is set up at interface, calculates lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determines whether there is the not positive position of attitude in each personage's contour images according to result of calculation; When there is the not positive character contour image of attitude, then in the mode that the position that setting means is not positive to attitude in this character contour image marks, photographer can the not positive one be shooted of each attitude of Timeliness coverage, thus one be shooted can be reminded in time, it is made to adjust attitude in time, the photo effectively having stopped to shoot occurs the phenomenon that personage's attitude is not positive greatly increasing the shooting quality of photo, improves the experience effect that user takes pictures.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (14)

1. take a portrait photographs's processing method, it is characterized in that, the processing method of described shooting portrait photographs comprises step:
Each personage's contour images of finding a view in interface;
Finding a view, coordinate system is set up at interface, calculates lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determines whether there is the not positive position of attitude in each personage's contour images according to result of calculation;
When there is the not positive character contour image of attitude, then mark with the position that setting means is not positive to attitude in this character contour image.
2. the processing method of shooting portrait photographs according to claim 1, it is characterized in that, described attitude is not just: the left and right shoulder height of personage is inconsistent; Or the left and right inclination of personage's head.
3. the processing method of shooting portrait photographs according to claim 2, is characterized in that,
When described attitude be not just that the left and right shoulder height of personage is inconsistent, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine the coordinate points of left shoulder on respective profile lines in each personage's contour images, and right shoulder coordinate points on respective profile lines;
Calculate the average height value of the coordinate points of left shoulder on corresponding described lines of outline in each personage's contour images, and the first average height value of the coordinate points of described right shoulder on respective profile lines;
According to the size of each described average height value and corresponding described first average height value, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is inconsistent.
4. the processing method of shooting portrait photographs according to claim 2, it is characterized in that, when described attitude be not just that the left and right shoulder height of personage is inconsistent, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine face center in each personage's contour images;
For each personage's contour images, set up through corresponding described face center and be parallel to the translated line of the abscissa in coordinate system;
Control every bar translated line by the described face center of correspondence along the ordinate negative direction translation in coordinate system;
Calculate shoulder lines of outline and corresponding described translated line first intersect coordinate point in each personage's contour images;
Intersect the abscissa value of coordinate points and the size of the abscissa value of corresponding described face center according to described first in each personage's contour images, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is consistent.
5. the processing method of shooting portrait photographs according to claim 2, it is characterized in that, when described attitude be not just the left and right inclination of personage's head, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine face center in each personage's contour images;
For each personage's contour images, set up and pass through corresponding described central point and the straight line being parallel to the ordinate in coordinate system;
Calculate the face area of each described straight line arranged on left and right sides;
According to the size of the face area of each described straight line arranged on left and right sides, determine the whether left and right inclination of personage's head in the character contour image of each correspondence.
6. the processing method of shooting portrait photographs according to claim 2, it is characterized in that, when described attitude be not just the left and right inclination of personage's head, then describedly determine that the position that whether there is attitude not positive in each personage's contour images specifically comprises according to result of calculation:
According to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determine the intermediate point between ultra-left point in each personage's contour images on lines of outline and rightest point;
For each personage's contour images, set up through corresponding described intermediate point and be parallel to the first straight line of axis of ordinates in coordinate system;
Calculate the face area of each described first straight line arranged on left and right sides;
According to the size of the face area of each described first straight line arranged on left and right sides, determine the whether left and right inclination of personage's head in the character contour image of each correspondence.
7. the processing method of the shooting portrait photographs according to any one of claim 1 to 6, is characterized in that, the character contour image that described acquisition is found a view in interface specifically comprises:
Each character contour panoramic picture of finding a view in interface;
Call openCV power function, remove the cavity in each described character contour panoramic picture and scattered white point, obtain each personage's contour images.
8. an intelligent mobile terminal, is characterized in that, described intelligent mobile terminal comprises:
Acquisition module, for obtaining each personage's contour images of finding a view in interface;
Determination module, for setting up coordinate system at interface of finding a view, calculating lines of outline in each personage's contour images and, in the coordinate points of described coordinate system, determining whether there is the not positive position of attitude in each personage's contour images according to result of calculation;
Labeling module, for when there is the not positive character contour image of attitude, then marks with the position that setting means is not positive to attitude in this character contour image.
9. intelligent mobile terminal according to claim 8, is characterized in that, described attitude is not just: the left and right shoulder height of personage is inconsistent; Or the left and right inclination of personage's head.
10. intelligent mobile terminal according to claim 9, is characterized in that, when described attitude be not just that the left and right shoulder height of personage is inconsistent, described determination module comprises:
Determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines the coordinate points of left shoulder on respective profile lines in each personage's contour images, and right shoulder coordinate points on respective profile lines;
Computing unit, for calculating the average height value of the coordinate points of left shoulder on corresponding described lines of outline in each personage's contour images, and the first average height value of the coordinate points of described right shoulder on respective profile lines;
First determining unit, for the size according to each described average height value and corresponding described first average height value, determines that in the character contour image of each correspondence, whether the left and right shoulder height of personage is inconsistent.
11. intelligent mobile terminals according to claim 9, is characterized in that, when described attitude be not just that the left and right shoulder height of personage is inconsistent, then described confirmation module comprises:
Second determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines face center in each personage's contour images;
Set up unit, for for each personage's contour images, set up through corresponding described face center and be parallel to the translated line of the abscissa in coordinate system;
Control unit, for controlling every bar translated line by the described face center of correspondence along the ordinate negative direction translation in coordinate system;
First computing unit, for calculating shoulder lines of outline and corresponding described translated line first intersect coordinate point in each personage's contour images;
3rd determining unit, for intersecting the abscissa value of coordinate points and the size of the abscissa value of corresponding described face center according to described first in each personage's contour images, determine that in the character contour image of each correspondence, whether the left and right shoulder height of personage is consistent.
12. intelligent mobile terminals according to claim 9, is characterized in that, when described attitude be not just the left and right inclination of personage's head, then described confirmation module comprises:
4th determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines face center in each personage's contour images;
First sets up unit, for for each personage's contour images, sets up and passes through corresponding described central point and the straight line being parallel to the ordinate in coordinate system;
Second computing unit, for calculating the face area of each described straight line arranged on left and right sides;
5th determining unit, for the size of the face area according to each described straight line arranged on left and right sides, determines the whether left and right inclination of personage's head in the character contour image of each correspondence.
13. intelligent mobile terminals according to claim 9, is characterized in that, when described attitude be not just the left and right inclination of personage's head, then described determination module comprises:
6th determining unit, for according to the coordinate points of lines of outline in described coordinate system in each personage's contour images, determines the intermediate point between ultra-left point in each personage's contour images on lines of outline and rightest point;
Second sets up unit, for for each personage's contour images, sets up through corresponding described intermediate point and is parallel to the first straight line of axis of ordinates in coordinate system;
3rd computing unit, for calculating the face area of each described first straight line arranged on left and right sides;
7th determining unit, for the size of the face area according to each described first straight line arranged on left and right sides, determines the whether left and right inclination of personage's head in the character contour image of each correspondence.
Intelligent mobile terminal described in 14. any one of according to Claim 8 to 13, is characterized in that, described acquisition module, specifically for each character contour panoramic picture of finding a view in interface; And call openCV power function, remove the cavity in each described character contour panoramic picture and scattered white point, obtain each personage's contour images.
CN201510973510.1A 2015-12-22 2015-12-22 Processing method for taking person photo and intelligent mobile terminal Active CN105554285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510973510.1A CN105554285B (en) 2015-12-22 2015-12-22 Processing method for taking person photo and intelligent mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510973510.1A CN105554285B (en) 2015-12-22 2015-12-22 Processing method for taking person photo and intelligent mobile terminal

Publications (2)

Publication Number Publication Date
CN105554285A true CN105554285A (en) 2016-05-04
CN105554285B CN105554285B (en) 2020-11-17

Family

ID=55833216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510973510.1A Active CN105554285B (en) 2015-12-22 2015-12-22 Processing method for taking person photo and intelligent mobile terminal

Country Status (1)

Country Link
CN (1) CN105554285B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093165A (en) * 2016-11-23 2018-05-29 中兴通讯股份有限公司 A kind of image processing method and device
CN108419128A (en) * 2018-03-12 2018-08-17 深圳市赛亿科技开发有限公司 The method and device of personage's pose adjustment
CN113170050A (en) * 2020-06-22 2021-07-23 深圳市大疆创新科技有限公司 Image acquisition method, electronic equipment and mobile equipment
CN114511468A (en) * 2022-03-31 2022-05-17 西北民族大学 Distorted bone image correction method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1573660A (en) * 2003-05-30 2005-02-02 微软公司 Head pose assessment methods and systems
CN101216881A (en) * 2007-12-28 2008-07-09 北京中星微电子有限公司 A method and device for automatic image acquisition
CN103369214A (en) * 2012-03-30 2013-10-23 华晶科技股份有限公司 An image acquiring method and an image acquiring apparatus
CN104715246A (en) * 2013-12-11 2015-06-17 中国移动通信集团公司 Photographing assisting system, device and method with a posture adjusting function,

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1573660A (en) * 2003-05-30 2005-02-02 微软公司 Head pose assessment methods and systems
CN101216881A (en) * 2007-12-28 2008-07-09 北京中星微电子有限公司 A method and device for automatic image acquisition
CN103369214A (en) * 2012-03-30 2013-10-23 华晶科技股份有限公司 An image acquiring method and an image acquiring apparatus
CN104715246A (en) * 2013-12-11 2015-06-17 中国移动通信集团公司 Photographing assisting system, device and method with a posture adjusting function,

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093165A (en) * 2016-11-23 2018-05-29 中兴通讯股份有限公司 A kind of image processing method and device
WO2018095059A1 (en) * 2016-11-23 2018-05-31 中兴通讯股份有限公司 Image processing method and device
CN108419128A (en) * 2018-03-12 2018-08-17 深圳市赛亿科技开发有限公司 The method and device of personage's pose adjustment
CN113170050A (en) * 2020-06-22 2021-07-23 深圳市大疆创新科技有限公司 Image acquisition method, electronic equipment and mobile equipment
CN114511468A (en) * 2022-03-31 2022-05-17 西北民族大学 Distorted bone image correction method and system

Also Published As

Publication number Publication date
CN105554285B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN104731501B (en) Control chart calibration method and mobile terminal
CN105138260A (en) Application switching method and terminal
CN104660912A (en) Photographing method and photographing device
CN105183308A (en) Picture display method and apparatus
CN104735255A (en) Split screen display method and system
CN104898970A (en) Volume control method and apparatus
CN104811532A (en) Terminal screen display parameter adjustment method and device
CN105094665A (en) Screen capturing method and apparatus
CN104571827A (en) Icon arrangement adjustment method and mobile terminal
CN105045502A (en) Image processing method and image processing device
CN105487662A (en) Increasing and decreasing adjustment method and device of mobile terminal
CN104951236A (en) Wallpaper configuration method for terminal device, and terminal device
CN104820555A (en) Transverse and vertical screen modes switching method and device, and terminal
CN104916270A (en) Method for adjusting screen brightness and device thereof
CN104993180A (en) Terminal charging method and device
CN105138255A (en) Terminal and image information acquisition method
CN104750389A (en) Picture displaying method and device
CN104898940A (en) Picture processing method and device
CN104917965A (en) Shooting method and device
CN104881218A (en) Mobile terminal screen scrolling method and mobile terminal screen scrolling device
CN104951229A (en) Screen capturing method and device
CN105094543A (en) Method and apparatus for inputting operation instruction of terminal
CN105554285A (en) Processing method for taking photo of people, and intelligent mobile terminal
CN105302899A (en) Mobile terminal and picture processing method
CN105491548A (en) Network searching method and device

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