CN108898649A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN108898649A
CN108898649A CN201810622799.6A CN201810622799A CN108898649A CN 108898649 A CN108898649 A CN 108898649A CN 201810622799 A CN201810622799 A CN 201810622799A CN 108898649 A CN108898649 A CN 108898649A
Authority
CN
China
Prior art keywords
paster
face
face image
preview interface
name
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.)
Pending
Application number
CN201810622799.6A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810622799.6A priority Critical patent/CN108898649A/en
Publication of CN108898649A publication Critical patent/CN108898649A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The embodiment of the present application discloses a kind of image processing method and device.Method includes:Recognition of face is carried out at least one face image in current preview interface;The determining paster type and the corresponding paster of the paster type for being adapted to each face image at least one described face image;The corresponding paster of each face image is shown in the preview interface.The embodiment of the present application is conducive to keep the display elements in preview interface richer by adding different types of paster, while available paster relevant with face image.

Description

Image processing method and device
Technical field
This application involves technical field of mobile terminals, and in particular to image processing method and device.
Background technique
With the fast development of smart phone the relevant technologies, the function of smart phone is more and more abundant and diversified, user When use is taken pictures using shooting photo, Many times can carry out landscaping treatment to the photo of shooting, such as add respectively to photo The paster of seed type, to increase the interest of photo.
Summary of the invention
The embodiment of the present application provides image processing method and device, and intelligent paster can be added to picture, increases picture Interest.
In a first aspect, the embodiment of the present application provides a kind of image processing method, it is applied to mobile terminal, the method packet It includes:
Recognition of face is carried out at least one face image in current preview interface;
Determine the paster type and the paster type for being adapted to each face image at least one described face image Corresponding paster;
The corresponding paster of each face image is shown in the preview interface.
Second aspect, the embodiment of the present application provide a kind of mobile terminal, including recognition unit, determination unit and display list Member,
The recognition unit, for carrying out recognition of face at least one face image in current preview interface;
The determination unit, for determining the paster type for being adapted to each face image at least one described face image And the corresponding paster of the paster type;
The display unit, for showing the corresponding paster of each face image in the preview interface.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory and one or more Program, wherein one or more of programs are stored in the memory, and are configured to be executed by the processor, Described program is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein the computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect or second aspect either method.
Fourth aspect, the embodiment of the invention provides a kind of computer program products, wherein above-mentioned computer program product Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate Machine executes the step some or all of as described in first aspect either method of the embodiment of the present invention.The computer program product It can be a software installation packet.
As can be seen that mobile terminal is first at least one face in current preview interface in the embodiment of the present application Image carries out recognition of face, secondly, determine be adapted to the paster type of each face image at least one described face image with And the corresponding paster of the paster type, finally, showing the corresponding paster of each face image in the preview interface. Since mobile terminal has carried out recognition of face to multiple face images in preview interface, it may be determined that the paster of multiple face images Type generates corresponding paster in turn, the corresponding paster of each face image is shown in preview interface, by face image It carries out recognition of face and obtains corresponding paster, keep the display elements in preview interface richer by adding paster, be both may be used also Identity marks are carried out to multiple face images.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of image processing method provided by the embodiments of the present application;
Figure 1A is a kind of reference view of preview interface provided by the embodiments of the present application;
Figure 1B is a kind of reference view of preview interface provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another image processing method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another image processing method provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application;
Fig. 5 is a kind of functional unit composition block diagram of mobile terminal provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in the attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present application may include the various handheld devices with wireless communication function, Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modem User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.Behaviour involved by the embodiment of the present invention It is the software systems for being managed collectively to hardware resource, and providing a user business interface as system.
The embodiment of the present application is introduced with reference to the accompanying drawing.
Referring to Fig. 1, Fig. 1 is that the embodiment of the present application provides a kind of flow diagram of image processing method, it is applied to Mobile terminal, this image processing method include:
S101, mobile terminal carry out recognition of face at least one face image in current preview interface.
Wherein, recognition of face is a kind of biological identification technology that the face feature based on people carries out identification, with camera shooting Machine or camera acquire image or video flowing containing face, and automatic detection and tracking face in the picture, and then to detection The face arrived carries out the image recognition of face, is generally also Identification of Images, face recognition, can expand to recognition of face based on figure The plurality of human faces identification technology of picture or video flowing.
Wherein, different types of paster can be added for face image by the recognition of face of various dimensions, paster includes face The corresponding name paster of image, age paster etc., the type of paster can be set by user.
Wherein, current recognition of face is mostly based on two-dimensional picture and does algorithm process, obtains face by two-dimension picture Information has very big missing, and human face detection tech of the application based on structure light, the face information that will acquire is for establishing people Face dimension substantially increases the accuracy of element judging result, by the recognition of face of various dimensions, can more accurately determine people The relevant information of face, so as to add the richer paster of type for face image.
Wherein, preview interface includes the interface that picture interface, video clip, camera shooting interface etc. include face image.
S102, the mobile terminal determine the paster type for being adapted to each face image at least one described face image And the corresponding paster of the paster type.
Wherein, corresponding paster is generated according to corresponding paster type, for example, paster is year when paster type is the age Age information determines in preview interface each face image corresponding age at least one face image by recognition of face, and Age paster is generated, when paster type is gender, paster is gender information, is determined at least one in preview interface by recognition of face The corresponding gender of each face image in a face image, and generate gender paster.
S103, the mobile terminal show the corresponding paster of each face image in the preview interface.
Wherein, the number of paster is determined by paster type, and the corresponding paster of each type of paster is having multiple pasters When type, the paster of a variety of paster types can be shown on Target Photo simultaneously, alternatively, only showing a kind of patch in preview interface The paster of sheet type, user can be by being selected so that preview interface switches the paster type currently shown to paster type.
Wherein, paster type is selected by users, and the priority of each paster type can be set in user, so that The corresponding paster of every kind of paster type can be shown according to the priority of paster type.
Wherein, it when showing to paster, can first determine the face number of preview interface, detect that face number is big When preset threshold, face number can detected less than preset threshold according to the priority display portion paster of paster type When, it can show whole pasters.For example, preset threshold is 3, currently there are 5 kinds of paster types, detecting the face in preview interface When less than 3,5 kinds of pasters can be shown in the corresponding position of each face image, to avoid showing when face image is too many Show that a plurality of types of pasters make preview interface become in a jumble, to reduce aesthetic measure.
Wherein, the display position of paster can be located at the same direction of face, for example, on the right or the left side of each face Perhaps top or the display position of paster is determined according to the position of multiple face images, so that paster will not block face.
Wherein it is possible to show paster, paster can also be hidden, i.e. user can check paster or not check paster, Such as the display pattern of preview interface can be set to paster mode and without paster mode.
As can be seen that mobile terminal is first at least one face in current preview interface in the embodiment of the present application Image carries out recognition of face, secondly, determine be adapted to the paster type of each face image at least one described face image with And the corresponding paster of the paster type, finally, showing the corresponding paster of each face image in the preview interface. Since mobile terminal has carried out recognition of face to multiple face images in preview interface, it may be determined that the paster of multiple face images Type generates corresponding paster in turn, the corresponding paster of each face image is shown in preview interface, by face image It carries out recognition of face and obtains corresponding paster, keep the display elements in preview interface richer by adding paster, be both may be used also Identity marks are carried out to multiple face images.
In a possible example, the paster type is name, and the preview interface is Target Photo;The determination It is adapted to the paster type and the corresponding paster of the paster type of each face image at least one described face image, packet It includes:Determine that the source mode of the Target Photo, the source mode include network downloading and camera applications shooting;It is detecting When the Target Photo is network download pictures, the corresponding name of at least one face in the Target Photo is obtained by network And generate name paster;When detecting the Target Photo is that camera applications shoot picture, obtained by prestored information described in The corresponding name of at least one face and name paster is generated in Target Photo.
Wherein, when paster type is name, and preview interface is Target Photo, it may be determined that be each of Target Photo Face image adds name information, thus, after carrying out recognition of face to each face image, it may be determined that the body of each face Part, so that it is determined that its name.
Wherein, the source mode of Target Photo includes network downloading and camera applications shooting, and mobile terminal can be to target figure The source of piece is detected, and when detecting Target Photo is network download pictures, can be obtained in Target Photo extremely by network Few corresponding name of a face simultaneously generates name paster, that is, passes through the identity of internet search face image, determine the face Name.For example, Target Photo is unrestrained ten anniversary of a prestige group picture, Target Photo is being determined after network, by right After face in Target Photo carries out recognition of face, then pass through the corresponding angle of face each in the determining group picture of internet search matching Color name word knows that user at once when seeing the picture to can show name paster after generating name paster The name of each personage is conducive to user and personage and name is mapped, and avoids going the name that each personage is searched on network again Word.
Wherein, when detecting Target Photo is that camera applications shoot picture, mobile terminal can be obtained by prestored information The name of at least one face in Target Photo is taken, camera applications include that the included application of taking pictures of system is also taken pictures including third party Using Target Photo can be the picture of the camera applications shooting of mobile terminal oneself, be also possible to what mobile terminal received The picture of camera applications shooting from other mobile terminals leads at this time after identifying to the face in Target Photo It crosses and searches the identity that the relevant information for whether prestoring the face in mobile terminal determines the face, such as is mobile whole by determining Picture and relevant information that the face whether is stored in end determine the name of the face, can also be by determining the face The no name for being contact person to determine the face, for example, being looked into address book contact, wechat contact person, Alipay contact person Look for that whether there is or not face images identical with the face, it is determined whether prestore the face information, and then determine the name of the face.
For example, being as shown in Figure 1A the ginseng of Target Photo after a kind of increase name paster provided by the embodiments of the present application Examine schematic diagram, Target Photo is a five people group photo, after determination will add name paster for the face in group photo, mobile terminal according to Secondary five people in group photo carry out recognition of face, and determine everyone name in group photo by recognition of face and generate name patch Paper shows name paster in corresponding position, i.e., facial image and name paster is mapped, in this way, checking Target Photo When, the name information of everyone in picture can be viewed simultaneously.
As it can be seen that in this example, when paster type is name, and preview interface is Target Photo, in Target Photo After at least one face carries out recognition of face, the corresponding name of each face is determined, generate name paster in target figure On piece shows the name of each face, enriches the content of Target Photo, to avoid because the time forgets Target Photo too long The case where middle face name.
In a possible example, the paster type is man and wife's phase;Described at least one described face of determining adaptation The paster type of each face image and the corresponding paster of the paster type in image, including:Detect it is described at least When the similarity of any two face image is greater than default similarity threshold in one face image, any two people is determined The corresponding gender of face image;When detecting the corresponding gender difference of any two face image, man and wife's phase paster is generated
Wherein, paster type is man and wife's phase, that is, be may make in preview interface, includes multiple people especially in preview interface When face image, two everybody faces with man and wife's phase can be found out.To any two face shadow at least one face image The similarity of picture is detected, when the similarity threshold for detecting any two face image is greater than default similarity threshold, Determine whether the gender of two people is identical, if the gender of two people is not identical, that is, produces man and wife's phase paster, and then in preview Man and wife's phase paster is shown in interface to indicate that two people have man and wife's phase, when the similarity for not detecting any two face image When threshold value is greater than default similarity threshold, then do not have to generate man and wife's phase paster.
Wherein, it when the similarity threshold for detecting any two face image is greater than default similarity threshold, examines simultaneously The gender phase of two people is measured at the same time it can also generate sister or fraternal paster.
As it can be seen that the similarity of any two face image is greater than in detecting at least one face image in this example When default similarity threshold, while when detecting that the gender of any two face is not identical again, man and wife's phase paster is generated, Man and wife's phase paster that generation is shown in preview interface, can increase the interest of preview interface.
In a possible example, described at least one face image in current preview interface carries out face knowledge Before not, the method also includes:Determine the face number in the preview interface;It is default to detect that the face number is greater than Face quantity threshold.
Wherein, in the case where having multiple face images in preview interface, before carrying out recognition of face, mobile terminal can It first determines the face number in preview interface, when detecting that face number is greater than default face quantity threshold, determines to current Preview interface at least one face image carry out recognition of face, for example, preview interface be more National People's Congress take a group photo or finish When industry is shone, name paster is added to each face of big group photo the inside, i.e., identity marks have been carried out to each face, when can avoid Between it is long after, forgetting to take a group photo greatly, who is who for the inside, therefore, can first detect, examine to the face number in preview interface When measuring face number greater than default face quantity threshold, it may be determined that addition paster.
As it can be seen that before carrying out paster processing to preview interface, first determining the face number in preview interface in this example Mesh, when detecting that the face number in preview interface is greater than default face quantity threshold, then to multiple people in preview interface Face carries out recognition of face, and then determines paster, is conducive to carry out face identity by addition paster when face number is more Label.
In a possible example, the paster type is comprised at least one of the following:Name, age, gender, network body Part, nickname, man and wife's phase and face value.
Wherein, there are many paster types, each of preview interface face can be given by adding different types of paster Add name information, age information, gender information, network identity information, nickname information, man and wife's phase information and face value information.
Wherein, network identity information includes user name, not only can add name paster to face, can also add user name patch Paper shows user name, the user name of face can be obtained from the Affiliates List in wechat or Alipay.Nickname information, that is, the people The nickname of face, user can prestore the nickname to face setting in the terminal, or from the connection in wechat or Alipay The remarks that the face is obtained in roster are determined as user to the nickname of the face.It is right after face value information passes through recognition of face Multiple faces in big group photo carry out the evaluation of face value, generate the pasters such as face value first, face value second, face value third and distribute to pair The face answered, to increase the interest of preview interface.
For example, being as shown in Figure 1B a kind of reference view of face value paster provided by the embodiments of the present application, pass through Recognition of face carried out to each of group photo face, and the human face data that will acquire carry out big data analysis take a group photo in often The face value ranking of people determines face value ranking according to eyes size, eyes get over great Yan for example, obtaining the eye image of each face Value ranking is more forward, or obtains the face image of each face, determines face value ranking, phase according to the relative position between face It is more forward more meeting the Popular Aesthetics face value in network to position, it, can also be in paster after determining the face value ranking of each face The middle comment increased to the face, evaluates the face, while increasing the interest of preview interface.
As it can be seen that in this example, by the way that different paster types is arranged, thus at least one face in preview interface After carrying out recognition of face, different types of paster can be added, the content of preview interface is enriched, increases the interest of Target Photo Taste.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of image processing method provided by the embodiments of the present application, it is applied to Mobile terminal, as shown, this image processing method includes:
S201, mobile terminal carry out recognition of face at least one face image in current preview interface.
S202, the mobile terminal determine that the corresponding paster type of at least one face image is man and wife's phase.
S203, the mobile terminal in detecting at least one described face image any two face image it is similar When degree is greater than default similarity threshold, the corresponding gender of any two face image is determined.
S204, the mobile terminal generate husband when detecting the corresponding gender difference of any two face image Wife's phase paster.
S205, the mobile terminal corresponding face location in the preview interface show man and wife's phase paster.
As can be seen that mobile terminal is first at least one face in current preview interface in the embodiment of the present application Image carries out recognition of face, secondly, determine be adapted to the paster type of each face image at least one described face image with And the corresponding paster of the paster type, finally, showing the corresponding paster of each face image in the preview interface. Since mobile terminal has carried out recognition of face to multiple face images in preview interface, it may be determined that the paster of multiple face images Type generates corresponding paster in turn, the corresponding paster of each face image is shown in preview interface, by face image It carries out recognition of face and obtains corresponding paster, keep the display elements in preview interface richer by adding paster, be both may be used also Identity marks are carried out to multiple face images.
In addition, the similarity of any two face image is greater than default similarity in detecting at least one face image When threshold value, while when detecting that the gender of any two face is not identical again, man and wife's phase paster is generated, in preview interface It shows man and wife's phase paster, the interest of preview interface can be increased.
Referring to Fig. 3, Fig. 3 is a kind of flow diagram of image processing method provided by the embodiments of the present application, it is applied to Mobile terminal, as shown, this image processing method includes:
S301, mobile terminal determine the face number in the preview interface.
S302, the mobile terminal detect that the face number is greater than default face quantity threshold.
S303, the mobile terminal determine that the corresponding paster type of at least one face image is man and wife's phase.
S304, the mobile terminal in detecting at least one described face image any two face image it is similar When degree is greater than default similarity threshold, the corresponding gender of any two face image is determined.
S305, it is described mobile eventually when detecting the corresponding gender difference of any two face image, generate man and wife Phase paster.
S306, mobile corresponding face location display man and wife's phase paster in the preview interface eventually.
As can be seen that mobile terminal is first at least one face in current preview interface in the embodiment of the present application Image carries out recognition of face, secondly, determine be adapted to the paster type of each face image at least one described face image with And the corresponding paster of the paster type, finally, showing the corresponding paster of each face image in the preview interface. Since mobile terminal has carried out recognition of face to multiple face images in preview interface, it may be determined that the paster of multiple face images Type generates corresponding paster in turn, the corresponding paster of each face image is shown in preview interface, by face image It carries out recognition of face and obtains corresponding paster, keep the display elements in preview interface richer by adding paster, be both may be used also Identity marks are carried out to multiple face images.
In addition, the similarity of any two face image is greater than default similarity in detecting at least one face image When threshold value, while when detecting that the gender of any two face is not identical again, man and wife's phase paster is generated, in preview interface It shows man and wife's phase paster, the interest of preview interface can be increased.
In addition, first determining the face number in preview interface before carrying out paster processing to preview interface, detecting When face number in preview interface is greater than default face quantity threshold, then face knowledge is carried out to multiple faces in preview interface Not, it and then determines paster, is conducive to that face identity is marked by adding paster when face number is more.
It is consistent with described Fig. 1, Fig. 2, embodiment shown in Fig. 3, referring to Fig. 4, Fig. 4 is provided by the embodiments of the present application A kind of structural schematic diagram of mobile terminal 400, the mobile terminal 400 operation have one or more application program and operating system, As shown, the mobile terminal 400 includes processor 410, memory 420, communication interface 430 and one or more programs 421, wherein one or more of programs 421 are stored in the memory 420, and are configured by the processor 410 execute, and one or more of programs 421 include the instruction for executing following steps;
Recognition of face is carried out at least one face image in current preview interface;
Determine the paster type and the paster type for being adapted to each face image at least one described face image Corresponding paster;
The corresponding paster of each face image is shown in the preview interface.
As can be seen that mobile terminal is first at least one face in current preview interface in the embodiment of the present application Image carries out recognition of face, secondly, determine be adapted to the paster type of each face image at least one described face image with And the corresponding paster of the paster type, finally, showing the corresponding paster of each face image in the preview interface. Since mobile terminal has carried out recognition of face to multiple face images in preview interface, it may be determined that the paster of multiple face images Type generates corresponding paster in turn, the corresponding paster of each face image is shown in preview interface, by face image It carries out recognition of face and obtains corresponding paster, keep the display elements in preview interface richer by adding paster, be both may be used also Identity marks are carried out to multiple face images.
In a possible example, the paster type is name;In described determining at least one described face of adaptation In image in terms of the paster type of each face image and the corresponding paster of the paster type, the instruction tool in described program Body is for performing the following operations:Determine that the source mode of the Target Photo, the source mode include network downloading and camera Using shooting;When detecting the Target Photo is network download pictures, obtained in the Target Photo at least by network The corresponding name of one face simultaneously generates name paster;When detecting the Target Photo is that camera applications shoot picture, lead to Prestored information is crossed to obtain the corresponding name of at least one face in the Target Photo and generate name paster.
In a possible example, the paster type is man and wife's phase;In described determining at least one described people of adaptation In face image in terms of the paster type of each face image and the corresponding paster of the paster type, the instruction in described program Specifically for executing following operation:The similarity of any two face image is big in detecting at least one described face image When default similarity threshold, the corresponding gender of any two face image is determined;Detecting any two people When the corresponding gender difference of face image, man and wife's phase paster is generated.
In a possible example, described at least one face image in current preview interface carries out face knowledge Before not, the instruction in described program is also used to execute following operation:Determine the face number in the preview interface;It detects The face number is greater than default face quantity threshold.
In a possible example, the paster type is comprised at least one of the following:Name, age, gender, network body Part, nickname, man and wife's phase and face value.
It is described that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that , for mobile terminal in order to realize the function, it comprises execute the corresponding hardware configuration of each function and/or software mould Block.Those skilled in the art should be readily appreciated that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution Part.Professional technician can specifically realize described function to each using distinct methods, but this reality Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to mobile terminal, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
Using integrated unit, Fig. 5 shows one kind of mobile terminal involved in the embodiment Possible functional unit forms block diagram.Mobile terminal 500 is applied to mobile terminal, and operation has operating system on the mobile terminal And one or more application program, the mobile terminal 500 include:Recognition unit 501, determination unit 502 and display unit 503,
The recognition unit 501, for carrying out recognition of face at least one face image in current preview interface;
The determination unit 502, for determining the paster for being adapted to each face image at least one described face image Type and the corresponding paster of the paster type;
The display unit 503, for showing the corresponding paster of each face image in the preview interface.
In a possible example, the paster type is name;In described determining at least one described face of adaptation The paster type of each face image and the corresponding paster aspect of the paster type, the determination unit 502 have in image Body is used for:Determine that the source mode of the Target Photo, the source mode include network downloading and camera applications shooting;And For obtaining at least one people in the Target Photo by network when detecting the Target Photo is network download pictures The corresponding name of face simultaneously generates name paster;And for detect the Target Photo be camera applications shoot picture when, The corresponding name of at least one face in the Target Photo is obtained by prestored information and generates name paster.
In a possible example, the paster type is man and wife's phase;In described determining at least one described people of adaptation The paster type of each face image and the corresponding paster aspect of the paster type, the determination unit 502 in face image It is specifically used for:The similarity of any two face image is greater than default similarity in detecting at least one described face image When threshold value, the corresponding gender of any two face image is determined;And for detecting any two face shadow When as corresponding gender difference, man and wife's phase paster is generated.
In a possible example, described at least one face image in current preview interface carries out face knowledge Before not, the recognition unit 501 is also used to determine the face number in the preview interface;And for detecting the people Face number is greater than default face quantity threshold.
In a possible example, the paster type is comprised at least one of the following:Name, age, gender, network body Part, nickname, man and wife's phase and face value.
It should be noted that mobile terminal described in apparatus of the present invention embodiment is presented in the form of functional unit. Term " unit " used herein above should be understood as meaning as widest as possible, for realizing function described by each " unit " Object for example can be integrated circuit ASIC, single circuit, for executing the processing of one or more softwares or firmware program Device (shared, dedicated or chipset) and memory, combinational logic circuit, and/or other conjunctions for realizing above-mentioned function are provided Suitable component.
Wherein, recognition unit 501, determination unit 502 and display unit 503 can be processor or controller.
As shown in fig. 6, Fig. 6 is that the embodiment of the present application provides the structural schematic diagram of a kind of electronic equipment 100, the electronics Equipment 100 includes:Shell 110, the circuit board 120 being set in the shell 110, the display being set on the shell 110 Shield 130 and camera 140, is provided with processor 121, sensor 122 and memory 123, the sensing on the circuit board 120 Device 122 and memory 123 are connect with the processor 121, and the processor 121 connects the display screen 130;Wherein,
The processor 121, for carrying out recognition of face at least one face image in current preview interface;With And for determining the paster type and the paster type pair that are adapted to each face image at least one described face image The paster answered;And for showing the corresponding paster of each face image in the preview interface.
In a possible example, the paster type is name;In described determining at least one described face of adaptation The paster type of each face image and the corresponding paster aspect of the paster type, the processor 121 are specific in image For:Determine that the source mode of the Target Photo, the source mode include network downloading and camera applications shooting;And it uses In when detecting the Target Photo is network download pictures, at least one face in the Target Photo is obtained by network Corresponding name simultaneously generates name paster;And for leading to when detecting the Target Photo is that camera applications shoot picture Prestored information is crossed to obtain the corresponding name of at least one face in the Target Photo and generate name paster.
In a possible example, the paster type is man and wife's phase;In described determining at least one described people of adaptation The paster type of each face image and the corresponding paster aspect of the paster type, the processor 121 have in face image Body is used for:The similarity of any two face image is greater than default similarity threshold in detecting at least one described face image When value, the corresponding gender of any two face image is determined;And for detecting any two face image When corresponding gender difference, man and wife's phase paster is generated.
In a possible example, described at least one face image in current preview interface carries out face knowledge Before not, the processor 121 is specifically used for:Determine the face number in the preview interface;And it is described for detecting Face number is greater than default face quantity threshold.
In a possible example, the paster type is comprised at least one of the following:Name, age, gender, network body Part, nickname, man and wife's phase and face value.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, the computer program make computer execute any as recorded in the method embodiment Some or all of method step, the computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as the side Some or all of either record method step in method embodiment.The computer program product can be a software installation Packet, the computer includes mobile terminal.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the described embodiment, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical 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, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.The integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the application Step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (12)

