CN112351133B - Media data sharing method and terminal - Google Patents

Media data sharing method and terminal Download PDF

Info

Publication number
CN112351133B
CN112351133B CN201910723991.9A CN201910723991A CN112351133B CN 112351133 B CN112351133 B CN 112351133B CN 201910723991 A CN201910723991 A CN 201910723991A CN 112351133 B CN112351133 B CN 112351133B
Authority
CN
China
Prior art keywords
terminal
media data
shared
sharing
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910723991.9A
Other languages
Chinese (zh)
Other versions
CN112351133A (en
Inventor
相超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910723991.9A priority Critical patent/CN112351133B/en
Publication of CN112351133A publication Critical patent/CN112351133A/en
Application granted granted Critical
Publication of CN112351133B publication Critical patent/CN112351133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]

Abstract

According to the media data sharing method and the terminals provided by the embodiment of the application, the first terminal shoots to obtain the media data and sends the media data to the second terminal; and the second terminal sends the media data to the shared terminal according to the sharing rule corresponding to the first terminal. Through the process, the first terminal does not need to store a large amount of similar media data in the local storage space for a long time, and waste of local storage resources of the terminal is avoided. Furthermore, the media data are intelligently shared through the second terminal according to the sharing rule preset by each first terminal, so that the user who does not need the first terminal manually screens out the media data to be shared from a large amount of similar media data, and a large amount of screening energy of the user is not consumed.

Description

