CN108304804A - Picture sending method, device, equipment and readable storage medium storing program for executing - Google Patents

Picture sending method, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN108304804A
CN108304804A CN201810099668.4A CN201810099668A CN108304804A CN 108304804 A CN108304804 A CN 108304804A CN 201810099668 A CN201810099668 A CN 201810099668A CN 108304804 A CN108304804 A CN 108304804A
Authority
CN
China
Prior art keywords
picture
head portrait
array
target head
target
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
CN201810099668.4A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810099668.4A priority Critical patent/CN108304804A/en
Priority to PCT/CN2018/082258 priority patent/WO2019148646A1/en
Publication of CN108304804A publication Critical patent/CN108304804A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • G06V10/235Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on user input or interaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of picture sending method, device, equipment and readable storage medium storing program for executing, the picture sending method includes:When detecting that the first picture sends instruction, the reference base picture that user chooses is obtained, wherein include target head portrait in the reference base picture;The each Target Photo for instructing and being chosen in corresponding target photograph album and including the target head portrait is sent from first picture, and each Target Photo is added in picture array;The picture array is packaged compression processing, and is sent to first picture and sends the corresponding first object contact person of instruction.The present invention solves in the prior art when sending photo to contact person, and photo chooses cumbersome technical problem.

Description

Picture sending method, device, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to field of communication technology more particularly to a kind of picture sending method, device, equipment and readable storage mediums Matter.
Background technology
Currently, people is frequently encountered such case when taking pictures:Many friends are helped to clap very using the mobile phone of oneself More photos will be picked out when then sending photo and issue other side, that is, need to choose in corresponding photo and contain one by one The photo of corresponding personage is to object contact person, this process is very troublesome, the low technical problem of user experience.
Invention content
The main purpose of the present invention is to provide a kind of picture sending method, device, equipment and readable storage medium storing program for executing, it is intended to It solves in the prior art when sending photo to contact person, photo chooses cumbersome technical problem.
To achieve the above object, the present invention provides a kind of picture sending method, and the picture sending method includes:
When detecting that the first picture sends instruction, the reference base picture that user chooses is obtained, wherein in the reference base picture Including target head portrait;
The each target for instructing and being chosen in corresponding target photograph album and including the target head portrait is sent from first picture Picture, and each Target Photo is added in picture array;
The picture array is packaged compression processing, and is sent to first picture and sends the corresponding first object of instruction Contact person.
Optionally, the picture array includes First Kind Graph piece array, the second class picture array,
Described sent from first picture instructs selection in corresponding target photograph album each comprising the target head portrait Target Photo, and each Target Photo is added to step in picture array and includes:
The number for obtaining target head portrait in the reference base picture, when the target head portrait is multiple, from reference base picture Single target head portrait is extracted respectively;
Selection only comprising the single target head portrait and includes multiple single target heads respectively from the target photograph album The picture of picture;
The described picture comprising the single target head portrait is added in First Kind Graph piece array, and includes by described in The picture of multiple single target head portraits is added in the second class picture array.
It is optionally, described that the described picture comprising the single target head portrait is added in First Kind Graph piece array, And the picture comprising multiple single target head portraits is added to step in the second class picture array and includes:
The described picture comprising the single target head portrait is added in First Kind Graph piece array, and based on different Single target head portrait carries out classification processing to First Kind Graph piece array, to obtain each single sub-pictures array;
The picture comprising multiple single target head portraits is added in the second class picture array, and is based on wrapping in picture Number pair the second class picture array of the single target head portrait contained carries out classification processing, to obtain each more people's sub-pictures arrays, The specific target head portrait for being included based on picture in each more people's sub-pictures arrays carries out each more people's sub-pictures arrays again Classification will include the picture of same target head portrait in each more people's sub-pictures arrays as one kind processing.
Optionally, described that the picture array is packaged compression processing, and be sent to first picture and send instruction pair Include after the first object contact person step answered:
Preserve the picture array after the packing compression processing;
If detect that second picture sends instruction in the first preset time, suspend after showing the packing compression processing Picture array, instruct corresponding second target to contact to realize to be sent to the second picture to send by the picture array People.
Optionally, include after the picture array step after the preservation packing compression processing:
If second picture transmission instruction is not detected in the second preset time period, the picture array is deleted Processing, to avoid repeating to preserve picture.
Optionally, the number for obtaining target head portrait in the reference base picture, when the target head portrait is multiple, from Extracting single target head portrait step in reference base picture respectively includes:
Personage's head portrait overall profile region in the reference base picture is obtained, using the overall profile region as waiting for Detection zone;
The area to be tested is detected by head portrait edge detection, to obtain target head portrait in the reference base picture Number;
When the target head portrait is multiple, single target head portrait is extracted respectively from reference base picture.
Optionally, described that the picture array is packaged compression processing, and be sent to first picture and send instruction pair Include after the first object contact person step answered:
If second picture transmission instruction is not detected in the second preset time period, the picture array is deleted Processing, to avoid repeating to preserve picture.
Optionally, described that the picture array is packaged compression processing, and be sent to first picture and send instruction pair Include after the first object contact person step answered:
Obtain the number of the target head portrait;
When the target head portrait is multiple, prompting interface is generated, to remind whether send the picture array to first The other contact persons for including the target head portrait outside object contact person.
In addition, to achieve the above object, the present invention also provides a kind of picture sending device, the picture sending device packet It includes:
First acquisition module, for when detecting that the first picture sends instruction, obtaining the reference base picture that user chooses, In, include target head portrait in the reference base picture;
Add module is chosen for sending to instruct in corresponding target photograph album from first picture comprising the target head Each Target Photo of picture, and each Target Photo is added in picture array;
First sending module for the picture array to be packaged compression processing, and is sent to first picture and sends Instruct corresponding first object contact person.
In addition, to achieve the above object, the present invention also provides a kind of picture sending device, the picture sending device packet It includes:Memory, processor, communication bus and the picture being stored on the memory send program,
The communication bus is for realizing the communication connection between processor and memory;
The processor sends program for executing the picture, to realize following steps:
When detecting that the first picture sends instruction, the reference base picture that user chooses is obtained, wherein in the reference base picture Including target head portrait;
The each target for instructing and being chosen in corresponding target photograph album and including the target head portrait is sent from first picture Picture, and each Target Photo is added in picture array;
The picture array is packaged compression processing, and is sent to first picture and sends the corresponding first object of instruction Contact person.
Optionally, the picture array includes First Kind Graph piece array, the second class picture array,
Described sent from first picture instructs selection in corresponding target photograph album each comprising the target head portrait Target Photo, and each Target Photo is added to step in picture array and includes:
The number for obtaining target head portrait in the reference base picture, when the target head portrait is multiple, from reference base picture Single target head portrait is extracted respectively;
Selection only comprising the single target head portrait and includes multiple single target heads respectively from the target photograph album The picture of picture;
The described picture comprising the single target head portrait is added in First Kind Graph piece array, and includes by described in The picture of multiple single target head portraits is added in the second class picture array.
It is optionally, described that the described picture comprising the single target head portrait is added in First Kind Graph piece array, And the picture comprising multiple single target head portraits is added to step in the second class picture array and includes:
The described picture comprising the single target head portrait is added in First Kind Graph piece array, and based on different Single target head portrait carries out classification processing to First Kind Graph piece array, to obtain each single sub-pictures array;
The picture comprising multiple single target head portraits is added in the second class picture array, and is based on wrapping in picture Number pair the second class picture array of the single target head portrait contained carries out classification processing, to obtain each more people's sub-pictures arrays, The specific target head portrait for being included based on picture in each more people's sub-pictures arrays carries out each more people's sub-pictures arrays again Classification will include the picture of same target head portrait in each more people's sub-pictures arrays as one kind processing.
Optionally, described that the picture array is packaged compression processing, and be sent to first picture and send instruction pair Include after the first object contact person step answered:
Preserve the picture array after the packing compression processing;
If detect that second picture sends instruction in the first preset time, suspend after showing the packing compression processing Picture array, instruct corresponding second target to contact to realize to be sent to the second picture to send by the picture array People.
Optionally, include after the picture array step after the preservation packing compression processing:
If second picture transmission instruction is not detected in the second preset time period, the picture array is deleted Processing, to avoid repeating to preserve picture.
Optionally, the number for obtaining target head portrait in the reference base picture, when the target head portrait is multiple, from Extracting single target head portrait step in reference base picture respectively includes:
Personage's head portrait overall profile region in the reference base picture is obtained, using the overall profile region as waiting for Detection zone;
The area to be tested is detected by head portrait edge detection, to obtain target head portrait in the reference base picture Number;
When the target head portrait is multiple, single target head portrait is extracted respectively from reference base picture.
Optionally, if second picture transmission instruction is not detected in the second preset time period, by the picture array Delete processing is carried out, to avoid repeating to preserve picture.
Optionally, described that the picture array is packaged compression processing, and be sent to first picture and send instruction pair Include after the first object contact person step answered:
Obtain the number of the target head portrait;
When the target head portrait is multiple, prompting interface is generated, to remind whether send the picture array to first The other contact persons for including the target head portrait outside object contact person.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing storage There are one either more than one program the one or more programs to be held by one or more than one processor Row for:
When detecting that the first picture sends instruction, the reference base picture that user chooses is obtained, wherein in the reference base picture Including target head portrait;
The each target for instructing and being chosen in corresponding target photograph album and including the target head portrait is sent from first picture Picture, and each Target Photo is added in picture array;
The picture array is packaged compression processing, and is sent to first picture and sends the corresponding first object of instruction Contact person.
The present invention is by when detecting that the first picture sends instruction, obtaining the reference base picture that user chooses, wherein described It include target head portrait in reference base picture;It sends to instruct in corresponding target photograph album from first picture and choose comprising the target Each Target Photo of head portrait, and each Target Photo is added in picture array;The picture array is packaged and is pressed Contracting is handled, and is sent to first picture and is sent the corresponding first object contact person of instruction.Due to, being based on using in this application The reference base picture that family is chosen identifies target head portrait, and traversal matches the target head portrait in target photograph album, to realize that batch is chosen Target Photo, rather than the artificial each Target Photo of selection manually, thus solved in the application in the prior art to connection When being that human hair send photo, photo chooses cumbersome technical problem.
Description of the drawings
Fig. 1 is the flow diagram of picture sending method first embodiment of the present invention;
Fig. 2 is the flow diagram of picture sending method second embodiment of the present invention;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to;
Fig. 4 is the schematic diagram of a scenario in picture sending method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of picture sending method, in the first embodiment of picture sending method of the present invention, with reference to figure 1, the picture sending method includes:
When detecting that the first picture sends instruction, the reference base picture that user chooses is obtained, wherein in the reference base picture Including target head portrait;It is sent from first picture and instructs selection in corresponding target photograph album each comprising the target head portrait Target Photo, and each Target Photo is added in picture array;The picture array is packaged compression processing, concurrently It gives first picture and sends the corresponding first object contact person of instruction.
Specifically, picture sending method includes:
Step S10 obtains the reference base picture that user chooses, wherein the base when detecting that the first picture sends instruction It include target head portrait in quasi- picture;
It should be noted that in the present embodiment, picture sending method, which is applied to wechat, QQ, microblogging etc., has picture hair Send in the application of function so that above application can Batch sending picture to object contact person, wherein the present embodiment picture can be Photo is specifically described by taking wechat as an example below.
When user needs to send the picture to first object contact person in wechat, by clicking or touching in wechat Picture send button is to trigger the transmission instruction of the first picture, after the transmission instruction of the first picture determines, into determining target photograph album Selection interface, i.e., touched by user and determine target photograph album, to realize that choosing picture in batches from target photograph album is sent to first Object contact person generates reference base picture choice box after the determination of target photograph album, to prompt user to add reference base picture, wherein should Reference base picture refers to the photo for including the target head portrait that user chooses, in the reference base picture choice box can pre-display this The wechat head portrait of one object contact person, specifically, terminal can determine whether the wechat head portrait is personage's head portrait, when the wechat head portrait When being personage's head portrait, the wechat head portrait of pre-display first object contact person in the reference base picture choice box is selected in reference base picture It selects in frame after the wechat head portrait of pre-display first object contact person, the wechat head portrait of first object contact person is determined by user Whether on the basis of picture, when the wechat head portrait of first object contact person is not reference base picture, user may be selected delete benchmark The wechat head portrait of first object contact person in picture choice box, when the wechat head portrait of first object contact person is reference base picture When, user may be selected to determine picture on the basis of the wechat head portrait of first object contact person.It should be noted that the reference base picture can It is multiple, but the reference base picture, no more than 3, the number of specific reference base picture is determined according to practical application.
It should be noted that including target head portrait in reference base picture, which can be multiple, to specific embodiment It illustrates, which takes a group photo for 2 people, then target head portrait is 2, and appointing in artificial 2 people of first object contact Meaning one, first object contact person also can not be in the row of 2 people.
Step S20 sends to instruct in corresponding target photograph album from first picture and choose comprising the target head portrait Each Target Photo, and each Target Photo is added in picture array;
The each target for instructing and being chosen in corresponding target photograph album and including the target head portrait is sent from first picture Picture chooses the picture for only including the single head portrait, by this when the target head portrait is single head portrait from target photograph album Each single Target Photo is added in picture array by picture as single Target Photo, when the target head portrait is by more When a single head portrait is constituted, as long as the picture in target photograph album includes wherein any one single head portrait, then in the target photograph album Picture be compound target picture each compound target picture is added to after having chosen each compound target picture In picture array.
Specifically, the picture array includes First Kind Graph piece array, the second class picture array,
As shown in Fig. 2, described sent from first picture instructs selection in corresponding target photograph album to include the target Each Target Photo of head portrait, and each Target Photo is added to step in picture array and includes:
Step S21 obtains the number of target head portrait in the reference base picture, when the target head portrait is multiple, from base Single target head portrait is extracted in quasi- picture respectively;
The number for obtaining target head portrait in the reference base picture is based on human head picture picture when the target head portrait is multiple The difference of element value and surrounding pixels value where human head picture, extracts single target head portrait respectively from reference base picture, specifically, obtains The profile of more human head pictures in target head portrait judges that the profile of more human head pictures whether there is lap, when there are laps When, pixel lift-off processing is carried out to the lap of more human head pictures, which can be:Obtain the underlapped part of head portrait Pixel value, based on the pixel value of underlapped part, to overlapping partial pixel value into row pixel value lift-off processing, to respectively obtain Single head portrait.
Step S22, selection only comprising the single target head portrait and includes multiple lists respectively from the target photograph album The picture of people's target head portrait;
Selection only comprising the single target head portrait and includes multiple single target heads respectively from the target photograph album The picture of picture is to carry out classification processing to each Target Photo in target photograph album, specifically, according in each Target Photo Target head portrait number is classified.
The described picture comprising the single target head portrait is added in First Kind Graph piece array by step S23, and will The picture comprising multiple single target head portraits is added in the second class picture array.
The described picture comprising the single target head portrait is added in First Kind Graph piece array, and includes by described in The picture of multiple single target head portraits is added in the second class picture array.It should be noted that First Kind Graph piece array and the Two class picture arrays further include different sub-pictures array.
The picture array is packaged compression processing by step S30, and it is corresponding to be sent to the first picture transmission instruction First object contact person.
After the completion of all matching the target image with each picture in target photograph album, the picture of picture array adds It completes, after the addition was complete, triggering picture array is packaged compression process, and specifically, terminal will be in the picture of picture array When addition is completed, compression processing is packaged to picture array, needs that program segment is arranged in built-in processor in advance, the program segment Indicate that the processing logic when picture addition of picture array is completed, the processing logic are used to detect that the picture of picture array adds When adding into, triggering processor adds completion event with the picture for responding the picture array, is compressed with being packaged to picture array Processing.Wherein, picture array is packaged compression processing and belongs to the prior art, does not illustrate herein, by the picture number Group is packaged compression processing, is sent to the first picture and sends the corresponding first object contact person of instruction.
It should be noted that described be packaged compression processing by the picture array, and it is sent to first picture and sends It instructs after corresponding first object contact person step and further includes:
Step A1 obtains the number of the target head portrait;
The number of the target head portrait is obtained, the number of the target head portrait can be multiple.
Step A2 generates prompting interface when the target head portrait is multiple, to remind whether send the picture array The other contact persons for including the target head portrait outside to first object contact person.
When the target head portrait is multiple, prompting interface is generated, to remind whether send the picture array to first The other contact persons for including the target head portrait outside object contact person, as target head portrait be 2 when, that is, picture in include a and b When, first object contacts artificial a, then after picture is sent to a, generates prompting interface, show that b contact persons' is micro- on the interface Believe on-link mode (OLM), b contact persons are given so that whether prompting sends the picture array.
The present invention is by when detecting that the first picture sends instruction, obtaining the reference base picture that user chooses, wherein described It include target head portrait in reference base picture;It sends to instruct in corresponding target photograph album from first picture and choose comprising the target Each Target Photo of head portrait, and each Target Photo is added in picture array;The picture array is packaged and is pressed Contracting is handled, and is sent to first picture and is sent the corresponding first object contact person of instruction.Due to, being based on using in this application The reference base picture that family is chosen identifies target head portrait, and traversal matches the target head portrait in target photograph album, to realize that batch is chosen Target Photo, rather than the artificial each Target Photo of selection manually, thus solved in the application in the prior art to connection When being that human hair send photo, photo chooses cumbersome technical problem.
Further, the present invention provides the second embodiment of picture sending method, in a second embodiment, it is described will be described Only the picture comprising the single target head portrait is added in First Kind Graph piece array, and will described include multiple single target heads The picture of picture is added to step in the second class picture array:
The described picture comprising the single target head portrait is added in First Kind Graph piece array by step B1, and base Classification processing is carried out to First Kind Graph piece array in different single target head portraits, to obtain each single sub-pictures array;
The described picture comprising the single target head portrait is added in First Kind Graph piece array, specifically, this A kind of picture array is subdivided into same number of single sub-pictures according to the number for the single target head portrait for including in target head portrait Array, as being made of 2 single target head portraits in target head portrait, then First Kind Graph piece array is subdivided into 2 single sub-pictures arrays, As being made of 3 single target head portraits in target head portrait, then First Kind Graph piece array is subdivided into 3 single sub-pictures arrays, and will Picture comprising different single target head portraits in target photograph album is respectively allocated in corresponding single sub-pictures array.
The picture comprising multiple single target head portraits is added in the second class picture array, and is based on by step B2 Number pair the second class picture array for the single target head portrait for including in picture carries out classification processing, to obtain each more people's subgraphs Piece array, the specific target head portrait for being included based on picture in each more people's sub-pictures arrays is to each more people's sub-pictures arrays Classify again, the picture comprising same target head portrait will be handled as one kind in each more people's sub-pictures arrays.
The picture comprising multiple single target head portraits is added in the second class picture array, specifically, based on figure Number pair the second class picture array for the single target head portrait for including in piece carries out classification processing, to obtain each more people's sub-pictures Array, as photograph album picture in be made of 3 single target head portraits, then the picture is distributed to the sub-pictures array of people more than first, As photograph album picture in be made of 2 single target head portraits, then the picture is distributed to the sub-pictures array of people more than second.It is obtaining After more people's sub-pictures arrays, the specific target head portrait for being included based on picture in each more people's sub-pictures arrays is to each more people Sub-pictures array is classified again, will include the picture of same target head portrait in each more people's sub-pictures arrays as at a kind of Reason.It is illustrated to specific embodiment, such as sub-pictures array of people more than second includes the group photo picture of multiple a and b, multiple a With the group photo picture of c, the group photo picture etc. of multiple b and c, then using the group photo picture of a and b in the sub-pictures array of people more than second as The group photo picture of one kind processing, a and c are handled as a kind of, and the group photo picture of b and c are handled as a kind of.
In the present embodiment, by the way that the described picture comprising the single target head portrait is added to First Kind Graph the piece number In group, and classification processing is carried out to First Kind Graph piece array based on different single target head portraits, to obtain each single subgraph Piece array;The picture comprising multiple single target head portraits is added in the second class picture array, and is based on wrapping in picture Number pair the second class picture array of the single target head portrait contained carries out classification processing, to obtain each more people's sub-pictures arrays. It is whole manually without user that the present embodiment is subdivided into different types of picture in Batch sending picture, to each picture Reason, the user experience is improved.
Further, the present invention provides the 3rd embodiment of picture sending method, in the third embodiment, it is described will be described Picture array is packaged compression processing, and is sent to after the corresponding first object contact person step of the first picture transmission instruction Including:
Step S40 preserves the picture array being packaged after compression processing;
In the present embodiment, after picture array is packaged compression processing, to the picture array after the packing compression processing Preservation processing is carried out, specifically, the picture array after the packing compression processing is stored in the target photograph album, and by this dozen Picture array after packet compression processing is arranged in the most forefront of the target photograph album.
Step S50 suspends if detect that second picture sends instruction in the first preset time and shows the packing pressure Contracting treated picture array instructs corresponding second mesh to realize to be sent to the second picture to send by the picture array Mark contact person.
If detect that second picture sends instruction in the first preset time, suspend after showing the packing compression processing Picture array, instruct corresponding second target to contact to realize to be sent to the second picture to send by the picture array People, wherein first preset time can be 30S or 1 minute, specifically, if after being sent completely picture array to a, if The transmission instruction for sending picture to b is detected in 1 minute, then generates suspension windows on the transmission interface for sending message to b, such as Shown in Fig. 4, the picture array of a is sent in the suspension windows described in display, whether will be sent to the picture of a for selection by the user Array is sent to b.
Further, described that the picture array is packaged compression processing, and be sent to first picture and send instruction Include after corresponding first object contact person step:
Step S60, if second picture transmission instruction is not detected in the second preset time period, by the picture array Delete processing is carried out, to avoid repeating to preserve picture.
If second picture transmission instruction is not detected in the second preset time period, the picture array is deleted Processing, to avoid repeating to preserve picture, wherein the second preset time period is more than the first preset time period, it is thus possible to avoid weight Picture is preserved again, can be released effectively the memory of terminal.
In the present embodiment, if send instruction by the way that second picture is not detected in the second preset time period, by institute It states picture array and carries out delete processing, to avoid repeating to preserve picture.The present embodiment picture sending method, can effectively avoid end The case where end memory excessive increase, the user experience is improved.
Further, the present invention provides the fourth embodiment of picture sending method, in the fourth embodiment, the acquisition institute The number for stating target head portrait in reference base picture extracts single mesh respectively when the target head portrait is multiple from reference base picture Header includes as step:
Step C1 obtains personage's head portrait overall profile region in the reference base picture, by the overall profile location Domain is as area to be tested;
Due to the difference of surrounding pixels value where human head picture pixel value and human head picture, it is thus possible to identify the entirety of human head picture Profile obtains personage's head portrait overall profile region in the reference base picture in the present embodiment, will be where the overall profile Region is as area to be tested.
Step C2 is detected the area to be tested by head portrait edge detection, to obtain in the reference base picture The number of target head portrait;
The edge of the area to be tested is detected by edge detection, to obtain the number of personage's head portrait, Specifically, after edge detection, the number of target head portrait in the reference base picture is obtained by the head portrait identification model to prestore, such as The target head portrait includes 2 single head portraits or 3 single head portraits.
Step C3 extracts single target head portrait respectively when the target head portrait is multiple from reference base picture.
When the target head portrait is multiple, single target head portrait is extracted respectively from reference base picture, when the reference base picture In each target head portrait when being that multiple and multiple target head portrait is underlapped, extract single target head portrait respectively from reference base picture It is that cutting process is carried out to each target head portrait region in the reference base picture.
In the present embodiment, by obtaining personage's head portrait overall profile region in the reference base picture, by the entirety Profile region is as area to be tested;The area to be tested is detected by head portrait edge detection, to obtain State the number of target head portrait in reference base picture;When the target head portrait is multiple, single mesh is extracted respectively from reference base picture Header picture.It lays the foundation due to accurately extracting single target head portrait from reference base picture, thus for picture classification.
The present invention also provides a kind of picture sending device, the picture sending device includes:
First acquisition module, for when detecting that the first picture sends instruction, obtaining the reference base picture that user chooses, In, include target head portrait in the reference base picture;
Add module is chosen for sending to instruct in corresponding target photograph album from first picture comprising the target head Each Target Photo of picture, and each Target Photo is added in picture array;
First sending module for the picture array to be packaged compression processing, and is sent to first picture and sends Instruct corresponding first object contact person.
Optionally, the picture array includes First Kind Graph piece array, the second class picture array,
The add module includes:
Acquisition submodule, the number for obtaining target head portrait in the reference base picture, when the target head portrait is multiple When, extract single target head portrait respectively from reference base picture;
Submodule is chosen, for being chosen respectively from the target photograph album only comprising the single target head portrait and packet Picture containing multiple single target head portraits;
Submodule is added, for the described picture comprising the single target head portrait to be added to First Kind Graph piece array In, and the picture comprising multiple single target head portraits is added in the second class picture array.
Optionally, the addition submodule includes:
First adding device, for the described picture comprising the single target head portrait to be added to First Kind Graph the piece number In group, and classification processing is carried out to First Kind Graph piece array based on different single target head portraits, to obtain each single subgraph Piece array;
Second adding device, for the picture comprising multiple single target head portraits to be added to the second class picture array In, and number pair the second class picture array based on the single target head portrait for including in picture carries out classification processing, it is each to obtain A more people's sub-pictures arrays, the specific target head portrait for being included based on picture in each more people's sub-pictures arrays is to each more people Sub-pictures array is classified again, will include the picture of same target head portrait in each more people's sub-pictures arrays as at a kind of Reason.
Optionally, the picture sending device further includes:
Preserving module, for preserve it is described packing compression processing after picture array;
Second sending module, if when for detecting that second picture sends instruction in the first preset time, suspend display Picture array after the packing compression processing sends instruction pair to realize the picture array being sent to the second picture The second object contact person answered.
Optionally, the picture sending device further includes:
Removing module, if send instruction for second picture to be not detected in the second preset time period, by the figure Piece array carries out delete processing, to avoid repeating to preserve picture.
Optionally, the acquisition submodule includes:
First acquisition unit, for obtaining personage's head portrait overall profile region in the reference base picture, by the entirety Profile region is as area to be tested;
Second acquisition unit is detected the area to be tested for passing through head portrait edge detection, described in acquisition The number of target head portrait in reference base picture;
Extraction unit, for when the target head portrait is multiple, extracting single target head portrait respectively from reference base picture.
Optionally, the picture sending device further includes:
Removing module, if send instruction for second picture to be not detected in the second preset time period, by the figure Piece array carries out delete processing, to avoid repeating to preserve picture.
Optionally, the picture sending device further includes:
Second acquisition module, the number for obtaining the target head portrait;
Generation module, for when the target head portrait is multiple, generating prompting interface, to remind whether send the figure Piece array to first object contact person outside the other contact persons for including the target head portrait.
With reference to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Picture of embodiment of the present invention sending device can be PC, can also be smart mobile phone, tablet computer, e-book reading Device, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio Level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression Standard audio level 4) terminal devices such as player, pocket computer.
As shown in figure 3, the picture sending device may include:Processor 1001, such as CPU, memory 1005, communication are total Line 1002.Wherein, communication bus 1002 is for realizing the connection communication between processor 1001 and memory 1005.Memory 1005 can be high-speed RAM memory, can also be stable memory (non-volatile memory), such as disk is deposited Reservoir.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Optionally, which can also include user interface, network interface, camera, RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface can also include wireline interface, the nothing of standard Line interface.Network interface may include optionally standard wireline interface and wireless interface (such as WI-FI interface).
Picture is sent it will be understood by those skilled in the art that picture sending device structure shown in Fig. 3 is not constituted The restriction of equipment may include either combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage media Believe that module and picture send program.Operating system is the program of management and control picture sending device hardware and software resource, Picture is supported to send the operation of program and other softwares and/or program.Network communication module is for realizing in memory 1005 Communication between each component in portion, and with communicated between other hardware and softwares in picture sending device.
In picture sending device shown in Fig. 3, processor 1001 is used to execute the picture hair stored in memory 1005 Send program, the one or more programs that can also be executed in realization by one or more than one processor The step of stating any one of them picture sending method.
Picture sending device specific implementation mode of the present invention and above-mentioned each embodiment of picture sending method are essentially identical, herein It repeats no more.
The present invention provides a kind of readable storage medium storing program for executing, there are one the readable storage medium storing program for executing storages or more than one journey Sequence, the one or more programs can also be executed for realizing above-mentioned by one or more than one processor The step of picture sending method described in one.
Readable storage medium storing program for executing specific implementation mode of the present invention and above-mentioned each embodiment of picture sending method are essentially identical, herein It repeats no more.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field includes similarly in the patent process range of the present invention.

