WO2016078550A1 - 一种分发照片的方法及终端 - Google Patents

一种分发照片的方法及终端 Download PDF

Info

Publication number
WO2016078550A1
WO2016078550A1 PCT/CN2015/094584 CN2015094584W WO2016078550A1 WO 2016078550 A1 WO2016078550 A1 WO 2016078550A1 CN 2015094584 W CN2015094584 W CN 2015094584W WO 2016078550 A1 WO2016078550 A1 WO 2016078550A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
photo
information
user portrait
sharing group
Prior art date
Application number
PCT/CN2015/094584
Other languages
English (en)
French (fr)
Inventor
郜文美
李小娟
井皓
王雅辉
范姝男
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP15860561.8A priority Critical patent/EP3211544A4/en
Publication of WO2016078550A1 publication Critical patent/WO2016078550A1/zh
Priority to US15/597,385 priority patent/US10831823B2/en

Links

Images

Classifications

    • 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
    • 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/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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/51Indexing; Data structures therefor; Storage structures
    • 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
    • G06F16/5854Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using shape and object relationship
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a method and a terminal for distributing photos.
  • the embodiment of the invention provides a method and a terminal for distributing photos, which realizes intelligent distribution of photos, which is simple, fast and efficient.
  • a first aspect of the embodiments of the present invention provides a method for distributing a photo, including:
  • the first terminal in the photo sharing group acquires user portrait information and address information of the second terminal in the sharing group
  • the first terminal acquires first index information of a to-be-shared photo established by the sharing terminal, where the sharing terminal includes at least one of the first terminal and a third terminal in the sharing group;
  • the first terminal divides the first index information into N second index information, and allocates the N second index information to N processing terminals, where the processing terminal includes the sharing group The fourth terminal, or the fourth terminal and the first terminal, the N ⁇ 2;
  • the first terminal sends the user portrait information and the address information of the second terminal to the processing terminal, so that the processing terminal compares the second index information with the user portrait information of the second terminal. Performing face recognition on the corresponding photo to be shared in the second index information, determining a photo matching the user portrait information of the second terminal, and transmitting the photo to the second terminal.
  • the first terminal in the photo sharing group acquires the second terminal in the sharing group.
  • the method further includes:
  • the first terminal creates a photo sharing group
  • the first terminal returns a join response message to the second terminal, where the response message includes address information of the first terminal.
  • the first terminal when the first terminal creates a photo sharing group, the first The terminal establishes a Wi-Fi hotspot, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the sharing terminal includes the first terminal;
  • the obtaining, by the first terminal, the first index information of the to-be-shared photo established by the sharing terminal includes:
  • the first terminal Determining, by the first terminal, a photo directory to be shared by the first terminal, and establishing third index information according to the photo directory, where the third index information includes photo information and address information of the first terminal, where the photo information includes The number of photo items to be shared, each photo ID, and each photo path;
  • the first terminal acquires the third index information.
  • the sharing terminal includes a third terminal
  • the obtaining, by the first terminal, the first index information of the to-be-shared photo established by the sharing terminal includes:
  • the first terminal acquires fourth index information that is established by the third terminal in the sharing group, where the fourth index information includes photo information and address information of the third terminal, where the photo information includes The number of shared photo items, each photo ID, and each photo path are described.
  • the first terminal The first index information is divided into N pieces of second index information, and the N pieces of second index information are respectively allocated to the N processing terminals:
  • the first terminal divides the first index information into N shares according to the number of photo items, and obtains N second index information, and allocates the N second index information to the N processing terminals.
  • the first terminal The first index information is divided into N pieces of second index information, and the N pieces of second index information are respectively allocated to the N processing terminals:
  • the first terminal according to the terminal processing capability information of the processing terminal, divides the first index information into N shares according to the number of photo items, and obtains second index information, and respectively allocates the N second index information Give the N processing terminals.
  • the processing terminal includes the first terminal and the Fourth terminal
  • the processing terminal performs face recognition on the corresponding photo to be shared in the second index information according to the second index information and the user portrait information of the second terminal, and determines user portrait information of the second terminal.
  • Matching photos and sending to the second terminal include:
  • the first terminal performs face recognition on the corresponding photo in the second index information according to the second index information and the user portrait information of the second terminal, and determines that the user portrait information of the second terminal is matched.
  • the first terminal sends a photo that matches the user portrait information of the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal is configured according to the second index information and the second
  • the first terminal acquires a photo of the task photo from the sharing terminal according to the second index information
  • the first terminal performs face recognition on each task photo copy and the second terminal user portrait information, and determines a photo that matches the user portrait information of the second terminal.
  • the method further includes:
  • the first terminal sends a photo that does not match the user portrait information of the second terminal to the second terminal.
  • a second aspect of the embodiments of the present invention provides a method for distributing a photo, including:
  • the fourth terminal in the photo sharing group receives the first terminal sent by the first terminal in the sharing group Two index information, where the second index information is part of the first index information of the photo to be shared;
  • the fourth terminal receives user portrait information and address information of the second terminal sent by the first terminal;
  • the fourth terminal performs face recognition on the corresponding photo in the second index information according to the second index information and the user portrait information of the second terminal, and determines that the user portrait information of the second terminal is matched.
  • the fourth terminal sends a photo that matches the user portrait information of the second terminal to the second terminal according to the address information of the second terminal.
  • the fourth terminal is configured according to the second index information and the user portrait information of the second terminal Performing face recognition on the corresponding photo in the second index information, and determining a photo that matches the user portrait information of the second terminal includes:
  • the fourth terminal acquires a photo of the task photo from the sharing terminal according to the second index information
  • the fourth terminal performs image matching analysis on each task photo copy and the second terminal user portrait information to determine a photo that matches the user portrait information of the second terminal.
  • a third aspect of the embodiments of the present invention provides a method for distributing a photo, including:
  • the first terminal in the photo sharing group acquires user portrait information and address information of the second terminal in the sharing group
  • the first terminal performs image analysis on the photo to be shared by the first terminal according to the user portrait information of the second terminal, and determines a photo corresponding to the second terminal in the photo to be shared;
  • the first terminal sends the photo to be shared to the corresponding second terminal according to the address information of the second terminal.
  • the first terminal in the photo sharing group acquires the user of the second terminal in the sharing group.
  • the method further includes:
  • the first terminal creates a photo sharing group
  • the first terminal returns a join response message to the second terminal, where the response message includes address information of the first terminal.
  • the first terminal when the first terminal creates a photo sharing group, the first The terminal establishes a Wi-Fi hotspot, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the first terminal is configured according to the user of the second terminal.
  • the portrait information is subjected to image analysis on the photo to be shared by the portrait information, and the photo corresponding to the second terminal in the photo to be shared is determined to include:
  • the first terminal determines a photo directory to be shared by itself
  • the first terminal performs image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, and places photos having the same facial features in a photo subdirectory, and generates each photo subdirectory.
  • An associated face reference picture ;
  • the first terminal performs image matching analysis on the user portrait information of the second terminal and the associated face reference picture corresponding to the photo sub-directory, and determines that the photo sub-directory matching the user portrait information of the second terminal is the a photo subdirectory corresponding to the second terminal;
  • the sending, by the first terminal, the photo to be shared to the corresponding second terminal according to the address information of the second terminal includes:
  • the first terminal sends a photo in the photo subdirectory corresponding to the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal is configured according to the user of the second terminal.
  • the portrait information performs image analysis on the photos to be shared by itself, and determines the to-be-shared
  • the photos in the photo corresponding to the second terminal include:
  • the first terminal determines a photo directory to be shared by itself
  • the first terminal performs a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo in the photo directory that matches the user portrait information of the second terminal, and determines the photo.
  • a photo in the directory corresponding to the second terminal is a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo in the photo directory that matches the user portrait information of the second terminal, and determines the photo.
  • a photo in the directory corresponding to the second terminal is a face search in the photo directory according to the user portrait information of the second terminal.
  • the first terminal is configured according to the user of the second terminal.
  • the portrait information is subjected to image analysis on the photo to be shared by the portrait information, and the photo corresponding to the second terminal in the photo to be shared is determined to include:
  • the first terminal creates a photo directory corresponding to the second terminal
  • the first terminal acquires a photo group taken by itself
  • the first terminal performs image matching analysis on the photos in the photo group according to the user portrait information of the second terminal, and sequentially determines whether the photo in the photo group matches the user portrait information corresponding to the second terminal, and if And placing a photo of the photo group matching the user portrait information corresponding to the second terminal in a photo directory corresponding to the second terminal;
  • the sending, by the first terminal, the photo to be shared to the corresponding second terminal according to the address information of the second terminal includes:
  • the first terminal sends a photo in the photo directory corresponding to the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal is configured according to the user of the second terminal.
  • the portrait information is subjected to image analysis on the photo to be shared by the portrait information, and the photo corresponding to the second terminal in the photo to be shared is determined to include:
  • the first terminal acquires a photo taken by itself
  • the first terminal performs image matching analysis on the photographed photo according to user portrait information of the second terminal, and determines whether the photographed photo and the user portrait information of the second terminal are And if yes, determining that the photograph taken is a photo corresponding to the second terminal;
  • the sending, by the first terminal, the photo to be shared to the corresponding second terminal according to the address information of the second terminal includes:
  • the first terminal sends the photographed photo to the corresponding second terminal according to the address information of the second terminal.
  • the method further includes:
  • the first terminal sends user portrait information and address information of the second terminal to the fourth terminal;
  • the first terminal receives a photo sent by the fourth terminal.
  • the method further includes:
  • the first terminal sends a photo of the photo to be shared that is not corresponding to the second terminal to the second terminal.
  • a fourth aspect of the embodiments of the present invention provides a method for distributing a photo, including:
  • the first terminal in the photo sharing group acquires address information of the second terminal in the sharing group
  • the first terminal determines a photo directory to be shared by itself
  • the first terminal performs image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, and places photos having the same facial features in a photo subdirectory, and generates each photo subdirectory.
  • An associated face reference picture ;
  • the first terminal sends a photo in the photo subdirectory corresponding to the second terminal to the second terminal.
  • the first terminal in the photo sharing group acquires an address of the second terminal in the sharing group.
  • the method further includes:
  • the first terminal creates a photo sharing group
  • the first terminal returns a join response message to the second terminal, where the response message includes address information of the first terminal.
  • the A terminal when the first terminal creates a photo sharing group, the A terminal establishes a Wi-Fi hotspot, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the method further includes:
  • the first terminal selects an associated reference face image corresponding to itself, and returns the associated reference face image selection information to the third terminal;
  • the first terminal receives a photo sent by the third terminal.
  • the method further includes: the first The terminal sends the photo of the photo to be shared that is not corresponding to the second terminal to the second terminal.
  • a fifth aspect of the embodiments of the present invention provides a method for distributing a photo, including:
  • the first terminal establishes a connection with the second terminal
  • the first terminal captures a photo of the second terminal user, and obtains user portrait information of the second terminal;
  • the first terminal determines a photo directory to be shared by itself
  • the first terminal performs a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo in the photo directory that matches the user portrait information of the second terminal, and determines the location. a photo corresponding to the second terminal in the photo directory;
  • the first terminal sends a photo corresponding to the second terminal to the second terminal.
  • the establishing, by the first terminal, the connection between the first terminal and the second terminal includes: establishing, by the NFC, the Wi- Fi connection or Bluetooth connection.
  • the establishing, by the first terminal, the connection with the second terminal includes: establishing, by the first terminal, a Wi-Fi connection by using sound waves Or Bluetooth connection.
  • the method further includes: the first terminal A photo of the shared photo that has no correspondence with the second terminal is sent to the second terminal.
  • a sixth aspect of the embodiments of the present invention provides a terminal, including:
  • a first acquiring unit configured to acquire user portrait information and address information of the second terminal in the same photo sharing group as the terminal
  • a second acquiring unit configured to acquire first index information of a to-be-shared photo established by the sharing terminal, where the sharing terminal includes at least one of the terminal and a third terminal in the sharing group;
  • An allocating unit configured to divide the first index information acquired by the second acquiring unit into N a second index information, and the N second index information is respectively allocated to the N processing terminals, where the processing terminal includes a fourth terminal in the sharing group, or the fourth terminal and the terminal, The N ⁇ 2;
  • a sending unit configured to send user portrait information and address information of the second terminal acquired by the first acquiring unit to the processing terminal, so that the processing terminal is configured according to the second index information and the second terminal
  • the user portrait information performs face recognition on the corresponding photo to be shared in the second index information, determines a photo matching the user portrait information of the second terminal, and sends the photo to the second terminal.
  • the terminal further includes:
  • a creating unit configured to create a photo sharing group before the first obtaining unit acquires user portrait information and address information of the second terminal in the sharing group;
  • a receiving unit configured to receive a request sent by the second terminal to join the photo sharing group
  • the sending unit is further configured to return a join response message to the second terminal, where the response message includes address information of the terminal.
  • the terminal further includes:
  • a establishing unit configured to establish a Wi-Fi hotspot when the creating unit creates a photo sharing group, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the second acquiring unit is specifically configured to be used in the sharing.
  • the terminal includes the terminal, determining a photo directory to be shared by the terminal, and establishing third index information according to the photo directory, and acquiring the third index information, where the third index information includes photo information and the first The address information of the terminal, the photo information includes the number of photo items to be shared, each photo ID, and each photo path.
  • the second acquiring unit is specifically configured to acquire the sharing a fourth index information that is established by the third terminal in the group, where the fourth index information includes photo information and address information of the third terminal, where the photo information includes the number of photos to be shared, and each photo ID, each photo path.
  • the allocation unit is specifically used to And dividing the first index information into N shares according to the number of photo items, and obtaining N second index information, and respectively assigning the N second index information to the N processing terminals.
  • the allocation unit is specifically used to Receiving the terminal processing capability information sent by the processing terminal respectively, and dividing the first index information into N shares according to the number of photo items according to the terminal processing capability information of the N processing terminals, and obtaining the second index information, and The N pieces of second index information are respectively allocated to the N processing terminals.
  • the terminal further includes:
  • a determining unit configured to: when the processing terminal includes the terminal and the fourth terminal, the corresponding photo in the second index information according to the second index information and user portrait information of the second terminal Performing face recognition to determine a photo that matches the user portrait information of the second terminal;
  • the sending unit is further configured to send, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the determining unit is specifically configured to use the second index information according to the second index information.
  • the share terminal obtains a copy of the task photo, and copies each task photo with the second
  • the user portrait information of the terminal performs face recognition, and determines a photo that matches the user portrait information of the second terminal.
  • the sending unit is further used to A photo that does not match the user portrait information of the second terminal is sent to the second terminal.
  • a seventh aspect of the embodiments of the present invention provides a terminal, including:
  • a receiving unit configured to receive second index information sent by the first terminal in the same photo sharing group as the terminal, where the second index information is part of a first index of a photo to be shared;
  • the receiving unit is further configured to receive user portrait information and address information of the second terminal sent by the first terminal;
  • a determining unit configured to perform face recognition on the corresponding photo in the second index information according to the second index information received by the receiving unit and the user portrait information of the second terminal, and determine the second terminal a photo that matches the user's portrait information
  • a sending unit configured to send, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the determining unit is specifically configured to obtain, according to the second index information, a copy of the task photo from the sharing terminal, where Each task photo copy performs face recognition with the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal.
  • An eighth aspect of the embodiments of the present invention provides a terminal, including:
  • An obtaining unit configured to acquire user portrait information and address information of a second terminal in the same photo sharing group as the terminal;
  • a determining unit configured to perform image analysis on the photo to be shared by the user portrait information of the second terminal, and determine a photo corresponding to the second terminal in the photo to be shared;
  • a sending unit configured to send the photo to be shared to the corresponding second terminal according to the address information of the second terminal.
  • the terminal further includes:
  • a creating unit configured to create the photo sharing group before the terminal in the photo sharing group acquires user portrait information and address information of the second terminal in the sharing group;
  • a receiving unit configured to receive a request sent by the second terminal to join the photo sharing group
  • the sending unit is further configured to return a join response message to the second terminal, where the response message includes address information of the first terminal.
  • the terminal further includes:
  • a establishing unit configured to establish a Wi-Fi hotspot when the terminal creates a photo sharing group, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the determining unit is specifically configured to determine a photo to be shared by the determining unit. a directory, performing image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, placing photos having the same facial features in a photo subdirectory, and generating a related person for each photo subdirectory a face reference picture, performing image matching analysis on the user portrait information of the second terminal and the associated face reference picture corresponding to the photo sub-directory, and determining that the photo sub-directory matching the user portrait information of the second terminal is the a photo subdirectory corresponding to the second terminal;
  • the sending unit is configured to send, according to the address information of the second terminal, a photo in a photo subdirectory corresponding to the second terminal to the second terminal.
  • the determining unit is specifically configured to determine a photo directory to be shared, performing a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searching for photos matching the user portrait information of the second terminal in the photo directory to determine a photo corresponding to the second terminal in the photo directory.
  • the determining unit is specifically configured to create a second terminal a photo directory, obtaining a photo group taken by itself, performing image matching analysis on the photos in the photo group according to the user portrait information of the second terminal, and sequentially determining the photo in the photo group and the user portrait corresponding to the second terminal Whether the information matches, if yes, placing a photo matching the user portrait information corresponding to the second terminal in the photo group in a photo directory corresponding to the second terminal;
  • the sending unit is configured to send, according to the address information of the second terminal, a photo in a photo directory corresponding to the second terminal to the second terminal.
  • the determining unit is specifically configured to obtain a photo taken by itself. Performing image matching analysis on the photographed photo according to user portrait information of the second terminal, determining whether the photographed photo matches the user portrait information of the second terminal, and if so, determining that the photograph taken is a photo corresponding to the second terminal;
  • the sending unit is specifically configured to send the photographed photo to the corresponding second terminal according to the address information of the second terminal when the photographed photo matches the second end user portrait information.
  • the receiving unit is further used to Receiving, by the fourth terminal, a request for acquiring user portrait information and address information of the second terminal;
  • the sending unit is further configured to send user portrait information and address information of the second terminal to the fourth terminal;
  • the receiving unit is further configured to receive a photo sent by the fourth terminal.
  • the sending unit is further configured to: There is no photo corresponding to the second terminal in the photo, and is sent to the second terminal.
  • a ninth aspect of the embodiments of the present invention provides a terminal, including:
  • An obtaining unit configured to acquire address information of a second terminal in the same photo sharing group as the terminal
  • a first determining unit configured to determine a photo directory to be shared by itself
  • a generating unit configured to perform image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, place photos having the same facial features in a photo subdirectory, and generate each photo subdirectory An associated face reference picture;
  • a sending unit configured to send the associated face reference picture to the second terminal, so that the second terminal selects an associated face reference picture corresponding to the second terminal, and returns the associated face reference picture selection information to the first terminal.
  • a receiving unit configured to receive associated face reference picture selection information returned by the second terminal
  • a second determining unit configured to determine a photo subdirectory corresponding to the second terminal according to the associated face reference picture selection information
  • the sending unit is further configured to send a photo in the photo subdirectory corresponding to the second terminal to the second terminal.
  • the terminal further includes:
  • the receiving unit is further configured to receive a request sent by the second terminal to join the photo sharing group
  • the sending unit is further configured to return a join response message to the second terminal, where the response message includes address information of the first terminal.
  • the terminal further includes:
  • a establishing unit configured to establish a Wi-Fi hotspot when the creating unit creates a photo sharing group, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the receiving unit is further configured to receive the third terminal The associated reference face image sent;
  • the sending unit is further configured to select an associated reference face picture corresponding to itself, and return the associated reference face picture selection information to the third terminal;
  • the receiving unit is further configured to receive a photo sent by the third terminal.
  • the sending unit is further configured to: There is no photo corresponding to the second terminal in the photo, and is sent to the second terminal.
  • a tenth aspect of the embodiments of the present invention provides a terminal, including:
  • An acquiring unit configured to capture a photo of the second terminal user, to obtain user portrait information of the second terminal
  • a first determining unit configured to determine a photo directory to be shared by itself
  • a second determining unit configured to perform a face search in the photo directory according to the user portrait information of the second terminal, and sequentially search for a photo in the photo directory that matches the user portrait information of the second terminal, Determining a photo corresponding to the second terminal in the photo directory;
  • a sending unit configured to send a photo corresponding to the second terminal to the second terminal.
  • the establishing unit is specifically configured to establish a Wi-Fi connection or a Bluetooth connection by using an NFC touch.
  • the establishing unit is specifically configured to establish a Wi-Fi connection or a Bluetooth connection by using sound waves.
  • the sending unit is further configured to: A photo in the photo that has no correspondence with the second terminal is sent to the second terminal.
  • the terminal in the photo sharing group performs image analysis on the photos to be shared by the terminals, and determines the terminal corresponding to the photo to be shared, and distributes the terminal to the corresponding terminal. Share the photos in the group that need to be shared for image analysis and intelligent distribution to the corresponding terminals, so that each terminal can obtain the photos it needs, and realize the intelligent distribution of photos, which is simple, fast and efficient.
  • FIG. 1 is a schematic diagram of an embodiment of a method for distributing a photo according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • 16 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of another embodiment of a method for distributing a photo according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of an embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 20 is a schematic diagram of another embodiment of a terminal in an embodiment of the present invention.
  • FIG. 21 is a schematic diagram of another embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 22 is a schematic diagram of another embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 23 is a schematic diagram of another embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 24 is a schematic diagram of another embodiment of a terminal in an embodiment of the present invention.
  • 25 is a schematic diagram of another embodiment of a terminal in an embodiment of the present invention.
  • FIG. 26 is a schematic diagram of another embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 27 is a schematic diagram of another embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 28 is a schematic diagram of another embodiment of a terminal in an embodiment of the present invention.
  • the embodiment of the invention provides a method and a terminal for distributing photos, which realizes intelligent distribution of photos, which is simple, fast and efficient.
  • an embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the photo sharing group.
  • the first terminal in the first terminal can acquire user portrait information and address information of the second terminal in the sharing group.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal directly sends the user portrait information and the address information of the second terminal to the first terminal, or may be the first terminal.
  • the second terminal sends a request for acquiring the user portrait information and the address information of the second terminal, and then the second terminal sends the user portrait information and the address information to the first terminal, which is not specifically limited herein.
  • the first terminal acquires first index information of the to-be-shared photo established by the sharing terminal.
  • the sharing terminal includes at least one of the first terminal and the third terminal in the sharing group, and the third terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the sharing terminal that needs photo sharing in the photo sharing group establishes the first index information according to the photo to be shared, and the first terminal can obtain the first index information established by the sharing terminal in the photo sharing group, in the first index information.
  • the address information of the terminal, the photo information may include the number of photo items, each photo ID, each photo path, and the like, which is not limited herein.
  • the first terminal divides the first index information into N second index information, and allocates the N second index information to each of the N processing terminals.
  • the first terminal After acquiring the first index information, the first terminal divides the first index information, obtains N second index information, and then allocates the second index information to the N processing terminals in the photo sharing group,
  • the processing terminal includes a fourth terminal in the sharing group, or the fourth terminal and the first terminal, where N ⁇ 2.
  • the first terminal sends user portrait information and address information of the second terminal to the processing terminal.
  • the first terminal sends the user portrait information and the address information of the second terminal to the processing terminal, and the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the terminal in the photo sharing group performs image analysis on the photos that need to be shared by each terminal, determines the terminal corresponding to the photo to be shared, and distributes the photo to the corresponding terminal, because the terminal is added to the photo sharing group.
  • the corresponding photo in the second index information can be face-recognized and distributed to the corresponding terminal, so that each terminal can obtain the photo that it needs, and realize the intelligent distribution of the photo, which is simple, fast and efficient.
  • the first terminal in the photo sharing group acquires the user portrait information and the address information of the second terminal in the sharing group
  • the first terminal may create a photo sharing group.
  • Other terminals that need to share photos join this photo sharing group. The following is explained in a specific embodiment. Please refer to FIG. 2, and another method for distributing photos in the embodiment of the present invention.
  • One embodiment includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Information, etc., is not limited here.
  • the first terminal receives a request for joining a photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information, and the first terminal requests the added photo sharing group to be received.
  • a judgment is made to determine whether the second terminal is a terminal that shares a photo, and if yes, a response message for agreeing to join is returned, and if not, a rejection response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the foregoing response message including the address information of the first terminal to the plurality of terminals.
  • the second terminal can access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 201-203 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described.
  • the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar to 202,203, and will not be described here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the photo sharing group.
  • the first terminal in the photo sharing group can obtain the user portrait information and the address information of the second terminal in the sharing group, and the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group.
  • the method may be that after the second terminal joins the photo sharing group, the user portrait information and the address information of the second terminal are directly sent to the first terminal, and after the second terminal joins the photo sharing group, the first terminal sends the second terminal to the second terminal.
  • the request for acquiring the user portrait information and the address information of the second terminal is sent, and then the second terminal sends the user portrait information and the address information to the first terminal, which is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and address information of the second terminal in the photo sharing group acquired by the first terminal may be saved in the temporary In the buffer, if the first terminal does not create a temporary buffer when creating a photo sharing group, a temporary buffer may be created at this time, and the user portrait information of the second terminal in the photo sharing group acquired by the first terminal is obtained. And the address information can be saved in the temporary buffer. In the actual application, it is also feasible to not create a temporary buffer, which is not specifically limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the first terminal acquires first index information of the to-be-shared photo established by the sharing terminal.
  • the sharing terminal includes at least one of the first terminal and the third terminal in the sharing group, and the sharing terminal that needs photo sharing in the photo sharing group establishes a first index according to the photo to be shared.
  • the first terminal may obtain the first index information established by the sharing terminal in the photo sharing group.
  • the third terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal divides the first index information into N second index information, and allocates the N second index information to each of the N processing terminals.
  • the processing terminal After the first terminal obtains the first index information, the first index information is segmented to obtain N second index information, and then the second index information is allocated to N in the photo sharing group. Processing the terminal, the processing terminal includes a fourth terminal in the sharing group, or the fourth terminal and the first terminal, where N ⁇ 2.
  • the second index information may include photo information and address information of the sharing terminal, and the photo information includes a photo item number, each photo ID, and each photo path.
  • the fourth terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal sends user portrait information and address information of the second terminal to the processing terminal.
  • the first terminal sends the user portrait information and the address information of the second terminal to the processing terminal, so that the processing terminal performs the corresponding photo in the second index information according to the allocated second index information and the user portrait information of the second terminal.
  • Face recognition determining a photo matching the user portrait information of the second terminal and transmitting the photo to the second terminal, and when the second terminal has only one terminal, determining a photo matching the user portrait information of the second terminal and transmitting the photo to the second a terminal, when there are multiple terminals in the second terminal, determine a photo that matches the user portrait information of each terminal in the second terminal and send the photo to the corresponding terminal, for example, when the second terminal includes the terminal A, the terminal B, and the terminal C.
  • the processing terminal respectively determines photos matching the user portrait information of the terminal A, the terminal B, and the terminal C, transmits a photo matching the user portrait information of the terminal A to the terminal A, and transmits a photo matching the user portrait information of the terminal B.
  • a photo matching the user portrait information of the terminal C is transmitted to the terminal C.
  • the processing terminal may also include the first terminal, such as the first terminal and the fourth terminal, and the processing terminal according to the second index information and the
  • the user portrait information of the second terminal performs face recognition on the corresponding photo to be shared in the second index information, and determining a photo matching the user portrait information of the second terminal and transmitting the photo to the second terminal includes:
  • the first terminal performs face recognition on the corresponding photo in the second index information according to the second index information and the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal.
  • the first terminal is based on The address information of the second terminal is sent to the second terminal by a photo matching the user portrait information of the second terminal.
  • the first terminal may not participate in the processing of the index information, that is, the processing terminal does not include the first terminal, which is not limited herein.
  • the first terminal may directly send the user portrait information and the address information of the second terminal to the processing terminal, or the first terminal may receive the user portrait information of the second terminal sent by the processing terminal. After the request of the address information, the user portrait information and the address information of the second terminal are sent to the processing terminal, which is not specifically limited herein.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention
  • the second terminal, the third terminal, and the fourth terminal may also be one or more 'slave terminals' in the present invention.
  • the terminal in the photo sharing group performs image analysis on the photo that needs to be shared by each terminal, and determines the terminal corresponding to the photo to be shared, and distributes the terminal to the corresponding terminal.
  • the corresponding photo in the second index information is used for face recognition, and is intelligently distributed to the corresponding terminal, so that each terminal can obtain the photo that it needs, and realizes intelligent distribution of the photo, which is simple, fast and efficient;
  • the first terminal can also create a photo sharing group to make the implementation more diverse.
  • the first terminal may also share a photo, that is, the sharing terminal includes the first terminal, and the following is a detailed description of the embodiment in which the sharing terminal includes the first terminal.
  • FIG. 3 Another embodiment of a method of distributing a photo in an embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel, the first terminal creates a photo sharing group, and the photo sharing group may also be provided with a name, a group avatar, and the like.
  • the photo sharing group may also be displayed on the network according to the location information of the first terminal, for other terminals to search on the network or search according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining a photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information.
  • the first terminal determines the received request to join the photo sharing group, determines whether the second terminal is a terminal that shares the photo, and if yes, returns a response message for agreeing to join, and if not, returns a refusal to join the response message, where Not limited. If the second terminal is a plurality of terminals, the first terminal separately sends the foregoing response message including the address information of the first terminal to the plurality of terminals.
  • the second terminal can access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 301-303 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described.
  • the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar to 302, 303, and will not be described here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the photo sharing group.
  • the first terminal in the photo sharing group can obtain the user portrait information and the address information of the second terminal in the sharing group, and the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group.
  • the method may be that after the second terminal joins the photo sharing group, the user portrait information and the address information of the second terminal are directly sent to the first terminal, and after the second terminal joins the photo sharing group, the first terminal sends the second terminal to the second terminal.
  • the request for acquiring the user portrait information and the address information of the second terminal is sent, and then the second terminal sends the user portrait information and the address information to the first terminal, which is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set a user avatar including the face image, and after the second terminal is set, directly acquire the avatar User avatar of the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and address information of the second terminal in the photo sharing group acquired by the first terminal may be saved in the temporary In the buffer, if the first terminal does not create a temporary buffer when creating a photo sharing group, a temporary buffer may be created at this time, and the user portrait information of the second terminal in the photo sharing group acquired by the first terminal is obtained. And the address information can be saved in the temporary buffer. In the actual application, it is also feasible to not create a temporary buffer, which is not specifically limited herein.
  • the first terminal determines a photo directory to be shared, and establishes third index information according to the photo directory.
  • the first terminal has a photo to be shared. Therefore, the first terminal side determines a photo directory to be shared, and establishes third index information according to the photo directory, where the third index information includes photo information. And the address information of the first terminal, the photo information includes a number of photo items, each photo ID, each photo path, and the like.
  • the first terminal acquires the third index information.
  • the first terminal may obtain the first index information established by itself.
  • the sharing terminal may be one or more terminals in the photo sharing group, and may also include the first terminal.
  • the sharing terminal includes the first terminal as an example.
  • the first index information established by the third terminal in the sharing group includes: the first terminal acquiring the third index information.
  • the first terminal acquiring the first index information of the to-be-shared photo established by the sharing terminal may further include: The first terminal acquires the fourth index information that is established by the third terminal in the sharing group, which is not limited herein.
  • the third terminal is a terminal other than the first terminal, and the third terminal may be one or more.
  • the fourth index information may also include the photo information and The address information of the third terminal, the photo information includes a number of photo items, each photo ID, and each photo path.
  • the first terminal divides the first index information into N second index information, and allocates the N second index information to each of the N processing terminals.
  • the processing terminal includes a fourth terminal in the sharing group, or the fourth terminal and the first terminal, where N ⁇ 2.
  • the second index information may include photo information and address information of the sharing terminal, and the photo information includes a photo item number, each photo ID, and each photo path.
  • the fourth terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal sends user portrait information and address information of the second terminal to the processing terminal.
  • the first terminal sends the user portrait information and the address information of the second terminal to the processing terminal, and the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the processing terminal may also include the first terminal, such as the first terminal and the fourth terminal, and the processing terminal according to the second index information and the The user portrait information of the second terminal performs face recognition on the corresponding photo to be shared in the second index information, and determining a photo matching the user portrait information of the second terminal and transmitting the photo to the second terminal includes: The first terminal is configured according to the second index information and The user portrait information of the second terminal performs face recognition on the corresponding photo in the second index information, and determines a photo that matches the user portrait information of the second terminal; the first terminal is according to the second terminal The address information is sent to the second terminal with a photo matching the user portrait information of the second terminal.
  • the first terminal may not participate in the processing of the index information, that is, the processing terminal does not include the first terminal, which is not limited herein.
  • the first terminal may directly send the user portrait information and the address information of the second terminal to the processing terminal, or the first terminal may receive the user portrait information of the second terminal sent by the processing terminal. After the request of the address information, the user portrait information and the address information of the second terminal are sent to the processing terminal, which is not specifically limited herein.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention
  • the second terminal, the third terminal, and the fourth terminal may also be one or more 'slave terminals' in the present invention.
  • the first terminal obtains the second index information after dividing the first index information, and assigns the second index information to the fourth terminal in the sharing group.
  • the manner is described below in conjunction with specific embodiments:
  • the first terminal divides the first index information into N shares according to the number of photo items, and obtains N second index information, and allocates the N second index information to N processing terminals respectively;
  • another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining a photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal.
  • the first terminal has agreed to join the photo sharing group in the second terminal.
  • the response message may also be a refusal to join the information, and the first terminal receives the received information.
  • the request to join the photo sharing group is judged, and it is judged whether the second terminal is the terminal that shares the photo. If yes, the response message of the consent to join is returned, and if not, the refusal to join the response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the foregoing response message including the address information of the first terminal to the plurality of terminals.
  • the second terminal may access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 401 to 403 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described.
  • the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar to 402, 403, and will not be described here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the photo sharing group.
  • the first terminal in the photo sharing group can obtain the user portrait information and the address information of the second terminal in the sharing group, and the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group.
  • the method may be that after the second terminal joins the photo sharing group, the user portrait information and the address information of the second terminal are directly sent to the first terminal, and after the second terminal joins the photo sharing group, the first terminal sends the second terminal to the second terminal.
  • the request for acquiring the user portrait information and the address information of the second terminal is sent, and then the second terminal sends the user portrait information and the address information to the first terminal, which is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including a user face image
  • the photo of the user face image may be an avatar set by the user in the photo sharing group by using the terminal, when When the terminal sets the avatar in the photo sharing group, the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and address information of the second terminal in the photo sharing group acquired by the first terminal may be saved in the temporary In the buffer, if the first terminal does not create a temporary buffer when creating a photo sharing group, a temporary buffer may be created at this time, and the user portrait information of the second terminal in the photo sharing group acquired by the first terminal is obtained. And the address information can be saved in the temporary buffer. In the actual application, it is also feasible to not create a temporary buffer, which is not specifically limited herein.
  • the first terminal acquires first index information of the to-be-shared photo established by the sharing terminal.
  • the sharing terminal includes at least one of the first terminal and the third terminal in the sharing group, and the sharing terminal that needs photo sharing in the photo sharing group establishes a first index according to the photo to be shared.
  • the first terminal may obtain the first index information established by the sharing terminal in the photo sharing group,
  • the third terminal may be one or more terminals in the photo sharing group, and the first index information includes one or more index information, for example, a sharing terminal, corresponding to the sharing terminal in the photo sharing group.
  • the first terminal acquiring the first index information of the to-be-shared photo established by the sharing terminal may include: determining, by the first terminal, a photo directory to be shared by the first terminal, and establishing third index information according to the photo directory,
  • the third index information includes photo information and address information of the first terminal, the photo information includes the number of photo items to be shared, each photo ID, and each photo path; the first terminal acquires the third index information,
  • the specific process in the embodiment shown in FIG. 3 may be specifically referred to.
  • the first terminal acquires the to-be-shared photo established by the sharing terminal.
  • the first index information of the slice includes: the first terminal acquires fourth index information that is established by the third terminal in the sharing group, where the fourth index information includes photo information and address information of the third terminal,
  • the photo information includes the number of photo items to be shared, each photo ID, and each photo path.
  • the first terminal divides the first index information into N shares according to the number of photo items, and obtains N second index information, and allocates the N second index information to each of the N processing terminals.
  • the second index information includes photo information and address information of the sharing terminal, and the photo information includes a photo item number, each photo ID, and each photo path.
  • N is the number of terminals of the processing terminal, and the first terminal acquires the first index information established by the sharing terminal in the photo sharing group, and divides the first index information into N shares according to the number of photo items, and obtains N pieces.
  • a second index information, and the N pieces of second index information are respectively allocated to the N processing terminals.
  • each index information may be equally divided into N shares.
  • Each of the N processing terminals is allocated to the N processing terminals, and the total number of photo items can be counted for the plurality of index information at a time.
  • the first index information is equally divided into N shares to obtain N second index information, and N second index information is obtained. They are respectively assigned to N processing terminals, which are not specifically limited herein.
  • processing terminal may be one or more terminals in the photo sharing group, and may also include the first terminal, which is not specifically limited herein.
  • the first terminal sends user portrait information and address information of the second terminal to the processing terminal.
  • the first terminal sends the user portrait information and the address information of the second terminal to the processing terminal, and the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the processing terminal may also include the first terminal, such as the first terminal and the fourth terminal, and the processing terminal according to the second index information and the
  • the user portrait information of the second terminal performs face recognition on the corresponding photo to be shared in the second index information, and determining a photo matching the user portrait information of the second terminal and transmitting the photo to the second terminal includes:
  • the first terminal performs face recognition on the corresponding photo in the second index information according to the second index information and the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal.
  • the first terminal sends a photo matching the user portrait information of the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal may not participate in the processing of the index information, that is, the processing terminal does not include the first terminal, which is not limited herein.
  • the first terminal may directly send the user portrait information and the address information of the second terminal to the processing terminal, or the first terminal may receive the user portrait information of the second terminal sent by the processing terminal. After the request of the address information, the user portrait information and the address information of the second terminal are sent to the processing terminal, which is not specifically limited herein.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention
  • the second terminal, the third terminal, and the fourth terminal may also be one or more 'slave terminals' in the present invention.
  • the first terminal acquires the terminal processing capability information sent by the N processing terminals respectively, and divides the first index information into N shares according to the number of photo items according to the terminal processing capability information of the N processing terminals. a second index information, and the N pieces of second index information are respectively allocated to the N processing terminals;
  • another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining the photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal will The second terminal returns a join response message, where the response message includes the address information of the first terminal, and the first terminal has agreed that the second terminal joins the photo sharing group. In actual applications, in order to prevent the unrelated terminal from joining the photo.
  • the sharing group may also be a refusal to join the information.
  • the first terminal determines the received request to join the photo sharing group, determines whether the second terminal is a terminal that shares the photo, and if yes, returns a response to join the photo. The message, if no, returns a refusal to join the response message, which is not limited here. If the second terminal is a plurality of terminals, the first terminal separately sends the foregoing response message including the address information of the first terminal to the plurality of terminals.
  • the second terminal can access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 501 to 503 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described.
  • the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar to 502, 503, and will not be described here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the photo sharing group.
  • the first terminal in the photo sharing group can obtain the user portrait information and the address information of the second terminal in the sharing group, and the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group.
  • the method may be that after the second terminal joins the photo sharing group, the user portrait information and the address information of the second terminal are directly sent to the first terminal, and after the second terminal joins the photo sharing group, the first terminal sends the second terminal to the second terminal.
  • the request for acquiring the user portrait information and the address information of the second terminal is sent, and then the second terminal sends the user portrait information and the address information to the first terminal, which is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including a user face image
  • the photo of the face image may be an avatar set by the user in the photo sharing group by the terminal.
  • the first terminal may prompt the second terminal to set the user including the face image.
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and address information of the second terminal in the photo sharing group acquired by the first terminal may be saved in the temporary In the buffer, if the first terminal does not create a temporary buffer when creating a photo sharing group, a temporary buffer may be created at this time, and the user portrait information of the second terminal in the photo sharing group acquired by the first terminal is obtained. And the address information can be saved in the temporary buffer. In the actual application, it is also feasible to not create a temporary buffer, which is not specifically limited herein.
  • the first terminal acquires first index information of the to-be-shared photo established by the sharing terminal.
  • the sharing terminal includes at least one of the first terminal and the third terminal in the sharing group, and the sharing terminal that needs photo sharing in the photo sharing group establishes a first index according to the photo to be shared.
  • the first terminal may obtain the first index information established by the sharing terminal in the photo sharing group,
  • the third terminal may be one or more terminals in the photo sharing group, and the first index information includes one or more index information, for example, a sharing terminal, corresponding to the sharing terminal in the photo sharing group.
  • the first terminal acquiring the first index information of the to-be-shared photo established by the sharing terminal may include: determining, by the first terminal, a photo directory to be shared by the first terminal, and establishing third index information according to the photo directory,
  • the third index information includes photo information and address information of the first terminal, the photo information includes the number of photo items to be shared, each photo ID, and each photo path; the first terminal acquires the third index information,
  • the specific process in the embodiment shown in FIG. 3 may be specifically referred to.
  • the first terminal acquiring the first index information of the to-be-shared photo established by the sharing terminal includes: acquiring, by the first terminal, fourth index information that is established by the third terminal in the sharing group, where The fourth index information includes photo information and address information of the third terminal, and the photo information includes the number of photo items to be shared, each photo ID, and each photo path.
  • the first terminal separately receives terminal processing capability information sent by the processing terminal.
  • the first terminal receives the terminal processing capability information sent by each processing terminal, and the processing terminal sends the terminal processing capability information, which may be sent by each processing terminal, or may be determined by the first terminal to perform face recognition.
  • the processing terminal sends a request for acquiring the processing capability information of the processing terminal, and after receiving the request, the processing terminal sends the terminal processing capability information to the first terminal.
  • the processing terminal processing capability information may be one or more of processing various information of the terminal, such as a memory size, a CPU computing capability, a remaining power of the terminal, a storage space, and the like. It is one or more terminals in the photo sharing group, and may also include the first terminal. As long as the conditions permit, as many processing terminals as possible can improve the processing efficiency, which is not specifically limited herein.
  • the first terminal according to the terminal processing capability information of the processing terminal, divides the first index information into N shares according to the number of photo items, and obtains second index information, and respectively allocates the N second index information. Giving the N processing terminals;
  • the second index information includes photo information and address information of the sharing terminal, and the photo information includes a photo item number, each photo ID, and each photo path.
  • the N is the number of the terminals of the processing terminal, and the first terminal acquires the first index information established by the sharing terminal in the photo sharing group, and the N items are according to the number of photo items in the photo information in the first index information.
  • the terminal processing capability information of the processing terminal divides the first index information into N shares to obtain second index information.
  • the N processing may be respectively performed for each index information. After the terminal processing capability information of the terminal is divided into N shares, it is respectively allocated to each processing terminal, for example, according to the terminal A, the terminal B, and the terminal C.
  • End processing capability information determining that the number of photo items that terminal A can process is 25, the number of photo items that terminal B can process is 20, and the number of photo items that terminal C can process is 30, that is, one photo in the first index information can be
  • the index information with a total number of items of 75 is divided into three copies of the number of photo items of 25, 20, and 30.
  • the index information can be first divided into 25, 20, and 30. After the face recognition is completed, the remaining index information is allocated to the terminal that can continue to be allocated.
  • the allocation of the terminal processing capability information may be balanced as much as possible.
  • the total number of photo items may be counted for multiple index information at one time, and the first index information is once divided into N pieces according to the terminal processing capability information of the N processing terminals to obtain a second. Index information, and the second index information is allocated to each processing terminal.
  • the first index information includes third index information and fourth index information, and the number of photo items in the first index information is 20, and the second index information is included.
  • the number of photo items is 25, and the index information can be uniformly divided according to the total number of photo items 45, which is not specifically limited herein.
  • the first terminal sends user portrait information and address information of the second terminal to the processing terminal.
  • the first terminal sends the user portrait information and the address information of the second terminal to the processing terminal, and the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the processing terminal may cause the processing terminal to use the second index information and the user portrait information of the second terminal in the second index information.
  • the processing terminal may also include the first terminal, such as the first terminal and the fourth terminal, and the processing terminal according to the second index information and the User portrait information of the second terminal is in the second index information Determining a photo to be shared to perform face recognition, determining a photo that matches the user portrait information of the second terminal, and transmitting the photo to the second terminal, including: the first terminal according to the second index information and the second terminal The user portrait information performs face recognition on the corresponding photo in the second index information, and determines a photo that matches the user portrait information of the second terminal; the first terminal according to the address information of the second terminal The photo matching the user portrait information of the second terminal is sent to the second terminal.
  • the first terminal may not participate in the processing of the index information, that is, the processing terminal does not include the first terminal, which is not limited herein.
  • the first terminal may directly send the user portrait information and the address information of the second terminal to each processing terminal, or the first terminal may receive the user that is sent by each processing terminal and acquires the second terminal. After the request of the portrait information and the address information, the user portrait information and the address information of the second terminal are sent to the processing terminals, which are not specifically limited herein.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention
  • the second terminal, the third terminal, and the fourth terminal may also be one or more 'slave terminals' in the present invention.
  • the first terminal divides the first index information to obtain second index information, and allocates the second index information to the fourth terminal in the sharing group.
  • Multiple implementations make the implementation more diverse.
  • the processing terminal may also include a first terminal, which is described in detail below in conjunction with a specific embodiment.
  • FIG. 6 another embodiment of a method for distributing a photo in an embodiment of the present invention is shown.
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any one of the people who go out to play or travel, and the first terminal creates
  • a photo sharing group can be set up, and the photo sharing group can also be set with a name, a group avatar, and the like.
  • the photo sharing group can also be displayed on the network according to the location information of the first terminal, and the other terminal is on the network. Search or search by the photo sharing group near the search, which is not limited here.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining the photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group, and in actual application,
  • the response message may also be a refusal to join the information
  • the first terminal judges the received request to join the photo sharing group, and determines whether the second terminal is a terminal that shares the photo, and if Then, the response message that agrees to join is returned, and if not, the refusal to join the response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the foregoing response message including the address information of the first terminal to the plurality of terminals.
  • the second terminal may access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 601-603 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described, wherein the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar to 602, 603, and will not be described here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the photo sharing group.
  • the first terminal in the photo sharing group can obtain the user portrait information and the address information of the second terminal in the sharing group, and the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group.
  • the method may be that after the second terminal joins the photo sharing group, the user portrait information and the address information of the second terminal are directly sent to the first terminal, and after the second terminal joins the photo sharing group, the first terminal sends the second terminal to the second terminal.
  • the request for acquiring the user portrait information and the address information of the second terminal is sent, and then the second terminal sends the user portrait information and the address information to the first terminal, which is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal can prompt the second terminal Setting a user avatar including a face image, and directly setting the user avatar including the face image after the second terminal is set;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and address information of the second terminal in the photo sharing group acquired by the first terminal may be saved in the temporary In the buffer, if the first terminal does not create a temporary buffer when creating a photo sharing group, a temporary buffer may be created at this time, and the user portrait information of the second terminal in the photo sharing group acquired by the first terminal is obtained. And the address information can be saved in the temporary buffer. In the actual application, it is also feasible to not create a temporary buffer, which is not specifically limited herein.
  • the first terminal acquires first index information of the to-be-shared photo established by the sharing terminal.
  • the sharing terminal includes at least one of the first terminal and the third terminal in the sharing group, and the sharing terminal that needs photo sharing in the photo sharing group establishes a first index according to the photo to be shared.
  • the first terminal may obtain the first index information established by the sharing terminal in the photo sharing group.
  • the third terminal may be one or more terminals in the photo sharing group, and the first index information includes one or more index information, for example, a sharing terminal, corresponding to the sharing terminal in the photo sharing group.
  • the first terminal acquiring the first index information of the to-be-shared photo established by the sharing terminal may include: determining, by the first terminal, a photo directory to be shared by the first terminal, and establishing third index information according to the photo directory,
  • the third index information includes photo information and address information of the first terminal, the photo information includes the number of photo items to be shared, each photo ID, and each photo path; the first terminal acquires the third index information,
  • the specific process in the embodiment shown in FIG. 3 may be specifically referred to.
  • the first terminal acquiring the first index information of the to-be-shared photo established by the sharing terminal includes: acquiring, by the first terminal, the third terminal in the sharing group
  • the fourth index information includes photo information and address information of the third terminal, and the photo information includes the number of photo items to be shared, each photo ID, and each photo path.
  • the first terminal divides the first index information into N second index information, and allocates the N second index information to each of the N processing terminals.
  • the fourth terminal includes a first terminal, and after acquiring the first index information, the first terminal performs segmentation on the first index information to obtain N second index information, and then the second index information.
  • the processing terminal Assigned to the N processing terminals in the photo sharing group, the processing terminal includes a fourth terminal in the sharing group, or the fourth terminal and the first terminal, where N ⁇ 2.
  • the second index information also includes photo information and address information of the sharing terminal, and the photo information includes the number of photo items, each photo ID, and each photo path.
  • the implementation manner in the embodiment shown in FIG. 4 and FIG. 5 can be referred to. The method is not described here.
  • the first terminal sends user portrait information and address information of the second terminal to the processing terminal.
  • the first terminal sends the user portrait information and the address information of the second terminal to the processing terminal, and the processing terminal may cause the processing terminal to correspond to the second index information according to the second index information and the user portrait information of the second terminal.
  • the photo performs face recognition, determines a photo matching the user portrait information of the second terminal, and sends the photo to the second terminal.
  • the photo matching the user portrait information of the second terminal is determined and sent to the photo.
  • the second terminal when there are multiple terminals in the second terminal, determines a photo that matches the user portrait information of each terminal in the second terminal and transmits the photo to the corresponding terminal.
  • the first terminal may directly send the user portrait information and the address information of the second terminal to each processing terminal, or the first terminal may receive the user that is sent by each processing terminal and acquires the second terminal. After the request for portrait information and address information, the second terminal The user portrait information and the address information are sent to the processing terminals, which are not specifically limited herein.
  • the first terminal performs face recognition on the corresponding photo in the second index information according to the allocated second index information and the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal.
  • the processing terminal includes the first terminal, so the first terminal also allocates the second index information to itself, and the first terminal performs the second according to the second index information allocated to itself and the user portrait information of the second terminal.
  • the corresponding photo in the index information is subjected to face recognition, and a photo matching the user portrait information of the second terminal is determined.
  • the first terminal performs face recognition on the corresponding photo in the second index information according to the allocated second index information and the user portrait information of the second terminal, and determines that the photo matching the user portrait information of the second terminal may be include:
  • the first terminal acquires a copy of the task photo from the sharing terminal according to the allocated second index information
  • the photo information includes the number of photo items, each photo ID, and each photo path, so the first terminal can be based on the second index information assigned to itself.
  • the sharing terminal may be one or more, such as at least one of the first terminal or the third terminal.
  • the third terminal may also be multiple, and the address information of the sharing terminal is known. According to the address information of the sharing terminal in the index information, a copy of the task photo may be obtained from the sharing terminal.
  • the first terminal performs image face recognition on each task photo copy and the second terminal user portrait information, and determines a photo that matches the user portrait information of the second terminal;
  • the first terminal When the processing terminal includes the first terminal, the first terminal also allocates the second index information to itself, and the first terminal corresponds to the second index information according to the second index information allocated to itself and the user portrait information of the second terminal.
  • the photo is subjected to face recognition, and a photo matching the user portrait information of the second terminal is determined.
  • the second terminal has only one terminal, the user of the second terminal is determined.
  • the photograph matching the portrait information when there are a plurality of terminals in the second terminal, respectively determine photos matching the user portrait information of each terminal in the second terminal.
  • the first terminal obtains a copy of the task photo from the sharing terminal, and the obtained photo copy of the task may be a thumbnail of the photo or a compressed image.
  • the network transmission speed is fast, the terminal processing capability and the storage capacity are sufficient.
  • the original image may be acquired for face recognition, which is not limited herein.
  • the first terminal sends a photo that matches the user portrait information of the second terminal to the second terminal according to the address information of the second terminal.
  • the second terminal has only one terminal, determining a photo that matches the user portrait information of the second terminal and transmitting the photo to the second terminal, and when there are multiple terminals in the second terminal, determining the user of each terminal in the second terminal The photo of the portrait information matches and is sent to the corresponding terminal.
  • the first terminal may also send a photo that does not match the user portrait information of the second terminal to the second terminal, and when the second terminal includes a terminal, the first terminal and the user portrait of the second terminal The photo that does not match the information is sent to the second terminal; when the second terminal includes multiple terminals, the first terminal sends the photo that does not match the user portrait information of all the terminals in the second terminal to the second terminal.
  • Multiple terminals are not specifically limited herein.
  • the first terminal sends, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the first terminal sends a photo matching the user portrait information of the second terminal to the second terminal, and when there are multiple terminals in the second terminal, the first terminal and the second terminal The photos matching the user portrait information of each terminal are sent to the corresponding terminal.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention
  • the second terminal, the third terminal, and the fourth terminal may also be one or more 'slave terminals' in the present invention.
  • the terminal in the photo sharing group performs face recognition on the photo that needs to be shared by each terminal, and determines the terminal corresponding to the photo to be shared, and distributes the terminal to the corresponding terminal, because the terminal that joins the photo sharing group can Automatically recognize the face that needs to be shared in the sharing group and intelligently distribute it to the corresponding terminal, so that each terminal can obtain the photo that it needs, and realize the intelligent distribution of the photo, which is simple, fast and efficient;
  • the first terminal also participates in face recognition, so that the analysis of the photo image to be shared is performed faster.
  • Another embodiment of the method for distributing photos in the embodiment of the present invention includes:
  • the fourth terminal in the photo sharing group receives the second index information sent by the first terminal in the sharing group.
  • the first terminal after acquiring the first index information established by the sharing terminal in the photo sharing group, the first terminal divides the first index information into N second index information, and The second index information is allocated to the N processing terminals of the photo sharing group, wherein the processing terminal includes a fourth terminal in the sharing group, and the second index information is the first index information of the photo to be shared. a part, that is, the second index information is one of N pieces of second index information after the first index information is divided;
  • the fourth terminal receives user portrait information and address information of the second terminal sent by the first terminal.
  • the first terminal After the first terminal sends the second index information to the fourth terminal, the first terminal sends the user portrait information and the address information of the second terminal to the fourth terminal.
  • the fourth terminal performs face recognition on the corresponding photo in the second index information according to the second index information and the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal.
  • the fourth terminal performs face recognition according to the second index information assigned to itself by the first terminal and the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal, when When the second terminal has only one terminal, the first terminal determines a photo that matches the user portrait information of the second terminal. When there are multiple terminals in the second terminal, the first terminal determines the user of each terminal in the second terminal. Portrait information matches the photo.
  • the fourth terminal sends, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the first terminal sends a photo matching the user portrait information of the second terminal to the second terminal, and when there are multiple terminals in the second terminal, the first terminal and the second terminal The photos matching the user portrait information of each terminal are sent to the corresponding terminal.
  • the fourth terminal performs face recognition according to the second index information allocated by the first terminal, and implements intelligent distribution of photos, which is simple, fast, and efficient.
  • the first terminal performs face recognition according to the second index information and the user portrait information of the second terminal, and determines that the photo matching the user portrait information of the second terminal has multiple implementations.
  • the first terminal performs face recognition according to the second index information and the user portrait information of the second terminal, and determines that the photo matching the user portrait information of the second terminal has multiple implementations.
  • FIG. 8 another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the fourth terminal in the photo sharing group receives the second index information sent by the first terminal in the sharing group.
  • the first terminal after acquiring the first index information established by the sharing terminal in the photo sharing group, the first terminal divides the first index information into N second index information, and The second index information is allocated to the N processing terminals of the photo sharing group, wherein the processing terminal includes a fourth terminal in the sharing group, and the second index information is the first index information of the photo to be shared. a part, that is, the second index information is one of N pieces of second index information after the first index information is divided;
  • the second index information includes photo information and address information of the sharing terminal, and the photo information includes a photo item number, each photo ID, and each photo path.
  • the fourth terminal receives user portrait information and address information of the second terminal sent by the first terminal.
  • the first terminal After the first terminal sends the second index information to the fourth terminal, the first terminal sends the user portrait information and the address information of the second terminal to the fourth terminal.
  • the first terminal can acquire the user portrait information and the address information of the second terminal in the sharing group, and the manner in which the first terminal sends the user portrait information and the address information of the second terminal to the fourth terminal may be that the first terminal
  • the user portrait information and the address information of the second terminal are directly sent to the fourth terminal, or the fourth terminal may send a request for acquiring the user portrait information and the address information of the second terminal to the first terminal, and then the second terminal sets its own user.
  • the portrait information and the address information are sent to the fourth terminal, which is not specifically limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the fourth terminal acquires a photo of the task photo from the sharing terminal according to the allocated second index information.
  • the photo information includes the number of photo items, each photo ID, and each photo path, so the fourth terminal can be allocated according to the second index of the first terminal.
  • the information is obtained by the sharing terminal of each photo that needs to be shared. According to the address information of the sharing terminal in the index information, a copy of the task photo can be obtained from the sharing terminal, and the copy of the task photo can be obtained from the sharing terminal according to the address information of the sharing terminal in the index information.
  • the fourth terminal performs face recognition on each photo of the task photo and the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal.
  • the fourth terminal performs face recognition according to the photo copy of each task and the user portrait information of the second terminal, and determines a photo that matches the user portrait information of the second terminal.
  • the first terminal determines The photo of the second terminal whose user portrait information matches, when there are a plurality of terminals in the second terminal, the first terminal respectively determines photos matching the user portrait information of each terminal in the second terminal.
  • the fourth terminal obtains a photo of the task photo from the sharing terminal as an example, and the obtained photo of the task photo may be a thumbnail of the photo or a compressed image, which needs to be explained in the network.
  • the original image may be acquired for face recognition, which is not limited herein.
  • the fourth terminal sends, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the first terminal sends a photo matching the user portrait information of the second terminal to the second terminal, and when there are multiple terminals in the second terminal, the first terminal and the second terminal The photos matching the user portrait information of each terminal are sent to the corresponding terminal.
  • the fourth terminal may also send a photo that does not match the user portrait information of the second terminal to the second terminal, and when the second terminal includes one terminal, the fourth terminal and the user portrait information of the second terminal The unmatched photo is sent to the second terminal; when the second terminal includes the plurality of terminals, the fourth terminal separately sends the photos that do not match the user portrait information of all the terminals in the second terminal to the second terminal. Terminals are not specifically limited here.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention
  • the second terminal, the third terminal, and the fourth terminal may also be one or more 'slave terminals' in the present invention.
  • the fourth terminal performs face recognition according to the second index information allocated by the first terminal, and implements intelligent distribution of the photo, which is simple, fast, and efficient; secondly, the image of the fourth terminal is described in detail to implement The way is more diverse.
  • Terminal A, Terminal B, and Terminal C who are traveling abroad each have a terminal, which is Terminal A, Terminal B, and Terminal C. After the tour, they take a lot of photos with Terminal A, Terminal B, and Terminal C, respectively.
  • the sharing group has a name "Travel Sharing", a group avatar is set, and the group name is set. Said that the avatar informs user B, user C;
  • the terminal B and the terminal C can search for a nearby photo sharing group according to the positioning device, and find a photo sharing group created by the terminal A according to the group name and the avatar in the search result list of the photo sharing group, and click to join.
  • the terminal B and the terminal C send a request to join the photo sharing group to the terminal A, and the terminal A returns a response message to the terminal B and the terminal C, respectively, and the terminal B and the terminal C join the photo sharing group.
  • the terminal A may generate a two-dimensional code according to the group information, such as the group name, and the terminal A sends the generated two-dimensional code to the terminal B and the terminal C by using a network or various instant communication tools, etc., so that the terminal B and The terminal C scans, or displays it on the network to the terminal B and the terminal C, and scans them, or directly the user A, the user B, and the user C directly gather together, and the terminal A directly displays the two-dimensional code to the terminal B, After the terminal C scans, the terminal B and the terminal C scan the two-dimensional code generated by the terminal A according to one of the foregoing manners, the terminal B and the terminal C send a request to join the photo sharing group to the terminal A, and the terminal A sends the request to the terminal B respectively. The terminal C returns a response message for agreeing to join. At this time, the terminal B and the terminal C join the photo sharing group.
  • the terminal B and the terminal C join the photo sharing group.
  • terminal A first obtains user portrait information and IP address information of all terminals in the photo sharing group, terminal A acquires user portrait information and IP address information of terminal B and terminal C, and terminal A acquires terminal B in the photo sharing group.
  • the user portrait information and the IP address information of the terminal C may be that after the terminal B and the terminal C join the photo sharing group, the user portrait information and the IP address information of the terminal C are directly sent to the terminal A, or may be the terminal B.
  • the terminal A sends a request for acquiring the user portrait information and the IP address information to the terminal B and the terminal C, and then the terminal B and the terminal C send the user portrait information and the IP address information to the terminal.
  • Terminal A is not specifically limited herein.
  • the terminal A, the terminal B, and the terminal C have photos to be shared at this time (that is, the sharing terminal includes the terminal A, the terminal B, and the terminal C), and the terminal A, the terminal B, and the terminal C are required according to the requirements.
  • the terminal B and the terminal C respectively send the established index information B and index information C to the terminal A, and the terminal A divides the index information B according to the received index information B, the index information C, and the index information A obtained from itself.
  • the splitting strategy may be that each index information is separately divided according to the number of photo items in the index information, that is, the index information A, the index information B, and the index information C are respectively divided into three times, or three index information may be divided once;
  • the specific manner of segmentation may be divided into several according to the number of terminals that can perform image analysis in three terminals. For example, if three terminals participate in segmentation, the segmentation is divided into three, and the segmentation may be divided equally according to the number of photo items, such as index information A.
  • the information includes 60 photo analysis tasks;
  • the segmentation of the index information may also be performed according to the processing capability of the terminal.
  • the terminal B and the terminal C send their own CPU processing capability information (such as memory size, remaining power, storage space size, etc.).
  • the terminal A judges the number of photo items that the terminal B and the terminal C should be able to process according to the preset judgment standard (for example, the memory capacity is 2 GB, and the remaining 80% of the power is processed for up to 100 picture analysis tasks), and the terminal A can also judge.
  • terminal A allocates index information according to the processing capabilities of the three terminals, and when the total number of photo items that can be processed by the three terminals exceeds the total number of photos to be shared by the three terminals,
  • the three index information is divided once, for example, the maximum number of photo items that can be processed by the three terminals is 90, and when the index information is allocated, 60 photo analysis tasks are assigned to each terminal;
  • the three index information may be separately divided, for example, the index information A is equally divided. Then, it is allocated to each terminal, and each terminal performs image analysis according to the assigned index information, and then divides index information B, index information C, and the like in order.
  • the processing terminal includes the terminal A, the terminal B, and the terminal C in the above embodiment
  • the terminal A will obtain the user portrait information and the IP of the terminal A and the terminal B.
  • the address information transmitting terminal C transmits the obtained user portrait information and the IP address information of the terminal A and the terminal C to the terminal B.
  • the terminal A may be actively sent, or may be sent after receiving the request of the terminal B or the terminal C, where No specific limitation.
  • the following is an example of performing image analysis by the terminal B.
  • the terminal B After receiving the user portrait information and the IP address information of the terminal A and the terminal C, the terminal B performs image analysis according to the index information allocated by the terminal A, and the image analysis may be performed by:
  • the assigned index information is established by the terminal A, and the terminal can determine the photo to be analyzed according to the allocated partial index information, and obtain a photo copy of each photo from the photo source terminal (terminal A), and the photo copy can be a photo.
  • the terminal B performs the photo portrait information of each task photo with the user portrait information of the terminal A, the terminal B, and the terminal C (the second terminal in the above embodiment is the terminal A, the terminal B, and the terminal C respectively).
  • the image face matching analysis determines the photos matching the user portrait information of the terminal A, the terminal B, and the terminal C, respectively, and transmits the photos of the terminal A and the terminal C to the terminal A and the terminal C through the IP address information thereof respectively.
  • the B simultaneously obtains a photo matching the user's portrait information.
  • photos of all the analyzed photos that do not match the terminal A, the terminal B, and the terminal C may also be sent to the terminal.
  • A, terminal C, terminal B itself can also be obtained.
  • FIG. 9 another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal in the photo sharing group acquires user portrait information and address information of the second terminal in the sharing group.
  • the first sharing terminal in the sharing group can obtain the user portrait information and the address information of the second terminal in the sharing group.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal joins the photo sharing group, and then sends the user portrait information and the address information directly to the first terminal.
  • the first terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the second terminal, and then the second terminal sends the user portrait information and the address information of the second terminal.
  • the first terminal is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the first terminal performs image analysis on the photo to be shared according to the user portrait information of the second terminal, and determines a photo corresponding to the second terminal in the photo to be shared.
  • the first terminal has a photo to be shared, and after the first terminal determines the photo to be shared, the first terminal performs image analysis on the photo to be shared according to the user portrait information of the second terminal, and determines the to-be-determined a photo corresponding to the second terminal in the shared photo.
  • the first terminal determines a photo that matches the user portrait information of the second terminal, and when there are more photos in the second terminal.
  • the first terminal respectively determines photos matching the user portrait information of each terminal in the second terminal.
  • the first terminal sends the to-be-shared photo to the corresponding second terminal according to the address information of the second terminal.
  • the first terminal acquires the address information of the second terminal, when the second terminal has only one terminal The first terminal sends, to the second terminal, a photo that matches the user portrait information of the second terminal in the photo to be shared according to the address information of the second terminal, and when there are multiple terminals in the second terminal, the first The terminal sends, to the corresponding terminal, a photo that matches the user portrait information of each terminal in the second terminal in the photo to be shared according to the address information of the second terminal.
  • the embodiment of the present invention performs image analysis on a photo that needs to be shared by the terminal, determines a second terminal corresponding to the photo to be shared, and distributes the second terminal to the second terminal, which can be automatically shared by the first terminal of the photo sharing group.
  • the photos to be shared in the group are analyzed and distributed to the corresponding terminals, so that the terminals can obtain the photos they need and realize the intelligent distribution of the photos, which is simple, fast and efficient.
  • the first terminal in the photo sharing group before the first terminal in the photo sharing group obtains the address information of the second terminal in the sharing group, the first terminal may create a photo sharing group, and other photos need to be shared.
  • the terminal is added to the photo sharing group.
  • FIG. 10 Another embodiment of the method for distributing photos in the embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining a photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information, and the first terminal requests the added photo sharing group to be received.
  • a judgment is made to determine whether the second terminal is a terminal that shares a photo, and if yes, a response message for agreeing to join is returned, and if not, a rejection response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the address information response message including the first terminal to the plurality of terminals.
  • the second terminal can access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 1001 to 1003 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described, wherein the photo sharing group may also be created by another terminal.
  • the first terminal sends a request to join the photo sharing group to the terminal that creates the photo sharing group.
  • the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group and sends the request.
  • the manner of requesting and returning to join the response is similar to that of steps 1002 and 1003, and is not described here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the sharing group.
  • the photos sharing group can send and receive each other.
  • the first terminal in the photo sharing group can obtain user portrait information and address information of the second terminal in the sharing group.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal joins the photo sharing group, and then sends the user portrait information and the address information directly to the first terminal.
  • the first terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the second terminal, and then the second terminal sends the user portrait information and the address information of the second terminal.
  • the first terminal is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and the address information of the second terminal can also be obtained by using NFC, ultrasonic, or the like, which is not limited herein.
  • the first terminal enters a photo to be shared by the first terminal according to the user portrait information of the second terminal. Performing line image analysis to determine a photo corresponding to the second terminal in the photo to be shared;
  • the first terminal has a photo to be shared, and after the first terminal determines the photo to be shared, the first terminal performs image analysis on the photo to be shared according to the user portrait information of the second terminal, and determines the to-be-determined a photo corresponding to the second terminal in the shared photo.
  • the first terminal determines a photo that matches the user portrait information of the second terminal, and when there are more photos in the second terminal.
  • the first terminal respectively determines photos matching the user portrait information of each terminal in the second terminal.
  • the first terminal sends the photo to be shared to the corresponding second terminal according to the address information of the second terminal.
  • the first terminal acquires the address information of the second terminal.
  • the first terminal matches the photo of the second terminal with the user portrait information of the second terminal according to the address information of the second terminal.
  • Sending to the second terminal when there are multiple terminals in the second terminal, the first terminal sends a photo that matches the user portrait information of each terminal in the second terminal in the photo to be shared according to the address information of the second terminal. Give the corresponding terminal.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention, and the second terminal may also be one or more 'slave terminals' in the present invention.
  • the embodiment of the present invention performs image analysis on a photo that needs to be shared by the terminal, determines a second terminal corresponding to the photo to be shared, and distributes the second terminal to the second terminal, which can be automatically shared by the first terminal of the photo sharing group.
  • the photos to be shared in the group are analyzed and distributed to the corresponding terminals, so that the terminals can obtain the photos they need and realize the intelligent distribution of the photos, which is simple, fast and efficient.
  • the first terminal may also send the photo of the photo to be shared to the second terminal in the photo to be shared, and when the second terminal is a terminal, there is no corresponding in the photo to be shared.
  • the photo of the second terminal is sent to the terminal.
  • the photo of the second terminal is not sent to the multiple terminals.
  • the first terminal performs image analysis on the photo to be shared according to the user portrait information of the second terminal, and determines that the photo corresponding to the second terminal in the photo to be shared has multiple implementations.
  • the mode is described in detail below in conjunction with specific embodiments, as follows:
  • the first terminal determines a photo directory to be shared by itself, performs image analysis on each photo in the photo directory to generate a plurality of photo sub-directories, and places photos having the same facial features in a photo sub-directory. And generating an associated face reference picture for each photo sub-directory, performing image matching analysis on the user portrait information of the second terminal and the associated face reference picture corresponding to the photo sub-directory, and determining the user with the second terminal.
  • the photo sub-directory matched by the portrait information is a photo sub-directory corresponding to the second terminal; and the photo in the photo sub-directory corresponding to the second terminal is sent to the second terminal
  • another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining the photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information, and the first terminal requests the added photo sharing group to be received.
  • a judgment is made to determine whether the second terminal is a terminal that shares a photo, and if yes, a response message for agreeing to join is returned, and if not, a rejection response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the foregoing response message including the address information of the first terminal to the plurality of terminals.
  • the second terminal can access the Wi-Fi after receiving the response message sent by the first terminal.
  • a hot spot forms a local area network with the first terminal.
  • steps 1101 to 1103 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described.
  • the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar to 1102, 1103, and will not be described here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the sharing group.
  • the photos sharing group can send and receive each other.
  • the first terminal in the photo sharing group can obtain user portrait information and address information of the second terminal in the sharing group.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal joins the photo sharing group, and then sends the user portrait information and the address information directly to the first terminal.
  • the first terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the second terminal, and then the second terminal sends the user portrait information and the address information of the second terminal.
  • the first terminal is not specifically limited herein.
  • the user portrait information and the address information of the second terminal can also be obtained by using NFC, ultrasonic, or the like, which is not limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the user portrait information and the address information of the second terminal can also be obtained by using NFC, ultrasonic, or the like, which is not limited herein.
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the first terminal determines a photo directory to be shared by the first terminal.
  • the first terminal has a photo to be shared, and can determine a photo directory to be shared by itself;
  • the first terminal performs image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, and places photos having the same facial features in a photo subdirectory, and generates each photo subdirectory.
  • An associated face reference picture ;
  • the image analysis of each picture in the photo directory can determine whether the face recognized in the photo matches, and the photo is in the photo.
  • the recognized face matching photo generates a photo subdirectory, and the photos with the same facial features are placed in a photo subdirectory, and an associated face reference image is generated for each photo subdirectory, and more photos are recognized in the photo.
  • the photo can be placed in a corresponding plurality of photo subdirectories.
  • the photos may be directly clustered to generate a photo sub-directory, which is not limited herein.
  • the first terminal performs image matching analysis on the user portrait information of the second terminal and the associated face reference picture corresponding to the photo sub-directory, and determines that the photo sub-directory matching the user portrait information of the second terminal is the second Photo subdirectory corresponding to the terminal;
  • the first terminal performs image matching analysis on the user portrait information of the second terminal and the associated face reference picture corresponding to the photo sub-directory.
  • the first terminal determines the first The photo sub-directory corresponding to the associated face reference picture matched by the user portrait information of the second terminal is a photo sub-directory corresponding to the second terminal, and when there are multiple terminals in the second terminal, the first terminal respectively determines and the second terminal The photo sub-directory matched by the user portrait information of each terminal is the corresponding photo sub-directory.
  • the first terminal acquires the address information of the second terminal, and the second terminal has only one terminal, the first terminal matches the photo of the photo to be shared with the user portrait information of the second terminal according to the address information of the second terminal.
  • the photo in the directory is sent to the second terminal.
  • the first terminal compares the user portrait information of the photo to be shared with the terminal of the second terminal according to the address information of the second terminal.
  • the photos in the matching photo subdirectory are sent to the corresponding terminal.
  • the first terminal may send the photo in the photo subdirectory to the second terminal when the photo subdirectory has no corresponding second terminal, and when the second terminal is a terminal, in the photo subdirectory
  • the photo is sent to the terminal, and when there are multiple second terminals, the photos in the photo sub-directory are separately sent to the multiple terminals, which are not limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the terminal sharing the photo (such as the first terminal) may directly send all the photos to be shared together to the second terminal in the photo sharing group, regardless of whether the matching is matched. .
  • the first terminal may also be referred to as a 'master terminal' in the present invention
  • the second terminal, the third terminal, and the fourth terminal may also be one or more 'slave terminals' in the present invention.
  • the embodiment of the present invention performs image analysis on a photo that needs to be shared by the terminal, determines a second terminal corresponding to the photo to be shared, and distributes the second terminal to the second terminal, which can be automatically shared by the first terminal of the photo sharing group.
  • the photos to be shared in the group are analyzed and distributed to the corresponding terminals, so that the terminals can obtain the photos they need and realize the intelligent distribution of the photos, which is simple, fast and efficient.
  • the first terminal determines the photo directory to be shared by the first terminal; the first terminal receives the user portrait information of the second terminal; the first terminal performs the face in the photo directory according to the user portrait information of the second terminal. Searching, sequentially searching for photos in the photo directory that match the user portrait information of the second terminal, and determining photos corresponding to the second terminal in the photo directory.
  • another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining the photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal. Share groups, find After the photo group is clicked, the request to join the photo sharing group is sent to the first terminal.
  • the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information, and the first terminal requests the added photo sharing group to be received.
  • a judgment is made to determine whether the second terminal is a terminal that shares a photo, and if yes, a response message for agreeing to join is returned, and if not, a rejection response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the address information response message including the first terminal to the plurality of terminals.
  • the second terminal can access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 1201 to 1203 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described, wherein the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar in 1202, 1203, not repeated here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the sharing group.
  • the first sharing terminal in the sharing group can obtain the user portrait information and the address information of the second terminal in the sharing group.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal joins the photo sharing group, and then sends the user portrait information and the address information directly to the first terminal.
  • the first terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the second terminal, and then the second terminal sends the user portrait information and the address information of the second terminal.
  • the first terminal is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and the address information of the second terminal can also be obtained by using NFC, ultrasonic, or the like, which is not limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the first terminal determines a photo directory to be shared by itself
  • the first terminal has a photo to be shared, and can determine a photo directory to be shared by itself;
  • the first terminal performs a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo in the photo directory that matches the user portrait information of the second terminal, and determines the photo directory. a photo corresponding to the second terminal;
  • the first terminal performs a face search in the photo directory according to the user portrait information of the second terminal, and when the second terminal has only one terminal, sequentially searches the photo directory.
  • a photo matching the user portrait information of the second terminal determining a photo corresponding to the second terminal in the photo directory, and when there are multiple terminals in the second terminal, sequentially searching for the photo directory and the second terminal.
  • the photos matching the user portrait information of each terminal determine a photo corresponding to each terminal in the second terminal in the photo directory, and after the search is completed, the photo corresponding to the second terminal in the photo directory may be determined.
  • the first terminal sends the photo to be shared to the corresponding second terminal according to the address information of the second terminal.
  • the first terminal acquires the address information of the second terminal.
  • the first terminal matches the photo of the second terminal with the user portrait information of the second terminal according to the address information of the second terminal.
  • Sending to the second terminal when there are multiple terminals in the second terminal, the first terminal sends a photo that matches the user portrait information of each terminal in the second terminal in the photo to be shared according to the address information of the second terminal. Give the corresponding terminal.
  • the first terminal may send the photo of the photo to be shared to the second terminal in the photo to be shared, and when the second terminal is a terminal, there is no corresponding in the photo to be shared.
  • the photo of the second terminal is sent to the terminal.
  • the photo of the second terminal is not sent to the multiple terminals.
  • the first terminal creates a photo directory corresponding to the second terminal, obtains a photo group photographed by itself, performs image matching analysis on the photos in the photo group according to the user portrait information of the second terminal, and sequentially determines the photo group. Whether the photo in the photo is matched with the user portrait information corresponding to the second terminal, and if so, the photo matching the user portrait information corresponding to the second terminal in the photo group is placed in the photo directory corresponding to the second terminal, Sending a photo in the photo directory corresponding to the second terminal to the second terminal;
  • another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any one of the people who go out to play or travel, and the first terminal creates A photo sharing group is created, and the photo sharing group can also be set with a name, a group avatar, and the like.
  • the photo sharing group can also be displayed on the network according to the location information of the first terminal, and the other terminal is in the network. Search on the search or search by the nearby photo sharing group, which is not limited here.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining a photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group, and in actual application,
  • the response message may also be a refusal to join the information
  • the first terminal judges the received request to join the photo sharing group, and determines whether the second terminal is a terminal that shares the photo, and if Then, the response message that agrees to join is returned, and if not, the refusal to join the response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the address information response message including the first terminal to the plurality of terminals.
  • the second terminal can access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 1301 to 1303 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described, wherein the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar in 1302, 1303, and will not be described here.
  • the first terminal in the photo sharing group acquires user portrait information and address information of the second terminal in the sharing group.
  • the photos sharing group can send and receive each other.
  • the first terminal in the photo sharing group can obtain user portrait information and address information of the second terminal in the sharing group.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal joins the photo sharing group, and then sends the user portrait information and the address information directly to the first terminal.
  • the first terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the second terminal, and then the second terminal sends the user portrait information and the address information of the second terminal.
  • the first terminal is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and the address information of the second terminal can also be obtained by using NFC, ultrasonic, or the like, which is not limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the first terminal creates a photo directory corresponding to the second terminal.
  • the first terminal creates a corresponding photo directory for the second terminal.
  • a photo directory is created.
  • a plurality of corresponding photo directories are respectively created.
  • the first terminal acquires a photo group taken by itself
  • the photo group taken by the first terminal is taken as an example, and the first terminal directly obtains a photo group photographed by itself, and the photo group may be a photograph taken by the first terminal after a tour.
  • the first terminal performs image matching analysis on the photos in the photo group according to the user portrait information of the second terminal, and sequentially determines whether the photo in the photo group matches the user portrait information corresponding to the second terminal, and if yes, Step 1308 is performed, and if not, determining the next photo until all the photos in the photo group are judged;
  • the first terminal performs image matching analysis on the photos in the photo group according to the user portrait information of the second terminal, and sequentially determines whether the photo in the photo group matches the user portrait information corresponding to the second terminal, when the second terminal only has a terminal, sequentially determining whether the photo in the photo group matches the user portrait information corresponding to the second terminal, until all the photos in the photo group are judged, when there are multiple terminals in the second terminal, Judging sequentially in the photo group Whether the photo and the user portrait information corresponding to each terminal in the second terminal match, and each terminal performs the judgment of the next terminal in the second terminal until all the photos in the photo group are judged, until all the terminals in the second terminal complete Judge.
  • the photo of the photo group matching the user portrait information corresponding to the second terminal is placed in a photo directory corresponding to the second terminal;
  • the first terminal sends the photo in the photo directory corresponding to the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal acquires the address information of the second terminal.
  • the first terminal sends the photo in the photo directory corresponding to the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal sends the photos in the photo directory corresponding to each terminal in the second terminal to the corresponding terminal according to the address information of the second terminal.
  • the first terminal may send the photo in the photo directory to the second terminal when the photo directory does not correspond to the second terminal, and when the second terminal is a terminal, the photo directory is in the photo directory.
  • the photo is sent to the terminal, and when the second terminal is multiple, the photos in the photo directory are separately sent to the multiple terminals, which are not limited herein.
  • the first terminal determines that all the photos taken are shared.
  • taking a photo is analyzing a photo to determine whether the captured photo matches the user portrait information of the second terminal;
  • another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish A Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining the photo sharing group sent by the second terminal;
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information, and the first terminal requests the added photo sharing group to be received.
  • a judgment is made to determine whether the second terminal is a terminal that shares a photo, and if yes, a response message for agreeing to join is returned, and if not, a rejection response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the address information response message including the first terminal to the plurality of terminals.
  • the second terminal may access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 1401 to 1403 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described.
  • the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar in 1402, 1403, and will not be repeated here.
  • the first terminal in the photo sharing group obtains user portrait information and address information of the second terminal in the sharing group.
  • the photos sharing group can send and receive each other.
  • the first terminal in the photo sharing group can obtain user portrait information and address information of the second terminal in the sharing group.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal joins the photo sharing group, and then sends the user portrait information and the address information directly to the first terminal.
  • the first terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the second terminal, and then the second terminal sends the user portrait information and the address information of the second terminal.
  • the first terminal is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and the address information of the second terminal can also be obtained by using NFC, ultrasonic, or the like, which is not limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the first terminal acquires a photo taken by itself
  • the first terminal acquires the photo that has just been taken by itself to perform image matching analysis.
  • the first terminal performs image matching analysis on the captured photo according to the user portrait information of the second terminal, and determines whether the captured photo matches the user portrait information of the second terminal. If yes, step 1407 is performed, and if not, the process ends. ;
  • Performing image matching analysis on the photographed photo according to the user portrait information of the second terminal determining whether the photographed photo matches the user portrait information of the second terminal, and when the second terminal has only one terminal, determining the photographed photograph and Whether the user portrait information of the second terminal matches, and when there are multiple terminals in the second terminal, it is sequentially determined whether the photographed photo matches the user portrait information of each user terminal in the second terminal.
  • the next picture can be taken and analyzed.
  • the photograph taken is a photo corresponding to the second terminal, and the photograph taken is transmitted to the corresponding second terminal.
  • the first terminal may send a photo of the photographed photo that is not corresponding to the second terminal to the second terminal, and when the second terminal is a terminal, the photo of the photographed photo has no corresponding second.
  • the photo of the terminal is sent to the terminal, and when there are a plurality of the second terminal, the photo of the photographed photo is not sent to the plurality of terminals, which is not limited herein.
  • the photograph taken just after the analysis is completed, the photograph is continuously taken, and after the photograph is taken, the image is matched and analyzed until the photograph is completed.
  • a picture is taken, that is, image matching analysis is performed, and intelligently distributed to the corresponding second terminal, which is smart, simple and efficient.
  • FIG. 15 in the embodiment of the present invention, Another embodiment of a method of distributing a photo includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining a photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar and the like are searched on the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal.
  • the second terminal may further search for a photo sharing group in the vicinity according to the positioning device in the terminal, and after the photo group is found, click to join to send a request to join the photo sharing group to the first terminal, where the second terminal is to the first terminal.
  • the method of sending a photo sharing group is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information, and the first terminal requests the added photo sharing group to be received.
  • a judgment is made to determine whether the second terminal is a terminal that shares a photo, and if yes, a response message for agreeing to join is returned, and if not, a rejection response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal separately sends the address information response message including the first terminal to the plurality of terminals.
  • the second terminal may access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 1501 to 1503 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described, wherein the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar in 1502, 1503, not repeated here.
  • the first terminal in the photo sharing group acquires user portrait information and address information of the second terminal in the sharing group.
  • the photos sharing group can send and receive information to each other.
  • the first terminal in the photo sharing group can obtain the sharing group.
  • User portrait information and address information of the second terminal can be obtained.
  • the manner in which the first terminal acquires the user portrait information and the address information of the second terminal in the photo sharing group may be that the second terminal joins the photo sharing group, and then sends the user portrait information and the address information directly to the first terminal.
  • the first terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the second terminal, and then the second terminal sends the user portrait information and the address information of the second terminal.
  • the first terminal is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the user portrait information and the address information of the second terminal can also be obtained by using NFC, ultrasonic, or the like, which is not limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the first terminal determines a photo directory to be shared by itself;
  • the first terminal has a photo to be shared, and can determine a photo directory to be shared by itself;
  • the first terminal performs a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo in the photo directory that matches the user portrait information of the second terminal, and determines the photo directory. a photo corresponding to the second terminal;
  • the first terminal is in the photo according to the user portrait information of the second terminal.
  • Performing a face search in the recording when the second terminal has only one terminal, sequentially searching for a photo in the photo directory that matches the user portrait information of the second terminal, and determining a photo corresponding to the second terminal in the photo directory.
  • the photos in the photo directory that match the user portrait information of each terminal in the second terminal are sequentially searched, and the photos in the photo directory corresponding to the terminals in the second terminal are determined.
  • the photo corresponding to the second terminal in the photo directory can be determined.
  • the first terminal sends the photo to be shared to the corresponding second terminal according to the address information of the second terminal.
  • the first terminal acquires the address information of the second terminal.
  • the first terminal matches the photo of the second terminal with the user portrait information of the second terminal according to the address information of the second terminal.
  • Sending to the second terminal when there are multiple terminals in the second terminal, the first terminal sends a photo that matches the user portrait information of each terminal in the second terminal in the photo to be shared according to the address information of the second terminal. Give the corresponding terminal.
  • the first terminal may send the photo of the photo to be shared to the second terminal in the photo to be shared, and when the second terminal is a terminal, there is no corresponding in the photo to be shared.
  • the photo of the second terminal is sent to the terminal.
  • the photo of the second terminal is not sent to the multiple terminals.
  • the first terminal receives, by the fourth terminal, a request for acquiring user portrait information and address information of the second terminal.
  • the fourth terminal in addition to the photo sharing by the first terminal, the fourth terminal also has a photo to be shared. At this time, the fourth terminal sends a request for acquiring the user portrait information and the address information of the second terminal to the first terminal.
  • the fourth terminal may be a terminal or multiple terminals, which is not limited herein.
  • the first terminal sends the user portrait information and the address information of the second terminal to the fourth terminal. end;
  • the first terminal sends the user portrait information and the address information of the second terminal to the fourth terminal, so that the fourth terminal performs image analysis on the photo to be shared by the fourth terminal, and determines the photo to be shared in the fourth terminal.
  • a photo corresponding to a terminal where the second terminal has a plurality of photos, the photo corresponding to the other terminal in the photo to be shared may be determined; and the fourth terminal determines the photo to be shared corresponding to the first terminal. After the photo, the photo corresponding to the first terminal is sent to the first terminal.
  • the first terminal may directly send the user portrait information and the address information of the second terminal to the fourth terminal, or the first terminal may receive the user that obtains the second terminal and sent by the fourth terminal. After the request of the portrait information and the address information, the user portrait information and the address information of the second terminal are sent to the fourth terminal, which is not specifically limited herein.
  • the user portrait information of the second terminal may be a photo including the image of the user's face
  • the photo of the user's face image may be an avatar set by the user in the photo sharing group by the user, and is set in the photo sharing group by the user using the terminal.
  • the first terminal may prompt the second terminal to set the user avatar including the face image, and after the second terminal is set, directly obtain the user avatar including the face image;
  • the portrait information of the second terminal is also the face image of the user captured by the second terminal, and the captured face image is sent to the first terminal, which is not specifically limited herein.
  • the first terminal receives a photo sent by the fourth terminal.
  • steps 1506 to 1508 and the steps before step 1506 are two relatively independent processes, and the steps 1506 to 1508 are not limited to be completed after step 1505.
  • the photo distribution process when the plurality of terminals share the photo is smart, simple and efficient.
  • the first terminal may not acquire the user portrait information of the second terminal in the photo sharing group, and the first terminal may determine the photo directory to be shared by itself, and each photo in the photo directory.
  • multiple photo subdirectories will be generated and will have the same
  • the photo of the face feature is placed in a photo subdirectory, and an associated face reference picture is generated for each photo subdirectory, and the associated face reference picture is sent to the second terminal, so that the second terminal selects its own corresponding Associate the face reference picture, and return the associated face reference picture selection information to the first terminal, and determine the photo subdirectory corresponding to the second terminal according to the associated face reference picture selection information, which is described below by using a specific embodiment.
  • another embodiment of a method for distributing a photo in an embodiment of the present invention includes:
  • the first terminal in the photo sharing group acquires address information of the second terminal in the sharing group.
  • the photos sharing group can send and receive each other.
  • the first terminal in the photo sharing group can obtain the address information of the second terminal in the sharing group.
  • the first terminal in the photo sharing group can obtain the address information of the second terminal in the sharing group, and the manner in which the first terminal acquires the address information of the second terminal in the photo sharing group may be that the second terminal joins After the photo sharing group, the address information is directly sent to the first terminal, and after the second terminal joins the photo sharing group, the first terminal sends a request for acquiring the address information of the second terminal to the second terminal, and then The second terminal sends its own address information to the first terminal, which is not specifically limited herein.
  • the first terminal determines a photo directory to be shared by itself
  • the first terminal has a photo to be shared, and can determine a photo directory to be shared by itself;
  • the first terminal performs image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, and places photos having the same facial features in a photo subdirectory, and generates each photo subdirectory.
  • image analysis is performed on each photo in the photo directory to generate a plurality of photo sub-directories, and photos having the same facial features are placed in a photo sub-directory, and Generate an associated face reference image for each photo subdirectory, such as Face recognition can be performed on each photo in the photo directory, a photo sub-directory of a plurality of different faces is generated, and photos having the same facial features are placed in a photo sub-directory, and multiple people are identified in the photo In the face, you can place the photo in the corresponding multiple photo subdirectories.
  • the photos may be directly clustered to generate a photo sub-directory, which is not limited herein.
  • the first terminal sends the associated face reference picture to the second terminal, so that the second terminal selects the associated face reference picture corresponding to the second terminal, and returns the associated face reference picture selection information to the first terminal.
  • the first terminal sends the associated face reference picture corresponding to each photo sub-directory to the second terminal according to the address information of the second terminal, and the second terminal selects the associated face reference picture corresponding to the second terminal, and then After the selection, the second terminal returns the associated face reference picture selection information to the first terminal.
  • the second terminal selects an associated face reference picture corresponding to the second terminal, and returns the associated face reference picture selection information to the first terminal, where multiple The terminal sends the associated face reference picture to the plurality of terminals in the second terminal, and the plurality of terminals in the second terminal respectively select the associated face reference picture corresponding to the second terminal, and return the associated face to the first terminal.
  • Baseline picture selection information when the second terminal has only one terminal, the second terminal selects an associated face reference picture corresponding to the second terminal, and returns the associated face reference picture selection information to the first terminal, where multiple The terminal sends the associated face reference picture to the plurality of terminals in the second terminal, and the plurality of terminals in the second terminal respectively select the associated face reference picture corresponding to the second terminal, and return the associated face to the first terminal.
  • the first terminal receives the associated face reference picture selection information returned by the second terminal.
  • the first terminal determines, according to the associated face reference picture selection information, a photo subdirectory corresponding to the second terminal.
  • the first terminal may determine the photo subdirectory corresponding to the second terminal according to the received associated face reference picture selection information.
  • the associated face reference picture selection information returned by the plurality of terminals in the second terminal is respectively received, and the photo subdirectory corresponding to the terminals in the second terminal is determined.
  • the first terminal sends a photo in the photo subdirectory corresponding to the second terminal to the second terminal.
  • the first terminal obtains the address information of the second terminal, so the first terminal can send the photo in the photo subdirectory corresponding to the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal sends the photo in the photo subdirectory corresponding to the second terminal to the second terminal, and when the second terminal is multiple, the first terminal uses the second terminal The corresponding photo subdirectory is sent to the corresponding terminal.
  • the first terminal may send the photo in the photo subdirectory to the second terminal when the photo subdirectory has no corresponding second terminal, and when the second terminal is a terminal, in the photo subdirectory
  • the photo is sent to the terminal, and when there are multiple second terminals, the photos in the photo sub-directory are separately sent to the multiple terminals, which are not limited herein.
  • the terminal performs image analysis on the photo that needs to be shared by the terminal to generate a plurality of photo sub-directories, and sends the associated human face reference picture to the second terminal, so that the second terminal selects the associated associated face of the second terminal.
  • a reference picture and returning the associated face reference picture selection information to the first terminal, determining the photo subdirectory corresponding to the second terminal according to the associated face reference picture selection information, and distributing the photo subdirectory to the second terminal, due to the photo sharing group
  • a terminal can automatically perform image analysis on the photos that need to be shared in the sharing group and intelligently distribute the photos to the corresponding terminals, so that each terminal can obtain the photos needed by the terminals, and realize the intelligent distribution of the photos, which is simple, fast and efficient.
  • FIG. 16 when a photo is shared by another terminal, the following may be described by using a specific embodiment.
  • FIG. 17 a method for distributing a photo in the embodiment of the present invention is illustrated. Another embodiment includes:
  • the first terminal creates a photo sharing group.
  • the first terminal may be a terminal of any user who is out of play or travel.
  • the first terminal creates a photo sharing group, and the photo sharing group may also set different information such as a name, a group avatar, and the like.
  • the group may also be displayed on the network according to the location information of the first terminal, and may be searched by other terminals on the network or searched according to the photo sharing group in the vicinity of the search, which is not limited herein.
  • the first terminal when the first terminal creates a photo sharing group, the first terminal may also establish a Wi-Fi hotspot, so that other terminals access the Wi-Fi hotspot after joining the photo sharing group to form a local area network. .
  • the first terminal when the first terminal creates a photo sharing group, the first terminal simultaneously creates a temporary buffer to save information in the photo sharing group, such as user portrait information of the terminal in the photo sharing group, and an IP address. Etc., there is no limit here.
  • the first terminal receives a request for joining the photo sharing group sent by the second terminal.
  • the other terminal sharing the photo or the second terminal that needs to obtain the photo will send a request to join the photo sharing group to the first terminal, and the second terminal may send the request by scanning the first
  • the photo-sharing group generates a two-dimensional code of the group.
  • the second terminal sends a request to join the photo sharing group to the first terminal.
  • the second terminal may also share the photo according to the photo.
  • the name of the group, the group avatar, and the like are searched in the network, and then click to join, that is, the request to join the photo sharing group is sent to the first terminal, or the second terminal searches for the nearby photo according to the positioning device in the terminal.
  • the method of joining the photo sharing group is sent to the first terminal by clicking the join, and the manner in which the second terminal sends the photo sharing group to the first terminal is not specifically limited.
  • the second terminal may be one or more terminals in the photo sharing group, which is not specifically limited herein.
  • the first terminal returns a join response message to the second terminal.
  • the first terminal After receiving the request for joining the photo sharing group sent by the second terminal, the first terminal returns a join response message to the second terminal, where the response message includes the address information of the first terminal, and the first terminal indicates that the first terminal has agreed.
  • the second terminal joins the photo sharing group.
  • the response message may also be a refusal to join the information, and the first terminal requests the added photo sharing group to be received.
  • a judgment is made to determine whether the second terminal is a terminal that shares a photo, and if yes, a response message for agreeing to join is returned, and if not, a rejection response message is returned, which is not limited herein. If the second terminal is a plurality of terminals, the first terminal The address information response message including the first terminal is sent to the plurality of terminals respectively.
  • the second terminal can access the Wi-Fi hotspot after receiving the response message sent by the first terminal.
  • a terminal forms a local area network.
  • steps 1701 to 1703 a process in which a first terminal creates a photo sharing group and each terminal joins a photo group is described.
  • the photo sharing group may also be created by another terminal, and the first terminal creates a photo sharing.
  • the terminal of the group sends a request to join the photo sharing group, and after the terminal that creates the photo sharing group receives the request and returns the join response message, the first terminal joins the photo sharing group, and the manner and steps of sending the request and returning the join response are performed. Similar to 1702, 1703, and will not be described here.
  • the first terminal in the photo sharing group obtains address information of the second terminal in the sharing group.
  • the photos sharing group can send and receive each other.
  • the first terminal in the photo sharing group can obtain the address information of the second terminal in the sharing group.
  • the first terminal in the photo sharing group can obtain the address information of the second terminal in the sharing group, and the manner in which the first terminal acquires the address information of the second terminal in the photo sharing group may be that the second terminal joins After the photo sharing group, the address information is directly sent to the first terminal, and after the second terminal joins the photo sharing group, the first terminal sends a request for acquiring the address information of the second terminal to the second terminal, and then The second terminal sends its own address information to the first terminal, which is not specifically limited herein.
  • the first terminal determines a photo directory to be shared by the first terminal.
  • the first terminal has a photo to be shared, and can determine a photo directory to be shared by itself;
  • the first terminal performs image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, and places photos having the same facial features in a photo subdirectory, and Each photo subdirectory generates an associated face reference picture;
  • image analysis is performed on each photo in the photo directory to generate a plurality of photo sub-directories, and photos having the same facial features are placed in a photo sub-directory, and Generating an associated face reference picture for each photo sub-directory, such as performing face recognition on each photo in the photo directory, generating photo sub-directories of different faces, and taking photos with the same facial features Placed in a photo subdirectory, when multiple faces are recognized in the photo, the photo can be placed in the corresponding multiple photo subdirectories.
  • the photos may be directly clustered to generate a photo sub-directory, which is not limited herein.
  • the first terminal sends the associated face reference picture to the second terminal, so that the second terminal selects the associated face reference picture corresponding to the second terminal, and returns the associated face reference picture selection information to the first terminal.
  • the first terminal sends the associated face reference picture corresponding to each photo sub-directory to the second terminal according to the address information of the second terminal, and the second terminal selects the associated face reference picture corresponding to the second terminal, and then After the selection, the second terminal returns the associated face reference picture selection information to the first terminal.
  • the second terminal selects an associated face reference picture corresponding to the second terminal, and returns the associated face reference picture selection information to the first terminal, where multiple The terminal sends the associated face reference picture to the plurality of terminals in the second terminal, and the plurality of terminals in the second terminal respectively select the associated face reference picture corresponding to the second terminal, and return the associated face to the first terminal.
  • Baseline picture selection information when the second terminal has only one terminal, the second terminal selects an associated face reference picture corresponding to the second terminal, and returns the associated face reference picture selection information to the first terminal, where multiple The terminal sends the associated face reference picture to the plurality of terminals in the second terminal, and the plurality of terminals in the second terminal respectively select the associated face reference picture corresponding to the second terminal, and return the associated face to the first terminal.
  • the first terminal receives the associated face reference picture selection information returned by the second terminal.
  • the first terminal determines, according to the associated face reference picture selection information, a photo subdirectory corresponding to the second terminal.
  • the first terminal may determine the photo subdirectory corresponding to the second terminal according to the received associated face reference picture selection information.
  • the associated face reference picture selection information returned by the plurality of terminals in the second terminal is respectively received, and the photo subdirectory corresponding to the terminals in the second terminal is determined.
  • the first terminal sends a photo in the photo subdirectory corresponding to the second terminal to the second terminal.
  • the first terminal obtains the address information of the second terminal, so the first terminal can send the photo in the photo subdirectory corresponding to the second terminal to the second terminal according to the address information of the second terminal.
  • the first terminal sends the photo in the photo subdirectory corresponding to the second terminal to the second terminal, and when the second terminal is multiple, the first terminal uses the second terminal The photos in the corresponding photo subdirectories are sent to the corresponding terminals.
  • the first terminal may send the photo in the photo subdirectory to the second terminal when the photo subdirectory has no corresponding second terminal, and when the second terminal is a terminal, in the photo subdirectory
  • the photo is sent to the terminal, and when there are multiple second terminals, the photos in the photo sub-directory are separately sent to the multiple terminals, which are not limited herein.
  • the first terminal receives an associated reference face image sent by the third terminal.
  • the third terminal is shared by the third terminal, and the third terminal determines the photo directory to be shared by itself, and performs image analysis on each photo in the photo directory to generate multiple photo sub-directories, which will have the same person.
  • the photo of the face feature is placed in a photo subdirectory, and an associated face reference picture is generated for each photo subdirectory, and the third terminal sends the generated associated face reference photo to the first terminal for selection by the first terminal.
  • the associated reference face photo corresponding to itself.
  • the third terminal may be one or more terminals, which is not limited herein.
  • the first terminal selects an associated reference face picture corresponding to the first terminal, and returns the associated reference face picture selection information to the third terminal.
  • the first terminal After receiving the associated reference face image sent by the third terminal, the first terminal selects an associated reference face image corresponding to itself, and returns the associated reference face image selection information to the third terminal;
  • the first terminal receives a photo sent by the third terminal.
  • steps 1711 to 1713 and the steps before the step 1711 are two relatively independent processes, and the steps 1711 to 1713 are not limited to be completed after the step 1710.
  • the terminal performs image analysis on the photo that needs to be shared by the terminal to generate a plurality of photo sub-directories, and sends the associated human face reference picture to the second terminal, so that the second terminal selects the associated associated face of the second terminal.
  • a reference picture and returning the associated face reference picture selection information to the first terminal, determining the photo subdirectory corresponding to the second terminal according to the associated face reference picture selection information, and distributing the photo subdirectory to the second terminal, due to the photo sharing group
  • a terminal can automatically perform image analysis on the photos that need to be shared in the sharing group and intelligently distribute the photos to the corresponding terminals, so that each terminal can obtain the photos needed by the terminals, and realize the intelligent distribution of the photos, which is simple, fast and efficient.
  • the method for distributing a photo of the present invention may further be that a connection is directly established between two terminals. After the first terminal captures a photo of the other party's user, the first terminal searches for a photo to be shared by the face, and searches for a photo matching the second terminal user's portrait information, and determines The photo corresponding to the second terminal in the photo directory is sent to the second terminal by a photo corresponding to the second terminal.
  • the following is a detailed description of the specific embodiment. Referring to FIG. 18, the embodiment of the present invention Another embodiment of a method of distributing photos in the middle includes:
  • the first terminal establishes a connection with the second terminal.
  • the first terminal establishes a connection with the second terminal by using a NFC touch to establish a Wi-Fi connection or a Bluetooth connection, or the first terminal establishes a Wi-Fi by using a sound wave.
  • the sound wave may be an ultrasonic wave having a frequency of 20,000 Hz or more or a sound wave having a frequency of 20,000 Hz or less, which is not limited herein.
  • the first terminal captures a photo of the second terminal user, and obtains a user portrait of the second terminal. information
  • the first terminal may directly take a photo of the second terminal user to obtain user portrait information of the second terminal.
  • the first terminal determines a photo directory to be shared by the first terminal.
  • the first terminal performs a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo in the photo directory that matches the user portrait information of the second terminal, and determines the photo directory. a photo corresponding to the second terminal;
  • the first terminal performs a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo of the face in the photo directory that can be matched with the user portrait information, that is, sequentially searches for the location.
  • the photo in the photo directory matching the user portrait information of the second terminal, after the search is completed, the photo corresponding to the second terminal in the photo directory may be determined.
  • the first terminal sends a photo corresponding to the second terminal to the second terminal.
  • the first terminal When the second terminal is one, the first terminal sends the photo corresponding to the second terminal to the second terminal, and when the second terminal is multiple, the first terminal sends the photo corresponding to each terminal of the second terminal. Give the corresponding terminal.
  • the first terminal may further send a photo of the photo to be shared that has no corresponding relationship with the second terminal to the second terminal, which is not limited herein.
  • an embodiment of the terminal provided by the embodiment of the present invention includes:
  • the first obtaining unit 1901 is configured to acquire user portrait information and address information of the second terminal in the same photo sharing group as the terminal;
  • a second obtaining unit 1902 configured to acquire first index information of a to-be-shared photo established by the sharing terminal, where the sharing terminal includes at least one of the terminal and a third terminal in the sharing group;
  • the allocating unit 1903 is configured to divide the first index information acquired by the second acquiring unit 1902 into N second index information, and allocate the N second index information to N processes respectively a terminal, the processing terminal includes a fourth terminal in the sharing group, or the fourth terminal and the terminal, where N ⁇ 2;
  • the sending unit 1904 is configured to send the user portrait information and the address information of the second terminal acquired by the first acquiring unit 1901 to the processing terminal, so that the processing terminal is configured according to the second index information and the first
  • the user portrait information of the second terminal performs face recognition on the corresponding photo to be shared in the second index information, determines a photo matching the user portrait information of the second terminal, and sends the photo to the second terminal.
  • the allocating unit 1903 splits the first index information. Assigning to the processing terminal, the processing terminal performs face recognition on the photo to be shared by the sharing terminal, determines the second terminal corresponding to the photo to be shared, and distributes the second terminal to the second terminal, which can be automatically added by the terminal joining the photo sharing group. Perform image analysis on the photos that need to be shared in the sharing group and intelligently distribute them to the corresponding terminals, so that each terminal can obtain the photos needed by the terminals, and realize the intelligent distribution of the photos, which is simple, fast and efficient;
  • another embodiment of the terminal provided by the embodiment of the present invention includes:
  • the first obtaining unit 2001 is configured to acquire user portrait information and address information of the second terminal in the same photo sharing group as the terminal;
  • the second obtaining unit 2002 is configured to acquire first index information of the to-be-shared photo established by the sharing terminal, where the sharing terminal includes at least one of the terminal and the third terminal in the sharing group;
  • the allocating unit 2003 is configured to divide the first index information acquired by the second acquiring unit 2002 into N second index information, and allocate the N second index information to the N processing terminals respectively, the processing
  • the terminal includes a fourth terminal in the sharing group, or the fourth terminal and the terminal, where N ⁇ 2;
  • a sending unit 2004, configured to send user portrait information and address information of the second terminal acquired by the first acquiring unit 2001 to the processing terminal, so that the processing terminal is configured according to the The second index information and the user portrait information of the second terminal perform face recognition on the corresponding photo to be shared in the second index information, determine a photo that matches the user portrait information of the second terminal, and send the photo to the location Said second terminal.
  • a creating unit 2005 configured to create a photo sharing group before the first obtaining unit 2001 acquires user portrait information and address information of the second terminal in the sharing group;
  • the receiving unit 2006 is configured to receive a request sent by the second terminal to join the photo sharing group
  • the sending unit 2004 is further configured to return a join response message to the second terminal, where the response message includes address information of the terminal.
  • the terminal may further include:
  • a establishing unit configured to establish a Wi-Fi hotspot when the terminal creates a photo sharing group, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the second obtaining unit 2002 may be specifically configured to: when the sharing terminal includes the terminal, determine a photo directory to be shared by itself, and establish third index information according to the photo directory. And acquiring the third index information, where the third index information includes photo information and address information of the first terminal, where the photo information includes the number of photo items to be shared, each photo ID, and each photo path;
  • the second obtaining unit 2002 is specifically configured to acquire fourth index information that is established by the third terminal in the sharing group, where the fourth index information includes photo information and the The address information of the third terminal, the photo information includes the number of photo items to be shared, each photo ID, and each photo path.
  • the allocating unit 2003 may be configured to divide the first index information into N shares according to the number of photo items, and obtain N second index information, and obtain the N pieces.
  • the two index information are respectively allocated to the N processing terminals.
  • the allocating unit 2003 may be specifically configured to receive separately The terminal processing capability information sent by the processing terminal, according to the terminal processing capability information of the N processing terminals, dividing the first index information into N shares according to the number of photo items, and obtaining second index information, and N pieces of second index information are respectively allocated to the N processing terminals.
  • the terminal may further include:
  • a determining unit configured to: when the processing terminal includes the terminal and the fourth terminal, the corresponding photo in the second index information according to the second index information and user portrait information of the second terminal Performing face recognition to determine a photo that matches the user portrait information of the second terminal;
  • the sending unit 2004 is further configured to send, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the determining unit is specifically configured to: obtain a copy of the task photo from the sharing terminal according to the second index information, perform face recognition on each photo copy of the task and user portrait information of the second terminal, and determine The photo of the second terminal's user portrait information matches.
  • the transmitting unit 2004 further transmits a photo that can mismatch the user portrait information of the second terminal to the second terminal.
  • the terminal further includes a creating unit 2005, a receiving unit 2006, and the sending unit 2004 is further configured to return a join response message to the second terminal, where the response message includes
  • the address information of the terminal makes the terminal structure setting more flexible.
  • another embodiment of a terminal provided by an embodiment of the present invention includes:
  • the first obtaining unit 2101 is configured to acquire user portrait information and address information of the second terminal in the same photo sharing group as the terminal;
  • a second obtaining unit 2102 configured to acquire first index information of a to-be-shared photo established by the sharing terminal, where the sharing terminal includes at least one of the terminal and a third terminal in the sharing group;
  • the allocating unit 2103 is configured to divide the first index information acquired by the second acquiring unit 2102 into N pieces of second index information, and allocate the N pieces of second index information to N processes respectively a terminal, the processing terminal includes a fourth terminal in the sharing group, or the fourth terminal and the terminal, where N ⁇ 2;
  • the sending unit 2104 is configured to send the user portrait information and the address information of the second terminal acquired by the first acquiring unit 2101 to the processing terminal, so that the processing terminal is configured according to the second index information and the first
  • the user portrait information of the second terminal performs face recognition on the corresponding photo to be shared in the second index information, determines a photo matching the user portrait information of the second terminal, and sends the photo to the second terminal.
  • a creating unit 2105 configured to create a photo sharing group before the first obtaining unit acquires user portrait information and address information of the second terminal in the sharing group;
  • the receiving unit 2106 is configured to receive a request sent by the second terminal to join the photo sharing group
  • the sending unit 2104 is further configured to return a join response message to the second terminal, where the response message includes address information of the terminal.
  • the terminal may further include:
  • the establishing unit 2107 is configured to establish a Wi-Fi hotspot when the terminal creates a photo sharing group, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the second obtaining unit 2102 may be specifically configured to: when the sharing terminal includes the terminal, determine a photo directory to be shared by itself, and establish third index information according to the photo directory. And acquiring the third index information, where the third index information includes photo information and address information of the first terminal, where the photo information includes the number of photo items to be shared, each photo ID, and each photo path;
  • the second obtaining unit 2102 is specifically configured to acquire fourth index information that is established by the third terminal in the sharing group, where the fourth index information includes photo information and the The address information of the third terminal, the photo information includes the number of photo items to be shared, each photo ID, and each photo path.
  • the allocating unit 2103 may be specifically configured to divide the first index information into N shares according to the number of photo items, and obtain N second index information, and obtain the N pieces.
  • the two index information are respectively allocated to the N processing terminals.
  • the allocating unit 2103 may be configured to separately receive terminal processing capability information sent by the processing terminal, and set the first index according to terminal processing capability information of the N processing terminals.
  • the information is divided into N shares according to the number of photo items to obtain second index information, and the N second index informations are respectively allocated to the N processing terminals.
  • the terminal may further include:
  • a determining unit configured to: when the processing terminal includes the terminal and the fourth terminal, the corresponding photo in the second index information according to the second index information and user portrait information of the second terminal Performing face recognition to determine a photo that matches the user portrait information of the second terminal;
  • the sending unit 2104 is further configured to send, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the determining unit is specifically configured to: obtain a copy of the task photo from the sharing terminal according to the second index information, perform face recognition on each photo copy of the task and user portrait information of the second terminal, and determine The photo of the second terminal's user portrait information matches.
  • the transmitting unit 2104 further transmits a photo that can mismatch the user portrait information of the second terminal to the second terminal.
  • another embodiment of the terminal provided by the embodiment of the present invention includes:
  • the receiving unit 2201 is configured to receive second index information that is sent by the first terminal in the same photo sharing group as the terminal, where the second index information is part of a first index of a photo to be shared;
  • the receiving unit 2201 is further configured to receive user portrait information and address information of the second terminal sent by the first terminal;
  • a determining unit 2202 configured to perform face recognition on the corresponding photo in the second index information according to the second index information received by the receiving unit 2201 and the user portrait information of the second terminal, and determine the second a photo of the terminal's user portrait information matching;
  • the sending unit 2203 is configured to send, according to the address information of the second terminal, a photo that matches the user portrait information of the second terminal to the second terminal.
  • the determining unit 2202 may be specifically configured to: obtain a copy of the task photo from the sharing terminal according to the second index information, and perform a photo copy of each task and a user portrait information of the second terminal. Face recognition, determining a photo that matches the user portrait information of the second terminal.
  • the determining unit 2202 performs face recognition according to the second index information received by the receiving unit 2201 and the user portrait information and the address information of the second terminal, thereby realizing intelligent distribution of the photos, which is simple, fast and efficient.
  • FIG. 23 Another embodiment of the terminal provided by the embodiment of the present invention includes:
  • the acquiring unit 2301 is configured to acquire user portrait information and address information of the second terminal in the same photo sharing group as the terminal;
  • a determining unit 2302 configured to perform image analysis on a photo to be shared by the user portrait information of the second terminal, and determine a photo corresponding to the second terminal in the photo to be shared;
  • the sending unit 2303 is configured to send the photo to be shared to the corresponding second terminal according to the address information of the second terminal.
  • the determining unit 2302 may perform image analysis on the photo that needs to be shared, determine the second terminal corresponding to the photo to be shared, and determine the shared photo according to the address information of the second terminal acquired by the obtaining unit 2301.
  • the image is distributed to the corresponding second terminal, and the image that needs to be shared in the sharing group is automatically analyzed and intelligently distributed to the corresponding terminal, so that each terminal can obtain the required
  • the photo realizes the intelligent distribution of photos, which is simple, fast and efficient.
  • another embodiment of a terminal provided by an embodiment of the present invention includes:
  • the obtaining unit 2401 is configured to acquire user portrait information and address information of the second terminal in the same photo sharing group as the terminal;
  • a determining unit 2402 configured to perform image analysis on a photo to be shared by the user portrait information of the second terminal, and determine a photo corresponding to the second terminal in the photo to be shared;
  • the sending unit 2403 is configured to send the photo to be shared to the corresponding second terminal according to the address information of the second terminal.
  • the terminal may further include:
  • a creating unit 2404 configured to create the photo sharing group before the terminal in the photo sharing group acquires user portrait information and address information of the second terminal in the sharing group;
  • the receiving unit 2405 is configured to receive a request sent by the second terminal to join the photo sharing group.
  • the sending unit 2403 is further configured to return a join response message to the second terminal, where the response message includes address information of the first terminal.
  • the terminal may further include:
  • the establishing unit 2406 is configured to establish a Wi-Fi hotspot when the terminal creates a photo sharing group, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the determining unit 2402 may be specifically configured to determine a photo directory to be shared by itself, and perform image analysis on each photo in the photo directory to generate a plurality of photo sub-directories, which will have the same person.
  • the photo of the face feature is placed in a photo subdirectory, and an associated face reference picture is generated for each photo subdirectory, and the user portrait information of the second terminal and the associated face reference picture corresponding to the photo subdirectory are generated.
  • image matching analysis to determine that a photo subdirectory matching the user portrait information of the second terminal is a photo subdirectory corresponding to the second terminal;
  • the sending unit 2403 is specifically configured to send, according to the address information of the second terminal, a photo in a photo subdirectory corresponding to the second terminal to the second terminal.
  • the determining unit 2402 may be specifically configured to determine a photo directory to be shared by itself, perform a face search in the photo directory according to the user portrait information of the second terminal, and search for the location in turn. a photo in the photo directory matching the user portrait information of the second terminal, and determining a photo corresponding to the second terminal in the photo directory.
  • the determining unit 2402 may be specifically configured to create a photo directory corresponding to the second terminal, obtain a photo group photographed by itself, and compare the user portrait information of the second terminal to the photo group in the photo group. Performing image matching analysis on the photo, sequentially determining whether the photo in the photo group matches the user portrait information corresponding to the second terminal, and if so, placing a photo matching the user portrait information corresponding to the second terminal in the photo group In the photo directory corresponding to the second terminal;
  • the sending unit 2403 is specifically configured to send, according to the address information of the second terminal, a photo in a photo directory corresponding to the second terminal to the second terminal.
  • the determining unit 2402 may be specifically configured to acquire a photo taken by itself, perform image matching analysis on the photographed photo according to user portrait information of the second terminal, and determine the photograph taken. Whether the user portrait information of the second terminal matches, and if so, determining that the photograph taken is a photo corresponding to the second terminal;
  • the sending unit 2403 is specifically configured to send the photographed photo to the corresponding second terminal according to the address information of the second terminal when the photographed photo matches the second end user portrait information.
  • the terminal may also receive photos sent by other terminals:
  • the receiving unit 2405 is further configured to receive, by the fourth terminal, a request for acquiring user portrait information and address information of the second terminal;
  • the sending unit 2403 is further configured to send user portrait information and address information of the second terminal to the fourth terminal;
  • the receiving unit 2405 is further configured to receive a photo sent by the fourth terminal.
  • the sending unit 2403 may be further configured to share the to-be-shared There is no photo corresponding to the second terminal in the photo, and is sent to the second terminal.
  • another embodiment of the terminal provided by the embodiment of the present invention includes:
  • the obtaining unit 2501 is configured to acquire address information of the second terminal in the same photo sharing group as the terminal;
  • a first determining unit 2502 configured to determine a photo directory to be shared by itself
  • a generating unit 2503 configured to perform image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, and place photos having the same facial features in a photo subdirectory, and each photo subdirectory Generate an associated face reference picture;
  • the sending unit 2504 is configured to send the associated face reference picture to the second terminal, so that the second terminal selects an associated face reference picture corresponding to the second terminal, and returns an associated face reference picture selection to the first terminal. information;
  • the receiving unit 2505 is configured to receive associated face reference picture selection information returned by the second terminal;
  • a second determining unit 2506, configured to determine, according to the associated face reference picture selection information, a photo subdirectory corresponding to the second terminal;
  • the sending unit 2504 is further configured to send a photo in the photo subdirectory corresponding to the second terminal to the second terminal.
  • the determining unit 2502 may perform image analysis on the photos that need to be shared, and then generate a plurality of photo sub-directories, and the sending unit 2504 sends the associated face reference images corresponding to the photo sub-directories to the second terminal.
  • the second terminal selects the face reference photo corresponding to the second terminal, and the sending unit 2504 can intelligently distribute the face reference photo selected by the second terminal to the corresponding second terminal, thereby realizing intelligent distribution of the photo, which is simple, fast and efficient.
  • another embodiment of the terminal provided by the embodiment of the present invention includes:
  • the obtaining unit 2601 is configured to acquire address information of the second terminal in the same photo sharing group as the terminal;
  • a first determining unit 2602 configured to determine a photo directory to be shared by itself
  • the generating unit 2603 is configured to perform image analysis on each photo in the photo directory to generate a plurality of photo subdirectories, and place photos having the same facial features in a photo subdirectory, and each photo subdirectory Generate an associated face reference picture;
  • the sending unit 2604 is configured to send the associated face reference picture to the second terminal, so that the second terminal selects an associated face reference picture corresponding to the second terminal, and returns an associated face reference picture selection to the first terminal. information;
  • the receiving unit 2605 is configured to receive associated face reference picture selection information returned by the second terminal;
  • a second determining unit 2606 configured to determine, according to the associated face reference picture selection information, a photo subdirectory corresponding to the second terminal;
  • the sending unit 2604 is further configured to send a photo in the photo subdirectory corresponding to the second terminal to the second terminal.
  • the terminal may further include:
  • a creating unit 2607 configured to create a photo sharing group
  • the receiving unit 2605 is further configured to receive a request sent by the second terminal to join the photo sharing group;
  • the sending unit 2604 is further configured to return a join response message to the second terminal, where the response message includes address information of the first terminal.
  • the receiving unit 2605 is further configured to receive an associated reference face picture sent by the third terminal;
  • the sending unit 2604 is further configured to select an associated reference face picture corresponding to itself, and return the associated reference face picture selection information to the third terminal;
  • the receiving unit 2605 is further configured to receive a photo sent by the third terminal.
  • the sending unit 2604 is further configured to send, to the second terminal, a photo of the photo to be shared that does not have a corresponding second terminal.
  • the terminal may further include:
  • a establishing unit configured to establish a Wi-Fi hotspot when the creating unit creates a photo sharing group, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • another embodiment of the terminal provided by the embodiment of the present invention includes:
  • the establishing unit 2701 is configured to establish a connection with the second terminal.
  • the acquiring unit 2702 is configured to capture a photo of the second terminal user, and obtain user portrait information of the second terminal;
  • a first determining unit 2703 configured to determine a photo directory to be shared by itself
  • a second determining unit 2704 configured to perform a face search in the photo directory according to the user portrait information of the second terminal, and sequentially search for a photo in the photo directory that matches the user portrait information of the second terminal. Determining a photo corresponding to the second terminal in the photo directory;
  • the sending unit 2705 is configured to send a photo corresponding to the second terminal to the second terminal.
  • the establishing unit 2701 can also be specifically used to establish a Wi-Fi connection or a Bluetooth connection through an NFC touch.
  • the establishing unit 2701 can also be specifically used to establish a Wi-Fi connection or a Bluetooth connection through sound waves.
  • the sending unit 2705 is further configured to send, to the second terminal, a photo of the photo to be shared that has no correspondence with the second terminal.
  • the establishing unit 2701 establishes a connection with the second terminal
  • the acquiring unit 2702 takes a photo of the second terminal user to obtain user portrait information of the second terminal;
  • the first determining unit 2703 determines a photo directory to be shared by itself
  • the second determining unit 2704 performs a face search in the photo directory according to the user portrait information of the second terminal, and sequentially searches for a photo in the photo directory that matches the user portrait information of the second terminal, and determines the location. a photo corresponding to the second terminal in the photo directory;
  • the sending unit 2705 sends the photo corresponding to the second terminal to the second terminal.
  • the first terminal When the second terminal is one, the first terminal sends the photo corresponding to the second terminal to the second terminal, and when the second terminal is multiple, the first terminal sends the photo corresponding to each terminal of the second terminal. Give the corresponding terminal.
  • the establishing unit 2701 establishes a connection with the second terminal, and specifically may establish a Wi-Fi connection or a Bluetooth connection by using an NFC touch.
  • the establishing unit 2701 establishes a connection with the second terminal, and specifically may establish a Wi-Fi connection or a Bluetooth connection through sound waves.
  • the "sound wave” may be an ultrasonic wave with a frequency of 20000HZ or higher, or a sound wave with a frequency of 20000HZ or less.
  • the sending unit 2705 may further send a photo of the photo to be shared that has no correspondence with the second terminal to the second terminal.
  • the terminal provided by the embodiment of the present invention is described below with reference to the embodiment of FIG. 21.
  • the terminal includes: a receiver 2801, a transmitter 2802, and a processor 2803 (which may have one or more).
  • the receiver 2801 is configured to perform the following operations:
  • the receiver 2801 is further configured to perform the following operations:
  • the sharing terminal includes at least one of the terminal and a third terminal in the sharing group;
  • the processor 2803 is configured to perform the following operations:
  • the processing terminal includes the sharing group a fourth terminal in the group, or the fourth terminal and the terminal, wherein N ⁇ 2;
  • the transmitter 2802 is configured to perform the following operations:
  • the processor 2803 can also be configured to perform the following operations:
  • the receiver 2801 is further configured to perform the following operations:
  • the transmitter 2802 is also configured to perform the following operations:
  • the processor 2803 can also be configured to perform the following operations:
  • the Wi-Fi hotspot is established, so that the second terminal accesses the Wi-Fi hotspot after receiving the response message.
  • the receiver 2801 can also be used to perform the following operations:
  • the transmitter 2802 Before the transmitter 2802 transmits the user portrait information and the address information of the second terminal to the processing terminal, receiving a request for acquiring the user portrait information and the address information of the second terminal sent by the processing terminal.
  • the processor 2803 can also be configured to perform the following operations:
  • the sharing terminal includes the terminal, determining a photo directory to be shared by itself, and establishing third index information according to the photo directory, and acquiring the third index information, where the third index information includes photo information.
  • the address information of the first terminal the photo information includes the number of photos to be shared, each photo ID, and each photo path;
  • the receiver 2801 can also be used to perform the following operations:
  • the processor 2803 can also be configured to perform the following operations:
  • the first index information is divided into N shares according to the number of photo items, and N second index information is obtained, and the N second index information are respectively allocated to the N processing terminals.
  • the receiver 2801 can also be used to perform the following operations:
  • the processor 2803 can also be configured to perform the following operations:
  • the processor 2803 can also be configured to perform the following operations:
  • the processing terminal includes the terminal and the fourth terminal, performing face recognition on the corresponding photo in the second index information according to the second index information and the user portrait information of the second terminal, A photo matching the user portrait information of the second terminal is determined.
  • the transmitter 2802 can also be used to perform the following operations:
  • the processor 2803 can also be configured to perform the following operations:
  • the transmitter 2802 can also be used to perform the following operations:
  • a photo that does not match the user portrait information of the second terminal is sent to the second terminal.
  • the terminals described in the foregoing embodiments of the present invention may be various terminals such as a mobile phone, a tablet computer, and a smart camera, and are not specifically limited herein.
  • the address information may be IP address information or MAC address information. limited.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. , including a number of instructions to make a computer device (can be an individual) A computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种分发照片的方法及终端,本发明实施例方法包括:照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息;第一终端获取所述分享群组内的第三终端建立的第一索引信息;第一终端将第一索引信息分割后得到第二索引信息,并将第二索引信息分配给所述分享群组内的第四终端;第一终端将第二终端的用户肖像信息和地址信息发送给第四终端,以使得第四终端根据第二索引信息及第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片并发送给第二终端。本发明实施例实现了照片的智能化分发,简单快捷高效。