Media data sharing method and terminal
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a media data sharing method and a terminal.
Background
With the rapid development of intelligent terminals, the terminals have become essential devices for people's life, travel and entertainment. Taking a mobile phone as an example, a user can use the mobile phone to shoot images or videos, and the user can also share the shot images or videos with own relatives or friends through the mobile phone.
In a scene where a plurality of users meet or go out, a plurality of terminals may photograph the same scene or the same person at the same time. Generally, when a plurality of terminals shoot the same or similar scenes, a large number of images shot by each terminal are stored in respective local storage spaces. When the party is finished or the tour is finished, the user manually selects certain images to share the images to relatives or friends according to the requirements of the user.
However, in the above scenario, the image captured by each terminal is stored in the respective local storage space first, so that a large number of similar images are stored in each terminal, which wastes the storage resources of the terminal; moreover, the user needs to screen out the images to be shared from a large number of similar images, which consumes a lot of energy of the user.
Disclosure of Invention
The embodiment of the application provides a media data sharing method and a terminal, which can avoid waste of storage resources of the terminal and avoid wasting a large amount of screening energy of a user.
In a first aspect, an embodiment of the present application provides a method for sharing media data, which is applied to a media data sharing system, where the media data sharing system includes a second terminal and at least one first terminal, and the method includes:
the first terminal shoots to obtain media data and sends the media data to the second terminal, wherein the media data is temporarily stored or not stored locally at the first terminal before being sent to the second terminal; the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, the shared terminal is a terminal in the media data sharing system, and the sharing rule is used for indicating a corresponding relation between characteristics of the media data and an identifier of the shared terminal.
In this embodiment, the first terminal does not need to store a large amount of similar media data in the local storage space for a long time, thereby avoiding waste of local storage resources of the terminal. Furthermore, the media data are intelligently shared through the second terminal according to the sharing rule preset by each first terminal, so that on one hand, a user of the first terminal is not required to manually screen out the media data to be shared from a large amount of similar media data, and a large amount of screening energy of the user is not consumed; on the other hand, the second terminal intelligently shares according to the sharing rule of the first terminal, namely the second terminal is authorized by the first terminal, so that privacy disclosure and potential safety hazards are avoided, and the safety of the media data sharing process is guaranteed.
In a possible implementation manner, before the first terminal sends the sharing rule to the second terminal, the method further includes:
each terminal in the media data sharing system acquires own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability; each terminal sends the own capability information to other terminals in the media data sharing system; and each terminal negotiates and determines a terminal serving as the second terminal and a terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
In this implementation, each terminal calculates a performance score of each terminal based on its own capability information and received capability information of other terminals, and the terminal with the highest performance score is used as the second terminal, and the terminals other than the second terminal in the system are used as the first terminals. Because the second terminal is a terminal with better performance, the quality and the sharing efficiency of the shared media data are ensured.
In a possible implementation manner, after the terminals negotiate to determine the terminal as the second terminal and the terminal as the first terminal, the method further includes:
the first terminal receives a sharing rule input by a user, wherein the sharing rule comprises at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal; and the first terminal sends the sharing rule to the second terminal.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes:
the second terminal acquires the characteristics of the media data according to the media data; the second terminal determines the identifier of the shared terminal corresponding to the media data according to the characteristics of the media data and the sharing rule corresponding to the first terminal; and the second terminal sends the media data to the shared terminal according to the identifier of the shared terminal.
In this implementation, the second terminal adopts a real-time sharing mode. That is, after receiving the media data, the second terminal immediately sends the media data to the shared terminal in real time according to the sharing rule corresponding to the first terminal. The embodiment can ensure the timeliness of sharing.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes:
the second terminal acquires a plurality of historical media data sent by the first terminal; the second terminal determines at least one candidate media data corresponding to the same shared terminal from the plurality of historical media data according to the characteristics of the historical media data and the sharing rule corresponding to the first terminal; for each shared terminal, the second terminal performs screening and filtering processing on each candidate media data according to the similarity between each candidate media data and/or the quality of each candidate media data to obtain media data to be shared; and the second terminal sends the media data to be shared to the shared terminal.
In this implementation, the second terminal adopts a non-real-time sharing mode. That is, after receiving the media data, the second terminal caches the media data, and then sends the media data to the corresponding shared terminal according to the sharing rule corresponding to the first terminal. In the embodiment, the second terminal can perform comprehensive evaluation on the received multiple media data, filter out repeated images and/or images with lower quality, and ensure high quality of sharing.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes:
the second terminal acquires a plurality of historical media data sent by the first terminal; the second terminal determines at least one candidate media data corresponding to the same characteristic from the plurality of historical media data; the second terminal performs screening and filtering processing on the candidate media data according to the similarity between the candidate media data and/or the quality of the candidate media data to obtain media data to be shared; and the second terminal sends the media data to be shared to the shared terminal according to the sharing rule corresponding to the first terminal.
In this implementation, the second terminal adopts a non-real-time sharing mode. That is, after receiving the media data, the second terminal caches the media data, and then sends the media data to the corresponding shared terminal according to the sharing rule corresponding to the first terminal. In the embodiment, the second terminal can perform comprehensive evaluation on the received multiple media data, filter out repeated images and/or images with lower quality, and ensure high quality of sharing.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal includes:
the second terminal performs image processing on the media data according to the type of the media data, and sends the media data after the image processing to the shared terminal; wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
In the implementation mode, each media data to be shared is subjected to image processing by the second terminal, on one hand, the advantages of the high-performance terminal can be fully utilized, the image processing effect of each media data is improved, and on the other hand, the image processing burden of each first terminal can be reduced.
In a possible implementation manner, after the second terminal sends the media data after the image processing to the shared terminal, the method further includes:
the second terminal sends the media data after the image processing to a first terminal for shooting the media data; or the second terminal uploads the media data after the image processing to a cloud album, so that the first terminal watches the media data through the cloud album.
In this implementation, because the second terminal has already filtered the media data that the first terminal was shot, therefore, the first terminal only needs to save the image that the screening was handled, the quality is high can, can not cause the waste to the local storage space of first terminal. Or the first terminal does not need to locally store the media data after the image processing, and the local storage space of the first terminal is not wasted.
In a possible implementation manner, after the first terminal obtains the media data by shooting, the method further includes:
the first terminal acquires the privacy of the media data according to the media data; if the privacy degree of the media data is greater than or equal to a preset threshold value, the first terminal determines that the media data is private media data; if the privacy degree of the media data is smaller than the preset threshold value, the first terminal determines that the media data is non-private data; correspondingly, the sending, by the first terminal, the media data to the second terminal includes: and when the media data are determined to be non-private data, the first terminal sends the media data to the second terminal.
In the implementation mode, the media data sharing safety can be guaranteed, and privacy data leakage is avoided.
In a possible implementation manner, the capturing, by the first terminal, media data and sending the media data to the second terminal includes:
the first terminal shoots to obtain media data and detects whether the first terminal and the second terminal are positioned in the same local area network or not; if the first terminal determines that the first terminal and the second terminal are located in the same local area network, the first terminal sends the media data to the second terminal, and the media data are not stored locally in the first terminal; if the first terminal determines that the first terminal and the second terminal are not located in the same local area network, the first terminal temporarily stores the media data locally, and sends the media data to the second terminal and deletes the media data locally when detecting that the first terminal and the second terminal are located in the same local area network after the temporary storage.
In this implementation manner, a real-time sharing manner or a centralized sharing manner may be determined to be adopted according to a network connection manner between the first terminal and the second terminal. In a real-time sharing scene, media data are transmitted through a local area network, so that the sharing timeliness is guaranteed, and the mobile data flow of a terminal is avoided being consumed. In the centralized sharing scene, the media data are transmitted through the local area network, so that the mobile data flow of the terminal is avoided being consumed.
In one possible implementation, the method further includes:
the first terminal receives a storage mode instruction input by a user, wherein the storage mode instruction is used for indicating the storage mode of media data in a local storage space of the first terminal, and the storage mode is temporary storage or non-storage; the first terminal shoots to obtain media data and sends the media data to the second terminal, and the method comprises the following steps: if the storage mode of the media data indicated by the storage mode instruction is temporary storage, the first terminal shoots to obtain the media data, temporarily stores the media data locally and sends the media data to a second terminal; and if the storage mode of the media data indicated by the storage mode instruction is not stored, the first terminal shoots to obtain the media data and sends the media data to the second terminal, and the media data is not stored locally at the first terminal.
In the implementation mode, whether the media data are temporarily stored in the local of the first terminal or not, the storage time can be set by a user, the terminal can recommend the storage mode to the user according to the current network environment, and the user selects and confirms the storage mode, so that the flexibility is improved.
In a second aspect, an embodiment of the present application provides a terminal, which is applied to a media data sharing system, where the media data sharing system includes a second terminal and at least one first terminal, and when the terminal is used as the first terminal, the terminal includes:
the shooting module is used for shooting to obtain media data; the sending module is configured to send the media data to the second terminal, so that the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, where the shared terminal is a terminal in the media data sharing system, and the sharing rule is used to indicate a correspondence between characteristics of the media data and an identifier of the shared terminal; wherein the media data is temporarily stored or not stored locally at the first terminal before being transmitted to the second terminal.
In a possible implementation manner, the terminal further includes: a capability negotiation module; the capability negotiation module is configured to: acquiring own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability; sending the self capability information to other terminals in the media data sharing system; and negotiating to determine the terminal serving as the second terminal and the terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
In a possible implementation manner, the terminal further includes: a receiving module; the receiving module is configured to receive a sharing rule input by a user, where the sharing rule includes at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal; the sending module is further configured to send the sharing rule to the second terminal.
In a possible implementation manner, the sending module is further configured to, after the media data is obtained by shooting by the shooting module, obtain the privacy degree of the media data according to the media data, and if the privacy degree of the media data is greater than or equal to a preset threshold, determine that the media data is the private media data; if the privacy degree of the media data is smaller than the preset threshold value, determining that the media data is non-private data; the sending module is specifically configured to send the media data to the second terminal when the processing module determines that the media data is non-private data.
In a possible implementation manner, the sending module is further configured to detect whether the sending module and the second terminal are located in the same local area network; the sending module is specifically configured to: if the first terminal and the second terminal are located in the same local area network, the media data are sent to the second terminal, and the media data are not stored locally in the first terminal; if the terminal and the second terminal are not located in the same local area network, the media data are temporarily stored locally, and when the terminal and the second terminal are detected to be located in the same local area network after the temporary storage, the media data are sent to the second terminal and are deleted locally.
In a possible implementation manner, the receiving module is further configured to receive a storage manner instruction input by a user, where the storage manner instruction is used to indicate a storage manner of media data in a local storage space of the receiving module, and the storage manner is temporary storage or non-storage; the sending module is specifically configured to: if the storage mode of the media data indicated by the storage mode instruction is temporary storage, after the media data is shot by the shooting module, the media data is temporarily stored locally, and the media data is sent to a second terminal; and if the storage mode of the media data indicated by the storage mode instruction is not stored, sending the media data to the second terminal after the media data is shot by the shooting module, wherein the media data is not stored locally at the first terminal.
In a third aspect, an embodiment of the present application provides a terminal, which is applied to a media data sharing system, where the media data sharing system includes a second terminal and at least one first terminal, and when the terminal is used as the second terminal, the method includes:
a receiving module, configured to receive media data from the first terminal, where the media data is temporarily stored or not stored locally at the first terminal after being photographed by the first terminal and before being sent to the second terminal; and the sending module is used for sending the media data to a shared terminal according to a sharing rule corresponding to the first terminal, the shared terminal is a terminal in the media data sharing system, and the sharing rule is used for indicating a corresponding relation between the characteristics of the media data and the identifier of the shared terminal.
In a possible implementation manner, the terminal further includes: a capability negotiation module to: acquiring own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability; sending the self capability information to other terminals in the media data sharing system; and negotiating to determine the terminal serving as the second terminal and the terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
In a possible implementation manner, the receiving module is further configured to receive a sharing rule from the first terminal, where the sharing rule includes at least one of: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal.
In a possible implementation manner, the sending module is specifically configured to: acquiring the characteristics of the media data according to the media data; determining an identifier of a shared terminal corresponding to the media data according to the characteristics of the media data and a sharing rule corresponding to the first terminal; and sending the media data to the shared terminal according to the identifier of the shared terminal.
In a possible implementation manner, the sending module is specifically configured to: acquiring a plurality of historical media data sent by the first terminal; determining at least one candidate media data corresponding to the same shared terminal from the plurality of historical media data according to the characteristics of each historical media data and the sharing rule corresponding to the first terminal; for each shared terminal, according to the similarity between the candidate media data and/or the quality of the candidate media data, filtering and processing the candidate media data to obtain media data to be shared; and sending the media data to be shared to the shared terminal.
In a possible implementation manner, the sending module is specifically configured to: acquiring a plurality of historical media data sent by the first terminal; determining at least one candidate media data corresponding to the same characteristic from the plurality of historical media data; according to the similarity between the candidate media data and/or the quality of the candidate media data, screening and filtering the candidate media data to obtain media data to be shared; and sending the media data to be shared to a shared terminal according to a sharing rule corresponding to the first terminal.
In a possible implementation manner, the sending module is specifically configured to: according to the type of the media data, image processing is carried out on the media data, and the media data after the image processing is sent to the shared terminal; wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
In one possible implementation manner, the sending module is further configured to: sending the media data after the image processing to a first terminal for shooting the media data; or uploading the media data after the image processing to a cloud album, so that the first terminal watches the media data through the cloud album.
In a fourth aspect, an embodiment of the present application provides a method for sharing media data, which is applied to a media data sharing system, where the media data sharing system includes a second terminal and at least one first terminal, and the method includes:
the first terminal shoots to obtain media data and sends the media data to the second terminal, so that the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, wherein the shared terminal is a terminal in the media data sharing system, and the sharing rule is used for indicating a corresponding relation between characteristics of the media data and an identifier of the shared terminal; wherein the media data is temporarily stored or not stored locally at the first terminal before being transmitted to the second terminal.
In a possible implementation manner, before the first terminal sends the sharing rule to the second terminal, the method further includes: the first terminal acquires own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability; the first terminal sends the self capability information to other terminals in the media data sharing system; and the first terminal negotiates and determines a terminal serving as the second terminal and a terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
In a possible implementation manner, after the terminals negotiate to determine the terminal as the second terminal and the terminal as the first terminal, the method further includes: the first terminal receives a sharing rule input by a user, wherein the sharing rule comprises at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal; and the first terminal sends the sharing rule to the second terminal.
In a possible implementation manner, after the first terminal obtains the media data by shooting, the method further includes: the first terminal acquires the privacy of the media data according to the media data; if the privacy degree of the media data is greater than or equal to a preset threshold value, the first terminal determines that the media data is private media data; if the privacy degree of the media data is smaller than the preset threshold value, the first terminal determines that the media data is non-private data; correspondingly, the sending, by the first terminal, the media data to the second terminal includes: and when the media data are determined to be non-private data, the first terminal sends the media data to the second terminal.
In a possible implementation manner, the capturing, by the first terminal, media data and sending the media data to the second terminal includes: the first terminal shoots to obtain media data and detects whether the first terminal and the second terminal are positioned in the same local area network or not; if the first terminal determines that the first terminal and the second terminal are located in the same local area network, the first terminal sends the media data to the second terminal, and the media data are not stored locally in the first terminal; if the first terminal determines that the first terminal and the second terminal are not located in the same local area network, the first terminal temporarily stores the media data locally, and sends the media data to the second terminal and deletes the media data locally when detecting that the first terminal and the second terminal are located in the same local area network after the temporary storage.
In one possible implementation, the method further includes: the first terminal receives a storage mode instruction input by a user, wherein the storage mode instruction is used for indicating the storage mode of media data in a local storage space of the first terminal, and the storage mode is temporary storage or non-storage; the first terminal shoots to obtain media data and sends the media data to the second terminal, and the method comprises the following steps: if the storage mode of the media data indicated by the storage mode instruction is temporary storage, the first terminal shoots to obtain the media data, temporarily stores the media data locally and sends the media data to a second terminal; and if the storage mode of the media data indicated by the storage mode instruction is not stored, the first terminal shoots to obtain the media data and sends the media data to the second terminal, and the media data is not stored locally at the first terminal.
In a fifth aspect, an embodiment of the present application provides a media data sharing method, which is applied to a media data sharing system, where the media data sharing system includes a second terminal and at least one first terminal, and the method includes:
the second terminal receives media data from the first terminal, and the media data is temporarily stored or not stored locally at the first terminal after being shot by the first terminal and before being sent to the second terminal; the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, the shared terminal is a terminal in the media data sharing system, and the sharing rule is used for indicating a corresponding relation between characteristics of the media data and an identifier of the shared terminal.
In one possible implementation, the method further includes: the second terminal acquires own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability; the second terminal sends the self capability information to other terminals in the media data sharing system; and the second terminal negotiates and determines a terminal serving as the second terminal and a terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
In one possible implementation, the method further includes: the second terminal receives a sharing rule from the first terminal, wherein the sharing rule comprises at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes: the second terminal acquires the characteristics of the media data according to the media data; the second terminal determines the identifier of the shared terminal corresponding to the media data according to the characteristics of the media data and the sharing rule corresponding to the first terminal; and the second terminal sends the media data to the shared terminal according to the identifier of the shared terminal.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes: the second terminal acquires a plurality of historical media data sent by the first terminal; the second terminal determines at least one candidate media data corresponding to the same shared terminal from the plurality of historical media data according to the characteristics of the historical media data and the sharing rule corresponding to the first terminal; for each shared terminal, the second terminal performs screening and filtering processing on each candidate media data according to the similarity between each candidate media data and/or the quality of each candidate media data to obtain media data to be shared; and the second terminal sends the media data to be shared to the shared terminal.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes: the second terminal acquires a plurality of historical media data sent by the first terminal; the second terminal determines at least one candidate media data corresponding to the same characteristic from the plurality of historical media data; the second terminal performs screening and filtering processing on the candidate media data according to the similarity between the candidate media data and/or the quality of the candidate media data to obtain media data to be shared; and the second terminal sends the media data to be shared to the shared terminal according to the sharing rule corresponding to the first terminal.
In a possible implementation manner, the sending, by the second terminal, the media data to the shared terminal includes: the second terminal performs image processing on the media data according to the type of the media data, and sends the media data after the image processing to the shared terminal; wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
In a possible implementation manner, after the second terminal sends the media data after the image processing to the shared terminal, the method further includes: the second terminal sends the media data after the image processing to a first terminal for shooting the media data; or the second terminal uploads the media data after the image processing to a cloud album, so that the first terminal watches the media data through the cloud album.
In a sixth aspect, an embodiment of the present application provides a terminal, including: a memory for storing a computer program, and a processor for calling and executing the computer program from the memory, so that the processor executes the computer program to perform the method for sharing media data according to any one of the fourth aspects.
In a seventh aspect, an embodiment of the present application provides a terminal, including: a memory for storing a computer program, and a processor for calling and executing the computer program from the memory, so that the processor executes the computer program to perform the method for sharing media data according to any one of the fifth aspects.
In an eighth aspect, an embodiment of the present application provides a chip, including: a memory for storing a computer program, and a processor for calling and executing the computer program from the memory, so that the processor executes the computer program to perform the method for sharing media data according to any one of the fourth aspects, or the method for sharing media data according to any one of the fifth aspects.
In a ninth aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a computer program, and the computer program, when executed by a processor, implements the method for sharing media data according to any one of the fourth aspects, or the method for sharing media data according to any one of the fifth aspects.
In a tenth aspect, an embodiment of the present application provides a media data sharing system, including the terminal according to any one of the third aspects and at least one terminal according to any one of the second aspects, or including the terminal according to any one of the seventh aspects and at least one terminal according to any one of the sixth aspects.
According to the media data sharing method and the terminals provided by the embodiment of the application, the first terminal shoots to obtain the media data and sends the media data to the second terminal; and the second terminal sends the media data to the shared terminal according to the sharing rule corresponding to the first terminal. Through the process, the first terminal does not need to store a large amount of similar media data in the local storage space for a long time, and waste of local storage resources of the terminal is avoided. Furthermore, the media data are intelligently shared through the second terminal according to the sharing rule preset by each first terminal, so that on one hand, a user of the first terminal is not required to manually screen out the media data to be shared from a large amount of similar media data, and a large amount of screening energy of the user is not consumed; on the other hand, the second terminal intelligently shares according to the sharing rule of the first terminal, namely the second terminal is authorized by the first terminal, so that privacy disclosure and potential safety hazards are avoided, and the safety of the media data sharing process is guaranteed.
Drawings
Fig. 1 is a schematic diagram of a network architecture of a media data sharing system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a terminal in an embodiment of the present application;
FIG. 3 is a schematic diagram of a set of terminal interfaces in an embodiment of the present application;
fig. 4 is a schematic flowchart of a media data sharing method according to an embodiment of the present disclosure;
fig. 5 is an interaction diagram of a media data sharing method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 8 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present application.
Detailed Description
In order to facilitate understanding of the technical solution of the present application, first, a network architecture of the media data sharing system and related devices are described with reference to fig. 1 and fig. 2.
Fig. 1 is a schematic diagram of a network architecture of a media data sharing system according to an embodiment of the present disclosure. As shown in fig. 1, the network architecture includes a plurality of terminals. The terminal is an electronic device with a shooting function or a media data processing function, and includes but is not limited to: mobile phones, tablet computers, portable devices, etc. Referring to fig. 1, the terminals in fig. 1 are located in the same communication network, and communication can be performed between the terminals in the communication network, for example: control messages and media data, etc. The communication network may be a wide area network or a local area network. For example, each terminal may support a wireless network function such as bluetooth, Near Field Communication (NFC), Wi-Fi, and the like, and each terminal may be communicatively connected in a local area network through a wireless network, or may support a cellular network function such as 3G, 4G, or 5G, and is communicatively connected in a wide area network.
Next, the structure of the terminal in the embodiment of the present application will be described with reference to fig. 2.
Fig. 2 is a schematic structural diagram of a terminal in an embodiment of the present application. The terminal in the embodiment of the application can have the functions of data communication, image recognition, image processing, artificial intelligence, figure beautifying and the like. As shown in fig. 2, the terminal includes: system On Chip (SOC), memory, display, camera, sensor, short-range communication chip, codec chip, Radio Frequency Integrated Circuit (RFIC), Power Management Integrated Circuit (PMIC), Universal Serial Bus (USB) interface, Secure Digital (SD) card, Subscriber Identity Module (SIM) card, etc.
Wherein the system-on-chip may comprise one or more processing units. For example, referring to fig. 2, a system-on-chip may include: an Application Processor (AP), a Graphics Processing Unit (GPU), an image compression/decompression device, an Image Signal Processor (ISP), a neural-Network Processing Unit (NPU), a PM core, a SE, a storage support, a display subsystem, a peripheral interface, a sensor subsystem, a clock/voltage domain subsystem, a voice subsystem, a short-range processor, a communication processor, communication hardware acceleration, and the like. The different processing units may be separate devices or may be integrated into one or more processors.
The application processor is also called a main processor, and is used for running an Operating System (OS) and related application software, and performing arbitration negotiation, transmission scheduling, sharing control, and the like. A short-range processor, i.e., a short-range baseband communication processing unit, for running short-range communication protocol software, such as: bluetooth or Wi-Fi based short-range communication software. The graphics processor is used for carrying out drawing and rendering calculation on the image data and generating an image to be displayed, and can comprise 2-dimensional (D) and/or 3D processing functions. An image signal processor for performing image processing (e.g., exposure control, white balance, color calibration, noise removal, etc.) on the acquired image to generate image data may include a processor core or a pure hardware implementation that performs the necessary software processing. And the display subsystem is used for butting the display and carrying out display processing on the image to be displayed generated by the processor or the GPU. And the storage support is used for realizing the function of a storage interface to an external memory and carrying out internal storage and cache on the received data. An NPU, also known as an artificial intelligence processor (AI processor), is a device for performing Convolutional Neural Network (CNN) processing, which may be dedicated to making artificial intelligence operations. For example, a great amount of information recognition and screening processes are performed by using the CNN model, and a part of the training functions of the CNN model can also be selectively implemented. The NPU can be used to implement image processing and rating processing. And the SE is used for processing the confidential information and internally provided with an independent memory and a processor, so that the system security is ensured.
A Radio Frequency Front End (RFFE) mainly includes a radio frequency switch, a duplexer, a filter, a Power Amplifier (PA), and the like required for wireless communication. A Wireless Transceiver (WTR) mainly includes a mixer, a transformer, and a variable gain amplifier. The short-distance communication chip comprises Wi-Fi, Bluetooth, NFC, a radio, a Global Positioning System (GPS) and the like. The Codec chip is used for processing a voice signal, converting an original voice signal in the nature into a digital voice signal, and outputting a voice/audio signal (64kbps or higher) through Pulse Code Modulation (PCM) processing for further processing by the main SOC. The PMIC is also called a power management unit and is used for generating voltage and clock required by the work of other chips to realize power management.
The terminal realizes the display function through a GPU, a display, an application processor and the like. The GPU is a microprocessor for image processing and is connected with a display and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The terminal may include one or more GPUs that execute program instructions to generate or alter display information.
The display is used to display images, video, and the like. The display includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the terminal may include 1 or N displays, N being a positive integer greater than 1.
The terminal can realize shooting function through ISP, camera, video coder-decoder, GPU, display and application processor.
The ISP is used for processing data fed back by the camera. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in a camera.
Video codecs are used to compress or decompress digital video. The terminal may support one or more video codecs. In this way, the terminal can play or record video in a plurality of coding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize the intelligent cognition and other applications of the terminal, such as: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface can be used for connecting an external memory card, such as a Micro SD card, so as to realize the storage capability of the expansion terminal. The external memory card communicates with the processor through the external memory interface to realize the data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory may be used to store computer-executable program code, which includes instructions. The internal memory may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal, and the like. In addition, the internal memory may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one of a magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor performs various functional applications of the terminal and data processing by executing instructions stored in an internal memory and/or instructions stored in a memory provided in the processor.
The terminal can realize audio functions through an audio module, a loudspeaker, a telephone receiver, a microphone, an earphone interface, an application processor and the like. Such as music playing, recording, etc.
The audio module is used for converting digital audio information into analog audio signals to be output and converting the analog audio input into digital audio signals. The audio module may also be used to encode and decode audio signals. In some embodiments, the audio module may be disposed in the processor, or a portion of the functional modules of the audio module may be disposed in the processor.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the terminal. In other embodiments of the present application, the terminal may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. The structures of the respective terminals in fig. 1 may be the same or different.
In the network architecture shown in fig. 1, media data can be shared among a plurality of terminal devices. The media data may be video, audio, or image, etc. The method of sharing images is described with reference to fig. 3.
Fig. 3 is a schematic interface diagram of a group of terminals in an embodiment of the present application, which illustrates an interface diagram of a terminal of a sharer when sharing an image. As shown in fig. 3, interface 301, interface 302, interface 303, and interface 304 are included. The image taken by the user through the terminal is stored in the local storage space of the terminal, and the interface corresponding to the local storage space is shown as 301. Referring to interface 301, a user views a previously captured image in the local storage space of the terminal. When image sharing is needed, a selection button at the upper right of the interface 301 is clicked, so that the terminal jumps to the interface 302. In the interface 302, each image is in a state in which it can be selected. After the user clicks a certain image, the image is in a selected state. Further, after the user selects an image to be shared, as shown in the interface 303, a sharing button appears at the bottom of the interface. The user clicks the share button, so that the terminal jumps to the interface 304, and the selectable sharing mode is displayed in the interface 304. Wherein, the optional sharing modes include but are not limited to: mail sharing, social application sharing, bluetooth sharing, Wi-Fi sharing, and the like. The user can select a sharing mode suitable for the user to share the image according to the preference of the user or the current network environment.
It should be noted that the description of the image sharing method and the related interface shown in fig. 3 is only an exemplary illustration. Different terminals may have different operation methods and interface displays for image sharing.
In one possible scenario, the terminal also typically has image processing functions, such as: and performing figure beautifying processing and the like on the image. Therefore, before the user performs image sharing, for example: in the interface 303 shown in fig. 3, a beauty button may be further included. And when the user clicks the figure beautifying button, the user enters a figure beautifying interface, so that the user can beautify the image according to the requirement of the user. Then, aiming at the beautified image, the user carries out manual sharing.
In one possible scenario, the terminal may also support album creation functions. In the interface 302 shown in FIG. 3, a user may select multiple images. The terminal can make a plurality of images selected by the user into an album, so that the user can share the album manually.
However, in the above image sharing methods, the terminal is required to capture the image first and store the image in the local storage space. And then, the user selects the image to be shared from the local storage space to perform manual sharing. It can be understood that, when a user uses a terminal to take a picture, the same scene may be taken multiple times in order to ensure that a higher quality image is taken, which results in a large number of similar images being stored in the local storage space. For example, in the interface 301 shown in fig. 3, a plurality of relatively similar images are stored for each scene. Therefore, on one hand, a large number of images are stored in the local storage space of the terminal, and the local storage space is wasted; on the other hand, when the user shares images, the user needs to manually select an image with high shooting quality from a large number of similar images, and great effort of the user needs to be consumed.
In a possible implementation, image scoring software may be installed in the terminal, and is used for scoring the images according to the image browsing time and frequency. Illustratively, images that are browsed more frequently are scored higher, and images that are browsed less frequently are scored lower. The user can manually delete the low-score images according to the scoring result of the image scoring software on each image. Through the above process, although the repeated images or the low-quality images in the terminal can be reduced to a certain extent, a large number of images still need to be temporarily stored in the local storage space, and the repeated images or the low-quality images can be deleted only after the user regularly counts the browsing behavior, so that the failure is poor.
The image scoring software is limited to scoring the images in the terminal, so that the repeated images or low-resolution images in the terminal can be reduced to a certain extent. In a scene where multiple persons are going to travel or meet, multiple terminals may shoot the same scene at the same time, so that a large number of similar images exist in the multiple terminals. Therefore, when image sharing is performed among a plurality of terminals, a large number of images of similar scenes may still exist among images shared with each other.
In addition, although most terminals support image processing functions, such as: the above-mentioned figure beautifying processing, album making and the like. However, since the image processing capabilities of different terminals are different, and even the difference in image processing capabilities between some terminals is large, the quality of images shared by different terminals is different, and the image effect of the shared images cannot be optimal.
In order to solve at least one of the above problems, embodiments of the present application provide a method for sharing media data, which does not need to store a large amount of similar media data in a local storage space of a terminal, and avoids wasting local storage resources of the terminal; in addition, the user does not need to screen the media data to be shared from a large amount of similar media data, but the terminal intelligently shares the media data according to the preset sharing rule, so that a large amount of screening energy of the user is not consumed.
The technical solution of the present application will be described in detail by specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 4 is a schematic flowchart of a media data sharing method according to an embodiment of the present disclosure. As shown in fig. 4, the method of this embodiment includes:
s401: the first terminal shoots to obtain media data and sends the media data to the second terminal, wherein the media data is temporarily stored or not stored in the local of the first terminal before being sent to the second terminal.
S402: the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, the shared terminal is a terminal in the media data sharing system, and the sharing rule is used for indicating a corresponding relation between characteristics of the media data and an identifier of the shared terminal.
The method of the embodiment can be applied to the media data sharing system shown in fig. 1. The system comprises a plurality of terminals, and users corresponding to the terminals usually have certain contact, for example, the terminals of a plurality of members in a family form a media data sharing system. The terminals of a plurality of members in a certain class form a media data sharing system. The terminals of a plurality of members in a certain outbound group form a media data sharing system. The members in the media data sharing system can share media data with each other.
The media data in this embodiment includes, but is not limited to, video data and image data. For convenience of description in the following embodiments, only image data will be described as an example.
In this embodiment, the media data sharing system includes a second terminal and at least one first terminal. Wherein the second terminal may be any one terminal in the system. The first terminal is a terminal other than the second terminal in the system. In this embodiment, the first terminal obtains the media data by shooting, and sends the media data to the second terminal, so as to implement the sharing action of the media data by means of the second terminal. Wherein the media data is temporarily stored or not stored locally at the first terminal before being transmitted to the second terminal.
Optionally, whether the media data is temporarily stored locally at the first terminal, and the storage duration may be set by the user, and the terminal may recommend the storage mode to the user according to the current network environment, and the user selects and confirms the storage mode.
Optionally, before or after the first terminal obtains the media data through shooting, the first terminal receives a storage mode instruction input by a user, where the storage mode instruction is used to indicate a storage mode of the media data in a local storage space of the first terminal, and the storage mode is temporary storage or non-storage. Optionally, the storage mode instruction may further include a temporary storage duration. Correspondingly, if the storage mode is temporary storage, after the first terminal obtains the media data by shooting, the media data is temporarily stored locally, then the media data is sent to the second terminal, and after the temporary storage time length is reached, the media data is deleted from the local storage space. And if the storage mode is not storage, the first terminal does not locally store the media data after shooting the media data, and directly sends the media data to the second terminal. With regard to the input mode of the storage mode command, several possible modes are exemplified below.
In one possible mode, after the first terminal obtains the media data through shooting, the first terminal displays a first query interface to a user. In the first query interface, the user may select to temporarily store the media data or not, and when the user selects the temporary storage, the time length of the temporary storage may be further set in the first query interface.
In another possible approach, the second query interface is presented to the user before the first terminal captures the media data (e.g., after detecting that the user opens the camera application). In the second query interface, the user may select a storage mode of the media data, for example, temporary storage or non-storage, and may further set a duration of the temporary storage after the user selects the temporary storage mode. Further, the user may set an effective time period of the storage mode in the second query interface. For example: the user can set the images shot between 8:00 and 16:00 of the day to adopt the storage mode.
In another possible mode, before or after the first terminal obtains the media data through shooting, a third query interface is displayed to the user, and in the third query interface, a storage mode is recommended to the user in combination with the current network environment of the first terminal. For example, "it is recommended that you choose not to store because your current network environment is a local area network to save storage space" or "it is recommended that you choose to temporarily store because your current network environment is a non-local area network to save your traffic" is displayed in the third query interface, so that the user can make a selection confirmation according to the above-mentioned recommended contents.
It should be understood that the present embodiment does not specifically limit the query interface and the content of the query interface, and the description in the above example is only an exemplary description.
In the embodiment of the present application, the term "not storing" means: the first terminal sends the media data to the second terminal immediately after shooting the media data, and the first terminal does not store the media data in the local storage space. The temporary storage means that: after the first terminal obtains the media data through shooting, the media data are stored in the local storage space for a certain time, and after the media data are sent to the second terminal, the media data are deleted from the local storage space. The certain duration may be a preset fixed duration, or may be any duration, and this embodiment is not particularly limited. The local storage space may be a non-operating internal memory supported by the first terminal itself, or may be an external memory of the first terminal, for example: SD cards, and the like.
It can be understood that "the media data is temporarily stored locally at the first terminal" may be applicable to a scenario in which the first terminal performs centralized sharing on the media data, and "the media data is not stored locally at the first terminal" may be applicable to a scenario in which the first terminal performs real-time sharing on the media data. In the following description several possible embodiments are described.
In one possible implementation, after the first terminal obtains the media data by shooting, the first terminal directly sends the media data to the second terminal without storing the media data in the local storage space. The embodiment is suitable for real-time sharing scenes.
In another possible implementation manner, after the first terminal obtains the media data through shooting, the first terminal may temporarily store the media data in the local storage space. After the first terminal detects that the tour is finished or the party is finished (for example, the first terminal does not shoot any media data within a preset time length, or the first terminal receives an instruction input by a user and used for indicating the tour is finished or the party is finished), the first terminal sends the temporarily stored media data to the second terminal. Then, the first terminal deletes these temporarily stored media data from the local storage space.
Or, after the second terminal detects the end of the tour or the end of the party (for example, the first terminal sends a message indicating the end of the tour or the end of the party to the second terminal, or a user of the second terminal inputs a message indicating the end of the tour or the end of the party to the second terminal), the second terminal sends a media data collection instruction to the first terminal, so that the first terminal sends the temporarily stored media data to the second terminal. Then, the first terminal deletes these temporarily stored media data from the local storage space. The embodiment is suitable for centralized sharing scenes, and although the local storage space of the first terminal can be occupied temporarily, the local storage space of the first terminal can be occupied for a short time, and long-time occupation and waste can not be caused.
In another possible implementation manner, a real-time sharing manner or a centralized sharing manner may be determined according to a network connection manner between the first terminal and the second terminal.
Illustratively, after the first terminal obtains the media data through shooting, it is detected whether the first terminal and the second terminal are located in the same local area network, including but not limited to a Wi-Fi local area network, a bluetooth connection, an NFC connection, and the like. For example, the first terminal obtains its own network environment, and if it is in a local area network, it may determine whether the second terminal is also in the local area network by using a device discovery technique.
In a possible scenario, if the first terminal determines that the first terminal and the second terminal are located in the same local area network, the first terminal does not store the media data in the local storage space, but directly sends the media data to the second terminal. The scene is a real-time sharing scene, and the media data are transmitted through the local area network, so that the sharing timeliness is guaranteed, and the mobile data flow of the terminal is avoided being consumed.
In another possible scenario, if the first terminal determines that the first terminal and the second terminal are not located in the same lan, the first terminal temporarily stores the media data locally, and when detecting that the first terminal and the second terminal are located in the same lan after the temporary storage, the first terminal sends the media data to the second terminal and deletes the media data locally. The scene is a centralized sharing scene, and the media data is transmitted through the local area network, so that the mobile data flow of the terminal is avoided being consumed.
Of course, the two scenario descriptions above are merely exemplary illustrations. Under the condition of not considering the mobile data traffic, even if the first terminal determines that the first terminal and the second terminal are not located in the same local area network, a real-time sharing mode can be adopted.
In this embodiment, the second terminal is configured to send the media data to the corresponding shared terminal according to the sharing rule corresponding to the first terminal. The second terminal may also be referred to as "arbitration terminal", "service terminal". For example, it is assumed that the media data sharing system includes 5 terminals, which are terminal a, terminal B, terminal C, terminal D, and terminal E, respectively. Wherein, the terminal C is used as the second terminal, and the other terminals are used as the first terminals. When the terminal A needs to share the shot image with the terminal D, the terminal A sends the image to the terminal C after the terminal A obtains the image. And the terminal C determines that the image needs to be shared to the terminal D according to the sharing rule of the terminal A, and then the terminal C sends the image to the terminal D. In the sharing process, the terminal a is called a sharing terminal, and the terminal D is called a shared terminal. It can be understood that, in one sharing, the sharing terminal may be the first terminal or the second terminal, and the shared terminal may be the first terminal or the second terminal. For example: the terminal A can share the image with the terminal C, the image can also be shared with the image D, and the terminal C can share the image with the terminal E. In some scenarios, there may be a plurality of shared terminals in one sharing, for example, the terminal a shares a certain image to the terminals C, D and E simultaneously.
It should be noted that, in the embodiment of the present application, the sharing terminal and the shared terminal are peer-to-peer. The first terminal can share the image for other terminals, and can also receive other terminals including the image shared by the second terminal. The second terminal can receive the image shared by the first terminal and sends the received image to the corresponding shared terminal according to the sharing rule; the second terminal may also share the image captured by itself with the first terminal, for example, in the above example, when the terminal C is used as the second terminal, the terminal C may also send the image to the corresponding shared terminal according to the sharing rule defined by itself. That is to say, both the first terminal and the second terminal can be used as sharing terminals and also can be used as shared terminals.
In a possible implementation manner, the second terminal is a terminal with the best performance in the media data sharing system. Wherein the performance of the terminal may be measured by indicating a capability as follows: shooting capabilities, image processing capabilities, security capabilities, etc. As will be appreciated, the shooting capability refers to the capability of the terminal to shoot media data, and is generally related to the following factors or parameters: pixels, resolution, sensors, lenses, apertures, anti-shake, chips, etc. Image processing capability refers to the ability of a terminal to beautify the processing of media data, and is generally related to the following factors or parameters: NPU, GPU, rendering capability, etc. Security capabilities refer to the ability of a terminal to protect the privacy of media data, and are generally related to the following factors or parameters: encryption algorithms, network security parameters, etc.
Optionally, when the terminals in the media data sharing system are terminals of the same brand, each terminal may negotiate autonomously to determine which terminal is used as the second terminal. When each terminal in the media data sharing system is of a different brand, a user corresponding to each terminal may negotiate which terminal is designated as the second terminal. This embodiment is not particularly limited thereto.
For example, the second terminal stores a sharing rule corresponding to the first terminal. The sharing rule is used for indicating the corresponding relation between the characteristics of the media data and the identifier of the shared terminal. The characteristics of the media data may include, but are not limited to: a photographing characteristic of the media data, a content characteristic of the media data, and the like. The photographing characteristics may be a photographing time, a photographing place, and the like. The content feature may be a type of the photographing content, for example: the shot content is of landscape type, person type, animal type, or the like.
Optionally, the sharing rule includes at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal.
It can be understood that sharing requirements corresponding to different users in the same scene are different, for example: a user wants to share the images of children photographed to their lovers, a user wants to share the images of animals photographed to their children, and a user wants to share the images of the outgoing group photo photographed to each of the other users in the images. It can be understood that sharing requirements of the same user in different scenes may also be different. For example: a user may wish to share images captured during the tour session with their parents in a tour scenario. The user may wish to share all images taken at the meeting location to his lovers in the meeting scene. Therefore, in this embodiment, the user of each terminal can set the sharing rule according to the sharing requirement.
In this embodiment, after receiving the media data sent by the first terminal, the second terminal sends the media data to the shared terminal according to the sharing rule corresponding to the first terminal. It can be understood that the application scenario of this embodiment is a scenario in which terminals in the media data sharing system share, and therefore, the shared terminal is also a terminal in the media data sharing system.
The second terminal sends the media data to the shared terminal according to the sharing rule of the first terminal, and the following embodiments may be provided.
In a possible implementation manner, the second terminal adopts a real-time sharing manner. That is, after receiving the media data, the second terminal immediately sends the media data to the shared terminal in real time according to the sharing rule corresponding to the first terminal. The embodiment can ensure the timeliness of sharing.
Illustratively, the second terminal obtains the characteristics of the media data according to the media data; the second terminal determines the identifier of the shared terminal corresponding to the media data according to the characteristics of the media data and the sharing rule corresponding to the first terminal; and the second terminal sends the media data to the shared terminal according to the identifier of the shared terminal.
The following description is given by way of example. Assume that the sharing rule set by the user of terminal a is: the image with the shooting time of "2019-6-1" is shared with a lover of the user (the corresponding terminal marked as D, namely the terminal D). After the terminal a captured the image on day 1/6/2019, the captured image is not stored locally in the terminal a, but is directly transmitted to the terminal C (second terminal). And after receiving the image, the terminal C acquires the shooting time of the image, and the shared terminal corresponding to the image is determined to be D as the shooting time is consistent with the shooting time in the sharing rule. Thus, the terminal C transmits the image to the terminal D.
Assume that the sharing rule set by the user of terminal B is: the images with the shooting contents of the "grassland" are shared with friends of the user (the corresponding terminal marked as E, namely the terminal E). After the terminal a takes the grassland as the object to obtain the image, the taken image is not stored locally in the terminal a, but is directly transmitted to the terminal C (second terminal). And after receiving the image, the terminal C identifies the content of the image, acquires the shooting content of the image as a grassland, and determines that the shared terminal corresponding to the image is E. Therefore, the terminal C transmits the image to the terminal E.
In another possible implementation, the second terminal adopts a non-real-time sharing mode. That is, after receiving the media data, the second terminal caches the media data, and then sends the media data to the corresponding shared terminal according to the sharing rule corresponding to the first terminal. In the embodiment, the second terminal can perform comprehensive evaluation on the received multiple media data, filter out repeated images and/or images with lower quality, and ensure high quality of sharing.
In this embodiment, the second terminal adopts a non-real-time sharing mode, and when comprehensively evaluating multiple media data, the following two evaluation modes may be adopted: the first mode is as follows: and comprehensively evaluating a plurality of media data corresponding to the same shared object, wherein the second mode comprises the following steps: and comprehensively evaluating a plurality of media data corresponding to the same characteristic. Two ways are described below.
Aiming at a first optimization mode, the second terminal acquires a plurality of historical media data sent by the first terminal; the second terminal determines at least one candidate media data corresponding to the same shared terminal from the plurality of historical media data according to the characteristics of the historical media data and the sharing rule corresponding to the first terminal; for each shared terminal, the second terminal performs screening and filtering processing on each candidate media data according to the similarity between each candidate media data and/or the quality of each candidate media data to obtain media data to be shared; and the second terminal sends the media data to be shared to the shared terminal.
Aiming at a second optimization mode, the second terminal acquires a plurality of historical media data sent by the first terminal; the second terminal determines at least one candidate media data corresponding to the same characteristic from the plurality of historical media data; for each feature, the second terminal performs screening and filtering processing on each candidate media data according to the similarity between each candidate media data and/or the quality of each candidate media data to obtain media data to be shared; and the second terminal sends the media data to be shared to the shared terminal according to the sharing rule corresponding to the first terminal.
The following is exemplified in connection with two scenarios.
In a possible scenario, in a scenario that a user of a terminal a goes for a trip, the user of the terminal a sets a sharing rule as follows: shooting the image of the child and sharing the image to a lover of the child (a corresponding terminal marked as D, namely a terminal D); the images of the photographed scenery are shared with friends of the user (the corresponding terminal marked with E, namely the terminal E). Then, after the terminal a captures an image during the outgoing trip, the captured image is not stored locally in the terminal a, but is directly transmitted to the terminal C (second terminal). And after receiving the image, the terminal C caches the image. After the tour is finished (for example, the terminal C does not receive the image sent by the terminal a within a preset time period, or the terminal a sends a message for indicating the end of the tour to the terminal C), the terminal C obtains a plurality of history images sent by the terminal a from the cache, and shares the history images according to the sharing rule of the terminal a after comprehensively optimizing the history images.
If the first optimization mode is adopted, the terminal C analyzes each history image according to the two sharing rules of the terminal a to obtain the features of each history image, for example: it is determined which images have contents related to children and which images have contents related to scenery. Thus, the terminal C determines candidate images to be shared with the terminal D and candidate images to be shared with the terminal E from the history images. It will be appreciated that repeated, similar or lower quality images may be included in the candidate images. Therefore, the terminal C may also perform filtering processing on each candidate image according to the similarity and/or quality between the candidate images corresponding to the terminal D to remove the repeated, similar, and low-quality images. Therefore, the terminal C takes the remaining images after the screening as images to be shared with the terminals D, and sends the images to the terminals D. Similarly, the above-described filtering process may be performed for each candidate image corresponding to the terminal E.
If the second optimization method is adopted, the terminal C analyzes the plurality of history images sent by the terminal a, determines the features of each history image, and obtains candidate images corresponding to the same feature, for example: and determining the shooting content as a candidate image of a child, and determining the shooting content as a candidate image of a landscape. For candidate images with shot contents of children, the terminal C performs screening and filtering processing on the candidate images according to the similarity and/or quality among the candidate images so as to remove repeated, similar and low-quality images. Similarly, the above-described filtering process may be performed for candidate images whose captured contents are scenic. Therefore, the terminal C takes the remaining image subjected to the screening process as an image to be shared. And then, according to the two sharing rules of the terminal A, sending the image to be shared to the corresponding terminal to be shared.
In another possible scenario, in a scenario where users corresponding to the terminal A, B, C, D, E meet, users corresponding to each terminal all set a sharing rule as follows: and sharing the image to the members in the image. Then, after the terminal A, B, D, E captures the captured image, the captured image is not stored locally in itself, but is directly transmitted to the terminal C (second terminal). And after receiving the images sent by each terminal, the terminal C caches the images.
After the party is finished (for example, the terminal C does not receive the images sent by other terminals within a preset time period, or other terminals send a message for indicating the end of the party to the terminal C, or a user of the terminal C inputs a message for indicating the end of the party to the terminal C), the terminal C acquires a plurality of history images sent by each terminal from the cache. The terminal C analyzes each history image according to the sharing rule to obtain the features of each history image, for example: who the people in each image have is determined. Thus, the terminal C determines, from the history images, a candidate image to be shared with the terminal a, a candidate image to be shared with the terminal B, a candidate image to be shared with the terminal D, and an image to be shared with the terminal E.
It can be understood that, in a meeting scene, there may be a case where different terminals shoot the same person at the same time, and therefore, the candidate images corresponding to the terminals may include repeated, similar, or low-quality images. Therefore, the terminal C may also perform filtering processing on each candidate image according to the similarity and/or quality between the candidate images corresponding to the terminal a to remove duplicate, similar, and lower-quality images. Therefore, the terminal C takes the remaining images after the screening as images to be shared with the terminals a, and sends the images to the terminals a. Similarly, the candidate images corresponding to the terminal B, the terminal D, and the terminal E may be subjected to the above-mentioned filtering process and then sent to the corresponding shared terminals.
The method for sharing media data provided by the embodiment comprises the following steps: the first terminal shoots to obtain media data and sends the media data to the second terminal; and the second terminal sends the media data to the shared terminal according to the sharing rule corresponding to the first terminal. Through the process, the first terminal does not need to store a large amount of similar media data in the local storage space for a long time, and waste of local storage resources of the terminal is avoided. Furthermore, the media data are intelligently shared through the second terminal according to the sharing rule preset by each first terminal, so that on one hand, a user of the first terminal is not required to manually screen out the media data to be shared from a large amount of similar media data, and a large amount of screening energy of the user is not consumed; on the other hand, the second terminal intelligently shares according to the sharing rule of the first terminal, namely the second terminal is authorized by the first terminal, so that privacy disclosure and potential safety hazards are avoided, and the safety of the media data sharing process is guaranteed.
Further, on the basis of the foregoing embodiments, the sending, by the second terminal, the media data to the shared terminal may specifically include:
and the second terminal performs image processing on the media data according to the type of the media data and sends the media data after the image processing to the shared terminal.
Wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into videos, adding special effects to the videos, adding audio to the videos and the like.
It can be understood that, in an actual application scenario, the second terminal is usually a terminal with excellent performance in the media data sharing system, and has excellent image processing capability. Therefore, in this embodiment, each media data to be shared is image-processed by the second terminal, on one hand, the advantages of the high-performance terminal can be fully utilized to improve the image processing effect of each media data, and on the other hand, the image processing burden of each first terminal can be reduced.
In a possible implementation manner, after the second terminal sends the media data after the image processing to the shared terminal, the method may further include:
and the second terminal sends the media data after the image processing to the first terminal for shooting the media data. Accordingly, the first terminal can locally save the media data after the image processing by the second terminal. Because the second terminal filters the media data shot by the first terminal, the first terminal only needs to store the images with high quality after the filtering processing, and the local storage space of the first terminal is not wasted.
Alternatively, the first and second electrodes may be,
and the second terminal uploads the media data after the image processing to a cloud album, so that the first terminal watches the media data through the cloud album. In this way, the first terminal does not need to locally store the media data after the image processing, and the local storage space of the first terminal is not wasted.
In the embodiments, after the first terminal obtains the media data through shooting, the first terminal sends the media data to the second terminal through network connection. In another possible implementation manner, after the first terminal obtains the media data through shooting, the media data may be saved in a cloud album. And then, the second terminal acquires the media data from the cloud album and sends the media data to the shared terminal according to the sharing rule of the first terminal. The media data are stored in the cloud album, the media data do not need to be stored in the local storage space of the first terminal, and waste of the local storage space of the first terminal is avoided.
In yet another possible implementation manner, the actions of the second terminal in the foregoing embodiment may also be performed by a cloud server. Illustratively, after the media data are obtained by shooting, the first terminal stores the media data in a cloud album in a cloud server. And the cloud server performs screening processing and image processing on the media data, and shares the processed media data to the shared terminal according to a sharing rule. Meanwhile, the cloud server stores the processed media data in a cloud album, each terminal can browse each media data in the cloud album, and each terminal can select the media data which is interested by the terminal to download to a local storage. Thus, the waste of the local storage space of each terminal is avoided.
Fig. 5 is an interaction diagram of a media data sharing method according to an embodiment of the present disclosure. As shown in fig. 5, the method of the present embodiment includes:
s501: each terminal in the media data sharing system acquires own capability information.
Wherein the capability information comprises at least one of: shooting capability, image processing capability, security capability. The shooting capability refers to the capability of the terminal to shoot media data, and is generally related to the following factors or parameters: pixels, resolution, sensors, lenses, apertures, anti-shake, chips, etc. Image processing capability refers to the ability of a terminal to beautify the processing of media data, and is generally related to the following factors or parameters: NPU, GPU, rendering capability, etc. Security capabilities refer to the ability of a terminal to protect the privacy of media data, and are generally related to the following factors or parameters: encryption algorithms, network security parameters, etc.
S502: each terminal sends the own capability information to other terminals in the media data sharing system; and each terminal negotiates and determines a terminal serving as the second terminal and a terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
S501 and S502 describe a process in which each terminal negotiates to determine a first terminal and a second terminal. Illustratively, the terminals in the media data sharing system are connected through a wide area network or a local area network. Each terminal broadcasts its own capability information to other terminals. In this way, each terminal calculates the performance score of each terminal based on its own capability information and the received capability information of the other terminals, and the terminal with the highest performance score is used as the second terminal, and the other terminals except the second terminal are used as the first terminal in the system. The performance score may be calculated by a method of scoring the three types of capability information, and then performing weighted calculation to obtain a comprehensive performance score of the terminal.
In a possible implementation manner, the specific calculation manner may be predetermined by each terminal. The same calculation mode is adopted by each terminal, so that the calculation results of the terminals are consistent.
In another possible implementation, one of the terminals may obtain the comprehensive performance score of each terminal by using the above calculation method, and determine which terminal is used as the second terminal according to the comprehensive performance score of each terminal. Then, the terminal broadcasts the determination result to other terminals.
S503: and each first terminal receives a sharing rule input by a user.
Wherein the sharing rule comprises at least one of: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal.
And S504, each first terminal sends the sharing rule to the second terminal.
Correspondingly, the second terminal stores the sharing rule of each first terminal.
S505: and the first terminal shoots to obtain media data.
S506: and the first terminal acquires the privacy of the media data according to the media data.
S507: if the privacy degree of the media data is greater than or equal to a preset threshold value, the first terminal determines that the media data is private media data and stores the media data in a local storage space.
S508: if the privacy degree of the media data is smaller than the preset threshold value, the first terminal determines that the media data is non-private data and sends the media data to the second terminal, wherein the media data is temporarily stored or not stored locally at the first terminal.
S509: and the second terminal sends the media data to the shared terminal according to the sharing rule corresponding to the first terminal.
In this embodiment, the specific implementation of S505 to S509 is similar to the embodiment shown in fig. 4. The difference from the embodiment shown in fig. 4 is that in this embodiment, after the first terminal obtains the media data by shooting, it will first determine whether the media data is private media data. The private media data refers to media data which is private and is not desired to be shared, for example: self-timer images, self-timer videos, etc.
It can be understood that, when the media data is private media data, the media data is stored in the local storage space and is not sent to the second terminal; and when the media data is non-private media data, the media data is not stored in the local storage space and is directly sent to the second terminal. Through the process, the media data sharing safety can be guaranteed, and privacy data leakage is avoided.
In the embodiments of the present application, the transmission of the media data between the first terminal and the second terminal may be performed through a wide area network, or may be performed through a local area network, and may specifically be selected reasonably according to an actual application scenario. For example, when the distance between the first terminal and the second terminal is short, local area network transmission, such as wifi, bluetooth, NFC, etc. based short-range transmission applications, may be employed. When the distance between the first terminal and the second terminal is long, wide area network transmission, such as mobile communication network-based transmission, cloud transmission, and the like, may be employed.
In a possible implementation manner, when media data is transmitted between the first terminal and the second terminal, encrypted transmission of the media data may also be performed. Illustratively, the first terminal encrypts media data to be shared and sends the encrypted media data to the second terminal, and after the second terminal decrypts the media data, the second terminal determines a shared terminal corresponding to the media data according to a sharing rule, re-encrypts the media data, and then sends the media data to the shared terminal. The encryption process may be implemented by using an existing encryption algorithm, or media data may be transmitted based on an existing transmission protocol supporting encryption authentication, which is not described in detail in this embodiment. It can be understood that, by adopting encrypted transmission for the media data, the security of media data sharing can be further improved.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal provided by the embodiment can be used as a first terminal in a media data sharing system. As shown in fig. 6, the terminal 600 provided in this embodiment includes: a shooting module 601 and a sending module 602.
The shooting module 601 is configured to obtain media data through shooting;
a sending module 602, configured to send the media data to the second terminal, so that the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, where the shared terminal is a terminal in the media data sharing system, and the sharing rule is used to indicate a correspondence between a feature of the media data and an identifier of the shared terminal; wherein the media data is temporarily stored or not stored locally at the first terminal before being transmitted to the second terminal.
Optionally, the terminal of this embodiment may further include a capability negotiation module 603; the capability negotiation module 603 is configured to:
acquiring own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability;
sending the self capability information to other terminals in the media data sharing system;
and negotiating to determine the terminal serving as the second terminal and the terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
Optionally, the terminal of this embodiment may further include a receiving module 604; the receiving module 604 is configured to receive a sharing rule input by a user, where the sharing rule includes at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal;
the sending module 602 is further configured to send the sharing rule to the second terminal.
Optionally, the sending module 602 is further configured to, after the media data is obtained by shooting by the shooting module, obtain the privacy of the media data according to the media data, and determine that the media data is the private media data if the privacy of the media data is greater than or equal to a preset threshold; if the privacy degree of the media data is smaller than the preset threshold value, determining that the media data is non-private data;
the sending module 602 is specifically configured to send the media data to the second terminal when the processing module determines that the media data is non-private data.
Optionally, the sending module 602 is further configured to detect whether the sending module and the second terminal are located in the same local area network;
the sending module 602 is specifically configured to:
if the first terminal and the second terminal are located in the same local area network, the media data are sent to the second terminal, and the media data are not stored locally in the first terminal;
if the terminal and the second terminal are not located in the same local area network, the media data are temporarily stored locally, and when the terminal and the second terminal are detected to be located in the same local area network after the temporary storage, the media data are sent to the second terminal and are deleted locally.
Optionally, the receiving module 604 is further configured to receive a storage mode instruction input by a user, where the storage mode instruction is used to indicate a storage mode of media data in a local storage space of the receiving module, and the storage mode is temporary storage or non-storage;
the sending module 602 is specifically configured to:
if the storage mode of the media data indicated by the storage mode instruction is temporary storage, after the media data is shot by the shooting module, the media data is temporarily stored locally, and the media data is sent to a second terminal;
and if the storage mode of the media data indicated by the storage mode instruction is not stored, sending the media data to the second terminal after the media data is shot by the shooting module, wherein the media data is not stored locally at the first terminal.
The terminal provided in this embodiment may be configured to execute the method for sharing media data executed by the first terminal in the foregoing embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal of the embodiment can be used as a second terminal in the media data sharing system. As shown in fig. 7, the terminal 700 of the present embodiment includes: a receiving module 701 and a transmitting module 702.
A receiving module 701, configured to receive media data from the first terminal, where the media data is temporarily stored or not stored locally at the first terminal after being captured by the first terminal and before being sent to the second terminal;
a sending module 702, configured to send the media data to a shared terminal according to a sharing rule corresponding to the first terminal, where the shared terminal is a terminal in the media data sharing system, and the sharing rule is used to indicate a correspondence between a characteristic of the media data and an identifier of the shared terminal.
Optionally, the terminal 700 of this embodiment further includes a capability negotiation module 703; a capability negotiation module 703 configured to:
acquiring own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability;
sending the self capability information to other terminals in the media data sharing system;
and negotiating to determine the terminal serving as the second terminal and the terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
Optionally, the receiving module 701 is further configured to receive a sharing rule from the first terminal, where the sharing rule includes at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal.
Optionally, the sending module 702 is specifically configured to:
acquiring the characteristics of the media data according to the media data;
determining an identifier of a shared terminal corresponding to the media data according to the characteristics of the media data and a sharing rule corresponding to the first terminal;
and sending the media data to the shared terminal according to the identifier of the shared terminal.
Optionally, the sending module 702 is specifically configured to:
acquiring a plurality of historical media data sent by the first terminal;
determining at least one candidate media data corresponding to the same shared terminal from the plurality of historical media data according to the characteristics of each historical media data and the sharing rule corresponding to the first terminal;
for each shared terminal, according to the similarity between the candidate media data and/or the quality of the candidate media data, filtering and processing the candidate media data to obtain media data to be shared;
and sending the media data to be shared to the shared terminal.
Optionally, the sending module 702 is specifically configured to:
acquiring a plurality of historical media data sent by the first terminal;
determining at least one candidate media data corresponding to the same characteristic from the plurality of historical media data;
according to the similarity between the candidate media data and/or the quality of the candidate media data, screening and filtering the candidate media data to obtain media data to be shared;
and sending the media data to be shared to a shared terminal according to a sharing rule corresponding to the first terminal.
Optionally, the sending module 702 is specifically configured to:
according to the type of the media data, image processing is carried out on the media data, and the media data after the image processing is sent to the shared terminal; wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
Optionally, the sending module 702 is further configured to:
sending the media data after the image processing to a first terminal for shooting the media data; or
And uploading the media data after the image processing to a cloud album, so that the first terminal watches the media data through the cloud album.
Optionally, the terminal 700 of this embodiment may further include a shooting module (not shown in fig. 7) for shooting to obtain the media data; correspondingly, the sending module 702 is further configured to send the media data to the shared terminal according to the sharing rule corresponding to the terminal 700.
The terminal provided in this embodiment may be configured to execute the method for sharing media data executed by the second terminal in the foregoing embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present application. The terminal of the embodiment can be used as a first terminal in the media data sharing system and can also be used as a second terminal. As shown in fig. 8, the terminal 800 provided in this embodiment includes: a processor 801 and a memory 802; a memory 802 for storing a computer program; the processor 801 is configured to execute a computer program stored in a memory to implement the method for sharing media data executed by the first terminal in the foregoing embodiments, or implement the method for sharing media data executed by the second terminal in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 802 may be separate or integrated with the processor 801.
When the memory 802 is a separate device from the processor 801, the terminal 800 may further include: a bus 803 for connecting the memory 802 and the processor 801.
The terminal provided in the embodiment of the present application may be configured to execute the method for sharing media data executed by the first terminal in the embodiment of the method described above, or implement the method for sharing media data executed by the second terminal in the embodiment described above, and the implementation principle and the technical effect are similar, which are not described herein again.
An embodiment of the present application further provides a chip, including: the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory, so that a terminal installed with the chip implements the media data sharing method executed by the first terminal in the above embodiment, or implements the media data sharing method executed by the second terminal in the above embodiment, which implements similar principles and technical effects, and is not described herein again.
An embodiment of the present application further provides a storage medium, where the storage medium includes a computer program, and the computer program is configured to implement the method for sharing media data executed by the first terminal in the foregoing embodiment, or implement the method for sharing media data executed by the second terminal in the foregoing embodiment.
An embodiment of the present application further provides a computer program product, where the computer program product includes a computer program code, and when the computer program code runs on a computer, the computer is enabled to implement the method for sharing media data executed by the first terminal in the foregoing embodiment, or implement the method for sharing media data executed by the second terminal in the foregoing embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.

