CN107181913B - A kind of photographic method and mobile terminal - Google Patents

A kind of photographic method and mobile terminal Download PDF

Info

Publication number
CN107181913B
CN107181913B CN201710377881.2A CN201710377881A CN107181913B CN 107181913 B CN107181913 B CN 107181913B CN 201710377881 A CN201710377881 A CN 201710377881A CN 107181913 B CN107181913 B CN 107181913B
Authority
CN
China
Prior art keywords
image
facial image
distance
camera
facial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710377881.2A
Other languages
Chinese (zh)
Other versions
CN107181913A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710377881.2A priority Critical patent/CN107181913B/en
Publication of CN107181913A publication Critical patent/CN107181913A/en
Application granted granted Critical
Publication of CN107181913B publication Critical patent/CN107181913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of photographic method and mobile terminals, wherein the photographic method includes: the facial image identified in viewfinder area;Determine each facial image to camera distance;The adjustment of display scale is carried out to the corresponding character image of facial image in initial shooting image according to the distance of each facial image to camera, target is generated and shoots image.Above-mentioned technical proposal, according to the distance of photograph subject to camera, the display scale of character image improves the experience of taking pictures of user so that the ratio of each facial image will not generate larger difference because distance is different in the image of adjustment shooting.

Description

A kind of photographic method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of photographic methods and mobile terminal.
Background technique
With the development of electronic technology, more and more functions are integrated on mobile terminal (such as mobile phone), as taken pictures, Figure, payment, shopping etc., especially camera function, facilitate demand of the people to taking pictures.Since size of mobile terminals is smaller, side Portable belt allows people whenever and wherever possible, wants to clap and just clap, therefore the camera function on mobile terminal has obtained more and more people Like.In the daily usage scenario taken pictures of people, many people (especially schoolgirl) influence the viewpoint of beauty and ugliness on face size Take notice of very much, especially when more people are in step with, is intended to station later so that the face of oneself seems smaller when being in step with, but in this way The face of the people of passing station in front seems larger again, influences the use that user is in step with using the camera function on mobile terminal Experience.
Summary of the invention
The embodiment of the invention provides a kind of photographic method and mobile terminals, when with solution, more people are in step in the prior art, Because the distance of photograph subject to camera is different, the size for causing face to be imaged has the problem of larger gap.
In a first aspect, providing a kind of photographic method, it is applied to mobile terminal characterized by comprising
Identify the facial image in viewfinder area;
Determine each facial image to camera distance;
According to the distance of each facial image to camera, to the corresponding figure map of facial image in initial shooting image Picture carries out the adjustment of display scale, generates target and shoots image.
Second aspect provides a kind of mobile terminal, comprising:
Identification module, for identification facial image in viewfinder area;
Determining module, the distance for determining each facial image that the identification module identifies to camera;
Generation module, the distance of each facial image for being determined according to the determining module to camera, to first Begin to shoot the corresponding character image of facial image in image, carry out the adjustment of display scale, generates target and shoot image.
The beneficial effects of the present invention are:
Above-mentioned technical proposal, according to the distance of photograph subject to camera, character image in the image of adjustment shooting Display scale improve the bat of user so that the ratio of each facial image will not generate larger difference because distance is different According to experience.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without any creative labor, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 shows the flow charts of photographic method provided in an embodiment of the present invention;
Fig. 2 indicates the sub-step flow chart of step 103 provided in an embodiment of the present invention;
Fig. 3 indicates the sub-step flow chart of step 1031 provided in an embodiment of the present invention;
Fig. 4 indicates the sub-step flow chart of step 1032 provided in an embodiment of the present invention;
Fig. 5 indicates one of the block diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 6 indicates the two of the block diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 7 indicates the three of the block diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 8 shows the four of the block diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
One aspect according to an embodiment of the present invention provides a kind of photographic method, is applied to mobile terminal.Such as Fig. 1 institute Show, which includes:
Facial image in step 101, identification viewfinder area.
In this step, when taking pictures, identify the facial image in viewfinder area, i.e., it is shown in identification camera preview interface Facial image.
Specifically, face recognition technology can be used, identify the facial image in viewfinder area.
Step 102, determine each facial image to camera distance.
After identifying the facial image in viewfinder area by step 101, this step will determine every in viewfinder area Distance of one face to camera.
Wherein, when carrying out recognition of face, it will usually outline identified people by rectangle frame in the preview interface of camera Face image, and this step determine face to camera apart from when, it may be determined that the midpoint point of rectangle frame to camera front end Distance.Specifically, each people can be determined by dual camera distance measuring method, infrared distance measuring method or laser distance measurement method etc. Distance of the face image to camera.Since dual camera distance measuring method, infrared distance measuring method and laser distance measurement method are existing There is technology, therefore the embodiment of the present invention just repeats no more this.
Step 103, according to the distance of each facial image to camera, it is corresponding to the facial image in initial shooting image Character image, carry out the adjustment of display scale, generate target and shoot image.
After determining distance of the facial image to camera by step 102, this step according to this distance, is clapped initial The corresponding character image of facial image in image is taken the photograph, the adjustment of display scale is carried out, by the facial image remote apart from camera The display scale of corresponding character image tunes up, by the display scale of the facial image corresponding character image close apart from camera It turns down, to balance the display scale of the character image (including facial image) in photo, makes the size of facial image in photo Will not be different because of the distance to camera, and larger difference is generated, improve the experience of taking pictures when more people are in step with.
Wherein, initial shooting image described here is when triggering the photographing instruction of camera, in captured viewfinder area Image.
Wherein, the photographing instruction described here includes but is not limited to: physical button triggering command, touch gestures operation refer to It enables, speech trigger instruction, fingerprint triggering command and pressing at least one of triggering command.Specifically, above-metioned instruction is touched The mode of hair can be one or more physical button triggerings, the triggering of key press time interval mode, touch screen single-point or multiple spot behaviour It triggers, infrared sensor triggering, acceleration transducer triggering, gyro sensor triggering, temperature sensor triggering, fingerprint knowledge Not Chu Fa, voice recognition triggering, gesture identification triggering or image recognition triggering etc..Certainly, above-mentioned triggering mode is only to illustrate Illustrate, any other mode that can be realized terminal camera triggering can be applied in the embodiment of the present invention, herein not one by one Explanation.
It should be noted that the description order of above-mentioned steps is merely to describe technical side provided in an embodiment of the present invention Case, is not the stringent sequence that executes, and concrete condition can be adjusted according to actual needs.
It should also be noted that, for the face figure for guaranteeing to shoot the facial image in image and determining to camera distance As consistent, determination of distance can be carried out when getting photographing instruction.
Above-mentioned technical proposal, according to the distance of photograph subject to camera, adjustment shoots the aobvious of the character image in image Show ratio, so that the facial image ratio in each character image is not generated larger difference because distance is different, to promote use The experience of taking pictures at family.
Further, as shown in Fig. 2, the distance according to each facial image to camera in step 103, is clapped initial The corresponding character image of facial image in image is taken the photograph, the adjustment of display scale is carried out, target is generated and shoots image, it is specific to wrap It includes:
Step 1031 determines character image corresponding with facial image.
Before carrying out the display scale adjustment of character image, also need to determine character image corresponding with each facial image, To carry out the adjustment of character image entirety display scale, rather than it is only limitted to the adjustment of facial image display scale, to guarantee to scheme As display balance.
Preferably, step 10311 as described below can be used to the method described in step 10313, really in the embodiment of the present invention Determine the corresponding character image of facial image.Wherein, as shown in figure 3, determination personage corresponding with facial image in step 1031 Image specifically includes:
Step 10311 determines pixel in predeterminable area except each facial image to the first of camera respectively Distance.
After determining distance of the face in viewfinder area to camera, then determine default except each facial image The distance (i.e. first distance) of pixel in region to camera.
Wherein, the pixel except facial image described here refers to: except the rectangle frame for identifying facial image Pixel.The value range of predeterminable area described here can be set according to actual needs, which can be shape The region of rule, is also possible to region in irregular shape.
Wherein, it when carrying out the Distance Judgment of the pixel except facial image, can follow apart from rectangle frame from the near to the remote Rule carry out pixel selection judgement.
Step 10312 judges difference of the first distance at a distance from each facial image to camera.
After determining distance of a certain pixel to camera outside facial image by step 10311, by this step Suddenly calculate the pixel to camera difference of the distance at a distance from each facial image to camera.
Wherein, difference described here is the numerical value more than or equal to 0, that is, the difference is first distance and each people For face image into the distance of camera, the biggish distance value of numerical value subtracts the difference that the lesser distance value of numerical value obtains, or reason Solution is the absolute value of difference of the first distance at a distance from each facial image to camera.
The pixel that difference is less than or equal to preset difference value is belonged to the corresponding people of corresponding facial image by step 10313 In object image.
When difference of the distance at a distance from a certain facial image to camera of a certain pixel to camera be less than it is default When difference, which is belonged in the corresponding character image of the facial image, thus other positions for belonging to this personage As body, article of holding etc. all carry out the adjustment of display scale as a whole.
Wherein, preset difference value can select according to actual needs.
Step 1032, according to the distance of each facial image to camera, determine the corresponding figure map of each facial image The scaling of picture.
In this step, according to the distance of each facial image to camera, determine that each character image carries out display scale The scaling of adjustment.
Preferably, step 10321 as described below can be used to the method described in step 10322, really in the embodiment of the present invention Determine the scaling of the corresponding character image of each facial image.Wherein, as shown in figure 4, in step 1032 according to each people Face image determines the scaling of the corresponding character image of each facial image, specifically includes to the distance of camera:
Step 10321 is determined with reference to facial image.
Before determining the scaling of character image, a reference is selected first from the face images in viewfinder area Facial image.
Facial image is referred to for this, one can be independently selected according to demand by user and refer to facial image, for example, When carrying out with reference to facial image selection, user's point touches one of facial image, then the facial image is determined as reference man Face image;It is with reference to facial image that a facial image can also be automatically selected by system, such as selection one distance is placed in the middle Facial image is with reference to facial image.Specific implementation are as follows: according to user to the selection operation of facial image, determine and refer to face figure Picture;Or the distance according to each facial image to camera determines reference man from the face images in viewfinder area Face image.
Step 10322, by the second distance of reference facial image to camera, with other facial images to camera The ratio of three distances is determined as the scaling of the corresponding character image of other facial images.
In this step, by the distance of other facial images outside reference facial image to camera, face figure is referred to this Ratio as arriving camera distance, determines the scaling of the corresponding character image of other facial images, its calculation formula is a= d/d0, wherein a is scaling, and d is object distance of other facial images to camera quilt, d0For with reference to facial image to taking the photograph As the distance of head.
Wherein, other facial images are the face figure in the face images in viewfinder area in addition to reference facial image Picture;Scaling with reference to the corresponding character image of facial image is 1.
Step 1033, according to scaling, the adjustment of display scale is carried out to the corresponding character image of each facial image, It generates target and shoots image.
According to the scaling that step 1032 determines, display scale is carried out to the corresponding character image of each facial image Adjustment generates target and shoots image, i.e., tunes up the display scale of the facial image corresponding character image remote apart from camera, The display scale of the facial image corresponding character image close apart from camera is turned down, thus by photograph subject draw to it is same away from (removal Deep Canvas is equivalent to) under, is balanced the display scale of the character image (including facial image) in photo, is made photo The size of middle facial image will not be different because of the distance to camera, and generate larger difference, improve more people and are in step with When experience of taking pictures.
In conclusion photographic method provided in an embodiment of the present invention is adjusted by the distance according to photograph subject to camera The display scale of character image in whole shooting image, so that the facial image ratio in each character image will not be because of distance not Larger difference is generated together, to promote the experience of taking pictures of user.
Other side according to an embodiment of the present invention provides a kind of mobile terminal.As shown in figure 5, the mobile terminal 500 include:
Identification module 501, for identification facial image in viewfinder area.
When taking pictures, identification module 501 identifies the facial image in viewfinder area, i.e., shows in identification camera preview interface The facial image shown.
Specifically, face recognition technology can be used, identify the facial image in viewfinder area.
Determining module 502, the distance for determining each facial image that identification module 501 identifies to camera.
After identifying the facial image in viewfinder area by identification module 501, area of finding a view is determined by determining module 502 The distance of each face in domain to camera.
Wherein, when carrying out recognition of face, it will usually outline identified people by rectangle frame in the preview interface of camera Face image, and this step determine face to camera apart from when, it may be determined that the midpoint point of rectangle frame to camera front end Distance.Specifically, each people can be determined by dual camera distance measuring method, infrared distance measuring method or laser distance measurement method etc. Distance of the face image to camera.Since dual camera distance measuring method, infrared distance measuring method and laser distance measurement method are existing There is technology, therefore the embodiment of the present invention just repeats no more this.
Generation module 503, the distance of each facial image for being determined according to determining module 502 to camera are right The corresponding character image of facial image in initial shooting image, carries out the adjustment of display scale, generates target and shoots image.
After determining distance of the facial image to camera by determining module 502, by generation module 503 according to this away from From, to the corresponding character image of facial image in initial shooting image, the adjustment of display scale is carried out, it will be remote apart from camera The display scale of the corresponding character image of facial image tune up, by the facial image corresponding character image close apart from camera Display scale turn down, to balance the display scale of the character image (including facial image) in photo, make face in photo The size of image will not be different because of the distance to camera, and generate larger difference, improve bat when more people are in step with According to experience.
Wherein, initial shooting image described here is when triggering the photographing instruction of camera, in captured viewfinder area Image.
Wherein, the photographing instruction described here includes but is not limited to: physical button triggering command, touch gestures operation refer to It enables, speech trigger instruction, fingerprint triggering command and pressing at least one of triggering command.Specifically, above-metioned instruction is touched The mode of hair can be one or more physical button triggerings, the triggering of key press time interval mode, touch screen single-point or multiple spot behaviour It triggers, infrared sensor triggering, acceleration transducer triggering, gyro sensor triggering, temperature sensor triggering, fingerprint knowledge Not Chu Fa, voice recognition triggering, gesture identification triggering or image recognition triggering etc..Certainly, above-mentioned triggering mode is only to illustrate Illustrate, any other mode that can be realized terminal camera triggering can be applied in the embodiment of the present invention, herein not one by one Explanation.
It should be noted that the description order of above-mentioned steps is merely to describe technical side provided in an embodiment of the present invention Case, is not the stringent sequence that executes, and concrete condition can be adjusted according to actual needs.
It should also be noted that, for the face figure for guaranteeing to shoot the facial image in image and determining to camera distance As consistent, determination of distance can be carried out when getting photographing instruction.
Further, as shown in fig. 6, generation module 503 includes:
First determines submodule 5031, for determining character image corresponding with facial image.
Before carrying out the display scale adjustment of character image, also need to determine the determination of submodule 5031 and each people by first The corresponding character image of face image, so that the adjustment of character image entirety display scale is carried out, rather than it is aobvious to be only limitted to facial image Show the adjustment of ratio, to guarantee image display balance.
Second determines that submodule 5032 determines each face figure for the distance according to each facial image to camera As the scaling of corresponding character image.
Second determines that submodule 5032 according to the distance of each facial image to camera, determines that each character image carries out The scaling of display scale adjustment.
Submodule 5033 is generated, for being shown to the corresponding character image of each facial image according to scaling The adjustment of ratio generates target and shoots image.
It generates submodule 5033 and determines the determining scaling of submodule 5032 according to second, it is corresponding to each facial image Character image carry out the adjustment of display scale, generate target and shoot image, i.e., it is the facial image remote apart from camera is corresponding The display scale of character image tune up, by the display scale tune of the facial image corresponding character image close apart from camera It is small, (be equivalent to removal Deep Canvas) to drawing photograph subject under same distance, balance in photo character image (including Facial image) display scale, make the size of facial image in photo will not be different because of the distance to camera, and produce Raw larger difference, improves the experience of taking pictures when more people are in step with.
Further, as shown in fig. 6, first determines that submodule 5031 includes:
First determination unit 50311, for determining that the pixel in the predeterminable area except each facial image arrives respectively The first distance of camera.
It is determined after determining distance of the face in viewfinder area to camera, then through the first determination unit 50311 The distance (i.e. first distance) of pixel except each facial image to camera.
Wherein, the pixel except facial image described here refers to: except the rectangle frame for identifying facial image Pixel.The value range of predeterminable area described here can be set according to actual needs, which can be shape The region of rule, is also possible to region in irregular shape.
Wherein, it when carrying out the Distance Judgment of the pixel except facial image, can follow apart from rectangle frame from the near to the remote Rule carry out pixel selection judgement.
Judging unit 50312, for judging difference of the first distance at a distance from each facial image to camera.
After determining distance of a certain pixel to camera outside facial image by the first determination unit 50311, By judging unit 50312 calculate the pixel to camera difference of the distance at a distance from each facial image to camera Value.
Wherein, difference described here is the numerical value more than or equal to 0, that is, the difference is first distance and each people For face image into the distance of camera, the biggish distance value of numerical value subtracts the difference that the lesser distance value of numerical value obtains, or reason Solution is the absolute value of difference of the first distance at a distance from each facial image to camera.
Processing unit 50313, the pixel for difference to be less than or equal to preset difference value belong to corresponding facial image In corresponding character image.
When difference of the distance at a distance from a certain facial image to camera of a certain pixel to camera be less than it is default When difference, processing unit 50313 belongs to the pixel in the corresponding character image of the facial image, thus this person is belonged to Other positions of object such as body, held article etc. all carry out the adjustment of display scale as a whole.
Wherein, preset difference value can select according to actual needs.
Further, as shown in fig. 6, second determines that submodule 5032 includes:
Second determination unit 50321 refers to facial image for determining.
Before determining the scaling of character image, pass through the second determination unit 50321 first from the institute in viewfinder area There is selection one in facial image to refer to facial image.
Third determination unit 50322, the second distance for facial image will to be referred to camera, with other facial images To the ratio of the third distance of camera, it is determined as the scaling of the corresponding character image of other facial images.
Wherein, other facial images are the face figure in the face images in viewfinder area in addition to reference facial image Picture;Scaling with reference to the corresponding character image of facial image is 1.
Third determination unit 50322 is by the distance of other facial images outside reference facial image to camera, with the ginseng Facial image is examined to the ratio of camera distance, determines the scaling of the corresponding character image of other facial images, is calculated Formula is a=d/d0, wherein a is scaling, and d is object distance of other facial images to camera quilt, d0For with reference to face Distance of the image to camera.
Further, as shown in fig. 6, the second determination unit 50321 includes:
It determines subelement 503211, for the selection operation according to user to facial image, determines and refer to facial image;Or Person determines from the face images in viewfinder area according to the distance of each facial image to camera and refers to face figure Picture.
Facial image is referred to for this, one can be independently selected according to demand by user and refer to facial image, for example, When carrying out with reference to facial image selection, user's point touches one of facial image, then the facial image is determined as reference man Face image;It is with reference to facial image that a facial image can also be automatically selected by system, such as selection one distance is placed in the middle Facial image is with reference to facial image.Specific implementation are as follows: according to user to the selection operation of facial image, determine and refer to face figure Picture;Or the distance according to each facial image to camera determines reference man from the face images in viewfinder area Face image.
In conclusion mobile terminal provided in an embodiment of the present invention, identifies the people in viewfinder area by identification module 501 Face image, then by determining module 502 determine each facial image that identifies of identification module 501 to camera distance, most Afterwards, each facial image determined by generation module 503 according to determining module 502 is shot to the distance of camera to initial The corresponding character image of facial image in image carries out the adjustment of display scale, generates target and shoots image.According to taking pictures pair Distance as arriving camera, adjustment shoots the display scale of the character image in image, so that the face figure in each character image As ratio will not generate larger difference because distance is different, to promote the experience of taking pictures of user.
Other side according to an embodiment of the present invention provides a kind of mobile terminal 700.As shown in fig. 7, the movement is whole End 700 includes: at least one processor 701, memory 702, at least one network interface 704 and user interface 703.It is mobile whole Various components in end 700 are coupled by bus system 705.It is understood that bus system 705 is for realizing these components Between connection communication.Bus system 705 further includes power bus, control bus and state letter in addition to including data/address bus Number bus.But for the sake of clear explanation, various buses are all designated as bus system 705 in Fig. 7.
Wherein, user interface 703 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 702 of system and method described herein is intended to include but is not limited to these and arbitrarily its It is suitble to the memory of type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program or instruction of calling memory 702 to store, specifically, can be application The program or instruction stored in program 7022, the facial image in viewfinder area for identification of processor 701;Determine each face Distance of the image to camera;According to the distance of each facial image to camera, to the facial image in initial shooting image Corresponding character image carries out the adjustment of display scale, generates target and shoots image.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701. Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 702, processor 701 reads the information in memory 702, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, processor 701 is also used to: determining character image corresponding with facial image;According to each facial image To the distance of camera, the scaling of the corresponding character image of each facial image is determined;According to the scaling, to each The corresponding character image of facial image carries out the adjustment of display scale, generates target and shoots image.
Optionally, processor 701 is also used to: determining that the pixel in the predeterminable area except each facial image arrives respectively The first distance of camera;Judge difference of the first distance at a distance from each facial image to camera;Difference is less than Or it is belonged in the corresponding character image of corresponding facial image equal to the pixel of preset difference value.
Optionally, processor 701 is also used to: being determined and is referred to facial image;By this with reference to the of facial image to camera Two distances, the ratio with the third distance of other facial images to camera, are determined as the corresponding figure map of other facial images The scaling of picture.Wherein, other facial images be viewfinder area in face images in addition to reference facial image Facial image;Scaling with reference to the corresponding character image of facial image is 1.
Optionally, processor 701 is also used to the selection operation according to user to facial image, determines and refers to facial image; Or the distance according to each facial image to camera determines from the face images in viewfinder area and refers to face Image.
Mobile terminal 700 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
Mobile terminal 700 provided in an embodiment of the present invention passes through the distance according to photograph subject to camera, adjustment shooting The display scale of character image in image, so that the facial image ratio in each character image will not be produced because distance is different Raw larger difference, to promote the experience of taking pictures of user.
Other side according to an embodiment of the present invention provides a kind of mobile terminal 800.Specifically, the mobile terminal 800 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer Deng.
As shown in figure 8, the mobile terminal 800 include radio frequency (Radio Frequency, RF) circuit 801, memory 802, Input unit 803, display unit 804, processor 806, voicefrequency circuit 807, WiFi (Wireless Fidelity) module 808 With power supply 809.
Wherein, input unit 803 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 8031.Touch panel 8031, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 8031 such as finger, stylus), and according to pre- The formula first set drives corresponding attachment device.Optionally, touch panel 8031 may include touch detecting apparatus and touch control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, it will Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact Coordinate, then give the processor 806, and order that processor 806 is sent can be received and executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 8031.It is defeated in addition to touch panel 8031 Enter unit 803 can also include other input equipments 8032, other input equipments 8032 can include but is not limited to physical keyboard, One of function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 804 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 800.Display unit 804 may include display panel 8041, optionally, can use LCD or organic The forms such as light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 8041.
It should be noted that touch panel 8031 can cover display panel 8041, touch display screen is formed, when the touch display screen After detecting touch operation on it or nearby, processor 806 is sent to determine the type of touch event, is followed by subsequent processing device 806 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein, processor 806 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone Various pieces, by running or execute the software program and/or module that are stored in first memory 8021, and call and deposit The data in second memory 8022 are stored up, the various functions and processing data of mobile terminal 800 are executed, thus to mobile terminal 800 carry out integral monitoring.Optionally, processor 806 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 8021 in software program and/or module and/ Or the data in the second memory 8022, the facial image in viewfinder area for identification of processor 806;Determine each face Distance of the image to camera;According to the distance of each facial image to camera, to the facial image in initial shooting image Corresponding character image carries out the adjustment of display scale, generates target and shoots image.
Optionally, processor 806 is also used to: determining character image corresponding with facial image;According to each facial image To the distance of camera, the scaling of the corresponding character image of each facial image is determined;According to the scaling, to each The corresponding character image of facial image carries out the adjustment of display scale, generates target and shoots image.
Optionally, processor 806 is also used to: determining that the pixel in the predeterminable area except each facial image arrives respectively The first distance of camera;Judge difference of the first distance at a distance from each facial image to camera;Difference is less than Or it is belonged in the corresponding character image of corresponding facial image equal to the pixel of preset difference value.
Optionally, processor 806 is also used to: being determined and is referred to facial image;By this with reference to the of facial image to camera Two distances, the ratio with the third distance of other facial images to camera, are determined as the corresponding figure map of other facial images The scaling of picture.Wherein, other facial images be viewfinder area in face images in addition to reference facial image Facial image;Scaling with reference to the corresponding character image of facial image is 1.
Optionally, processor 806 is also used to: according to user to the selection operation of facial image, being determined and is referred to facial image; Or the distance according to each facial image to camera determines from the face images in viewfinder area and refers to face Image.
As it can be seen that mobile terminal 800 provided in an embodiment of the present invention is adjusted by the distance according to photograph subject to camera The display scale of character image in whole shooting image, so that the facial image ratio in each character image will not be because of distance not Larger difference is generated together, to promote the experience of taking pictures of user.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (6)