Description

一种分发照片的方法及终端
本申请要求于2014年11月18日提交中国专利局、申请号为201410658948.6、发明名称为“一种分发照片的方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及无线通讯技术领域,具体涉及一种分发照片的方法及终端。
背景技术
人们在和好友、同事结伴出游时,大家用手机或平板等智能终端分别照了很多照片,最后大家要在所有照的照片中获取各自的照片时,虽然有很多方法,比如大家统一将照片上传到某个网盘中,然后大家再去下载,但这些都不太方便,费时费力,效率很低。
目前也有一些方法能够实现照片的汇聚、共享以及获得各终端用户自己的照片,比如用户可以在网络上手动创建一个共享的在线相册,然后邀请一起出游的好友加入该相册,大家可以将各自拍摄的照片上传到该共享相册中,从而实现某个主题照片的汇聚和分享,该方法虽然实现了照片的汇聚和共享,但是需要用户手动参与的步骤太多,比如好友加入共享相册后还需要手动上传照片,并且需要手动查找获取属于自己的照片,从照片的分享、汇聚到各终端用户获得自己的照片出现过多手动参与的步骤,不够智能化。
发明内容
本发明实施例提供了一种分发照片的方法及终端,实现了照片的智能化分发,简单快捷高效。
本发明实施例第一方面提供了一种分发照片的方法,包括:
照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息;
所述第一终端获取分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述第一终端和所述分享群组内的第三终端中的至少之一;
所述第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述第一终端,所述N≥2;
所述第一终端将所述第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
结合本发明实施例的第一方面,在本发明实施例的第一方面的第一种实现方式中,在所述照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,所述方法还包括:
所述第一终端创建照片分享群组;
所述第一终端接收所述第二终端发送的加入所述照片分享群组的请求;
所述第一终端向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
结合本发明实施例的第一方面的第一种实现方式,在本发明实施例的第一方面的第二种实现方式中,在所述第一终端创建照片分享群组时,所述第一终端建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
结合本发明实施例的第一方面或第一方面的第一种实现方式或第一方面的第二种实现方式,在本发明实施例的第一方面的第三种实现方式中, 所述分享终端包括所述第一终端;
所述第一终端获取分享终端建立的待分享照片的第一索引信息包括:
所述第一终端确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;
所述第一终端获取所述第三索引信息。
结合本发明实施例的第一方面至第一方面的第三种实现方式,在本发明实施例的第一方面的第四种实现方式中,所述分享终端包括第三终端;
所述第一终端获取分享终端建立的待分享照片的第一索引信息包括:
所述第一终端获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
结合本发明实施例的第一方面的第三种实现方式或第一方面的第四种实现方式,在本发明实施例的第一方面的第五种实现方式中,所述第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端包括:
所述第一终端将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端。
结合本发明实施例的第一方面的第三种实现方式或第一方面的第四种实现方式,在本发明实施例的第一方面的第六种实现方式中,所述第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端包括:
所述第一终端分别接收所述处理终端发送的终端处理能力信息;
所述第一终端根据所述处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端。
结合本发明实施例的第一方面至第一方面的第六种实现方式,在本发明实施例的第一方面的第七种实现方式中,所述处理终端包括所述第一终端和所述第四终端;
所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端包括:
所述第一终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
所述第一终端根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
结合本发明实施例的第一方面的第七种实现方式,在本发明实施例的第一方面的第八种实现方式中,所述第一终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片包括:
所述第一终端根据所述第二索引信息从所述分享终端获取任务照片副本;
所述第一终端将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
结合本发明实施例的第一方面的第七种实现方式或第一方面的第八种实现方式,在本发明实施例的第一方面的第九种实现方式中,所述方法还包括:
所述第一终端将与所述第二终端的用户肖像信息不匹配的照片发送给所述第二终端。
本发明实施例的第二方面提供了一种分发照片的方法,包括:
照片分享群组内的第四终端接收所述分享群组内的第一终端发送的第 二索引信息,所述第二索引信息为待分享照片的第一索引信息的一部分;
所述第四终端接收所述第一终端发送的第二终端的用户肖像信息和地址信息;
所述第四终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
所述第四终端根据第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
结合本发明实施例的第二方面,在本发明实施例的第二方面的第一种实现方式中,所述第四终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片包括:
所述第四终端根据所述第二索引信息从分享终端获取任务照片副本;
所述第四终端将每个任务照片副本与第二终端的用户肖像信息进行图像匹配分析,确定与所述第二终端的用户肖像信息匹配的照片。
本发明实施例的第三方面提供了一种分发照片的方法,包括:
照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息;
所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片;
所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端。
结合本发明实施例的第三方面,在本发明实施例的第三方面的第一种实现方式中,在照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,所述方法还包括:
所述第一终端创建照片分享群组;
所述第一终端接收所述第二终端发送的加入所述照片分享群组的请求;
所述第一终端向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
结合本发明实施例的第三方面的第一种实现方式,在本发明实施例的第三方面的第二种实现方式中,在所述第一终端创建照片分享群组时,所述第一终端建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
结合本发明实施例的第三方面到第三方面的第二种实现方式,在本发明实施例的第三方面的第三种实现方式中,所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片包括:
所述第一终端确定自身待分享的照片目录;
所述第一终端对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
所述第一终端将所述第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,确定与第二终端的用户肖像信息匹配的照片子目录为所述第二终端对应的照片子目录;
所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端包括:
所述第一终端根据所述第二终端的地址信息,将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
结合本发明实施例的第三方面到第三方面的第二种实现方式,在本发明实施例的第三方面的第四种实现方式中,所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的 照片中与第二终端对应的照片包括:
所述第一终端确定自身待分享的照片目录;
所述第一终端根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片。
结合本发明实施例的第三方面到第三方面的第二种实现方式,在本发明实施例的第三方面的第五种实现方式中,所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片包括:
所述第一终端创建第二终端对应的照片目录;
所述第一终端获取自身拍摄的照片组;
所述第一终端根据所述第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,若是,将所述照片组中与第二终端对应的用户肖像信息匹配的照片置于所述第二终端对应的照片目录中;
所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端包括:
所述第一终端根据所述第二终端的地址信息,将所述第二终端对应的照片目录中的照片发送给所述第二终端。
结合本发明实施例的第三方面到第三方面的第二种实现方式,在本发明实施例的第三方面的第六种实现方式中,所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片包括:
所述第一终端获取自身拍摄的照片;
所述第一终端根据所述第二终端的用户肖像信息对所述拍摄的照片进行图像匹配分析,判断所述拍摄的照片与第二终端的用户肖像信息是否匹 配,若是,确定所述拍摄的照片为与所述第二终端对应的照片;
所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端包括:
在所述拍摄的照片与所述第二终端用户肖像信息匹配时,第一终端根据所述第二终端的地址信息,将所述拍摄的照片发送给对应的第二终端。
结合本发明实施例的第三方面的第三种实现方式到第三方面的第六种实现方式,在本发明实施例的第三方面的第七种实现方式中,所述方法还包括:
所述第一终端接收所述第四终端发送的获取所述第二终端的用户肖像信息和地址信息的请求;
所述第一终端将所述第二终端的用户肖像信息和地址信息发送给所述第四终端;
所述第一终端接收所述第四终端发送的照片。
结合本发明实施例的第三方面至第三方面的第七种实现方式,在本发明实施例的第三方面的第八种实现方式中,所述方法还包括:
所述第一终端将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
本发明实施例第四方面提供了一种分发照片的方法,包括:
照片分享群组内的第一终端获取所述分享群组内的第二终端的地址信息;
所述第一终端确定自身待分享的照片目录;
所述第一终端对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
所述第一终端向第二终端发送所述关联人脸基准图片,以使得所述第二终端选择自身对应的关联人脸基准图片,并向所述第一终端返回关联人 脸基准图片选择信息;
所述第一终端接收所述第二终端返回的关联人脸基准图片选择信息;
所述第一终端根据所述关联人脸基准图片选择信息,确定所述第二终端对应的照片子目录;
所述第一终端将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
结合本发明实施例的第四方面,在本发明实施例的第四方面的第一种实现方式中,在照片分享群组内的第一终端获取所述分享群组内的第二终端的地址信息之前,所述方法还包括:
所述第一终端创建照片分享群组;
所述第一终端接收所述第二终端发送的加入所述照片分享群组的请求;
所述第一终端向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
结合本发明实施例的第四方面的第一种实现方式中,在本发明实施例的第四方面的第二种实现方式中,在所述第一终端创建照片分享群组时,所述第一终端建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
结合本发明实施例的第四方面至第四方面的第二种实现方式中,在本发明实施例的第四方面的第三种实现方式中,所述方法还包括:
所述第一终端接收所述第三终端发送的关联基准人脸图片;
所述第一终端选择与自身对应的关联基准人脸图片,并向所述第三终端返回关联基准人脸图片选择信息;
所述第一终端接收所述第三终端发送的照片。
结合本发明实施例的第四方面至第四方面的第三种实现方式中,在本发明实施例的第四方面的第四种实现方式中,所述方法还包括:所述第一 终端将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
本发明实施例第五方面提供了一种分发照片的方法,包括:
第一终端与第二终端建立连接;
所述第一终端拍摄所述第二终端用户的照片,获得所述第二终端的用户肖像信息;
所述第一终端确定自身待分享的照片目录;
所述第一终端根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与所述第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片;
所述第一终端将所述第二终端对应的照片发送给所述第二终端。
结合本发明实施例的第五方面,在本发明实施例的第五方面的第一种实现方式中,所述第一终端与第二终端建立连接包括:第一终端通过NFC触碰建立Wi-Fi连接或蓝牙连接。
结合本发明实施例的第五方面,在本发明实施例的第五方面的第二种实现方式中,所述第一终端与第二终端建立连接包括:第一终端通过声波建立Wi-Fi连接或蓝牙连接。
结合本发明实施例的第五方面至第五方面的第二种实现方式,在本发明实施例的第五方面的第三种实现方式中,所述方法还包括:所述第一终端将所述待分享的照片中与所述第二终端无对应关系的照片,发送给所述第二终端。
本发明实施例第六方面提供了一种终端,包括:
第一获取单元,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
第二获取单元,用于获取分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述终端和所述分享群组内的第三终端中的至少之一;
分配单元,用于将所述第二获取单元获取的第一索引信息分割为N个 第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述终端,所述N≥2;
发送单元,用于将所述第一获取单元获取的第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
结合本发明实施例的第六方面,在本发明实施例的第六方面的第一种实现方式中,所述终端还包括:
创建单元,用于在所述第一获取单元获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建照片分享群组;
接收单元,用于接收所述第二终端发送的加入所述照片分享群组的请求;
所述发送单元还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述终端的地址信息。
结合本发明实施例的第六方面的第一种实现方式,在本发明实施例的第六方面的第二种实现方式中,所述终端还包括:
建立单元,用于在所述创建单元创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
结合本发明实施例的第六方面至第六方面的第二种实现方式,在本发明实施例的第六方面的第三种实现方式中,所述第二获取单元具体用于在所述分享终端包括所述终端时,确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,并获取所述第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
结合本发明实施例的第六方面至第六方面的第三种实现方式,在本发明实施例的第六方面的第四种实现方式中,所述第二获取单元具体用于获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
结合本发明实施例的第六方面的第三种实现方式或第六方面的第四种实现方式,在本发明实施例的第六方面的第五种实现方式中,所述分配单元具体用于将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端。
结合本发明实施例的第六方面的第三种实现方式或第六方面的第四种实现方式,在本发明实施例的第六方面的第六种实现方式中,所述分配单元具体用于分别接收所述处理终端发送的终端处理能力信息,根据所述N个处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端。
结合本发明实施例的第六方面至第六方面的第六种实现方式,在本发明实施例的第六方面的第七种实现方式中,所述终端还包括:
确定单元,用于在所述处理终端包括所述终端和所述第四终端时,根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
所述发送单元还用于根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
结合本发明实施例的第六方面的第七种实现方式,在本发明实施例的第六方面的第八种实现方式中,所述确定单元具体用于根据所述第二索引信息从所述分享终端获取任务照片副本,将每个任务照片副本与所述第二 终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
结合本发明实施例的第六方面的第七种实现方式或第六方面的第八种实现方式,在本发明实施例的第六方面的第九种实现方式中,所述发送单元还用于将与所述第二终端的用户肖像信息不匹配的照片发送给所述第二终端。
本发明实施例第七方面提供了一种终端,包括:
接收单元,用于接收与所述终端在同一个照片分享群组内的第一终端发送的第二索引信息,所述第二索引信息为待分享照片的第一索引的一部分;
所述接收单元还用于接收所述第一终端发送的第二终端的用户肖像信息和地址信息;
确定单元,用于根据所述接收单元接收的第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
发送单元,用于根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
结合本发明实施例的第七方面,在本发明实施例的第七方面的第一种实现方式中,所述确定单元具体用于根据所述第二索引信息从分享终端获取任务照片副本,将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
本发明实施例第八方面提供了一种终端,包括:
获取单元,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
确定单元,用于根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片;
发送单元,用于根据所述第二终端的地址信息,将所述待分享的的照片发送给对应的所述第二终端。
结合本发明实施例的第八方面,在本发明实施例的第八方面的第一种实现方式中,所述终端还包括:
创建单元,用于在照片分享群组内的所述终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建所述照片分享群组;
接收单元,用于接收所述第二终端发送的加入所述照片分享群组的请求;
所述发送单元还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
结合本发明实施例的第八方面的第一种实现方式,在本发明实施例的第八方面的第二种实现方式中,所述终端还包括:
建立单元,用于在所述终端创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
结合本发明实施例的第八方面到第八方面的第二种实现方式,在本发明实施例的第八方面的第三种实现方式中,所述确定单元具体用于确定自身待分享的照片目录,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,将所述第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,确定与第二终端的用户肖像信息匹配的照片子目录为所述第二终端对应的照片子目录;
所述发送单元具体用于根据所述第二终端的地址信息,将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
结合本发明实施例的第八方面到第八方面的第二种实现方式,在本发明实施例的第八方面的第四种实现方式中,所述确定单元具体用于确定自 身待分享的照片目录,根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片。
结合本发明实施例的第八方面到第八方面的第二种实现方式,在本发明实施例的第八方面的第五种实现方式中,所述确定单元具体用于创建第二终端对应的照片目录,获取自身拍摄的照片组,根据所述第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,若是,将所述照片组中与第二终端对应的用户肖像信息匹配的照片置于所述第二终端对应的照片目录中;
所述发送单元具体用于根据所述第二终端的地址信息,将所述第二终端对应的照片目录中的照片发送给所述第二终端。
结合本发明实施例的第八方面到第八方面的第二种实现方式,在本发明实施例的第八方面的第六种实现方式中,所述确定单元具体用于获取自身拍摄的照片,根据所述第二终端的用户肖像信息对所述拍摄的照片进行图像匹配分析,判断所述拍摄的照片与第二终端的用户肖像信息是否匹配,若是,确定所述拍摄的照片为与所述第二终端对应的照片;
所述发送单元具体用于在所述拍摄的照片与所述第二终端用户肖像信息匹配时,根据所述第二终端的地址信息,将所述拍摄的照片发送给对应的第二终端。
结合本发明实施例的第八方面的第三种实现方式到第八方面的第六种实现方式,在本发明实施例的第八方面的第七种实现方式中,所述接收单元还用于接收所述第四终端发送的获取所述第二终端的用户肖像信息和地址信息的请求;
所述发送单元还用于将所述第二终端的用户肖像信息和地址信息发送给所述第四终端;
所述接收单元还用于接收所述第四终端发送的照片。
结合本发明实施例的第八方面到第八方面的第七种实现方式,在本发明实施例的第八方面的第八种实现方式中,所述发送单元还用于将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
本发明实施例第九方面提供了一种终端,包括:
获取单元,用于获取与所述终端在同一个照片分享群组内的第二终端的地址信息;
第一确定单元,用于确定自身待分享的照片目录;
生成单元,用于对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
发送单元,用于向第二终端发送所述关联人脸基准图片,以使得所述第二终端选择自身对应的关联人脸基准图片,并向所述第一终端返回关联人脸基准图片选择信息;
接收单元,用于接收所述第二终端返回的关联人脸基准图片选择信息;
第二确定单元,用于根据所述关联人脸基准图片选择信息,确定所述第二终端对应的照片子目录;
所述发送单元还用于将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
结合本发明实施例的第九方面,在本发明实施例的第九方面的第一种实现方式中,所述终端还包括:
创建单元,用于创建照片分享群组;
所述接收单元还用于接收所述第二终端发送的加入所述照片分享群组的请求;
所述发送单元还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
结合本发明实施例的第九方面的第一种实现方式,在本发明实施例的第九方面的第二种实现方式中,所述终端还包括:
建立单元,用于在所述创建单元创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
结合本发明实施例的第九方面到第九方面的第二种实现方式,在本发明实施例的第九方面的第三种实现方式中,所述接收单元还用于接收所述第三终端发送的关联基准人脸图片;
所述发送单元还用于选择与自身对应的关联基准人脸图片,并向所述第三终端返回关联基准人脸图片选择信息;
所述接收单元还用于接收所述第三终端发送的照片。
结合本发明实施例的第九方面到第九方面的第三种实现方式,在本发明实施例的第九方面的第四种实现方式中,所述发送单元还用于将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
本发明实施例第十方面提供了一种终端,包括:
建立单元,用于与第二终端建立连接;
获取单元,用于拍摄所述第二终端用户的照片,获得第二终端的用户肖像信息;
第一确定单元,用于确定自身待分享的照片目录;
第二确定单元,用于根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与所述第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片;
发送单元,用于将所述第二终端对应的照片发送给所述第二终端。
结合本发明实施例的第十方面,在本发明实施例的第十方面的第一种实现方式中,所述建立单元具体用于通过NFC触碰建立Wi-Fi连接或蓝牙连接。
结合本发明实施例的第十方面,在本发明实施例的第十方面的第二种 实现方式中,所述建立单元具体用于通过声波建立Wi-Fi连接或蓝牙连接。
结合本发明实施例的第十方面至第十方面的第二种实现方式,在本发明实施例的第十方面的第三种实现方式中,所述发送单元还用于将所述待分享的照片中与所述第二终端无对应关系的照片,发送给所述第二终端。
从以上技术方案可以看出,本发明实施例具有以下优点:
本发明实施例通过照片分享群组内终端对各终端待分享的照片进行图像分析,确定待分享的照片对应的终端,并分发给对应的终端,由于加入照片分享群组的终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
附图说明
图1为本发明实施例中分发照片的方法的一个实施例示意图;
图2为本发明实施例中分发照片的方法的另一个实施例示意图;
图3为本发明实施例中分发照片的方法的另一个实施例示意图;
图4为本发明实施例中分发照片的方法的另一个实施例示意图;
图5为本发明实施例中分发照片的方法的另一个实施例示意图;
图6为本发明实施例中分发照片的方法的另一个实施例示意图;
图7为本发明实施例中分发照片的方法的另一个实施例示意图;
图8为本发明实施例中分发照片的方法的另一个实施例示意图;
图9为本发明实施例中分发照片的方法的另一个实施例示意图;
图10为本发明实施例中分发照片的方法的另一个实施例示意图;
图11为本发明实施例中分发照片的方法的另一个实施例示意图;
图12为本发明实施例中分发照片的方法的另一个实施例示意图;
图13为本发明实施例中分发照片的方法的另一个实施例示意图;
图14为本发明实施例中分发照片的方法的另一个实施例示意图;
图15为本发明实施例中分发照片的方法的另一个实施例示意图;
图16为本发明实施例中分发照片的方法的另一个实施例示意图;
图17为本发明实施例中分发照片的方法的另一个实施例示意图;
图18为本发明实施例中分发照片的方法的另一个实施例示意图;
图19为本发明实施例中的终端的一个实施例示意图;
图20为本发明实施例中的终端的另一个实施例示意图;
图21为本发明实施例中的终端的另一个实施例示意图;
图22为本发明实施例中的终端的另一个实施例示意图;
图23为本发明实施例中的终端的另一个实施例示意图;
图24为本发明实施例中的终端的另一个实施例示意图;
图25为本发明实施例中的终端的另一个实施例示意图;
图26为本发明实施例中的终端的另一个实施例示意图;
图27为本发明实施例中的终端的另一个实施例示意图;
图28为本发明实施例中的终端的另一个实施例示意图。
具体实施方式
本发明实施例提供了一种分发照片的方法及终端,实现了照片的智能化分发,简单快捷高效。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二” 等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
请参阅图1,本发明实施例中分发照片的方法的一个实施例包括:
101、照片分享群组内的第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,如果大家的终端都加入了同一个照片分享群组,加入了照片分享群组的终端间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端将自身的用户肖像信息和地址信息直接发送给第一终端,也可以是第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
102、第一终端获取分享终端建立的待分享照片的第一索引信息;
所述分享终端包括所述第一终端和所述分享群组内的第三终端中的至少之一,第三终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
照片分享群组内需要照片分享的分享终端,会根据要待分享的照片建立第一索引信息,第一终端可以获取照片分享群组内的分享终端建立的第一索引信息,第一索引信息中可以包括所述照片信息和建立索引信息的终 端的地址信息等,所述照片信息可以包括照片项数、各照片ID、各照片路径等,具体此处不作限定。
103、第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端;
第一终端在获取到第一索引信息后,会对第一索引信息进行分割,得到N个第二索引信息,然后将第二索引信息分配给照片分享群组内的N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述第一终端,所述N≥2。
104、第一终端将所述第二终端的用户肖像信息和地址信息发送给所述处理终端。
第一终端将第二终端的用户肖像信息和地址信息发送给所述处理终端,可以使得所述处理终端根据分配的第二索引信息及所述第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片并发送给第二终端,当第二终端只有一个终端时,确定与第二终端的用户肖像信息匹配的照片并发送给该第二终端,当第二终端中有多个终端时,确定与第二终端中各终端的用户肖像信息匹配的照片并发送给对应的终端。
本实施例中通过照片分享群组内终端对需要各终端待分享的照片进行图像分析,确定待分享的照片对应的终端,并将照片分发给对应的终端,由于加入照片分享群组的终端,可以对第二索引信息中对应的照片进行人脸识别,并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
图1所示的实施例中,在照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,第一终端可以创建一个照片分享群组,其他需要分享照片的终端加入这个照片分享群组,下面以一具体实施例作出说明,请参与图2,本发明实施例中分发照片的方法的另 一个实施例包括:
201、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址信息等,此处不作限定。
202、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
203、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息的响应消息。
若步骤201中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤201~203中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤202,203中类似,此处不作赘述。
204、照片分享群组内的第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息;
照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息,第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,若第一终端在创建照片分享群组时,建立了临时缓冲区,则第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,若第一终端在创建照片分享群组时,没有建立临时缓冲区,此时也可以创建一个临时缓冲区,将第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,在实际应用中,不创建临时缓冲区也是可行的,此处不作具体限定。
本实施例中,地址信息可以是IP地址信息或者MAC地址信息,此处不作限定。
205、第一终端获取分享终端建立的待分享照片的第一索引信息;
所述分享终端包括所述第一终端和所述分享群组内的第三终端中的至少之一,照片分享群组内需要照片分享的分享终端,会根据要待分享的照片建立第一索引信息,第一终端可以获取照片分享群组内的分享终端建立的第一索引信息。
需要说明的是,第三终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
206、第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端;
第一终端再获取到第一索引信息后,会对第一索引信息进行分割,得到N个第二索引信息,然后将第二索引信息分配给照片分享群组内的N个 处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述第一终端,所述N≥2。
本实施例中,第二索引信息中可以包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径。
需要说明的是,第四终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
207、第一终端将第二终端的用户肖像信息和地址信息发送给所述处理终端。
第一终端将第二终端的用户肖像信息和地址信息发送给所述处理终端,可以使得处理终端根据分配的第二索引信息及第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片并发送给第二终端,当第二终端只有一个终端时,确定与第二终端的用户肖像信息匹配的照片并发送给该第二终端,当第二终端中有多个终端时,确定与第二终端中各终端的用户肖像信息匹配的照片并发送给对应的终端,例如当第二终端中包括终端A、终端B、终端C,处理终端分别确定与终端A、终端B、终端C的用户肖像信息匹配的照片,把与终端A的用户肖像信息匹配的照片发送给终端A,把与终端B的用户肖像信息匹配的照片发送给终端B,把与终端C的用户肖像信息匹配的照片发送给终端C。
本实施例中,在处理终端不多时,为了提高处理照片的效率,处理终端也可以包括第一终端,如包括第一终端和第四终端,此时处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端包括:第一终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;第一终端根据所 述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
可以理解的是,在实际应用中,当能够进行人脸识别的处理终端能力足够时,第一终端也可以不参与索引信息的处理,即处理终端中不包括第一终端,此处不作限定。
需要说明的是,本实施例中,第一终端可以直接将第二终端的用户肖像信息和地址信息发送给处理终端,也可以是第一终端接收处理终端发送的获取第二终端的用户肖像信息和地址信息的请求后,将第二终端的用户肖像信息和地址信息发送给处理终端,此处不作具体限定。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端、第三终端、第四终端在本发明中也可以为一个或多个‘从(slave)终端’。
本实施例中通过照片分享群组内终端对需要各终端待分享的照片进行图像分析,确定待分享的照片对应的终端,并分发给对应的终端,由于加入照片分享群组的终端,可以对第二索引信息中对应的照片进行人脸识别,并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效;
其次,第一终端还可以创建照片分享群组,使实现方式更加多样化。
图1或图2所示的实施例中,第一终端也可能分享照片,即分享终端中包括第一终端,下面以分享终端中包括第一终端的实施例作出详细介绍,请参阅图3,本发明实施例中分发照片的方法的另一个实施例包括:
301、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区 别信息,该照片分享群组还可以根据第一终端的位置信息展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
302、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
303、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息, 第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息的响应消息。
若步骤301中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤301~303中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤302,303中类似,此处不作赘述。
304、照片分享群组内的第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息;
照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息,第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人 脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,若第一终端在创建照片分享群组时,建立了临时缓冲区,则第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,若第一终端在创建照片分享群组时,没有建立临时缓冲区,此时也可以创建一个临时缓冲区,将第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,在实际应用中,不创建临时缓冲区也是可行的,此处不作具体限定。
305、第一终端确定待分享的照片目录,并根据所述照片目录建立第三索引信息;
本实施例中,第一终端中有需要待分享的照片,因此,第一终端侧,会确定需要待分享的照片目录,根据照片目录建立第三索引信息,该第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径等。
306、第一终端获取所述第三索引信息;
第一终端可以获取自身建立的第一索引信息。
需要说明的是,分享终端可以是照片分享群组内的一个或多个终端,也可以包括第一终端,本实施例中,以分享终端包括第一终端为例,此时第一终端获取照片分享群组内的第三终端建立的第一索引信息即包括:第一终端获取所述第三索引信息。
可以理解的是,当照片分享群组内还有其他终端分享照片时,如分享终端包括第三终端时,第一终端获取分享终端建立的待分享照片的第一索引信息还可以包括:所述第一终端获取所述分享群组内所述第三终端建立的第四索引信息,此处不作限定,其中,第三终端为除第一终端外的终端,第三终端可以是一个或多个,第四索引信息中也可以包括所述照片信息和 所述第三终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径。
307、第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端;
第一终端再获取到第一索引信息后,会对第一索引信息进行分割,得到N个第二索引信息,然后将第二索引信息分配给照片分享群组内的N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述第一终端,所述N≥2。
本实施例中,第二索引信息中可以包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径。
需要说明的是,第四终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
308、第一终端将所述第二终端的用户肖像信息和地址信息发送给所述处理终端。
第一终端将第二终端的用户肖像信息和地址信息发送给所述处理终端,可以使得所述处理终端根据分配的第二索引信息及所述第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片并发送给第二终端,当第二终端只有一个终端时,确定与第二终端的用户肖像信息匹配的照片并发送给该第二终端,当第二终端中有多个终端时,确定与第二终端中各终端的用户肖像信息匹配的照片并发送给对应的终端。
本实施例中,在处理终端不多时,为了提高处理照片的效率,处理终端也可以包括第一终端,如包括第一终端和第四终端,此时处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端包括:第一终端根据所述第二索引信息及 所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;第一终端根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
可以理解的是,在实际应用中,当能够进行人脸识别的处理终端能力足够时,第一终端也可以不参与索引信息的处理,即处理终端中不包括第一终端,此处不作限定。
需要说明的是,本实施例中,第一终端可以直接将第二终端的用户肖像信息和地址信息发送给处理终端,也可以是第一终端接收处理终端发送的获取第二终端的用户肖像信息和地址信息的请求后,将第二终端的用户肖像信息和地址信息发送给处理终端,此处不作具体限定。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端、第三终端、第四终端在本发明中也可以为一个或多个‘从(slave)终端’。
本实施例中在图2所示的实施例的基础上,详细描述了第一终端分享照片时的具体场景,使实现方式更加多样化。
图1至图3中所示实施例中,第一终端将第一索引信息分割后得到第二索引信息,并将第二索引信息分配给所述分享群组内的第四终端有多种实现方式,下面结合具体实施例作出说明:
一、所述第一终端将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端;
请参阅图4,本发明实施例中分发照片的方法的另一个实施例包括:
401、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
402、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
403、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时 则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息的响应消息。
若步骤401中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤401~403中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤402,403中类似,此处不作赘述。
404、照片分享群组内的第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息;
照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息,第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用 户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,若第一终端在创建照片分享群组时,建立了临时缓冲区,则第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,若第一终端在创建照片分享群组时,没有建立临时缓冲区,此时也可以创建一个临时缓冲区,将第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,在实际应用中,不创建临时缓冲区也是可行的,此处不作具体限定。
405、第一终端获取分享终端建立的待分享照片的第一索引信息;
所述分享终端包括所述第一终端和所述分享群组内的第三终端中的至少之一,照片分享群组内需要照片分享的分享终端,会根据要待分享的照片建立第一索引信息,第一终端可以获取照片分享群组内的分享终端建立的第一索引信息,
需要说明的是,第三终端可以是照片分享群组内的一个或多个终端,与照片分享群组中的分享终端对应的,第一索引信息包括一个或多个索引信息,例如,分享终端包括第一终端,则第一终端获取分享终端建立的待分享照片的第一索引信息可以包括:第一终端确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;第一终端获取所述第三索引信息,当分享终端中包括第一终端时,具体可以参照图3所示实施例中的具体过程。
如分享终端包括第三终端,则第一终端获取分享终端建立的待分享照 片的第一索引信息包括:第一终端获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
406、第一终端将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端;
本实施例中,第二索引信息中包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径。
其中,N为处理终端的终端数目,第一终端获取照片分享群组内的分享终端建立的第一索引信息,会将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端,当第一索引信息中包括多个索引信息时,可以分别对每个索引信息平均分割成N份后,分别分配给N个处理终端,也可以一次对多个索引信息统计总的照片项数,对第一索引信息一次平均分割成N份得到N个第二索引信息,并将N个第二索引信息分别分配给N个处理终端,此处不作具体限定。
需要说明的是,处理终端可以是照片分享群组内的一个或多个终端,也可以包括第一终端,此处不作具体限定。
407、第一终端将所述第二终端的用户肖像信息和地址信息发送给所述处理终端。
第一终端将第二终端的用户肖像信息和地址信息发送给所述处理终端,可以使得所述处理终端根据分配的第二索引信息及所述第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片并发送给第二终端,当第二终端只有一个终端时,确定与第二终端的用户肖像信息匹配的照片并发送给该第二终端,当第二终端中有多个终端时,确定与第二终端中各终端的用户肖像信息匹配的照片并发送给对应的终端。
本实施例中,在处理终端不多时,为了提高处理照片的效率,处理终端也可以包括第一终端,如包括第一终端和第四终端,此时处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端包括:第一终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;第一终端根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
可以理解的是,在实际应用中,当能够进行人脸识别的处理终端能力足够时,第一终端也可以不参与索引信息的处理,即处理终端中不包括第一终端,此处不作限定。
需要说明的是,本实施例中,第一终端可以直接将第二终端的用户肖像信息和地址信息发送给处理终端,也可以是第一终端接收处理终端发送的获取第二终端的用户肖像信息和地址信息的请求后,将第二终端的用户肖像信息和地址信息发送给处理终端,此处不作具体限定。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端、第三终端、第四终端在本发明中也可以为一个或多个‘从(slave)终端’。
二、第一终端分别获取所述N个处理终端发送的终端处理能力信息;根据所述N个处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端;
请参阅图5,本发明实施例中分发照片的方法的另一个实施例包括:
501、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
502、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
503、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向 第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息的响应消息。
若步骤501中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤501~503中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤502,503中类似,此处不作赘述。
504、照片分享群组内的第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息;
照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息,第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人 脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,若第一终端在创建照片分享群组时,建立了临时缓冲区,则第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,若第一终端在创建照片分享群组时,没有建立临时缓冲区,此时也可以创建一个临时缓冲区,将第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,在实际应用中,不创建临时缓冲区也是可行的,此处不作具体限定。
505、第一终端获取分享终端建立的待分享照片的第一索引信息;
所述分享终端包括所述第一终端和所述分享群组内的第三终端中的至少之一,照片分享群组内需要照片分享的分享终端,会根据要待分享的照片建立第一索引信息,第一终端可以获取照片分享群组内的分享终端建立的第一索引信息,
需要说明的是,第三终端可以是照片分享群组内的一个或多个终端,与照片分享群组中的分享终端对应的,第一索引信息包括一个或多个索引信息,例如,分享终端包括第一终端,则第一终端获取分享终端建立的待分享照片的第一索引信息可以包括:第一终端确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;第一终端获取所述第三索引信息,当分享终端中包括第一终端时,具体可以参照图3所示实施例中的具体过程。
如分享终端包括第三终端,则第一终端获取分享终端建立的待分享照片的第一索引信息包括:第一终端获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
506、第一终端分别接收所述处理终端发送的终端处理能力信息;
在进行索引信息分配前,第一终端会接收各处理终端发送的终端处理能力信息,处理终端发送终端处理能力信息可以是各处理终端主动发送,也可以是第一终端确定可以进行人脸识别的处理终端后,向处理终端发送获取该处理终端处理能力信息的请求后,该处理终端接收到该请求后,向第一终端发送自身终端处理能力信息。
需要说明的是,处理终端处理能力信息可以是处理终端的各种信息,如内存大小,CPU计算能力,终端剩余电量、存储空间大小等中的一个或多个,此处不作限定,处理终端可以是照片分享群组内的一个或多个终端,也可以包括第一终端,在条件允许的情况下,尽量多的处理终端能够提高处理效率,此处不作具体限定。
507、第一终端根据所述处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端;
本实施例中,第二索引信息中包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径。
其中,N为处理终端的终端数目,第一终端获取照片分享群组内的分享终端建立的第一索引信息,会根据第一索引信息中的照片信息中的照片项数,按所述N个处理终端的终端处理能力信息对第一索引信息进行分割成N份后得到第二索引信息,当第一索引信息中包括多个索引信息时,可以分别对每个索引信息按所述N个处理终端的终端处理能力信息分割成N份后,分别分配给各处理终端,例如,根据终端A、终端B、终端C的终 端处理能力信息,确定终端A可以处理的照片项数为25,终端B可以处理的照片项数为20,终端C可以处理的照片项数为30,即可以将第一索引信息中的一个照片总项数为75的索引信息分割为照片项数为25,20,30的三份,当该索引信息中照片总项数超过处理终端所能处理的照片项数时,可以进行多次分配,如上例中照片总项数为90,则可以先将索引信息分割出25,20,30三份,完成人脸识别后,再将剩下的索引信息分配给还能继续进行分配的终端,当第一索引信息中照片总项数小于处理终端所能处理的照片项数时,可以尽量按照终端处理能力信息等比例均衡分配。
可以理解的是,本实施例中也可以一次对多个索引信息统计总的照片项数,对第一索引信息进行一次按所述N个处理终端的终端处理能力信息分割成N份得到第二索引信息,并将第二索引信息分配给各处理终端,例如,第一索引信息中包括第三索引信息、第四索引信息,假设第一索引信息中照片项数为20,第二索引信息中照片项数为25,可以根据照片项数的总数45,统一分割索引信息,此处不作具体限定。
508、第一终端将所述第二终端的用户肖像信息和地址信息发送给所述处理终端。
第一终端将第二终端的用户肖像信息和地址信息发送给所述处理终端,可以使得所述处理终端根据分配的第二索引信息及所述第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片并发送给第二终端,当第二终端只有一个终端时,确定与第二终端的用户肖像信息匹配的照片并发送给该第二终端,当第二终端中有多个终端时,确定与第二终端中各终端的用户肖像信息匹配的照片并发送给对应的终端。
本实施例中,在处理终端不多时,为了提高处理照片的效率,处理终端也可以包括第一终端,如包括第一终端和第四终端,此时处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中 对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端包括:第一终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;第一终端根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
可以理解的是,在实际应用中,当能够进行人脸识别的处理终端能力足够时,第一终端也可以不参与索引信息的处理,即处理终端中不包括第一终端,此处不作限定。
需要说明的是,本实施例中,第一终端可以直接将第二终端的用户肖像信息和地址信息发送给各处理终端,也可以是第一终端接收各处理终端发送的获取第二终端的用户肖像信息和地址信息的请求后,将第二终端的用户肖像信息和地址信息发送给各处理终端,此处不作具体限定。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端、第三终端、第四终端在本发明中也可以为一个或多个‘从(slave)终端’。
图4、图5的所示的实施例中,详细描述了第一终端将第一索引信息分割后得到第二索引信息,并将第二索引信息分配给所述分享群组内的第四终端的多种实现方式,使实现方式更加多样化。
图1至图5所示的实施例中,处理终端也可以包括第一终端,下面结合一具体实施例进行详细描述,请参阅图6,本发明实施例中分发照片的方法的另一个实施例包括:
601、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创 建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
602、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
603、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为 了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息的响应消息。
若步骤601中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤601~603中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤602,603中类似,此处不作赘述。
604、照片分享群组内的第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息;
照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息,第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端 设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,若第一终端在创建照片分享群组时,建立了临时缓冲区,则第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,若第一终端在创建照片分享群组时,没有建立临时缓冲区,此时也可以创建一个临时缓冲区,将第一终端获取的照片分享群组内的第二终端的用户肖像信息和地址信息可以保存在该临时缓冲区,在实际应用中,不创建临时缓冲区也是可行的,此处不作具体限定。
605、第一终端获取分享终端建立的待分享照片的第一索引信息;
所述分享终端包括所述第一终端和所述分享群组内的第三终端中的至少之一,照片分享群组内需要照片分享的分享终端,会根据要待分享的照片建立第一索引信息,第一终端可以获取照片分享群组内的分享终端建立的第一索引信息。
需要说明的是,第三终端可以是照片分享群组内的一个或多个终端,与照片分享群组中的分享终端对应的,第一索引信息包括一个或多个索引信息,例如,分享终端包括第一终端,则第一终端获取分享终端建立的待分享照片的第一索引信息可以包括:第一终端确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;第一终端获取所述第三索引信息,当分享终端中包括第一终端时,具体可以参照图3所示实施例中的具体过程。
如分享终端包括第三终端,则第一终端获取分享终端建立的待分享照片的第一索引信息包括:第一终端获取所述分享群组内所述第三终端建立 的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
606、第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端;
本实施例中,第四终端中,包括第一终端,第一终端再获取到第一索引信息后,会对第一索引信息进行分割,得到N个第二索引信息,然后将第二索引信息分配给照片分享群组内的N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述第一终端,所述N≥2。
本实施例中,第二索引信息中也包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径。
第一终端将第一索引信息分割后得到第二索引信息,并将第二索引信息分配给照片分享群组内的处理终端的实现方式可以参照图4及图5所示的实施例中的实现方法,此处不作赘述。
607、第一终端将所述第二终端的用户肖像信息和地址信息发送给所述处理终端;
第一终端将第二终端的用户肖像信息和地址信息发送给所述处理终端,可以使得所述处理终端根据第二索引信息及所述第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片并发送给第二终端,当第二终端只有一个终端时,确定与第二终端的用户肖像信息匹配的照片并发送给该第二终端,当第二终端中有多个终端时,确定与第二终端中各终端的用户肖像信息匹配的照片并发送给对应的终端。
需要说明的是,本实施例中,第一终端可以直接将第二终端的用户肖像信息和地址信息发送给各处理终端,也可以是第一终端接收各处理终端发送的获取第二终端的用户肖像信息和地址信息的请求后,将第二终端的 用户肖像信息和地址信息发送给各处理终端,此处不作具体限定。
608、第一终端根据分配的第二索引信息及第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片;
本实施例中,处理终端中包括第一终端,因此第一终端也分配了第二索引信息给自身,第一终端根据分配给自身的第二索引信息及第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片。
本实施例中,第一终端根据分配的第二索引信息及第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片可以包括:
(1)第一终端根据分配的第二索引信息从分享终端获取任务照片副本;
由于分配的第二索引信息中也包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径,因此第一终端可以根据分配给自身的第二索引信息,确定自身需要分析的照片,获知需要分享的每张照片的照片源终端,即分享该照片的分享终端,分享终端可以为一个或多个,如包括第一终端或第三终端的至少一个,第三终端也可以为多个,知道分享终端的地址信息,根据索引信息中分享终端的地址信息可以从分享终端获取任务照片副本。
(2)第一终端将每个任务照片副本与第二终端的用户肖像信息进行图像人脸识别,确定与第二终端的用户肖像信息匹配的照片;
当处理终端中包括第一终端时,第一终端也分配了第二索引信息给自身,第一终端根据分配给自身的第二索引信息及第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片,当第二终端只有一个终端时,确定与该第二终端的用户 肖像信息匹配的照片,当第二终端中有多个终端时,分别确定与第二终端中各终端的用户肖像信息匹配的照片。
上面以第一终端从分享终端获取任务照片副本为例,获取的任务照片副本,可以是照片的缩略图或者压缩图片,需要说明的是,在网络传输速度快,终端处理能力和存储能力足够的情况下,也可以是获取原图进行人脸识别,此处不作限定。
(3)、第一终端根据第二终端的地址信息,将与第二终端的用户肖像信息匹配的照片发送给第二终端。
当第二终端只有一个终端时,确定与第二终端的用户肖像信息匹配的照片并发送给该第二终端,当第二终端中有多个终端时,确定与第二终端中各终端的用户肖像信息匹配的照片并发送给对应的终端。
需要说明的是,第一终端还可以将与第二终端的用户肖像信息不匹配的照片发送给第二终端,当第二终端包括一个终端时,第一终端将与该第二终端的用户肖像信息不匹配的照片发送给该第二终端;当第二终端中包括多个终端时,第一终端将与第二终端中所有终端的用户肖像信息都不匹配的照片分别发送给第二终端中的多个终端,此处不作具体限定。
609、第一终端根据第二终端的地址信息,将与第二终端的用户肖像信息匹配的照片发送给第二终端。
当第二终端只有一个终端时,第一终端将与第二终端的用户肖像信息匹配的照片发送给该第二终端,当第二终端中有多个终端时,第一终端将与第二终端中各终端的用户肖像信息匹配的照片发送给对应的终端。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端、第三终端、第四终端在本发明中也可以为一个或多个‘从(slave)终端’。
本实施例中通过照片分享群组内终端对需要各终端待分享的照片进行人脸识别,确定待分享的照片对应的终端,并分发给对应的终端,由于加入照片分享群组的终端,可以自动对分享群组内需要待分享的照片进行人脸识别并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效;
其次,本实施例中,第一终端也参与进行人脸识别,使得对待分享的照片图像分析进行的更快。
下面从另一侧(第四终端侧)来描述本发明实施例中分发照片的方法,请参阅图7,本发明实施例中分发照片的方法的另一个实施例包括:
701、照片分享群组内的第四终端接收所述分享群组内的第一终端发送的第二索引信息;
如图1至图6所示的实施例中,第一终端获取照片分享群组内的分享终端建立的第一索引信息后,会将第一索引信息分割为N个第二索引信息,并将第二索引信息分配给照片分享群组的N个处理终端,其中,所述处理终端包括所述分享群组内的第四终端,所述第二索引信息为待分享照片的第一索引信息的一部分,即所述第二索引信息为第一索引信息分割后的N个第二索引信息中的一个;
702、第四终端接收第一终端发送的第二终端的用户肖像信息和地址信息;
第一终端向第四终端发送第二索引信息后,会向第一终端会向第四终端发送第二终端的用户肖像信息和地址信息。
703、第四终端根据第二索引信息及第二终端的用户肖像信息对第二索引信息中对应的照片进行人脸识别,确定与第二终端的用户肖像信息匹配的照片;
第四终端根据第一终端分配给自身的第二索引信息及第二终端的用户肖像信息进行人脸识别,确定与第二终端的用户肖像信息匹配的照片,当 第二终端只有一个终端时,第一终端确定与该第二终端的用户肖像信息匹配的照片,当第二终端中有多个终端时,第一终端分别确定与第二终端中各终端的用户肖像信息匹配的照片。
704、第四终端根据第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
当第二终端只有一个终端时,第一终端将与第二终端的用户肖像信息匹配的照片发送给该第二终端,当第二终端中有多个终端时,第一终端将与第二终端中各终端的用户肖像信息匹配的照片发送给对应的终端。
本实施例中,第四终端根据第一终端分配的第二索引信息,进行人脸识别,实现了照片的智能化分发,简单快捷高效。
图7所示的实施例中,第一终端根据所述第二索引信息及第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片有多种实现方式,下面结合一具体实施例作出详细说明,请参阅图8,本发明实施例中分发照片的方法的另一个实施例包括:
801、照片分享群组内的第四终端接收所述分享群组内的第一终端发送的第二索引信息;
如图1至图6所示的实施例中,第一终端获取照片分享群组内的分享终端建立的第一索引信息后,会将第一索引信息分割为N个第二索引信息,并将第二索引信息分配给照片分享群组的N个处理终端,其中,所述处理终端包括所述分享群组内的第四终端,所述第二索引信息为待分享照片的第一索引信息的一部分,即所述第二索引信息为第一索引信息分割后的N个第二索引信息中的一个;
本实施例中,第二索引信息中包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径。
802、第四终端接收第一终端发送的第二终端的用户肖像信息和地址信息;
第一终端向第四终端发送第二索引信息后,会向第一终端会向第四终端发送第二终端的用户肖像信息和地址信息。
第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息,第一终端向第四终端发送第二终端的用户肖像信息和地址信息的方式可以是,第一终端将第二终端的用户肖像信息和地址信息直接发送给第四终端,也可以是第四终端向第一终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第四终端,此处不作具体限定。
本实施例中,地址信息可以是IP地址信息或者MAC地址信息,此处不作限定。
803、第四终端根据分配的第二索引信息从分享终端获取任务照片副本;
由于分配的第二索引信息中也包括照片信息和分享终端的地址信息,所述照片信息包括照片项数、各照片ID、各照片路径,因此第四终端可以根据第一终端分配的第二索引信息,获知需要分享的每张照片的分享终端,根据索引信息中分享终端的地址信息可以从分享终端获取任务照片副本,根据索引信息中分享终端的地址信息可以从分享终端获取任务照片副本。
804、第四终端将每个任务照片副本与第二终端的用户肖像信息进行人脸识别,确定与第二终端的用户肖像信息匹配的照片;
第四终端根据每个任务照片副本及第二终端的用户肖像信息进行人脸识别,确定与第二终端的用户肖像信息匹配的照片,当第二终端只有一个终端时,第一终端确定与该第二终端的用户肖像信息匹配的照片,当第二终端中有多个终端时,第一终端分别确定与第二终端中各终端的用户肖像信息匹配的照片。
本实施例中以第四终端从分享终端获取任务照片副本为例,获取的任务照片副本,可以是照片的缩略图或者压缩图片,需要说明的是,在网络 传输速度快,终端处理能力和存储能力足够的情况下,也可以是获取原图进行人脸识别,此处不作限定。
805、第四终端根据第二终端的地址信息,将与第二终端的用户肖像信息匹配的照片发送给第二终端。
当第二终端只有一个终端时,第一终端将与第二终端的用户肖像信息匹配的照片发送给该第二终端,当第二终端中有多个终端时,第一终端将与第二终端中各终端的用户肖像信息匹配的照片发送给对应的终端。
需要说明的是,第四终端还可以将与第二终端的用户肖像信息不匹配的照片发送给第二终端,当第二终端包括一个终端时,第四终端将与第二终端的用户肖像信息不匹配的照片发送给该第二终端;当第二终端中包括多个终端时,第四终端将第二终端中所有终端的用户肖像信息都不匹配的照片分别发送给第二终端中的多个终端,此处不作具体限定。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端、第三终端、第四终端在本发明中也可以为一个或多个‘从(slave)终端’。
本实施例中,第四终端根据第一终端分配的第二索引信息,进行人脸识别,实现了照片的智能化分发,简单快捷高效;其次对第四终端进行图像进行了详细描述,使实现方式更加多样化。
为便于理解,下面实施例以一具体应用场景对上述实施例中描述的分发照片的方法进行详细描述,具体的:
外出旅游的用户A、用户B、用户C各带了一个终端,分别为终端A、终端B、终端C,旅游玩后,他们分别用终端A、终端B、终端C拍摄了许多照片,在需要分享照片时,利用终端A创建了一个照片分享群组,该分享群组设置有一个名称“旅游分享”,还设置了一个群组头像,并将群组名 称即头像告知用户B、用户C;
终端B、终端C可以分别根据定位装置搜索附近的照片分享群组,在照片分享群组的搜索结果列表中,根据群组名称和头像找到终端A创建的照片分享群组,点击加入,此时终端B、终端C会向终端A发送加入照片分享群组的请求,终端A分别向终端B、终端C返回同意加入的响应消息,此时终端B、终端C,即加入照片分享群组;
或者也可以是终端A根据群组信息,如群组名称等生成二维码,终端A利用网络或各种即时通信工具等将生成的二维码发送给终端B及终端C,让终端B及终端C进行扫描,或者在网络上展现给终端B及终端C,让它们进行扫描,亦或者直接用户A、用户B、用户C直接聚集在一起,终端A将二维码直接展现给终端B、终端C扫描,终端B及终端C根据上述方式之一扫描终端A生成的二维码后,此时终端B、终端C会向终端A发送加入照片分享群组的请求,终端A分别向终端B、终端C返回同意加入的响应消息,此时终端B、终端C,即加入照片分享群组;
假设终端A首先会获取照片分享群组内所有终端的用户肖像信息和IP地址信息,终端A获取终端B、终端C的用户肖像信息和IP地址信息,终端A获取照片分享群组内的终端B、终端C的用户肖像信息和IP地址信息的方式可以是,终端B、终端C加入照片分享群组后,将自身的用户肖像信息和IP地址信息直接发送给终端A,也可以是在终端B、终端C加入照片分享群组后,终端A向终端B及终端C发送获取它们的用户肖像信息和IP地址信息的请求,然后终端B、终端C将自身的用户肖像信息和IP地址信息发送给终端A,此处不作具体限定。
假设此时终端A、终端B、终端C中均有待分享的照片(即上述实施例中分享终端包括终端A、终端B、终端C),此时终端A、终端B、终端C中会根据需要待分享的照片建立索引信息A、索引信息B、索引信息C,各索引信息中包括该终端的IP地址信息以及照片信息,照片信息中包括待 分享的照片项数,照片ID和照片路径;
此时,终端B、终端C分别将建立的索引信息B、索引信息C发送到终端A,终端A根据接收到索引信息B、索引信息C,以及从自身获取的索引信息A,对它们进行分割,分割的策略可以是对每一个索引信息按索引信息中的照片项数分开分割,即分别对索引信息A、索引信息B、索引信息C分割三次,也可以将三个索引信息一次进行分割;
分割的具体方式可以是根据三个终端中可以进行图像分析的终端个数分成几份,如三个终端均参加分割,则分成三份,分割可以是按照片项数平均分割,如索引信息A中照片项数为90项,对索引信息进行平均分割后得到三份每个包括30项照片项数的索引信息,如果是一次进行分割,假设索引信息A中照片项数为90项,索引信息B中照片项数为60项,索引信息C中照片项数为30项,则按(30+60+90)÷3=60,即终端A分割给照片分享群组内的每个终端的索引信息包括60张照片分析任务;
索引信息的分割也可以是按终端的处理能力进行分割,如在分割前,终端B、终端C将自身的CPU处理能力信息(如内存大小,剩余电量、存储空间大小等一个或多个)发送给终端A,终端A根据预先设定的判断标准判断终端B、终端C应该可以处理的照片项数(如内存容量2GB,电量剩余80%最多处理100张图片分析任务),终端A也可以判断自身可以处理的照片项数,终端A根据这三个终端的处理能力来分配索引信息,在这三个终端的能处理的总的照片项数超过这三个终端待分享的照片总数时,可以对三个索引信息一次分割,如三个终端的最多能处理的照片项数都是90项,则分配索引信息时,对每个终端都分配60项照片分析任务;在这三个终端的能处理的总的照片项数没有超过这三个终端待分享的照片总数时,则可以对三个索引信息分开分割,例如对索引信息A平均分割后,分配给各终端,各终端根据分配的索引信息进行图像分析完成后,再依次分割索引信息B,索引信息C等。
假设照片分享群组内的所有终端均参与图像分析任务(即上述实施例中处理终端包括终端A、终端B、终端C),终端A会将获取的终端A、终端B的用户肖像信息和IP地址信息发送终端C,将获取的终端A、终端C的用户肖像信息和IP地址信息发送终端B,终端A可以是主动发送,也可以是接收终端B或者终端C的请求后再发送,此处不作具体限定。
下面以终端B进行图像分析进行说明:终端B接收到终端A、终端C的用户肖像信息和IP地址信息后,再根据终端A分配的索引信息进行图像分析,进行图像分析的步骤可以是:
分配的索引信息中是由终端A建立的,则终端根据分配的此部分索引信息可以确定需要分析的照片,从照片源终端(终端A)获取每张照片的照片副本,照片副本可以是照片的缩略图或者压缩图,终端B将每个任务照片副本分别与终端A、终端B、终端C(此处上述实施例中第二终端分别为终端A、终端B、终端C)的用户肖像信息进行图像人脸匹配分析,分别确定与终端A、终端B、终端C的用户肖像信息匹配的照片,将与终端A、终端C的照片通过它们的IP地址信息分别发送给终端A、终端C,终端B同时获取与自身用户肖像信息匹配的照片,优选的,将所有分析的照片中与终端A、终端B、终端C都不匹配的照片(如风景照、路人照等)可以也都发送给终端A、终端C,终端B自身也可以获取。
图1至图8所示的实施例中是从终端分布式进行图像分析的角度对本发明分发照片的方法进行描述,下面从终端非分布式进行图像分析的角度对发明分发照片的方法进行描述,请参阅图9,本发明实施例中分发照片的方法的另一个实施例包括:
901、照片分享群组内的第一终端获取分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照 片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
902、第一终端根据第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片;
本实施例中,第一终端有需要待分享的照片,第一终端确定自身待分享的照片后,根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片,本实施例中,当第二终端只有一个终端时,第一终端确定与该第二终端的用户肖像信息匹配的照片,当第二终端中有多个终端时,第一终端分别确定与第二终端中各终端的用户肖像信息匹配的照片。
903、第一终端根据第二终端的地址信息,将待分享的照片发送给对应的第二终端。
由于第一终端获取了第二终端的地址信息,当第二终端只有一个终端 时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端的用户肖像信息匹配的照片发送给该第二终端,当第二终端中有多个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端中各终端的用户肖像信息匹配的照片发送给对应的终端。
本发明实施例通过终端对需要自身需要待分享的照片进行图像分析,确定待分享的照片对应的第二终端,并分发给第二终端,由于照片分享群组的第一终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
图1所示的实施例中,在照片分享群组内的第一终端获取所述分享群组内的第二终端的地址信息之前,第一终端可以创建一个照片分享群组,其他需要分享照片的终端加入这个照片分享群组,下面以一具体实施例作出说明,请参与图10,本发明实施例中分发照片的方法的另一个实施例包括:
1001、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息在展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
1002、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
1003、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息响应消息。
若步骤1001中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤1001~1003中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建 的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤1002,1003中类似,此处不作赘述。
1004、照片分享群组内的第一终端获取分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,第二终端的用户肖像信息和地址信息还可以通过NFC、超声波等方式获取,此处不作限定。
1005、第一终端根据第二终端的用户肖像信息对自身待分享的照片进 行图像分析,确定所述待分享的照片中与第二终端对应的照片;
本实施例中,第一终端有需要待分享的照片,第一终端确定自身待分享的照片后,根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片,本实施例中,当第二终端只有一个终端时,第一终端确定与该第二终端的用户肖像信息匹配的照片,当第二终端中有多个终端时,第一终端分别确定与第二终端中各终端的用户肖像信息匹配的照片。
1006、第一终端根据第二终端的地址信息,将待分享的照片发送给对应的第二终端。
由于第一终端获取了第二终端的地址信息,当第二终端只有一个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端的用户肖像信息匹配的照片发送给该第二终端,当第二终端中有多个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端中各终端的用户肖像信息匹配的照片发送给对应的终端。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端在本发明中也可以为一个或多个‘从(slave)终端’。
本发明实施例通过终端对需要自身需要待分享的照片进行图像分析,确定待分享的照片对应的第二终端,并分发给第二终端,由于照片分享群组的第一终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
其次,详细描述了第一终端创建照片分享群组的具体过程,使实现方式更加多样化。
本实施例中,第一终端也可以将所述待分享的照片中无对应第二终端的照片发送给第二终端,当第二终端为一个终端时,将所述待分享的照片中无对应第二终端的照片发送给该终端,当第二终端为多个时,将所述待分享的照片中无对应第二终端的照片分别发送给这多个终端,此处不作限定。
上述实施例中,所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片具体有多种实现方式,下面结合具体实施例作出详细说明,具体如下:
一、第一终端确定自身待分享的照片目录,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,将所述第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,确定与第二终端的用户肖像信息匹配的照片子目录为所述第二终端对应的照片子目录;将所述第二终端对应的照片子目录中的照片发送给所述第二终端
请参阅图11,本发明实施例中分发照片的方法的另一个实施例包括:
1101、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息在展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
1102、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
1103、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息的响应消息。
若步骤1101中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi 热点,与第一终端形成局域网。
需要说明的是,步骤1101~1103中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤1102,1103中类似,此处不作赘述。
1104、照片分享群组内的第一终端获取分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
本实施例中,第二终端的用户肖像信息和地址信息还可以通过NFC、超声波等方式获取,此处不作限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
本实施例中,第二终端的用户肖像信息和地址信息还可以通过NFC、超声波等方式获取,此处不作限定。
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
1105、第一终端确定自身待分享的照片目录;
第一终端有需要待分享的照片,可以确定自身待分享的照片目录;
1106、第一终端对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;;
第一终端确定自身待分享的照片目录后,对该照片目录下的每张图片进行图片分析,如人脸识别、人脸检测,可以对照片中识别出的人脸判断是否匹配,将照片中识别出的人脸匹配的照片生成照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,当照片中识别出多个人脸时,可以将该照片放在对应的多个照片子目录中。
当照片是风景照等无法识别出人脸图像的照片时,可以直接将这类照片聚类生成一个照片子目录,此处不作限定。
1107、第一终端将第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,确定与第二终端的用户肖像信息匹配的照片子目录为所述第二终端对应的照片子目录;
本实施例中,第一终端将第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,当第二终端只有一个终端时,第一终端确定与该第二终端的用户肖像信息匹配的关联人脸基准图片对应的照片子目录为该第二终端对应的照片子目录,当第二终端中有多个终端时,第一终端分别确定与第二终端中各终端的用户肖像信息匹配的照片子目录为对应的照片子目录。
1108、根据所述第二终端的地址信息,将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
由于第一终端获取了第二终端的地址信息,第二终端只有一个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端的用户肖像信息匹配的照片子目录中的照片发送给该第二终端,当第二终端中有多个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端中各终端的用户肖像信息匹配的照片子目录中的照片发送给对应的终端。
本实施例中,第一终端可以在照片子目录无对应第二终端时,将该照片子目录中的照片发送给第二终端,当第二终端为一个终端时,将该照片子目录中的照片发送给该终端,当第二终端为多个时,将该照片子目录中的照片分别发送给这多个终端,此处不作限定。
本实施例中,地址信息可以是IP地址信息或者MAC地址信息,此处不作限定。
本实施例中,在照片分享群组建立后,分享照片的终端(如第一终端)也可以直接将所有待分享的照片一起发送给照片分享群组内的第二终端,而不考虑是否匹配。
第一终端在本发明中也可以称为‘主(master)终端’,第二终端、第三终端、第四终端在本发明中也可以为一个或多个‘从(slave)终端’。
本发明实施例通过终端对需要自身需要待分享的照片进行图像分析,确定待分享的照片对应的第二终端,并分发给第二终端,由于照片分享群组的第一终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
其次,详细描述了第一终端对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片的具体过程,使实现方式更加 多样化。
二、第一终端确定自身待分享的照片目录;第一终端接收所述第二终端的用户肖像信息;第一终端根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片。
请参阅图12,本发明实施例中分发照片的方法的另一个实施例包括:
1201、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息在展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
1202、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找 到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
1203、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息响应消息。
若步骤1201中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤1201~1203中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤1202,1203中类似,此处不作赘述。
1204、照片分享群组内的第一终端获取分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照 片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,第二终端的用户肖像信息和地址信息还可以通过NFC、超声波等方式获取,此处不作限定。
本实施例中,地址信息可以是IP地址信息或者MAC地址信息,此处不作限定。
1205、第一终端确定自身待分享的照片目录;
第一终端有需要待分享的照片,可以确定自身待分享的照片目录;
1206、第一终端根据第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与第二终端对应的照片;
本实施例中,第一终端根据第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,当第二终端只有一个终端时,依次查找所述照片目录 中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与该第二终端对应的照片,当第二终端中有多个终端时,依次查找所述照片目录中与第二终端中各终端的用户肖像信息匹配的照片,确定所述照片目录中与第二终端中各终端对应的照片,查找完成后,即可以确定所述照片目录中与所述第二终端对应的照片。
1207、第一终端根据第二终端的地址信息,将待分享的照片发送给对应的第二终端。
由于第一终端获取了第二终端的地址信息,当第二终端只有一个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端的用户肖像信息匹配的照片发送给该第二终端,当第二终端中有多个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端中各终端的用户肖像信息匹配的照片发送给对应的终端。
本实施例中,第一终端可以将所述待分享的照片中无对应第二终端的照片,发送给第二终端,当第二终端为一个终端时,将所述待分享的照片中无对应第二终端的照片发送给该终端,当第二终端为多个时,将所述待分享的照片中无对应第二终端的照片分别发送给这多个终端,此处不作限定。
三、第一终端创建第二终端对应的照片目录,获取自身拍摄的照片组,根据所述第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,若是,将所述照片组中与第二终端对应的用户肖像信息匹配的照片置于所述第二终端对应的照片目录中,将所述第二终端对应的照片目录中的照片发送给所述第二终端;
请参阅图13,本发明实施例中分发照片的方法的另一个实施例包括:
1301、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创 建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息在展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
1302、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
1303、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为 了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息响应消息。
若步骤1301中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤1301~1303中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤1302,1303中类似,此处不作赘述。
1304、照片分享群组内的第一终端获取分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,第二终端的用户肖像信息和地址信息还可以通过NFC、超声波等方式获取,此处不作限定。
本实施例中,地址信息可以是IP地址信息或者MAC地址信息,此处不作限定。
1305、第一终端创建第二终端对应的照片目录;
第一终端为第二终端创建对应的照片目录,当第二终端为一个时,创建一个照片目录,当第二终端为多个时,分别创建多个对应的照片目录。
1306、第一终端获取自身拍摄的照片组;
本实施例中,以第一终端拍摄的照片组全部分享为例,第一终端直接获取自身拍摄的照片组,该照片组可以是一次旅游后第一终端拍摄的照片。
1307、第一终端根据第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,若是,则执行步骤1308,若否,则判断下一张照片,直至所述照片组中的所有照片完成判断为止;
第一终端根据第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,当第二终端只有一个终端时,依次判断所述照片组中的照片与该第二终端对应的用户肖像信息是否匹配,直至所述照片组中的所有照片完成判断为止,当第二终端中有多个终端时,依次判断所述照片组中的 照片与第二终端中各终端对应的用户肖像信息是否匹配,每个终端直至所述照片组中的所有照片完成判断后进行第二终端中下一个终端的判断,直至第二终端中所有终端完成判断。
1308、将所述照片组中与第二终端对应的用户肖像信息匹配的照片置于所述第二终端对应的照片目录中;
1309、第一终端根据所述第二终端的地址信息,将第二终端对应的照片目录中的照片发送给第二终端。
由于第一终端获取了第二终端的地址信息,当第二终端只有一个终端时,第一终端根据第二终端的地址信息,将该第二终端对应的照片目录中的照片发送给第二终端,当第二终端中有多个终端时,第一终端根据第二终端的地址信息,将第二终端中各终端对应的照片目录中的照片发送给对应的终端。
本实施例中,第一终端可以在所述照片目录无对应第二终端时,将所述照片目录中的照片发送给第二终端,当第二终端为一个终端时,将所述照片目录中的照片发送给该终端,当第二终端为多个时,将所述照片目录中的照片分别发送给这多个终端,此处不作限定。
四、第一终端确定拍摄的照片全部分享,在拍摄照片时,拍摄一张照片即分析一张照片,确定拍摄照片与第二终端的用户肖像信息是否匹配;
请参阅图14,本发明实施例中分发照片的方法的另一个实施例包括:
1401、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息在展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立 一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
1402、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
1403、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息响应消息。
若步骤1401中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤1401~1403中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤1402,1403中类似,此处不作赘述。
1404、照片分享群组内的第一终端获取分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,第二终端的用户肖像信息和地址信息还可以通过NFC、超声波等方式获取,此处不作限定。
本实施例中,地址信息可以是IP地址信息或者MAC地址信息,此处不作限定。
1405、第一终端获取自身拍摄的照片;
第一终端在拍摄照片的过程中,第一终端获取自身刚刚拍摄的照片,以进行图像匹配分析。
1406、第一终端根据第二终端的用户肖像信息对拍摄的照片进行图像匹配分析,判断所述拍摄的照片与第二终端的用户肖像信息是否匹配,若是,执行步骤1407,若否,则结束;
根据第二终端的用户肖像信息对拍摄的照片进行图像匹配分析,判断所述拍摄的照片与第二终端的用户肖像信息是否匹配,当第二终端只有一个终端时,判断所述拍摄的照片与该第二终端的用户肖像信息是否匹配,当第二终端中有多个终端时,依次判断所述拍摄的照片与第二终端中各用户终端的用户肖像信息是否匹配。
本实施例中,结束后,即可以进行下一张图片的拍摄和分析。
1407、确定拍摄的照片为与第二终端对应的照片,将拍摄的照片发送给对应的第二终端。
在拍摄的照片为与第二终端对应的照片,将拍摄的照片发送给对应的第二终端。
本实施例中,第一终端可以将所述拍摄的照片中无对应第二终端的照片,发送给第二终端,当第二终端为一个终端时,将所述拍摄的照片中无对应第二终端的照片发送给该终端,当第二终端为多个时,将所述拍摄的照片中无对应第二终端的照片分别发送给这多个终端,此处不作限定。
本实施例中,当刚刚拍摄的照片分析完毕后,继续拍摄照片,拍完一张即对该照片进图像匹配行分析,直至拍照完成为止。
本实施例中拍摄一张照片即对其进行图像匹配分析,并智能化的分发给对应的第二终端,智能简单高效。
图11至图14所示的实施例中,除了第一终端分享照片外,还可以有其他终端分享照片,下面结合图12所示实施例举例进行说明,请参阅图15,本发明实施例中分发照片的方法的另一个实施例包括:
1501、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息在展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
1502、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求, 还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
1503、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端分别向这多个终端发送上述包括第一终端的地址信息响应消息。
若步骤1501中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤1501~1503中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤1502,1503中类似,此处不作赘述。
1504、照片分享群组内的第一终端获取分享群组内的第二终端的用户肖像信息和地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大 家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的用户肖像信息和地址信息。
第一终端获取照片分享群组内的第二终端的用户肖像信息和地址信息的方式可以是,第二终端加入照片分享群组后,将自身的用户肖像信息和地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的用户肖像信息和地址信息的请求,然后第二终端将自身的用户肖像信息和地址信息发送给第一终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
本实施例中,第二终端的用户肖像信息和地址信息还可以通过NFC、超声波等方式获取,此处不作限定。
本实施例中,地址信息可以是IP地址信息或者MAC地址信息,此处不作限定。
1505、第一终端确定自身待分享的照片目录;
第一终端有需要待分享的照片,可以确定自身待分享的照片目录;
1506、第一终端根据第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与第二终端对应的照片;
本实施例中,第一终端根据第二终端的用户肖像信息,在所述照片目 录中进行人脸搜索,当第二终端只有一个终端时,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与该第二终端对应的照片,当第二终端中有多个终端时,依次查找所述照片目录中与第二终端中各终端的用户肖像信息匹配的照片,确定所述照片目录中与第二终端中各终端对应的照片,查找完成后,即可以确定所述照片目录中与所述第二终端对应的照片。
1507、第一终端根据第二终端的地址信息,将待分享的照片发送给对应的第二终端。
由于第一终端获取了第二终端的地址信息,当第二终端只有一个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端的用户肖像信息匹配的照片发送给该第二终端,当第二终端中有多个终端时,第一终端根据第二终端的地址信息,将待分享的照片中与第二终端中各终端的用户肖像信息匹配的照片发送给对应的终端。
本实施例中,第一终端可以将所述待分享的照片中无对应第二终端的照片,发送给第二终端,当第二终端为一个终端时,将所述待分享的照片中无对应第二终端的照片发送给该终端,当第二终端为多个时,将所述待分享的照片中无对应第二终端的照片分别发送给这多个终端,此处不作限定。
1508、第一终端接收第四终端发送的获取第二终端的用户肖像信息和地址信息的请求;
本实施例中,除了第一终端分享照片外,第四终端也有待分享的照片,此时,第四终端将向第一终端发送获取所述第二终端的用户肖像信息和地址信息的请求。
本实施例中,第四终端可以为一个终端,也可以为多个终端,此处不作限定。
1509、第一终端将第二终端的用户肖像信息和地址信息发送给第四终 端;
本实施例中,第一终端将第二终端的用户肖像信息和地址信息发送给第四终端,可以使得第四终端对自身待分享的照片进行图像分析,确定所述待分享的照片中与第一终端对应的照片,在第二终端为多个时,也可以确定所述待分享的照片中与其他终端对应的照片;第四终端在确定所述待分享的照片中与第一终端对应的照片后,将所述第一终端对应的照片发送给所述第一终端。
需要说明的是,本实施例中,第一终端可以直接将第二终端的用户肖像信息和地址信息发送给第四终端,也可以是第一终端接收第四终端发送的获取第二终端的用户肖像信息和地址信息的请求后,将第二终端的用户肖像信息和地址信息发送给第四终端,此处不作具体限定。
第二终端的用户肖像信息可以是包含用户人脸图像的照片,该用户人脸图像的照片可以是用户利用终端设置在照片分享群组中的头像,当是用户利用终端设置在照片分享群组中的头像时,第一终端可以提示第二终端设置包含人脸图像的用户头像,在第二终端设置好后,直接获取该包含人脸图像的用户头像;
在实际应用中,第二终端的肖像信息也是第二终端拍摄的用户的人脸图像,将拍摄的人脸图像发送给第一终端,此处不作具体限定。
1510、第一终端接收第四终端发送的照片。
需要说明的是,本实施例中,步骤1506~1508与步骤1506之前的步骤是两个相对独立的过程,步骤1506~1508并不限定在步骤1505之后完成。
本实施例中,详细描述了除了第一终端分享照片外,第四终端也分享照片的情况下,多个终端分享照片时的照片分发过程,智能简单高效。
本发明的一些实施例中,第一终端也可以不获取照片分享群组内第二终端的用户肖像信息,第一终端可以确定自身待分享的照片目录,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同 人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,向第二终端发送所述关联人脸基准图片,以使得第二终端选择自身对应的关联人脸基准图片,并向所述第一终端返回关联人脸基准图片选择信息,根据所述关联人脸基准图片选择信息,确定第二终端对应的照片子目录,下面以具体实施例作出说明:
请参阅图16,本发明实施例中分发照片的方法的另一个实施例包括:
1601、照片分享群组内的第一终端获取所述分享群组内的第二终端的地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的地址信息。
照片分享群组内的第一终端能够获取所述分享群组内的第二终端的地址信息,第一终端获取照片分享群组内的第二终端的地址信息的方式可以是,第二终端加入照片分享群组后,将自身的地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的地址信息的请求,然后第二终端将自身的地址信息发送给第一终端,此处不作具体限定。
1602、第一终端确定自身待分享的照片目录;
第一终端有需要待分享的照片,可以确定自身待分享的照片目录;
1603、第一终端对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
第一终端确定自身待分享的照片目录后,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,如 可以对所述照片目录下的每张照片进行人脸识别,生成多个不同人脸的照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,当照片中识别出多个人脸时,可以将该照片放在对应的多个照片子目录中。
当照片是风景照等无法识别出人脸图像的照片时,可以直接将这类照片聚类生成一个照片子目录,此处不作限定。
1604、第一终端向第二终端发送关联人脸基准图片,以使得第二终端选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息;
本实施例中,第一终端根据第二终端的地址信息将生成的每个照片子目录对应的关联人脸基准图片都发送第二终端,第二终端选择自身对应的关联人脸基准图片,再选择好后,第二终端会向第一终端返回关联人脸基准图片选择信息。
本实施例中,当第二终端只有一个终端时,该第二终端选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息,当第二终端中有多个终端时,第一终端向第二终端中多个终端分别发送关联人脸基准图片,第二终端中的多个终端分别选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息。
1605、第一终端接收第二终端返回的关联人脸基准图片选择信息;
1606、第一终端根据关联人脸基准图片选择信息,确定第二终端对应的照片子目录;
第一终端根据接收的关联人脸基准图片选择信息,可以确定第二终端对应的照片子目录。
当第二终端为多个时,分别接收第二终端中的多个终端返回的关联人脸基准图片选择信息,确定第二终端中个终端对应的照片子目录。
1607、第一终端将第二终端对应的照片子目录中的照片发送给所述第二终端;
由于第一终端获取了第二终端的地址信息,因此第一终端根据第二终端的地址信,可以将第二终端对应的照片子目录中的照片发送给第二终端。
当第二终端为一个时,第一终端将该第二终端对应的照片子目录中的照片发送给所述第二终端,当第二终端为多个时,第一终端将第二终端各终端对应的照片子目录发送给对应的终端。
本实施例中,第一终端可以在照片子目录无对应第二终端时,将该照片子目录中的照片发送给第二终端,当第二终端为一个终端时,将该照片子目录中的照片发送给该终端,当第二终端为多个时,将该照片子目录中的照片分别发送给这多个终端,此处不作限定。
本实施例中,通过终端对需要自身需要待分享的照片进行图像分析生成多个照片子目录,向第二终端发送所述关联人脸基准图片,以使得第二终端选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息,根据关联人脸基准图片选择信息,确定第二终端对应的照片子目录,并分发给第二终端,由于照片分享群组的第一终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
图16所示的实施例中,除了第一终端分享照片时,还可以有其他终端分享照片时,下面以一具体实施例作出说明,请参阅图17,本发明实施例中分发照片的方法的另一个实施例包括:
1701、第一终端创建照片分享群组;
第一终端可以是外出游玩或旅游的人中任一用户的终端,第一终端创建一个照片分享群组,该照片分享群组还可以设置有名称,群组头像等区别信息,该照片分享群组还可以根据第一终端的位置信息在展现在网络上,供其他终端在网络上搜索或者根据搜索附近的照片分享群组搜索到,具体此处不作限定。
本实施例中,第一终端在创建照片分享群组时,第一终端还可以建立一个Wi-Fi热点,以使得其它终端在加入照片分享群组后,接入该Wi-Fi热点,形成局域网。
需要说明的是,在第一终端创建照片分享群组时,第一终端同时建立一个临时缓冲区,以便保存照片分享群组内的信息,如照片分享群组内终端的用户肖像信息,IP地址等,此处不作限定。
1702、第一终端接收第二终端发送的加入照片分享群组的请求;
第一终端创建照片分享群组后,其他有照片分享的终端或需要获取照片的第二终端将向第一终端发送加入照片分享群组的请求,第二终端发送请求的方式可以是扫描第一终端生成的照片分享群组的二维码,第二终端扫描后该二维码后即向第一终端发送加入照片分享群组的请求,在实际应用中,也可以是第二终端根据照片分享群组的名称,群组头像等信息在网络搜索到,然后点击加入,即向第一终端发送加入照片分享群组的请求,还可以是第二终端根据终端内的定位装置,搜索附近的照片分享群组,找到照片群组后点击加入即向第一终端发送加入照片分享群组的请求,具体第二终端向第一终端发送加入照片分享群组的方式不作具体限定。
需要说明的是,第二终端可以是照片分享群组内的一个或多个终端,此处不作具体限定。
1703、第一终端向第二终端返回加入响应消息;
第一终端在接收到第二终端发送的加入照片分享群组的请求后,将向第二终端返回加入响应消息,响应消息中包括第一终端的地址信息,此时则表示第一终端已同意第二终端加入该照片分享群组,在实际应用中,为了避免无关终端加入该照片分享群组,该响应消息也可以是拒绝加入信息,第一终端对接收到的加入照片分享群组的请求进行判断,判断第二终端是否为分享照片的终端,若是,则返回同意加入的响应消息,若否,则返回拒绝加入响应消息,此处不作限定。若第二终端为多个终端,则第一终端 分别向这多个终端发送上述包括第一终端的地址信息响应消息。
若步骤1701中第一终端在创建照片分享群组时,建立了一个Wi-Fi热点,则第二终端在接收到第一终端发送的响应消息后,可以接入该Wi-Fi热点,与第一终端形成局域网。
需要说明的是,步骤1701~1703中介绍第一终端创建照片分享群组,各终端加入照片群组的过程,其中,照片分享群组也可以是其他终端创建的,第一终端向创建照片分享群组的终端发送加入照片分享群组的请求,创建照片分享群组的终端接收请求后返回加入响应消息后,第一终端即加入该照片分享群组,发送请求及返回加入响应的方式与步骤1702,1703中类似,此处不作赘述。
1704、照片分享群组内的第一终端获取分享群组内的第二终端的地址信息;
好友、同事之间结伴出游时,大家用终端分别照了很多照片,最后大家要获取各自的照片时,会都加入同一个建立的照片分享群组,加入了照片分享群组的间能够互相收发信息,照片分享群组内的第一终端能够获取所述分享群组内的第二终端的地址信息。
照片分享群组内的第一终端能够获取所述分享群组内的第二终端的地址信息,第一终端获取照片分享群组内的第二终端的地址信息的方式可以是,第二终端加入照片分享群组后,将自身的地址信息直接发送给第一终端,也可以在第二终端加入照片分享群组后,第一终端向第二终端发送获取第二终端的地址信息的请求,然后第二终端将自身的地址信息发送给第一终端,此处不作具体限定。
1705、第一终端确定自身待分享的照片目录;
第一终端有需要待分享的照片,可以确定自身待分享的照片目录;
1706、第一终端对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对 每个照片子目录生成一个关联人脸基准图片;
第一终端确定自身待分享的照片目录后,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,如可以对所述照片目录下的每张照片进行人脸识别,生成多个不同人脸的照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,当照片中识别出多个人脸时,可以将该照片放在对应的多个照片子目录中。
当照片是风景照等无法识别出人脸图像的照片时,可以直接将这类照片聚类生成一个照片子目录,此处不作限定。
1707、第一终端向第二终端发送关联人脸基准图片,以使得第二终端选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息;
本实施例中,第一终端根据第二终端的地址信息将生成的每个照片子目录对应的关联人脸基准图片都发送第二终端,第二终端选择自身对应的关联人脸基准图片,再选择好后,第二终端会向第一终端返回关联人脸基准图片选择信息。
本实施例中,当第二终端只有一个终端时,该第二终端选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息,当第二终端中有多个终端时,第一终端向第二终端中多个终端分别发送关联人脸基准图片,第二终端中的多个终端分别选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息。
1708、第一终端接收第二终端返回的关联人脸基准图片选择信息;
1709、第一终端根据关联人脸基准图片选择信息,确定第二终端对应的照片子目录;
第一终端根据接收的关联人脸基准图片选择信息,可以确定第二终端对应的照片子目录。
当第二终端为多个时,分别接收第二终端中的多个终端返回的关联人脸基准图片选择信息,确定第二终端中个终端对应的照片子目录。
1710、第一终端将第二终端对应的照片子目录中的照片发送给所述第二终端;
由于第一终端获取了第二终端的地址信息,因此第一终端根据第二终端的地址信,可以将第二终端对应的照片子目录中的照片发送给第二终端。
当第二终端为一个时,第一终端将该第二终端对应的照片子目录中的照片发送给所述第二终端,当第二终端为多个时,第一终端将第二终端各终端对应的照片子目录中的照片发送给对应的终端。
本实施例中,第一终端可以在照片子目录无对应第二终端时,将该照片子目录中的照片发送给第二终端,当第二终端为一个终端时,将该照片子目录中的照片发送给该终端,当第二终端为多个时,将该照片子目录中的照片分别发送给这多个终端,此处不作限定。
1711、第一终端接收第三终端发送的关联基准人脸图片;
本实施例中,分享照片的还有第三终端,第三终端确定自身待分享的照片目录,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,第三终端将这些生成的关联人脸基准照片发送给第一终端,供第一终端选择与自身对应的关联基准人脸照片。
本实施例中,第三终端可以为一个或多个终端,此处不作限定。
1712、第一终端选择与自身对应的关联基准人脸图片,并向所述第三终端返回关联基准人脸图片选择信息;
第一终端接收第三终端发送的关联基准人脸图片后,会选择与自身对应的关联基准人脸图片,并向第三终端返回关联基准人脸图片选择信息;
第三终端根据接收的第一终端发送的关联人脸基准图片选择信息,确定第一终端对应的照片子目录,第三终端将第一终端对应的照片子目录中 的照片发送给第一终端。
1713、第一终端接收第三终端发送的照片。
需要说明的是,本实施例中,步骤1711~1713与步骤1711之前的步骤是两个相对独立的过程,步骤1711~1713并不限定在步骤1710之后完成。
本实施例中,通过终端对需要自身需要待分享的照片进行图像分析生成多个照片子目录,向第二终端发送所述关联人脸基准图片,以使得第二终端选择自身对应的关联人脸基准图片,并向第一终端返回关联人脸基准图片选择信息,根据关联人脸基准图片选择信息,确定第二终端对应的照片子目录,并分发给第二终端,由于照片分享群组的第一终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
其次,描述了除第一终端分享照片外,第三终端也分享照片的情况下的具体实现过程,使得多个终端分享照片时,也能够智能化的分发照片。
本发明分发照片的方法还可以是两个终端之间直接建立连接,第一终端拍摄对方用户的照片后进行人脸检索自身待分享的照片,查找与第二终端用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片,将所述第二终端对应的照片发送给所述第二终端,下面以具体实施例作出详细描述,请参阅图18,本发明实施例中分发照片的方法的另一个实施例包括:
1801、第一终端与第二终端建立连接;
本实施例中,第一终端与第二终端建立连接的方式有多种,可以是第一终端通过NFC触碰建立Wi-Fi连接或蓝牙连接,也可以是第一终端通过声波建立Wi-Fi连接或蓝牙连接,声波可以是频率20000HZ以上的超声波、也可以是频率20000HZ以下的声波,此处不作限定。
1802、第一终端拍摄第二终端用户的照片,获得第二终端的用户肖像 信息;
第一终端可以直接拍摄第二终端用户的照片,获得第二终端的用户肖像信息。
1803、第一终端确定自身待分享的照片目录;
1804、第一终端根据第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与第二终端对应的照片;
第一终端根据第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中能够识别出与所述用户肖像信息匹配的人脸的照片,即依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,查找完成后,即可以确定所述照片目录中与第二终端对应的照片。
1805、第一终端将第二终端对应的照片发送给第二终端。
当第二终端为一个时,第一终端将该第二终端对应的的照片发送给所述第二终端,当第二终端为多个时,第一终端将第二终端各终端对应的照片发送给对应的终端。
本实施例中,第一终端还可以将所述待分享的照片中与第二终端无对应关系的的照片,发送给第二终端,此处不作限定。
下面介绍本发明实施例中的终端实施例,请参阅图19,本发明实施例提供的终端的一个实施例包括:
第一获取单元1901,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
第二获取单元1902,用于获取分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述终端和所述分享群组内的第三终端中的至少之一;
分配单元1903,用于将所述第二获取单元1902获取的第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理 终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述终端,所述N≥2;
发送单元1904,用于将所述第一获取单元1901获取的第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
本实施例中,当第一获取单元1901及第二获取单元1902分别获取第二终端的用户肖像信息和地址信息及分享终端建立的第一索引信息后,分配单元1903将第一索引信息分割后分配给处理终端,通过处理终端对需要分享终端待分享的照片进行人脸识别,确定待分享的照片对应的第二终端,并分发给第二终端,由于加入照片分享群组的终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效;
请参阅图20,本发明实施例提供的终端的另一个实施例包括:
第一获取单元2001,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
第二获取单元2002,用于获取分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述终端和所述分享群组内的第三终端中的至少之一;
分配单元2003,用于将所述第二获取单元2002获取的第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述终端,所述N≥2;
发送单元2004,用于将所述第一获取单元2001获取的第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述 第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
本实施例提供的终端中,还可以进一步包括:
创建单元2005,用于在所述第一获取单元2001获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建照片分享群组;
接收单元2006,用于接收所述第二终端发送的加入所述照片分享群组的请求;
所述发送单元2004还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述终端的地址信息。
在本发明一些实施例中,所述终端还可以进一步包括:
建立单元,用于在所述终端创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
在本发明一些实施例中,所述第二获取单元2002具体可以用于在所述分享终端包括所述终端时,确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,并获取所述第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;
在本发明一些实施例中,所述第二获取单元2002具体用于获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
在本发明一些实施例中,所所述分配单元2003具体可以用于将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端。
在本发明一些实施例中,所所述分配单元2003具体可以用于分别接收 所述处理终端发送的终端处理能力信息,根据所述N个处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端。
本发明一些实施例中,所述终端进一步还可以包括:
确定单元,用于在所述处理终端包括所述终端和所述第四终端时,根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
所述发送单元2004还用于根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
所述确定单元具体用于根据所述第二索引信息从所述分享终端获取任务照片副本,将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
在本发明一些实施例中,所述发送单元2004还用可以于将与所述第二终端的用户肖像信息不匹配的照片发送给所述第二终端。
本实施例在图19所示的实施例的基础上,终端还包括创建单元2005、接收单元2006,及发送单元2004还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述终端的地址信息,使终端结构设置更加灵活。
请参阅图21,本发明实施例提供的终端的另一个实施例包括:
第一获取单元2101,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
第二获取单元2102,用于获取分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述终端和所述分享群组内的第三终端中的至少之一;
分配单元2103,用于将所述第二获取单元2102获取的第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理 终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述终端,所述N≥2;
发送单元2104,用于将所述第一获取单元2101获取的第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
本实施例提供的终端中,还可以进一步包括:
创建单元2105,用于在所述第一获取单元获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建照片分享群组;
接收单元2106,用于接收所述第二终端发送的加入所述照片分享群组的请求;
所述发送单元2104还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述终端的地址信息。
在本发明一些实施例中,所述终端还可以进一步包括:
建立单元2107,用于在所述终端创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
在本发明一些实施例中,所述第二获取单元2102具体可以用于在所述分享终端包括所述终端时,确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,并获取所述第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;
在本发明一些实施例中,所述第二获取单元2102具体用于获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
在本发明一些实施例中,所所述分配单元2103具体可以用于将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端。
在本发明一些实施例中,所所述分配单元2103具体可以用于分别接收所述处理终端发送的终端处理能力信息,根据所述N个处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端。
本发明一些实施例中,所述终端进一步还可以包括:
确定单元,用于在所述处理终端包括所述终端和所述第四终端时,根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
所述发送单元2104还用于根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
所述确定单元具体用于根据所述第二索引信息从所述分享终端获取任务照片副本,将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
在本发明一些实施例中,所述发送单元2104还用可以于将与所述第二终端的用户肖像信息不匹配的照片发送给所述第二终端。
下面从另一侧(第四终端侧)介绍本发明实施例中的终端实施例,请参阅图22,本发明实施例提供的终端的另一个实施例包括:
接收单元2201,用于接收与所述终端在同一个照片分享群组内的第一终端发送的第二索引信息,所述第二索引信息为待分享照片的第一索引的一部分;
所述接收单元2201还用于接收所述第一终端发送的第二终端的用户肖像信息和地址信息;
确定单元2202,用于根据所述接收单元2201接收的第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
发送单元2203,用于根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
在本发明一些实施例中,所述确定单元2202具体可以用于根据所述第二索引信息从分享终端获取任务照片副本,将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
本实施例中,确定单元2202根据接收单元2201接收的第二索引信息以及第二终端的用户肖像信息和地址信息,进行人脸识别,实现了照片的智能化分发,简单快捷高效。
下面介绍本发明实施例中的第一终端另一场景下的实施例,请参阅图23,本发明实施例提供的终端的另一个实施例包括:
获取单元2301,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
确定单元2302,用于根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片;
发送单元2303,用于根据所述第二终端的地址信息,将所述所述待分享的的照片发送给对应的所述第二终端。
本发明实施例中,确定单元2302可以对自身需要待分享的照片进行图像分析,确定待分享的照片对应的第二终端,并根据获取单元2301获取的第二终端的地址信息,将确定分享照片分发给对应的第二终端,由于加入照片分享群组的第一终端,可以自动对分享群组内需要待分享的照片进行图像分析并智能分发给对应的终端,使得各终端可以获取自身需要的照片,实现了照片的智能化分发,简单快捷高效。
请参阅图24,本发明实施例提供的终端的另一个实施例包括:
获取单元2401,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
确定单元2402,用于根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片;
发送单元2403,用于根据所述第二终端的地址信息,将所述所述待分享的的照片发送给对应的所述第二终端。
所述终端还可以包括:
创建单元2404,用于在照片分享群组内的所述终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建所述照片分享群组;
接收单元2405,用于接收所述第二终端发送的加入所述照片分享群组的请求;
所述发送单元2403还可以用于向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
可选的,所述终端还可以包括:
建立单元2406,用于在所述终端创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
在本发明一些实施例中,所述确定单元2402具体可以用于确定自身待分享的照片目录,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,将所述第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,确定与第二终端的用户肖像信息匹配的照片子目录为所述第二终端对应的照片子目录;
所述发送单元2403具体可以用于根据所述第二终端的地址信息,将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
在本发明一些实施例中,所述确定单元2402具体可以用于确定自身待分享的照片目录,根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片。
在本发明一些实施例中,所述确定单元2402具体可以用于创建第二终端对应的照片目录,获取自身拍摄的照片组,根据所述第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,若是,将所述照片组中与第二终端对应的用户肖像信息匹配的照片置于所述第二终端对应的照片目录中;
所述发送单元2403具体用于根据所述第二终端的地址信息,将所述第二终端对应的照片目录中的照片发送给所述第二终端。
在本发明一些实施例中,所述确定单元2402具体可以用于获取自身拍摄的照片,根据所述第二终端的用户肖像信息对所述拍摄的照片进行图像匹配分析,判断所述拍摄的照片与第二终端的用户肖像信息是否匹配,若是,确定所述拍摄的照片为与所述第二终端对应的照片;
所述发送单元2403具体用于在所述拍摄的照片与所述第二终端用户肖像信息匹配时,根据所述第二终端的地址信息,将所述拍摄的照片发送给对应的第二终端。
在本发明一些实施例中,所述终端还可以接收其他终端发送的照片:
所述接收单元2405还用于接收所述第四终端发送的获取所述第二终端的用户肖像信息和地址信息的请求;
所述发送单元2403还用于将所述第二终端的用户肖像信息和地址信息发送给所述第四终端;
所述接收单元2405还用于接收所述第四终端发送的照片。
在本发明一些实施例中,所述发送单元2403还可以用于将所述待分享 的照片中无对应第二终端的照片,发送给所述第二终端。
请参阅图25,本发明实施例提供的终端的另一个实施例包括:
获取单元2501,用于获取与所述终端在同一个照片分享群组内的第二终端的地址信息;
第一确定单元2502,用于确定自身待分享的照片目录;
生成单元2503,用于对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
发送单元2504,用于向第二终端发送所述关联人脸基准图片,以使得所述第二终端选择自身对应的关联人脸基准图片,并向所述第一终端返回关联人脸基准图片选择信息;
接收单元2505,用于接收所述第二终端返回的关联人脸基准图片选择信息;
第二确定单元2506,用于根据所述关联人脸基准图片选择信息,确定所述第二终端对应的照片子目录;
所述发送单元2504还用于将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
本发明实施例中,确定单元2502可以对自身需要待分享的照片进行图像分析后聚类生成多个照片子目录,发送单元2504向第二终端发送各照片子目录对应的关联人脸基准图片,使得第二终端选择自身对应的人脸基准照片,发送单元2504即可根据第二终端选择的人脸基准照片智能分发给对应的第二终端,实现了照片的智能化分发,简单快捷高效。
请参阅图26,本发明实施例提供的终端的另一个实施例包括:
获取单元2601,用于获取与所述终端在同一个照片分享群组内的第二终端的地址信息;
第一确定单元2602,用于确定自身待分享的照片目录;
生成单元2603,用于对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
发送单元2604,用于向第二终端发送所述关联人脸基准图片,以使得所述第二终端选择自身对应的关联人脸基准图片,并向所述第一终端返回关联人脸基准图片选择信息;
接收单元2605,用于接收所述第二终端返回的关联人脸基准图片选择信息;
第二确定单元2606,用于根据所述关联人脸基准图片选择信息,确定所述第二终端对应的照片子目录;
所述发送单元2604还用于将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
所述终端还可以进一步包括:
创建单元2607,用于创建照片分享群组;
所述接收单元2605还用于接收所述第二终端发送的加入所述照片分享群组的请求;
在本发明的一些实施例中,所述发送单元2604还可以用于向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
所述接收单元2605还可以用于接收所述第三终端发送的关联基准人脸图片;
所述发送单元2604还可以用于选择与自身对应的关联基准人脸图片,并向所述第三终端返回关联基准人脸图片选择信息;
所述接收单元2605还可以用于接收所述第三终端发送的照片。
在本发明的一些实施例中,所述发送单元2604还可以用于将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
在本发明一些实施例中,所述终端还可以包括:
建立单元,用于在所述创建单元创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
请参阅图27,本发明实施例提供的终端的另一个实施例包括:
建立单元2701,用于与第二终端建立连接;
获取单元2702,用于拍摄所述第二终端用户的照片,获得第二终端的用户肖像信息;
第一确定单元2703,用于确定自身待分享的照片目录;
第二确定单元2704,用于根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与所述第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片;
发送单元2705,用于将所述第二终端对应的照片发送给所述第二终端。
所述建立单元2701具体还可以用于通过NFC触碰建立Wi-Fi连接或蓝牙连接。
所述建立单元2701具体还可以用于通过声波建立Wi-Fi连接或蓝牙连接。
所述发送单元2705还可以用于将所述待分享的照片中与所述第二终端无对应关系的照片,发送给所述第二终端。
为便于理解,下面以一具体应用场景为例,对本实施例中的终端的内部运作流程进行描述:
建立单元2701与第二终端建立连接;
获取单元2702拍摄所述第二终端用户的照片,获得第二终端的用户肖像信息;
第一确定单元2703确定自身待分享的照片目录;
第二确定单元2704根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与所述第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片;
发送单元2705将所述第二终端对应的照片发送给所述第二终端。
当第二终端为一个时,第一终端将该第二终端对应的的照片发送给所述第二终端,当第二终端为多个时,第一终端将第二终端各终端对应的照片发送给对应的终端。
所述建立单元2701与第二终端建立连接,具体可以是通过NFC触碰建立Wi-Fi连接或蓝牙连接。
所述建立单元2701与第二终端建立连接,具体还可以是通过声波建立Wi-Fi连接或蓝牙连接,“声波”可以是频率20000HZ以上的超声波、也可以是频率20000HZ以下的声波。
所述发送单元2705还可以将所述待分享的照片中与所述第二终端无对应关系的照片,发送给所述第二终端。
下面结合图21的实施例从硬件角度对本发明实施例提供的终端进行描述,请参照图28,该终端包括:接收器2801、发送器2802和处理器2803(可以有一个或多个)。
接收器2801用于执行如下操作:
接收与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
接收器2801还用于执行如下操作:
接收分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述终端和所述分享群组内的第三终端中的至少之一;
处理器2803用于执行如下操作:
将所述第二获取单元2102获取的第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述终端,所述N≥2;
发送器2802用于执行如下操作:
将所述接收器2801接收的第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
处理器2803还可以用于执行如下操作:
在所述接收器2801接收所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建照片分享群组;
接收器2801还用于执行如下操作:
接收所述第二终端发送的加入所述照片分享群组的请求;
发送器2802还用于执行如下操作:
向所述第二终端返回加入响应消息,所述响应消息中包括所述终端的地址信息。
处理器2803还可以用于执行如下操作:
在所述终端创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
接收器2801还可以用于执行如下操作:
在所述发送器2802将所述第二终端的用户肖像信息和地址信息发送给所述处理终端之前,接收所述处理终端发送的获取所述第二终端的用户肖像信息和地址信息的请求。
处理器2803还可以用于执行如下操作:
在所述分享终端包括所述终端时,确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,并获取所述第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;
接收器2801还可以用于执行如下操作:
接收所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径
处理器2803还可以用于执行如下操作:
所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端。
接收器2801还可以用于执行如下操作:
接收所述处理终端发送的终端处理能力信息。
处理器2803还可以用于执行如下操作:
根据接收器2801接收的所述N个处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端。
处理器2803还可以用于执行如下操作:
在所述处理终端包括所述终端和所述第四终端时,根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
发送器2802还可以用于执行如下操作:
根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
处理器2803还可以用于执行如下操作:
根据所述第二索引信息从所述分享终端获取任务照片副本,将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
发送器2802还可以用于执行如下操作:
将与所述第二终端的用户肖像信息不匹配的照片发送给所述第二终端。
上述本发明所有实施例中所述的终端,可以是手机、平板电脑、智能相机等各种终端,此处不作具体限定,地址信息可以为IP地址信息,也可以是MAC地址信息,此处不作限定。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人 计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (60)

  1. 一种分发照片的方法,其特征在于,包括:
    照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息;
    所述第一终端获取分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述第一终端和所述分享群组内的第三终端中的至少之一;
    所述第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述第一终端,所述N≥2;
    所述第一终端将所述第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
  2. 根据权利要求1所述的方法,其特征在于,
    在所述照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,所述方法还包括:
    所述第一终端创建照片分享群组;
    所述第一终端接收所述第二终端发送的加入所述照片分享群组的请求;
    所述第一终端向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
  3. 根据权利要求2所述的方法,其特征在于,
    在所述第一终端创建照片分享群组时,所述第一终端建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,
    所述分享终端包括所述第一终端;
    所述第一终端获取分享终端建立的待分享照片的第一索引信息包括:
    所述第一终端确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径;
    所述第一终端获取所述第三索引信息。
  5. 根据权利要求1至4中任一所述的方法,其特征在于,
    所述分享终端包括第三终端;
    所述第一终端获取分享终端建立的待分享照片的第一索引信息包括:
    所述第一终端获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
  6. 根据权利要求4或5所述的方法,其特征在于,
    所述第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端包括:
    所述第一终端将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端。
  7. 根据权利要求4或5所述的方法,其特征在于,
    所述第一终端将所述第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端包括:
    所述第一终端分别接收所述处理终端发送的终端处理能力信息;
    所述第一终端根据所述处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端。
  8. 根据权利要求1至7中任一所述的方法,其特征在于,
    所述处理终端包括所述第一终端和所述第四终端;
    所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息 对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端包括:
    所述第一终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
    所述第一终端根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
  9. 根据权利要求8所述的方法,其特征在于,
    所述第一终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片包括:
    所述第一终端根据所述第二索引信息从所述分享终端获取任务照片副本;
    所述第一终端将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
  10. 根据权利要求8或9所述的方法,其特征在于,所述方法还包括:
    所述第一终端将与所述第二终端的用户肖像信息不匹配的照片发送给所述第二终端。
  11. 一种分发照片的方法,其特征在于,包括:
    照片分享群组内的第四终端接收所述分享群组内的第一终端发送的第二索引信息,所述第二索引信息为待分享照片的第一索引信息的一部分;
    所述第四终端接收所述第一终端发送的第二终端的用户肖像信息和地址信息;
    所述第四终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
    所述第四终端根据第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
  12. 根据权利要求11所述的方法,其特征在于,
    所述第四终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片包括:
    所述第四终端根据所述第二索引信息从分享终端获取任务照片副本;
    所述第四终端将每个任务照片副本与第二终端的用户肖像信息进行图像匹配分析,确定与所述第二终端的用户肖像信息匹配的照片。
  13. 一种分发照片的方法,其特征在于,包括:
    照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息;
    所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片;
    所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端。
  14. 根据权利要求13所述的方法,其特征在于,
    在照片分享群组内的第一终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,所述方法还包括:
    所述第一终端创建照片分享群组;
    所述第一终端接收所述第二终端发送的加入所述照片分享群组的请求;
    所述第一终端向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
  15. 根据权利要求14所述的方法,其特征在于,在所述第一终端创建照片分享群组时,所述第一终端建立Wi-Fi热点,以使得所述第二终端在接 收所述响应消息后,接入所述Wi-Fi热点。
  16. 根据权利要求13至15中任一所述的方法,其特征在于,
    所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片包括:
    所述第一终端确定自身待分享的照片目录;
    所述第一终端对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
    所述第一终端将所述第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,确定与第二终端的用户肖像信息匹配的照片子目录为所述第二终端对应的照片子目录;
    所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端包括:
    所述第一终端根据所述第二终端的地址信息,将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
  17. 根据权利要求13至15中任一所述的方法,其特征在于,
    所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片包括:
    所述第一终端确定自身待分享的照片目录;
    所述第一终端根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片。
  18. 根据权利要求13至15中任一所述的方法,其特征在于,
    所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片包括:
    所述第一终端创建第二终端对应的照片目录;
    所述第一终端获取自身拍摄的照片组;
    所述第一终端根据所述第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,若是,将所述照片组中与第二终端对应的用户肖像信息匹配的照片置于所述第二终端对应的照片目录中;
    所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端包括:
    所述第一终端根据所述第二终端的地址信息,将所述第二终端对应的照片目录中的照片发送给所述第二终端。
  19. 根据权利要求13至15中任一所述的方法,其特征在于,
    所述第一终端根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片包括:
    所述第一终端获取自身拍摄的照片;
    所述第一终端根据所述第二终端的用户肖像信息对所述拍摄的照片进行图像匹配分析,判断所述拍摄的照片与第二终端的用户肖像信息是否匹配,若是,确定所述拍摄的照片为与所述第二终端对应的照片;
    所述第一终端根据所述第二终端的地址信息,将所述待分享的照片发送给对应的所述第二终端包括:
    在所述拍摄的照片与所述第二终端用户肖像信息匹配时,第一终端根据所述第二终端的地址信息,将所述拍摄的照片发送给对应的第二终端。
  20. 根据权利要求16至19中任一所述的方法,其特征在于,所述方法还包括:
    所述第一终端接收所述第四终端发送的获取所述第二终端的用户肖像信息和地址信息的请求;
    所述第一终端将所述第二终端的用户肖像信息和地址信息发送给所述第四终端;
    所述第一终端接收所述第四终端发送的照片。
  21. 根据权利要求13至20中任一所述的方法,其特征在于,所述方法还包括:
    所述第一终端将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
  22. 一种分发照片的方法,其特征在于,包括:
    照片分享群组内的第一终端获取所述分享群组内的第二终端的地址信息;
    所述第一终端确定自身待分享的照片目录;
    所述第一终端对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
    所述第一终端向第二终端发送所述关联人脸基准图片,以使得所述第二终端选择自身对应的关联人脸基准图片,并向所述第一终端返回关联人脸基准图片选择信息;
    所述第一终端接收所述第二终端返回的关联人脸基准图片选择信息;
    所述第一终端根据所述关联人脸基准图片选择信息,确定所述第二终端对应的照片子目录;
    所述第一终端将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
  23. 根据权利要求22所述的方法,其特征在于,在照片分享群组内的第一终端获取所述分享群组内的第二终端的地址信息之前,所述方法还包括:
    所述第一终端创建照片分享群组;
    所述第一终端接收所述第二终端发送的加入所述照片分享群组的请求;
    所述第一终端向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
  24. 根据权利要求23所述的方法,其特征在于,在所述第一终端创建照片分享群组时,所述第一终端建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
  25. 根据权利要求22至24中任一所述的方法,其特征在于,所述方法还包括:
    所述第一终端接收所述第三终端发送的关联基准人脸图片;
    所述第一终端选择与自身对应的关联基准人脸图片,并向所述第三终端返回关联基准人脸图片选择信息;
    所述第一终端接收所述第三终端发送的照片。
  26. 根据权利要求22至25中任一所述的方法,其特征在于,所述方法还包括:所述第一终端将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
  27. 一种分发照片的方法,其特征在于,包括:
    第一终端与第二终端建立连接;
    所述第一终端拍摄所述第二终端用户的照片,获得所述第二终端的用户肖像信息;
    所述第一终端确定自身待分享的照片目录;
    所述第一终端根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与所述第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片;
    所述第一终端将所述第二终端对应的照片发送给所述第二终端。
  28. 根据权利要求27所述的方法,其特征在于,所述第一终端与第二终端建立连接包括:第一终端通过NFC触碰建立Wi-Fi连接或蓝牙连接。
  29. 根据权利要求27所述的方法,其特征在于,所述第一终端与第二 终端建立连接包括:第一终端通过声波建立Wi-Fi连接或蓝牙连接。
  30. 根据权利要求27至29中任一所述的方法,其特征在于,所述方法还包括:所述第一终端将所述待分享的照片中与所述第二终端无对应关系的照片,发送给所述第二终端。
  31. 一种终端,其特征在于,
    第一获取单元,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
    第二获取单元,用于获取分享终端建立的待分享照片的第一索引信息,所述分享终端包括所述终端和所述分享群组内的第三终端中的至少之一;
    分配单元,用于将所述第二获取单元获取的第一索引信息分割为N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端,所述处理终端包括所述分享群组内的第四终端,或者所述第四终端和所述终端,所述N≥2;
    发送单元,用于将所述第一获取单元获取的第二终端的用户肖像信息和地址信息发送给所述处理终端,以使得所述处理终端根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的待分享照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片并发送给所述第二终端。
  32. 根据权利要求31所述的终端,其特征在于,所述终端还包括:
    创建单元,用于在所述第一获取单元获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建照片分享群组;
    接收单元,用于接收所述第二终端发送的加入所述照片分享群组的请求;
    所述发送单元还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述终端的地址信息。
  33. 根据权利要求32所述的终端,其特征在于,所述终端还包括:
    建立单元,用于在所述创建单元创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
  34. 根据权利要求31至33中任一所述的终端,其特征在于,
    所述第二获取单元具体用于在所述分享终端包括所述终端时,确定自身待分享的照片目录,并根据所述照片目录建立第三索引信息,并获取所述第三索引信息,所述第三索引信息中包括照片信息和所述第一终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
  35. 根据权利要求31至34中任一所述的终端,其特征在于,所述第二获取单元具体用于获取所述分享群组内所述第三终端建立的第四索引信息,所述第四索引信息中包括照片信息和所述第三终端的地址信息,所述照片信息包括所述待分享照片项数、各照片ID、各照片路径。
  36. 根据权利要求34或35所述的终端,其特征在于,所述分配单元具体用于将所述第一索引信息按照片项数平均分割成N份后得到N个第二索引信息,并将所述N个第二索引信息分别分配给N个处理终端。
  37. 根据权利要求34或35所述的终端,其特征在于,所述分配单元具体用于分别接收所述处理终端发送的终端处理能力信息,根据所述N个处理终端的终端处理能力信息,将所述第一索引信息按照片项数分割成N份后得到第二索引信息,并将所述N个第二索引信息分别分配给所述N个处理终端。
  38. 根据权利要求31至37中任一所述的终端,其特征在于,所述终端还包括:
    确定单元,用于在所述处理终端包括所述终端和所述第四终端时,根据所述第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
    所述发送单元还用于根据所述第二终端的地址信息,将与所述第二终 端的用户肖像信息匹配的照片发送给所述第二终端。
  39. 根据权利要求38所述的终端,其特征在于,所述确定单元具体用于根据所述第二索引信息从所述分享终端获取任务照片副本,将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
  40. 根据权利要求38或39所述的终端,其特征在于,所述发送单元还用于将与所述第二终端的用户肖像信息不匹配的照片发送给所述第二终端。
  41. 一种终端,其特征在于,包括:
    接收单元,用于接收与所述终端在同一个照片分享群组内的第一终端发送的第二索引信息,所述第二索引信息为待分享照片的第一索引的一部分;
    所述接收单元还用于接收所述第一终端发送的第二终端的用户肖像信息和地址信息;
    确定单元,用于根据所述接收单元接收的第二索引信息及所述第二终端的用户肖像信息对所述第二索引信息中对应的照片进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片;
    发送单元,用于根据所述第二终端的地址信息,将与所述第二终端的用户肖像信息匹配的照片发送给所述第二终端。
  42. 根据权利要求41所述的终端,其特征在于,所述确定单元具体用于根据所述第二索引信息从分享终端获取任务照片副本,将每个任务照片副本与所述第二终端的用户肖像信息进行人脸识别,确定与所述第二终端的用户肖像信息匹配的照片。
  43. 一种终端,其特征在于,包括:
    获取单元,用于获取与所述终端在同一个照片分享群组内的第二终端的用户肖像信息和地址信息;
    确定单元,用于根据所述第二终端的用户肖像信息对自身待分享的照片进行图像分析,确定所述待分享的照片中与第二终端对应的照片;
    发送单元,用于根据所述第二终端的地址信息,将所述待分享的的照片发送给对应的所述第二终端。
  44. 根据权利要求43所述的终端,其特征在于,所述终端还包括:
    创建单元,用于在照片分享群组内的所述终端获取所述分享群组内的第二终端的用户肖像信息和地址信息之前,创建所述照片分享群组;
    接收单元,用于接收所述第二终端发送的加入所述照片分享群组的请求;
    所述发送单元还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
  45. 根据权利要求44所述的终端,其特征在于,所述终端还包括:
    建立单元,用于在所述终端创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
  46. 根据权利要求43至45中任一所述的终端,其特征在于,所述确定单元具体用于确定自身待分享的照片目录,对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片,将所述第二终端的用户肖像信息和所述照片子目录对应的关联人脸基准图片进行图像匹配分析,确定与第二终端的用户肖像信息匹配的照片子目录为所述第二终端对应的照片子目录;
    所述发送单元具体用于根据所述第二终端的地址信息,将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
  47. 根据权利要求43至45中任一所述的终端,其特征在于,所述确定单元具体用于确定自身待分享的照片目录,根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与第 二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片。
  48. 根据权利要求43至45中任一所述的终端,其特征在于,所述确定单元具体用于创建第二终端对应的照片目录,获取自身拍摄的照片组,根据所述第二终端的用户肖像信息对所述照片组中的照片进行图像匹配分析,依次判断所述照片组中的照片与第二终端对应的用户肖像信息是否匹配,若是,将所述照片组中与第二终端对应的用户肖像信息匹配的照片置于所述第二终端对应的照片目录中;
    所述发送单元具体用于根据所述第二终端的地址信息,将所述第二终端对应的照片目录中的照片发送给所述第二终端。
  49. 根据权利要求43至45中任一所述的终端,其特征在于,
    所述确定单元具体用于获取自身拍摄的照片,根据所述第二终端的用户肖像信息对所述拍摄的照片进行图像匹配分析,判断所述拍摄的照片与第二终端的用户肖像信息是否匹配,若是,确定所述拍摄的照片为与所述第二终端对应的照片;
    所述发送单元具体用于在所述拍摄的照片与所述第二终端用户肖像信息匹配时,根据所述第二终端的地址信息,将所述拍摄的照片发送给对应的第二终端。
  50. 根据权利要求46至49中任一所述的终端,其特征在于,
    所述接收单元还用于接收所述第四终端发送的获取所述第二终端的用户肖像信息和地址信息的请求;
    所述发送单元还用于将所述第二终端的用户肖像信息和地址信息发送给所述第四终端;
    所述接收单元还用于接收所述第四终端发送的照片。
  51. 根据权利要求43至50中任一所述的终端,其特征在于,所述发送单元还用于将所述待分享的照片中无对应第二终端的照片,发送给所述 第二终端。
  52. 一种终端,其特征在于,包括:
    获取单元,用于获取与所述终端在同一个照片分享群组内的第二终端的地址信息;
    第一确定单元,用于确定自身待分享的照片目录;
    生成单元,用于对所述照片目录下的每张照片进行图像分析后生成多个照片子目录,将具有相同人脸特征的照片置于一个照片子目录中,并对每个照片子目录生成一个关联人脸基准图片;
    发送单元,用于向第二终端发送所述关联人脸基准图片,以使得所述第二终端选择自身对应的关联人脸基准图片,并向所述第一终端返回关联人脸基准图片选择信息;
    接收单元,用于接收所述第二终端返回的关联人脸基准图片选择信息;
    第二确定单元,用于根据所述关联人脸基准图片选择信息,确定所述第二终端对应的照片子目录;
    所述发送单元还用于将所述第二终端对应的照片子目录中的照片发送给所述第二终端。
  53. 根据权利要求52所述的终端,其特征在于,所述终端还包括:
    创建单元,用于创建照片分享群组;
    所述接收单元还用于接收所述第二终端发送的加入所述照片分享群组的请求;
    所述发送单元还用于向所述第二终端返回加入响应消息,所述响应消息中包括所述第一终端的地址信息。
  54. 根据权利要求53所述的终端,其特征在于,所述终端还包括:
    建立单元,用于在所述创建单元创建照片分享群组时,建立Wi-Fi热点,以使得所述第二终端在接收所述响应消息后,接入所述Wi-Fi热点。
  55. 根据权利要求52至54中任一所述的终端,其特征在于,
    所述接收单元还用于接收所述第三终端发送的关联基准人脸图片;
    所述发送单元还用于选择与自身对应的关联基准人脸图片,并向所述第三终端返回关联基准人脸图片选择信息;
    所述接收单元还用于接收所述第三终端发送的照片。
  56. 根据权利要求52至55中任一所述的终端,其特征在于,所述发送单元还用于将所述待分享的照片中无对应第二终端的照片,发送给所述第二终端。
  57. 一种终端,其特征在于,包括:
    建立单元,用于与第二终端建立连接;
    获取单元,用于拍摄所述第二终端用户的照片,获得第二终端的用户肖像信息;
    第一确定单元,用于确定自身待分享的照片目录;
    第二确定单元,用于根据所述第二终端的用户肖像信息,在所述照片目录中进行人脸搜索,依次查找所述照片目录中与所述第二终端的用户肖像信息匹配的照片,确定所述照片目录中与所述第二终端对应的照片;
    发送单元,用于将所述第二终端对应的照片发送给所述第二终端。
  58. 根据权利要求57所述的终端,其特征在于,所述建立单元具体用于通过NFC触碰建立Wi-Fi连接或蓝牙连接。
  59. 根据权利要求57所述的终端,其特征在于,所述建立单元具体用于通过声波建立Wi-Fi连接或蓝牙连接。
  60. 根据权利要求57至59中任一所述的终端,其特征在于,所述发送单元还用于将所述待分享的照片中与所述第二终端无对应关系的照片,发送给所述第二终端。