Claims (10)

1. a kind of picture sending method, which is characterized in that the picture sending method includes:
When detecting that the first picture sends instruction, the reference base picture that user chooses is obtained, wherein include in the reference base picture Target head portrait;
The each Target Photo for instructing and being chosen in corresponding target photograph album and including the target head portrait is sent from first picture, And each Target Photo is added in picture array;
The picture array is packaged compression processing, and is sent to first picture and sends the corresponding first object contact of instruction People.
2. picture sending method as described in claim 1, which is characterized in that wherein, the picture array includes First Kind Graph Piece array, the second class picture array,
It is described that each target for instructing and being chosen in corresponding target photograph album and including the target head portrait is sent from first picture Picture, and each Target Photo is added to step in picture array and includes:
The number for obtaining target head portrait in the reference base picture, when the target head portrait is multiple, from reference base picture respectively Extract single target head portrait;
Selection only comprising the single target head portrait and includes multiple single target head portraits respectively from the target photograph album Picture;
The described picture comprising the single target head portrait is added in First Kind Graph piece array, and will be described comprising multiple The picture of single target head portrait is added in the second class picture array.
3. picture sending method as claimed in claim 2, which is characterized in that described will described include only the single target head The picture of picture is added in First Kind Graph piece array, and the picture comprising multiple single target head portraits is added to the second class Step includes in picture array:
The described picture comprising the single target head portrait is added in First Kind Graph piece array, and based on different one Target head portrait carries out classification processing to First Kind Graph piece array, to obtain each single sub-pictures array;
The picture comprising multiple single target head portraits is added in the second class picture array, and based on including in picture Number pair the second class picture array of single target head portrait carries out classification processing, to obtain each more people's sub-pictures arrays, is based on The specific target head portrait that picture is included in each more people's sub-pictures arrays classifies again to each more people's sub-pictures arrays, The picture comprising same target head portrait in each more people's sub-pictures arrays to be handled as one kind.
4. picture sending method as claimed in claim 2, which is characterized in that described that the picture array is packaged at compression Reason, and be sent to after first picture sends the corresponding first object contact person step of instruction and include:
If detect that second picture sends instruction in the first preset time, the display that the suspends figure being packaged after compression processing Piece array instructs corresponding second object contact person to realize to be sent to the second picture to send by the picture array.
5. picture sending method as claimed in claim 2, which is characterized in that described to obtain target head portrait in the reference base picture Number, when the target head portrait be it is multiple when, extracting single target head portrait step respectively from reference base picture includes:
Personage's head portrait overall profile region in the reference base picture is obtained, using the overall profile region as to be detected Region;
The area to be tested is detected by head portrait edge detection, to obtain of target head portrait in the reference base picture Number;
When the target head portrait is multiple, single target head portrait is extracted respectively from reference base picture.
6. picture sending method as claimed in claim 2, which is characterized in that described that the picture array is packaged at compression Reason, and be sent to after first picture sends the corresponding first object contact person step of instruction and include:
If second picture transmission instruction is not detected in the second preset time period, the picture array is carried out at deletion Reason, to avoid repeating to preserve picture.
7. picture sending method as described in claim 1, which is characterized in that described that the picture array is packaged at compression Reason, and be sent to after first picture sends the corresponding first object contact person step of instruction and include:
Obtain the number of the target head portrait;
When the target head portrait is multiple, prompting interface is generated, to remind whether send the picture array to first object The other contact persons for including the target head portrait outside contact person.
8. a kind of picture sending device, which is characterized in that the picture sending device includes:
First acquisition module, for when detecting that the first picture sends instruction, obtaining the reference base picture that user chooses, wherein It include target head portrait in the reference base picture;
Add module is chosen for sending to instruct in corresponding target photograph album from first picture comprising the target head portrait Each Target Photo, and each Target Photo is added in picture array;
First sending module for the picture array to be packaged compression processing, and is sent to first picture and sends instruction Corresponding first object contact person.
9. a kind of picture sending device, which is characterized in that the picture sending device includes:Memory, processor, communication bus And the picture being stored on the memory sends program,
The communication bus is for realizing the communication connection between processor and memory;
The processor sends program for executing the picture, to realize the picture as described in any one of claim 1 to 7 The step of sending method.
10. a kind of readable storage medium storing program for executing, which is characterized in that it is stored with picture on the readable storage medium storing program for executing and sends program, it is described Picture sends the step of realizing the picture sending method as described in any one of claim 1-7 when program is executed by processor.
CN201810099668.4A 2018-01-31 2018-01-31 Picture sending method, device, equipment and readable storage medium storing program for executing Pending CN108304804A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810099668.4A CN108304804A (en) 2018-01-31 2018-01-31 Picture sending method, device, equipment and readable storage medium storing program for executing
PCT/CN2018/082258 WO2019148646A1 (en) 2018-01-31 2018-04-09 Picture sending method, apparatus and device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810099668.4A CN108304804A (en) 2018-01-31 2018-01-31 Picture sending method, device, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN108304804A true CN108304804A (en) 2018-07-20