Claims (30)

1. A media data sharing method is applied to a media data sharing system, the media data sharing system comprises a second terminal and at least one first terminal, and the method comprises the following steps:
the first terminal shoots to obtain media data and sends the media data to the second terminal, wherein the media data is temporarily stored or not stored locally at the first terminal before being sent to the second terminal;
the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, the shared terminal is a terminal in the media data sharing system, and the sharing rule is used for indicating a corresponding relation between characteristics of the media data and an identifier of the shared terminal.
2. The method according to claim 1, wherein before the first terminal sends the sharing rule to the second terminal, the method further comprises:
each terminal in the media data sharing system acquires own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability;
each terminal sends the own capability information to other terminals in the media data sharing system;
and each terminal negotiates and determines a terminal serving as the second terminal and a terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
3. The method of claim 2, wherein after the terminals negotiate to determine the terminal as the second terminal and the terminal as the first terminal, the method further comprises:
the first terminal receives a sharing rule input by a user, wherein the sharing rule comprises at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal;
and the first terminal sends the sharing rule to the second terminal.
4. The method according to any one of claims 1 to 3, wherein the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes:
the second terminal acquires the characteristics of the media data according to the media data;
the second terminal determines the identifier of the shared terminal corresponding to the media data according to the characteristics of the media data and the sharing rule corresponding to the first terminal;
and the second terminal sends the media data to the shared terminal according to the identifier of the shared terminal.
5. The method according to any one of claims 1 to 3, wherein the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes:
the second terminal acquires a plurality of historical media data sent by the first terminal;
the second terminal determines at least one candidate media data corresponding to the same shared terminal from the plurality of historical media data according to the characteristics of the historical media data and the sharing rule corresponding to the first terminal;
for each shared terminal, the second terminal performs screening and filtering processing on each candidate media data according to the similarity between each candidate media data and/or the quality of each candidate media data to obtain media data to be shared;
and the second terminal sends the media data to be shared to the shared terminal.
6. The method according to any one of claims 1 to 3, wherein the sending, by the second terminal, the media data to the shared terminal according to the sharing rule corresponding to the first terminal includes:
the second terminal acquires a plurality of historical media data sent by the first terminal;
the second terminal determines at least one candidate media data corresponding to the same characteristic from the plurality of historical media data;
the second terminal performs screening and filtering processing on the candidate media data according to the similarity between the candidate media data and/or the quality of the candidate media data to obtain media data to be shared;
and the second terminal sends the media data to be shared to the shared terminal according to the sharing rule corresponding to the first terminal.
7. The method according to claim 4, wherein the second terminal sending the media data to the shared terminal comprises:
the second terminal performs image processing on the media data according to the type of the media data, and sends the media data after the image processing to the shared terminal;
wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
8. The method according to claim 5, wherein the second terminal sending the media data to the shared terminal comprises:
the second terminal performs image processing on the media data according to the type of the media data, and sends the media data after the image processing to the shared terminal;
wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
9. The method according to claim 6, wherein the second terminal sending the media data to the shared terminal comprises:
the second terminal performs image processing on the media data according to the type of the media data, and sends the media data after the image processing to the shared terminal;
wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
10. The method according to any one of claims 7 to 9, wherein after the second terminal sends the image-processed media data to the shared terminal, the method further comprises:
the second terminal sends the media data after the image processing to a first terminal for shooting the media data; or
And the second terminal uploads the media data after the image processing to a cloud album, so that the first terminal watches the media data through the cloud album.
11. The method according to any one of claims 1 to 3 and 7 to 9, further comprising, after the first terminal captures the media data:
the first terminal acquires the privacy of the media data according to the media data;
if the privacy degree of the media data is greater than or equal to a preset threshold value, the first terminal determines that the media data is private media data;
if the privacy degree of the media data is smaller than the preset threshold value, the first terminal determines that the media data is non-private data;
correspondingly, the sending, by the first terminal, the media data to the second terminal includes:
and when the media data are determined to be non-private data, the first terminal sends the media data to the second terminal.
12. The method according to any one of claims 1 to 3 and 7 to 9, wherein the first terminal obtains media data by shooting and sends the media data to the second terminal, and the method comprises the following steps:
the first terminal shoots to obtain media data and detects whether the first terminal and the second terminal are positioned in the same local area network or not;
if the first terminal determines that the first terminal and the second terminal are located in the same local area network, the first terminal sends the media data to the second terminal, and the media data are not stored locally in the first terminal;
if the first terminal determines that the first terminal and the second terminal are not located in the same local area network, the first terminal temporarily stores the media data locally, and sends the media data to the second terminal and deletes the media data locally when detecting that the first terminal and the second terminal are located in the same local area network after the temporary storage.
13. The method of any of claims 1-3 and 7-9, further comprising:
the first terminal receives a storage mode instruction input by a user, wherein the storage mode instruction is used for indicating the storage mode of media data in a local storage space of the first terminal, and the storage mode is temporary storage or non-storage;
the first terminal shoots to obtain media data and sends the media data to the second terminal, and the method comprises the following steps:
if the storage mode of the media data indicated by the storage mode instruction is temporary storage, the first terminal shoots to obtain the media data, temporarily stores the media data locally and sends the media data to a second terminal;
and if the storage mode of the media data indicated by the storage mode instruction is not stored, the first terminal shoots to obtain the media data and sends the media data to the second terminal, and the media data is not stored locally at the first terminal.
14. The terminal is characterized in that the terminal is applied to a media data sharing system, the media data sharing system comprises a second terminal and at least one first terminal, and when the terminal is used as the first terminal, the terminal comprises:
the shooting module is used for shooting to obtain media data;
the sending module is configured to send the media data to the second terminal, so that the second terminal sends the media data to a shared terminal according to a sharing rule corresponding to the first terminal, where the shared terminal is a terminal in the media data sharing system, and the sharing rule is used to indicate a correspondence between characteristics of the media data and an identifier of the shared terminal; wherein the media data is temporarily stored or not stored locally at the first terminal before being transmitted to the second terminal.
15. The terminal of claim 14, wherein the terminal further comprises: a capability negotiation module to:
acquiring own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability;
sending the self capability information to other terminals in the media data sharing system;
and negotiating to determine the terminal serving as the second terminal and the terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
16. The terminal of claim 15, wherein the terminal further comprises: a receiving module;
the receiving module is configured to receive a sharing rule input by a user, where the sharing rule includes at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal;
the sending module is further configured to send the sharing rule to the second terminal.
17. The terminal according to any of claims 14-16,
the sending module is further configured to obtain the privacy degree of the media data according to the media data after the media data is obtained by shooting by the shooting module, and determine that the media data is the private media data if the privacy degree of the media data is greater than or equal to a preset threshold; if the privacy degree of the media data is smaller than the preset threshold value, determining that the media data is non-private data;
the sending module is specifically configured to send the media data to the second terminal when it is determined that the media data is non-private data.
18. The terminal according to any of claims 14-16,
the sending module is also used for detecting whether the sending module and the second terminal are positioned in the same local area network or not;
the sending module is specifically configured to: if the first terminal and the second terminal are located in the same local area network, the media data are sent to the second terminal, and the media data are not stored locally in the first terminal; if the terminal and the second terminal are not located in the same local area network, the media data are temporarily stored locally, and when the terminal and the second terminal are detected to be located in the same local area network after the temporary storage, the media data are sent to the second terminal and are deleted locally.
19. The terminal according to any of claims 14-16,
the receiving module is further used for receiving a storage mode instruction input by a user, wherein the storage mode instruction is used for indicating a storage mode of the media data in a local storage space of the receiving module, and the storage mode is temporary storage or non-storage;
the sending module is specifically configured to:
if the storage mode of the media data indicated by the storage mode instruction is temporary storage, after the media data is shot by the shooting module, the media data is temporarily stored locally, and the media data is sent to a second terminal;
and if the storage mode of the media data indicated by the storage mode instruction is not stored, sending the media data to the second terminal after the media data is shot by the shooting module, wherein the media data is not stored locally at the first terminal.
20. The terminal is characterized in that the terminal is applied to a media data sharing system, the media data sharing system comprises a second terminal and at least one first terminal, and when the terminal is used as the second terminal, the terminal comprises:
a receiving module, configured to receive media data from the first terminal, where the media data is temporarily stored or not stored locally at the first terminal after being photographed by the first terminal and before being sent to the second terminal;
and the sending module is used for sending the media data to a shared terminal according to a sharing rule corresponding to the first terminal, the shared terminal is a terminal in the media data sharing system, and the sharing rule is used for indicating a corresponding relation between the characteristics of the media data and the identifier of the shared terminal.
21. The terminal of claim 20, wherein the terminal further comprises: a capability negotiation module to:
acquiring own capability information, wherein the capability information comprises at least one of the following: shooting capability, image processing capability, security capability;
sending the self capability information to other terminals in the media data sharing system;
and negotiating to determine the terminal serving as the second terminal and the terminal serving as the first terminal according to the self capability information and the received capability information of other terminals.
22. The terminal of claim 21,
the receiving module is further configured to receive a sharing rule from the first terminal, where the sharing rule includes at least one of the following: the corresponding relation between the shooting time of the media data and the identification of the shared terminal, the corresponding relation between the shooting place of the media data and the identification of the shared terminal, and the corresponding relation between the shooting content of the media data and the identification of the shared terminal.
23. The terminal according to any of claims 20 to 22, wherein the sending module is specifically configured to:
acquiring the characteristics of the media data according to the media data;
determining an identifier of a shared terminal corresponding to the media data according to the characteristics of the media data and a sharing rule corresponding to the first terminal;
and sending the media data to the shared terminal according to the identifier of the shared terminal.
24. The terminal according to any of claims 20 to 22, wherein the sending module is specifically configured to:
acquiring a plurality of historical media data sent by the first terminal;
determining at least one candidate media data corresponding to the same shared terminal from the plurality of historical media data according to the characteristics of each historical media data and the sharing rule corresponding to the first terminal;
for each shared terminal, according to the similarity between the candidate media data and/or the quality of the candidate media data, filtering and processing the candidate media data to obtain media data to be shared;
and sending the media data to be shared to the shared terminal.
25. The terminal according to any of claims 20 to 22, wherein the sending module is specifically configured to:
acquiring a plurality of historical media data sent by the first terminal;
determining at least one candidate media data corresponding to the same characteristic from the plurality of historical media data;
according to the similarity between the candidate media data and/or the quality of the candidate media data, screening and filtering the candidate media data to obtain media data to be shared;
and sending the media data to be shared to a shared terminal according to a sharing rule corresponding to the first terminal.
26. The terminal of claim 23, wherein the sending module is specifically configured to:
according to the type of the media data, image processing is carried out on the media data, and the media data after the image processing is sent to the shared terminal; wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
27. The terminal of claim 24, wherein the sending module is specifically configured to:
according to the type of the media data, image processing is carried out on the media data, and the media data after the image processing is sent to the shared terminal; wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
28. The terminal of claim 25, wherein the sending module is specifically configured to:
according to the type of the media data, image processing is carried out on the media data, and the media data after the image processing is sent to the shared terminal; wherein the image processing comprises at least one of: the method comprises the steps of carrying out picture beautifying processing on images, making a plurality of images into a dynamic photo album, making a plurality of images into a video, adding special effects to the video and adding audio to the video.
29. The terminal according to any of claims 26-28, wherein the sending module is further configured to:
sending the media data after the image processing to a first terminal for shooting the media data; or
And uploading the media data after the image processing to a cloud album, so that the first terminal watches the media data through the cloud album.
30. A media data sharing system comprising a terminal according to any one of claims 20 to 29 and at least one terminal according to any one of claims 14 to 19.
CN201910723991.9A 2019-08-07 2019-08-07 Media data sharing method and terminal Active CN112351133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910723991.9A CN112351133B (en) 2019-08-07 2019-08-07 Media data sharing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910723991.9A CN112351133B (en) 2019-08-07 2019-08-07 Media data sharing method and terminal