1. a kind of image processing method, which is characterized in that it is applied to mobile terminal, the method includes:
Recognition of face is carried out at least one face image in current preview interface;
Determine that being adapted to the paster type of each face image and the paster type at least one described face image corresponds to Paster;
The corresponding paster of each face image is shown in the preview interface.
2. the preview interface is mesh the method according to claim 1, wherein the paster type is name It marks on a map piece;The determining paster type and the paster class for being adapted to each face image at least one described face image The corresponding paster of type, including:
Determine that the source mode of the Target Photo, the source mode include network downloading and camera applications shooting;
When detecting the Target Photo is network download pictures, at least one people in the Target Photo is obtained by network The corresponding name of face simultaneously generates name paster;
When detecting the Target Photo is that camera applications shoot picture, obtained in the Target Photo extremely by prestored information Few corresponding name of a face simultaneously generates name paster.
3. the method according to claim 1, wherein the paster type is man and wife's phase;The determining adaptation institute The paster type and the corresponding paster of the paster type of each face image at least one face image are stated, including:
The similarity of any two face image is greater than default similarity threshold in detecting at least one described face image When, determine the corresponding gender of any two face image;
When detecting the corresponding gender difference of any two face image, man and wife's phase paster is generated.
4. method according to claim 1-3, which is characterized in that it is described in current preview interface at least Before one face image carries out recognition of face, the method also includes:
Determine the face number in the preview interface;
Detect that the face number is greater than default face quantity threshold.
5. method according to claim 1-4, which is characterized in that the paster type includes following at least one Kind:Name, age, gender, network identity, nickname, man and wife's phase and face value.
6. a kind of mobile terminal, which is characterized in that including recognition unit, determination unit and display unit,
The recognition unit, for carrying out recognition of face at least one face image in current preview interface;
The determination unit, for determine be adapted at least one described face image the paster type of each face image and The corresponding paster of the paster type;
The display unit, for showing the corresponding paster of each face image in the preview interface.
7. mobile terminal according to claim 6, which is characterized in that the paster type is name, the preview interface For Target Photo;In the determining paster type of each face image and described of being adapted at least one described face image In terms of the corresponding paster of paster type, the determination unit is specifically used for:Determine the source mode of the Target Photo, it is described next Source mode includes network downloading and camera applications shooting;And for detecting that the Target Photo is network download pictures When, the corresponding name of at least one face in the Target Photo is obtained by network and generates name paster;And it is used for When detecting that the Target Photo is that camera applications shoot picture, at least one in the Target Photo is obtained by prestored information The corresponding name of face simultaneously generates name paster.
8. mobile terminal according to claim 6, which is characterized in that the paster type is man and wife's phase;In the determination It is adapted to the paster type of each face image and the corresponding paster side of the paster type at least one described face image Face, the determination unit are specifically used for:Any two face image is similar in detecting at least one described face image When degree is greater than default similarity threshold, the corresponding gender of any two face image is determined;And for detecting When stating the corresponding gender difference of any two face image, man and wife's phase paster is generated.
9. according to the described in any item mobile terminals of claim 6-8, which is characterized in that described in current preview interface Before at least one face image carries out recognition of face, the recognition unit is also used to determine the face number in the preview interface Mesh;And for detecting that the face number is greater than default face quantity threshold.
10. according to the described in any item mobile terminals of claim 6-9, which is characterized in that the paster type include with down toward Few one kind:Name, age, gender, network identity, nickname, man and wife's phase and face value.
11. a kind of mobile terminal, which is characterized in that including processor, memory, communication interface and one or more program, Wherein, one or more of programs are stored in the memory, and are configured to be executed by the processor, the journey Sequence includes the steps that requiring the instruction in any one of 1-5 method for perform claim.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage is used for electron number According to the computer program of exchange, wherein the computer program executes computer as described in any one of claim 1-5 Method.
CN201810622799.6A 2018-06-15 2018-06-15 Image processing method and device Pending CN108898649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810622799.6A CN108898649A (en) 2018-06-15 2018-06-15 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810622799.6A CN108898649A (en) 2018-06-15 2018-06-15 Image processing method and device