Family

ID=62850726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810099668.4A Pending CN108304804A (en) 2018-01-31 2018-01-31 Picture sending method, device, equipment and readable storage medium storing program for executing

Country Status (2)

Country Link
CN (1) CN108304804A (en)
WO (1) WO2019148646A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885701A (en) * 2019-01-08 2019-06-14 广东乐心医疗电子股份有限公司 Multimedia data processing method, system, terminal and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113795015B (en) * 2021-08-17 2023-10-20 咪咕文化科技有限公司 Data transmission method, device, equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102361493A (en) * 2011-10-28 2012-02-22 上海华勤通讯技术有限公司 Mobile terminal and method for setting address list head portrait
CN106034179A (en) * 2015-03-18 2016-10-19 中兴通讯股份有限公司 Photo sharing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9767305B2 (en) * 2015-03-13 2017-09-19 Facebook, Inc. Systems and methods for sharing media content with recognized social connections
CN106294649A (en) * 2016-08-03 2017-01-04 努比亚技术有限公司 Mobile terminal and picture sharing method
CN106469221A (en) * 2016-09-22 2017-03-01 努比亚技术有限公司 Picture searching method, device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102361493A (en) * 2011-10-28 2012-02-22 上海华勤通讯技术有限公司 Mobile terminal and method for setting address list head portrait
CN106034179A (en) * 2015-03-18 2016-10-19 中兴通讯股份有限公司 Photo sharing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885701A (en) * 2019-01-08 2019-06-14 广东乐心医疗电子股份有限公司 Multimedia data processing method, system, terminal and computer readable storage medium
CN109885701B (en) * 2019-01-08 2020-01-10 中山乐心电子有限公司 Multimedia data processing method, system, terminal and computer readable storage medium