1. a kind of photographic method is applied to mobile terminal characterized by comprising
Identify the facial image in viewfinder area;
Determine each facial image to camera distance;
According to the distance of each facial image to camera, to the corresponding character image of facial image in initial shooting image, The adjustment of display scale is carried out, target is generated and shoots image;
Wherein, the distance according to each facial image to camera, it is corresponding to the facial image in initial shooting image The step of character image carries out the adjustment of display scale, generates target shooting image, comprising:
Determine character image corresponding with facial image;
According to the distance of each facial image to camera, the scaling of the corresponding character image of each facial image is determined;
According to the scaling, the adjustment of display scale is carried out to the corresponding character image of each facial image, generates target Shoot image;
Wherein, the distance according to each facial image to camera determines the corresponding character image of each facial image The step of scaling, comprising:
It determines and refers to facial image;
Ratio by the third distance of other facial images to camera, with the second distance with reference to facial image to camera Value is determined as the scaling of the corresponding character image of other described facial images;
Wherein, other described facial images be viewfinder area in face images in except it is described with reference to facial image in addition to people Face image;The scaling with reference to the corresponding character image of facial image is 1.
2. photographic method according to claim 1, which is characterized in that determination character image corresponding with facial image The step of, comprising:
Determine respectively the pixel in the predeterminable area except each facial image to camera first distance;
Judge difference of the first distance at a distance from each facial image to camera;
The pixel that the difference is less than or equal to preset difference value is belonged in the corresponding character image of corresponding facial image.
3. photographic method according to claim 1, which is characterized in that described determining the step of referring to facial image, comprising:
According to user to the selection operation of facial image, determines and refer to facial image;Or
According to the distance of each facial image to camera, from the face images in viewfinder area, determines and refer to face Image.
4. a kind of mobile terminal characterized by comprising
Identification module, for identification facial image in viewfinder area;
Determining module, the distance for determining each facial image that the identification module identifies to camera;
Generation module, each facial image for being determined according to the determining module are clapped to the distance of camera initial The corresponding character image of facial image in image is taken the photograph, the adjustment of display scale is carried out, target is generated and shoots image;
Wherein, the generation module includes:
First determines submodule, for determining character image corresponding with facial image;
Second determines that submodule determines that each facial image is corresponding for the distance according to each facial image to camera The scaling of character image;
Submodule is generated, for carrying out display scale to the corresponding character image of each facial image according to the scaling Adjustment, generate target shoot image;
Described second determines that submodule includes:
Second determination unit refers to facial image for determining;
Third determination unit, for by the third distance of other facial images to camera with it is described with reference to facial image to taking the photograph As the ratio of the second distance of head, it is determined as the scaling of the corresponding character image of other described facial images;
Wherein, other described facial images be viewfinder area in face images in except it is described with reference to facial image in addition to people Face image;The scaling with reference to the corresponding character image of facial image is 1.
5. mobile terminal according to claim 4, which is characterized in that described first determines that submodule includes:
First determination unit, for determining the pixel in the predeterminable area except each facial image to the of camera respectively One distance;
Judging unit, for judging difference of the first distance at a distance from each facial image to camera;
Processing unit, it is corresponding that the pixel for the difference to be less than or equal to preset difference value belongs to corresponding facial image In character image.
6. mobile terminal according to claim 4, which is characterized in that second determination unit includes:
It determines subelement, for the selection operation according to user to facial image, determines and refer to facial image;Or according to each The distance of facial image to camera determines from the face images in viewfinder area and refers to facial image.
CN201710377881.2A 2017-05-25 2017-05-25 A kind of photographic method and mobile terminal Active CN107181913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710377881.2A CN107181913B (en) 2017-05-25 2017-05-25 A kind of photographic method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710377881.2A CN107181913B (en) 2017-05-25 2017-05-25 A kind of photographic method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107181913A CN107181913A (en) 2017-09-19
CN107181913B true CN107181913B (en) 2019-05-17