Publications (1)

Publication Number Publication Date
CN108898649A true CN108898649A (en) 2018-11-27

Family

ID=64344897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810622799.6A Pending CN108898649A (en) 2018-06-15 2018-06-15 Image processing method and device

Country Status (1)

Country Link
CN (1) CN108898649A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413818A (en) * 2019-07-31 2019-11-05 腾讯科技(深圳)有限公司 Paster recommended method, device, computer readable storage medium and computer equipment
CN111145082A (en) * 2019-12-23 2020-05-12 五八有限公司 Face image processing method and device, electronic equipment and storage medium
CN112004020A (en) * 2020-08-19 2020-11-27 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN112907804A (en) * 2021-01-15 2021-06-04 北京市商汤科技开发有限公司 Interaction method and device of access control machine, access control machine assembly, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938591A (en) * 2009-06-26 2011-01-05 株式会社万代南梦宫游戏 Video generation device and photo sticker manufacture method
CN106210545A (en) * 2016-08-22 2016-12-07 北京金山安全软件有限公司 Video shooting method and device and electronic equipment
CN107203978A (en) * 2017-05-24 2017-09-26 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107463891A (en) * 2017-07-26 2017-12-12 珠海市魅族科技有限公司 A kind of identity information acquisition methods, device, computer installation and computer-readable recording medium
CN107948499A (en) * 2017-10-31 2018-04-20 维沃移动通信有限公司 A kind of image capturing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938591A (en) * 2009-06-26 2011-01-05 株式会社万代南梦宫游戏 Video generation device and photo sticker manufacture method
CN106210545A (en) * 2016-08-22 2016-12-07 北京金山安全软件有限公司 Video shooting method and device and electronic equipment
CN107203978A (en) * 2017-05-24 2017-09-26 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107463891A (en) * 2017-07-26 2017-12-12 珠海市魅族科技有限公司 A kind of identity information acquisition methods, device, computer installation and computer-readable recording medium
CN107948499A (en) * 2017-10-31 2018-04-20 维沃移动通信有限公司 A kind of image capturing method and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413818A (en) * 2019-07-31 2019-11-05 腾讯科技(深圳)有限公司 Paster recommended method, device, computer readable storage medium and computer equipment
CN111145082A (en) * 2019-12-23 2020-05-12 五八有限公司 Face image processing method and device, electronic equipment and storage medium
CN112004020A (en) * 2020-08-19 2020-11-27 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN112907804A (en) * 2021-01-15 2021-06-04 北京市商汤科技开发有限公司 Interaction method and device of access control machine, access control machine assembly, electronic equipment and medium