PCT/CN2015/094584 2014-11-18 2015-11-13 一种分发照片的方法及终端 WO2016078550A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP15860561.8A EP3211544A4 (en) 2014-11-18 2015-11-13 Photo distribution method and terminal
US15/597,385 US10831823B2 (en) 2014-11-18 2017-05-17 Photo distribution method and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410658948.6 2014-11-18
CN201410658948.6A CN105591763B (zh) 2014-11-18 2014-11-18 一种分发照片的方法及终端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/597,385 Continuation US10831823B2 (en) 2014-11-18 2017-05-17 Photo distribution method and terminal

Publications (1)

Publication Number Publication Date
WO2016078550A1 true WO2016078550A1 (zh) 2016-05-26

Family

ID=55931038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/094584 WO2016078550A1 (zh) 2014-11-18 2015-11-13 一种分发照片的方法及终端

Country Status (4)

Country Link
US (1) US10831823B2 (zh)
EP (1) EP3211544A4 (zh)
CN (2) CN110266506A (zh)
WO (1) WO2016078550A1 (zh)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130887A (zh) * 2016-08-17 2016-11-16 深圳市金立通信设备有限公司 一种文件分享方法及终端
CN106357522B (zh) * 2016-10-25 2020-03-10 Oppo广东移动通信有限公司 一种数据的分享方法及装置
US11321280B2 (en) 2016-11-25 2022-05-03 Huawei Technologies Co., Ltd. Multimedia file sharing method and terminal device
CN107147560A (zh) * 2017-04-12 2017-09-08 腾讯科技(深圳)有限公司 数据分享方法及装置
US11169661B2 (en) * 2017-05-31 2021-11-09 International Business Machines Corporation Thumbnail generation for digital images
CN107832009B (zh) * 2017-10-30 2020-10-23 厦门万匹思网络科技有限公司 一种数据分配方法、设备和计算机存储介质
US11343654B2 (en) * 2017-12-12 2022-05-24 Samsung Electronics Co., Ltd. Apparatus and method for sharing content
CN108173831B (zh) * 2017-12-25 2021-06-04 北京佳艺徕经贸有限责任公司 一种照片的分发方法及装置
CN109274574A (zh) * 2018-07-24 2019-01-25 杭州尚课网络科技有限公司 一种基于人脸识别技术实现照片智能分发的方法及系统
EP3861710A4 (en) * 2018-10-04 2022-03-02 Bilisim Teknoloji Yatirim Aracilik Gida Ihracat Sanayi Ve Ticaret Anonim Sirketi Ad METHOD FOR MULTIPLE PHOTOGRAPHIC MOBILE APPLICATION
CN110008357A (zh) * 2019-03-26 2019-07-12 北京达佳互联信息技术有限公司 事件记录方法、装置、电子设备及存储介质
CN112351133B (zh) * 2019-08-07 2022-02-25 华为技术有限公司 媒体数据的分享方法及终端
CN110932872A (zh) * 2019-08-14 2020-03-27 北京超凡视幻网络科技有限公司 一种创建聊天室系统及方法
CN110610164A (zh) * 2019-09-16 2019-12-24 爱动信息科技(深圳)有限公司 人脸图像处理方法、系统、服务器及可读存储介质
CN110766076B (zh) * 2019-10-24 2023-01-20 广东乐心医疗电子股份有限公司 照片分发方法、装置、电子设备和存储介质
CN113852675A (zh) * 2021-09-13 2021-12-28 维沃移动通信(杭州)有限公司 图像分享方法、装置、设备、存储介质和程序产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368746A (zh) * 2011-09-08 2012-03-07 宇龙计算机通信科技(深圳)有限公司 图片信息推送方法及装置
CN102982064A (zh) * 2012-09-27 2013-03-20 北京摹位传奇网络科技有限责任公司 一种自动分发媒体文件的方法及装置
CN103635892A (zh) * 2011-07-07 2014-03-12 索尼电脑娱乐美国公司 自动创建用于分享照片的群体
CN103945001A (zh) * 2014-05-05 2014-07-23 百度在线网络技术(北京)有限公司 一种图片分享方法及装置
CN103945105A (zh) * 2013-01-23 2014-07-23 北京三星通信技术研究有限公司 一种智能拍照和分享照片的方法和设备

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6819783B2 (en) * 1996-09-04 2004-11-16 Centerframe, Llc Obtaining person-specific images in a public venue
US6850247B1 (en) * 2002-01-06 2005-02-01 Apple Computer, Inc. Method and apparatus for image acquisition, organization, manipulation, and publication
US8838478B2 (en) * 2007-05-11 2014-09-16 Sony Corporation Targeted advertising in mobile devices
US7729366B2 (en) * 2007-10-03 2010-06-01 General Instrument Corporation Method, apparatus and system for network mobility of a mobile communication device
US20120135744A1 (en) * 2009-07-21 2012-05-31 Kota Enterprises, Llc Systems and methods for generating and managing communication rules associated with geographic locations
US20120066573A1 (en) * 2010-09-15 2012-03-15 Kelly Berger System and method for creating photo story books
CN102033958B (zh) * 2010-12-28 2013-04-17 Tcl商用信息科技(惠州)股份有限公司 一种照片分类管理系统及方法
US8582828B2 (en) * 2011-06-24 2013-11-12 Google Inc. Using photographs to manage groups
TWI534721B (zh) * 2011-10-19 2016-05-21 致伸科技股份有限公司 具有人臉辨識功能之相片分享系統
KR101672349B1 (ko) * 2011-12-27 2016-11-07 한국전자통신연구원 파일 클라우드 서비스 장치 및 방법
US8948465B2 (en) * 2012-04-09 2015-02-03 Accenture Global Services Limited Biometric matching technology
CN103034714A (zh) * 2012-12-11 2013-04-10 北京百度网讯科技有限公司 移动终端的照片分类管理方法、装置和移动终端
WO2014105916A2 (en) * 2012-12-26 2014-07-03 Google Inc. Promoting sharing in a social network system
US20140223275A1 (en) * 2013-02-07 2014-08-07 Infopower Corporation Method of File Sharing for Portable Mobile Devices
CN103235814B (zh) * 2013-04-25 2017-02-08 上海斐讯数据通信技术有限公司 移动终端照片筛选的方法
CN103353822A (zh) * 2013-06-26 2013-10-16 上海鹞迅信息技术有限公司 文件获取方法及装置
US10460151B2 (en) * 2013-09-17 2019-10-29 Cloudspotter Technologies, Inc. Private photo sharing system, method and network
WO2015089171A1 (en) * 2013-12-11 2015-06-18 Intralinks, Inc. Customizable secure data exchange environment
US9112849B1 (en) * 2014-12-31 2015-08-18 Spotify Ab Methods and systems for dynamic creation of hotspots for media control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103635892A (zh) * 2011-07-07 2014-03-12 索尼电脑娱乐美国公司 自动创建用于分享照片的群体
CN102368746A (zh) * 2011-09-08 2012-03-07 宇龙计算机通信科技(深圳)有限公司 图片信息推送方法及装置
CN102982064A (zh) * 2012-09-27 2013-03-20 北京摹位传奇网络科技有限责任公司 一种自动分发媒体文件的方法及装置
CN103945105A (zh) * 2013-01-23 2014-07-23 北京三星通信技术研究有限公司 一种智能拍照和分享照片的方法和设备
CN103945001A (zh) * 2014-05-05 2014-07-23 百度在线网络技术(北京)有限公司 一种图片分享方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3211544A4 *