Family

ID=59831865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710377881.2A Active CN107181913B (en) 2017-05-25 2017-05-25 A kind of photographic method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107181913B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820007A (en) * 2017-11-09 2018-03-20 维沃移动通信有限公司 The picture processing method and mobile terminal of a kind of camera
CN107784295B (en) * 2017-11-20 2018-12-21 惠州太初科技有限公司 The camera camera system stretched based on human body distance
CN108076492B (en) * 2017-11-20 2018-10-30 张天勇 A method of promoting the image quality that camera shoots crowd
CN108038444A (en) 2017-12-11 2018-05-15 北京小米移动软件有限公司 Image-recognizing method and device
CN108134903B (en) * 2017-12-25 2020-01-14 Oppo广东移动通信有限公司 Shooting method and related product
CN108600647A (en) * 2018-07-24 2018-09-28 努比亚技术有限公司 Shooting preview method, mobile terminal and storage medium
CN108848317A (en) * 2018-09-25 2018-11-20 Oppo(重庆)智能科技有限公司 Camera control method and Related product
CN110853563B (en) * 2019-11-18 2023-05-12 深圳传音控股股份有限公司 Mirror-based image processing method, mobile terminal and computer storage medium
CN112839161A (en) 2019-11-22 2021-05-25 北京小米移动软件有限公司 Shooting method and device
CN113301242A (en) * 2020-02-21 2021-08-24 中兴通讯股份有限公司 Photographing method, terminal, and computer-readable storage medium
CN111726531B (en) * 2020-06-29 2022-03-01 北京小米移动软件有限公司 Image shooting method, processing method, device, electronic equipment and storage medium
WO2022001630A1 (en) * 2020-06-29 2022-01-06 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and system for capturing at least one smart media
CN114679591A (en) * 2021-12-30 2022-06-28 广州方硅信息技术有限公司 Video proportion switching method, device and medium for live broadcast room and computer equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478629B (en) * 2008-01-04 2010-09-22 华晶科技股份有限公司 Image processing process for regulating human face ratio
CN102833486B (en) * 2012-07-05 2016-09-21 深圳泰山体育科技股份有限公司 The method and device of face displaying ratio in a kind of real-time adjusting video images
CN106488126A (en) * 2016-10-26 2017-03-08 惠州Tcl移动通信有限公司 A kind of can the photographic method of auto zoom picture size, system and its mobile terminal
CN106683100B (en) * 2016-12-27 2020-08-04 宇龙计算机通信科技(深圳)有限公司 Image segmentation defogging method and terminal