Similar Documents

Publication Publication Date Title
US11372608B2 (en) Gallery of messages from individuals with a shared interest
US10811053B2 (en) Routing messages by message parameter
CN106920279B (en) Three-dimensional map construction method and device
US9854219B2 (en) Gallery of videos set to an audio time line
CN108898649A (en) Image processing method and device
CN109816441A (en) Tactful method for pushing, system and relevant apparatus
CN109189879B (en) Electronic book display method and device
CN108961157B (en) Picture processing method, picture processing device and terminal equipment
CN106303599B (en) Information processing method, system and server
EP3410258B1 (en) Method for pushing picture, mobile terminal and storage medium
CN109086742A (en) scene recognition method, scene recognition device and mobile terminal
CN108961183A (en) Image processing method, terminal device and computer readable storage medium
TWI781554B (en) Method of determining item name of object, device, computer equipment and storage medium
CN108156384A (en) Image processing method, device, electronic equipment and medium
CN108924430A (en) photo storage method, device, terminal and computer readable storage medium
CN114726947B (en) Message display method, device, user terminal and readable storage medium
CN109040594A (en) Photographic method and device
CN106791091B (en) Image generation method and device and mobile terminal
US20210150243A1 (en) Efficient image sharing
CN107888827A (en) Image processing method and related product
CN108537149A (en) Image processing method, device, storage medium and electronic equipment
CN111754272A (en) Advertisement recommendation method, recommended advertisement display method, device and equipment
CN110457604A (en) Recommended method and relevant device based on artificial intelligence
CN113742430B (en) Method and system for determining number of triangle structures formed by nodes in graph data
CN109084750B (en) Navigation method and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181127

RJ01 Rejection of invention patent application after publication