Also Published As

Publication number Publication date
WO2019148646A1 (en) 2019-08-08

Similar Documents

Publication Publication Date Title
CN106161628B (en) Shooting file uploading method and device
US10659684B2 (en) Apparatus and method for providing dynamic panorama function
US20160364888A1 (en) Image data processing method and electronic device supporting the same
CN106131627B (en) A kind of method for processing video frequency, apparatus and system
US10181203B2 (en) Method for processing image data and apparatus for the same
CN110049244A (en) Image pickup method, device, storage medium and electronic equipment
KR20170019823A (en) Method for processing image and electronic device supporting the same
EP2983074B1 (en) Method and apparatus for displaying a screen in electronic devices
CN109683771A (en) Three-dimensional touch menu configuration method, mobile terminal and computer readable storage medium
CN109788138A (en) Screen control method, device, terminal and storage medium
KR20170096736A (en) Image processing Method and electronic device supporting the same
US10528845B2 (en) Method, device, and storage medium for generating GIF file
CN108073346A (en) A kind of record screen method, terminal and computer readable storage medium
KR102268540B1 (en) Method for managing data and an electronic device thereof
CN109521925A (en) Icon arrangement method, mobile terminal and computer readable storage medium
WO2015043403A1 (en) Method, apparatus, and terminal for obtaining video data
CN108170787A (en) A kind of image file delet method, mobile terminal and computer readable storage medium
CN106879263A (en) A kind of image pickup method and mobile device
CN110163051B (en) Text extraction method, device and storage medium
CN106919377B (en) Method and device for determining whether display interface of application program is white screen
CN109992183A (en) Preview picture and the method for selection, terminal and storage medium
CN108965710A (en) Method, photo taking, device and computer readable storage medium
CN104579908B (en) The method and device that image is shown
CN108304804A (en) Picture sending method, device, equipment and readable storage medium storing program for executing
CN109683766A (en) Interactive interface control method, mobile terminal and computer readable storage medium

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

Application publication date: 20180720