Publications (2)

Publication Number Publication Date
CN112351133A CN112351133A (en) 2021-02-09
CN112351133B true CN112351133B (en) 2022-02-25

Family

ID=74366490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910723991.9A Active CN112351133B (en) 2019-08-07 2019-08-07 Media data sharing method and terminal

Country Status (1)

Country Link
CN (1) CN112351133B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115776513A (en) * 2021-09-06 2023-03-10 中兴通讯股份有限公司 Multimedia data sharing method, server and terminal
CN113825110B (en) * 2021-11-19 2022-03-11 深圳百瑞互联技术有限公司 Close-range information sharing type social contact method, system and platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200224A (en) * 2013-02-22 2013-07-10 北京小米科技有限责任公司 Method and device and terminal of information sharing
CN103369031A (en) * 2013-05-20 2013-10-23 华为技术有限公司 Terminal equipment, electronic photo album server, photo sharing system and method
CN104317932A (en) * 2014-10-31 2015-01-28 小米科技有限责任公司 Photo sharing method and device
CN105025162A (en) * 2015-06-16 2015-11-04 惠州Tcl移动通信有限公司 Automatic photo sharing method, mobile terminals and system
CN106528602A (en) * 2016-09-23 2017-03-22 北京奇虎科技有限公司 Method and device for saving storage space of intelligent terminal
AU2019100490A4 (en) * 2018-05-07 2019-06-06 Apple Inc. User interfaces for sharing contextually relevant media content

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9342817B2 (en) * 2011-07-07 2016-05-17 Sony Interactive Entertainment LLC Auto-creating groups for sharing photos
US10089327B2 (en) * 2011-08-18 2018-10-02 Qualcomm Incorporated Smart camera for sharing pictures automatically
CN103634172A (en) * 2012-08-29 2014-03-12 中国移动通信集团公司 Method, device and system for processing multi-terminal cooperation information
US10027727B1 (en) * 2012-11-21 2018-07-17 Ozog Media, LLC Facial recognition device, apparatus, and method
CN110266506A (en) * 2014-11-18 2019-09-20 华为终端有限公司 A kind of method and terminal for distributing photo
CN104378216B (en) * 2014-11-20 2017-12-22 努比亚技术有限公司 Photo be shared method and terminal
CN105824875B (en) * 2016-02-26 2019-08-20 维沃移动通信有限公司 A kind of photo be shared method and mobile terminal
CN106294649A (en) * 2016-08-03 2017-01-04 努比亚技术有限公司 Mobile terminal and picture sharing method
CN106301816A (en) * 2016-08-05 2017-01-04 努比亚技术有限公司 Multiple terminals data transmission method for uplink and device
WO2018161353A1 (en) * 2017-03-10 2018-09-13 华为技术有限公司 Photo sharing method and device
CN109246657B (en) * 2017-06-05 2022-07-15 中兴通讯股份有限公司 Data sharing method, first terminal, second terminal and system
WO2019043433A1 (en) * 2017-08-30 2019-03-07 Tobashi Fawzi Rule-based content sharing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200224A (en) * 2013-02-22 2013-07-10 北京小米科技有限责任公司 Method and device and terminal of information sharing
CN103369031A (en) * 2013-05-20 2013-10-23 华为技术有限公司 Terminal equipment, electronic photo album server, photo sharing system and method
CN104317932A (en) * 2014-10-31 2015-01-28 小米科技有限责任公司 Photo sharing method and device
CN105025162A (en) * 2015-06-16 2015-11-04 惠州Tcl移动通信有限公司 Automatic photo sharing method, mobile terminals and system
CN106528602A (en) * 2016-09-23 2017-03-22 北京奇虎科技有限公司 Method and device for saving storage space of intelligent terminal
AU2019100490A4 (en) * 2018-05-07 2019-06-06 Apple Inc. User interfaces for sharing contextually relevant media content