Also Published As

Publication number Publication date
CN107181913A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
CN107181913B (en) A kind of photographic method and mobile terminal
CN106603928B (en) A kind of image pickup method and mobile terminal
CN106020613B (en) A kind of operating method and mobile terminal of unread message
CN106101553B (en) A kind of photographic method and mobile terminal
CN105847674B (en) A kind of preview image processing method and mobile terminal based on mobile terminal
CN105959564B (en) A kind of photographic method and mobile terminal
WO2019001152A1 (en) Photographing method and mobile terminal
CN106231178B (en) A kind of self-timer method and mobile terminal
CN106227488B (en) A kind of display methods and mobile terminal of reminder message
CN107613203B (en) Image processing method and mobile terminal
CN105959544B (en) A kind of image processing method and mobile terminal of mobile terminal
CN106126108B (en) A kind of generation method and mobile terminal of thumbnail
CN107172346A (en) A kind of weakening method and mobile terminal
CN106952235B (en) A kind of image processing method and mobile terminal
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN106326713B (en) A kind of unlocking method and mobile terminal of mobile terminal screen
CN106372252B (en) A kind of image display method and mobile terminal
CN108595074A (en) Status bar operating method, device and computer readable storage medium
CN107302655B (en) It is a kind of to shoot the adjusting method and mobile terminal found a view
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN106650367A (en) Private content display method and mobile terminal
CN106331509B (en) A kind of photographic method and mobile terminal
CN106161932B (en) A kind of photographic method and mobile terminal
CN106445328B (en) Unlocking method of mobile terminal screen and mobile terminal
CN107172347B (en) Photographing method and terminal

Legal Events

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