Also Published As

Publication number Publication date
EP3211544A1 (en) 2017-08-30
US10831823B2 (en) 2020-11-10
CN110266506A (zh) 2019-09-20
US20170249341A1 (en) 2017-08-31
CN105591763B (zh) 2019-05-21
EP3211544A4 (en) 2017-11-22
CN105591763A (zh) 2016-05-18

Similar Documents

Publication Publication Date Title
WO2016078550A1 (zh) 一种分发照片的方法及终端
KR101330807B1 (ko) 증강 현실을 활용한 데이터 공유 장치 및 방법
TWI547122B (zh) Instant messaging in the folder transfer method and system, instant access to the client
US8954494B2 (en) Method and system for synchronizing operations of multiple groups
US20150356121A1 (en) Position location-enabled, event-based, photo sharing software and service
WO2017020484A1 (zh) 照片共享方法和装置
US20120242840A1 (en) Using face recognition to direct communications
WO2016023355A1 (zh) 存储设备上的文件的查找方法、装置及路由器
CN104394208B (zh) 文件传输方法和服务器
WO2016095815A1 (zh) 名片信息传输方法、装置、终端设备及存储介质
US10063751B2 (en) System and method for accessing images with a captured query image
CN106034179A (zh) 照片的分享方法及装置
JP2023518163A (ja) データ共有方法、電子デバイスおよびシステム
WO2017107396A1 (zh) 多媒体同步方法、系统、飞行器和存储介质
CN111164983A (zh) 互联终端出借本地处理能力
KR20120129597A (ko) 네트워크 내에서의 서비스 실행 방법 및 서비스 실행 디바이스
WO2019080452A1 (zh) 一种照片分发方法及系统
CN105279273A (zh) 照片分类方法及装置
WO2015192615A1 (zh) 一种图像文件共享方法、装置和计算机存储介质
WO2016172968A1 (zh) 传输云端文件的方法、终端及云端服务器
WO2023134389A1 (zh) 一种资源信息的共享方法、电子设备及计算机存储介质
Kohno et al. Searching common experience: a social communication tool based on mobile ad-hoc networking
JP6666669B2 (ja) 通信装置及びその制御方法ならびにプログラム
US10079790B2 (en) Method for controlled sharing of content among mobile devices
CN114430496B (zh) 跨设备视频搜索方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15860561

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2015860561

Country of ref document: EP