Also Published As

Publication number Publication date
CN112351133A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN111866404B (en) Video editing method and electronic equipment
US10523839B2 (en) Context and content based automated image and media sharing
US11889180B2 (en) Photographing method and electronic device
CN103875277B (en) A kind of method and computer-readable recording medium for automatic upload multimedia object
US20210200423A1 (en) Information processing apparatus, method, and non-transitory computer readable medium that controls a representation of a user object in a virtual space
CN112394895B (en) Picture cross-device display method and device and electronic device
WO2012137397A1 (en) Content-processing device, content-processing method, content-processing program, and integrated circuit
CN112351133B (en) Media data sharing method and terminal
CN112995731B (en) Method and system for switching multimedia equipment
KR20220104225A (en) Device Occupation Methods and Electronic Devices
WO2021238967A1 (en) Content sharing method, apparatus and system
US20230275955A1 (en) Data sharing method, apparatus, and system, and electronic device
CN112528266A (en) Visiting registration method and related device
CN110892411B (en) Detecting popular faces in real-time media
KR20150057707A (en) Method for sharing file and electronic device thereof
WO2021115483A1 (en) Image processing method and related apparatus
WO2020056694A1 (en) Augmented reality communication method and electronic devices
WO2020034075A1 (en) Photo sharing method and electronic device
KR102339223B1 (en) Electronic device and method for providing contents related camera
CN107396200A (en) The method that net cast is carried out based on social software
WO2017193343A1 (en) Media file sharing method, media file sharing device and terminal
KR101472287B1 (en) Method And System for Producing User Created Content and Sharing by Using Portable Digital Device
CN103491125A (en) Remote multimedia information receiving method and terminals
CN115174727A (en) Information transmission method and electronic equipment
KR101703129B1 (en) Method sharing video among multiple users and application stored in medium for executing the same

Legal Events

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