CN115484421A - Network-based picture storage method and system and computer-readable storage medium - Google Patents

Network-based picture storage method and system and computer-readable storage medium Download PDF

Info

Publication number
CN115484421A
CN115484421A CN202211126643.1A CN202211126643A CN115484421A CN 115484421 A CN115484421 A CN 115484421A CN 202211126643 A CN202211126643 A CN 202211126643A CN 115484421 A CN115484421 A CN 115484421A
Authority
CN
China
Prior art keywords
picture
directory
privacy
associated terminal
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211126643.1A
Other languages
Chinese (zh)
Inventor
赖振楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hosin Global Electronics Co Ltd
Original Assignee
Hosin Global Electronics 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 Hosin Global Electronics Co Ltd filed Critical Hosin Global Electronics Co Ltd
Priority to CN202211126643.1A priority Critical patent/CN115484421A/en
Publication of CN115484421A publication Critical patent/CN115484421A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention provides a picture storage method, a system and a computer readable storage medium based on a network, wherein the method comprises the following steps: storing pictures received from a related terminal according to a preset rule, and generating picture records according to the summary information of the pictures, wherein the picture records comprise actual storage addresses of the pictures; writing the picture records into one or more virtual directories, and each of the virtual directories comprises a plurality of subdirectories; and responding to a gallery downloading request of the associated terminal, sending the virtual directory to the associated terminal, and replacing the local picture directory of the associated terminal with the virtual directory. The invention stores the picture in the remote data center, and uses the virtual directory established by the remote data center to replace the local picture directory of the associated terminal, so that the newly replaced mobile phone can conveniently browse the picture in the original mobile phone without transferring the original picture to the local, thereby greatly saving the storage space of the new mobile phone.

Description

Network-based picture storage method and system and computer readable storage medium
Technical Field
The present invention relates to the field of storage, and more particularly, to a method, system and computer-readable storage medium for storing pictures based on a network.
Background
With the development of full-touch screen interaction, touch screen intelligent operating systems and mobile internet, the functions of the mobile phone are more and more powerful. Because the photos can be shared with family and friends anytime and anywhere through modes such as microblog and WeChat, the mobile phone also becomes a superexcellent link for contacting with the family and the friends, and accordingly, the mobile phone also gradually replaces the traditional card type camera and becomes the most frequently used photographing tool for people.
At present, the requirements of people for the image capability of smart phones are more and more biased towards high image quality, and various ultra-large, ultra-high pixel CMOS and high quality optical zoom lenses are more and more appeared on the smart phones. However, the storage space occupied by the photos is inevitably large due to the high-quality mobile phone, and for many young people, especially young women, the storage space occupied by the photos in the mobile phone is often more than 50% of the total storage space of the mobile phone.
Meanwhile, in order to demand more excellent performance, a plurality of people need to change the mobile phone every 1-2 years, and in order to continue using, although a plurality of old photos are not browsed much, people are still used to transfer the photos in the original mobile phone to a new mobile phone and occupy the storage space of the new mobile phone, so that the use of the new mobile phone is influenced, and the transfer process is complicated and time-consuming.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a system and a computer-readable storage medium for storing pictures based on a network, aiming at the problem that the pictures are transferred to a new mobile phone to occupy a larger storage space of the new mobile phone.
The technical solution of the present invention for solving the above technical problems is to provide a network-based picture storage method, which is applied to a remote data center, and the method includes:
storing pictures received from a related terminal according to a preset rule, and generating picture records according to the summary information of the pictures, wherein the picture records comprise actual storage addresses of the pictures;
writing the picture records into one or more virtual directories, and each of the virtual directories comprises a plurality of subdirectories;
and responding to a gallery downloading request of the associated terminal, sending the virtual directory to the associated terminal, and replacing the local picture directory of the associated terminal with the virtual directory.
As a further improvement of the present invention, the generating a picture record according to the summary information of the picture includes:
taking a picture received from an associated terminal as an original picture, and generating a thumbnail according to the original picture;
the picture records comprise thumbnails, and the occupied space of the thumbnails is smaller than or equal to a first preset value, so that the thumbnails are displayed when a virtual directory replacing a local picture directory is opened.
As a further improvement of the present invention, the storing the picture received from the associated terminal according to the preset rule includes:
when the occupied space of the original picture is larger than or equal to a second preset value, generating a mirror image picture according to the original picture, wherein the occupied space of the mirror image picture is smaller than or equal to the second preset value, and the second preset value is larger than the first preset value;
and in an associated terminal in which a local picture directory is replaced by the virtual directory, when a corresponding thumbnail in the local picture directory is selected for browsing and the original picture or the mirror picture corresponding to the thumbnail does not exist locally, the mirror picture corresponding to the thumbnail is downloaded locally by the associated terminal and displayed.
As a further improvement of the present invention, the storing the picture received from the associated terminal according to the preset rule includes:
comparing the picture received from the associated terminal with the picture already stored in the remote data center;
storing the received picture to a first preset position when the similarity between the received picture and at least one stored picture does not exceed a preset threshold;
and storing the received picture to a second preset position when the similarity between the received picture and the stored at least one picture reaches a preset threshold value.
As a further improvement of the present invention, the remote data center is a shared remote data center, each of the virtual directories is used for storing picture records of pictures uploaded by associated terminals from a plurality of users, and each of the virtual directories includes a shared directory and a plurality of privacy directories corresponding to the plurality of users, respectively, and each of the privacy directories includes a privacy condition;
the writing the picture records into one or more virtual directories comprises:
judging whether the received picture meets the privacy condition, writing the corresponding picture record into the corresponding privacy directory when the picture meets the privacy condition, and writing the corresponding picture record into the shared directory when the picture does not meet the privacy condition;
the sending the virtual directory to the associated terminal in response to the gallery download request of the associated terminal comprises:
and sending the shared directory and the privacy directory corresponding to the user of the associated terminal to the associated terminal according to the gallery downloading request of the associated terminal.
As a further improvement of the present invention, the method further comprises:
and creating the privacy condition of the corresponding privacy directory according to the instruction from the associated terminal.
As a further improvement of the present invention, the summary information of the picture includes a privacy parameter, and the method includes:
and identifying the received picture, and generating the privacy condition of the corresponding privacy directory by combining the privacy parameter self-learning of the picture.
As a further improvement of the present invention, the summary information of the picture includes a privacy parameter, and the method further includes:
creating a privacy condition corresponding to the privacy directory according to an instruction from the associated terminal;
and identifying the received picture, and updating the privacy condition of the corresponding privacy directory by self-learning according to the privacy parameters of the picture.
The invention also provides a network-based picture storage system, which is applied to a remote data center and comprises a processor and a memory, wherein the memory is stored with a computer program executable on the processor, and the processor implements the steps of the network-based picture storage method when executing the computer program.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network-based picture storage method as described above.
The invention has the following beneficial effects: by storing the pictures in the remote data center and replacing the local picture catalog of the associated terminal with the virtual catalog established by the remote data center, the newly replaced mobile phone can conveniently browse the pictures in the original mobile phone without transferring the original pictures to the local, thereby greatly saving the storage space of the new mobile phone.
Drawings
Fig. 1 is a schematic flowchart of a method for storing a picture based on a network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a picture storage location and a virtual album in the network-based picture storage method according to the embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating summary information of a generated picture in a network-based picture storing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a process of storing a picture received from an associated terminal according to a preset rule in the network-based picture storing method according to the embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating another process of storing pictures received from an associated terminal according to a preset rule in the network-based picture storage method according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, which is a schematic flow chart of a network-based picture storage method provided in an embodiment of the present invention, the method may be applied to a server of a remote data center (for example, a cloud server providing data backup, a server of a public or home NAS system, and the like) and implemented by combining software running on the server, and a terminal may access the remote data center through a network to upload or download a picture.
Specifically, the method of the present embodiment includes the following steps performed by the server of the remote data center:
step S11: the method comprises the steps of storing pictures received from the associated terminal according to a preset rule, and generating picture records according to the summary information of the pictures, wherein the picture records comprise actual storage addresses of the pictures, so that the picture records can be used as an index item, and the corresponding pictures can be quickly acquired from the actual storage positions of the pictures through the index item. The summary information of the picture may specifically include a file name (for example, a name of a picture uploaded by an associated terminal may be used), a time of file creation, a location of file creation (for example, a GPS position when the picture is taken), and the like. In addition, the summary information of the picture may also be a presentation event (scene) of the picture, a presentation character, and the like, which are recognized by the AI method.
The associated terminal may be a smart phone, a smart tablet, a personal computer, etc., and may be connected to the server through the internet, a local area network, a communication network, or even a data line, etc., and upload the picture stored in the local area of the associated terminal through an application program running on the associated terminal. The pictures can be pictures shot, edited, drawn, downloaded from other devices and the like by the associated terminal. In an embodiment of the present invention, the remote data center needs to verify the associated terminal by an account name or the like, and the remote data center only receives the picture uploaded by the verified associated terminal, that is, one account corresponds to one user. Specifically, after the verification is performed by the remote data center, the associated terminal can upload the locally stored picture to the remote data center through instructions such as picture uploading or picture backup (file backup) in the application program; or the associated terminal can also send the picture to be uploaded to the remote data center together with the verification data. The verification process of the associated terminal and the remote data center, the operation of uploading the picture by the associated terminal, and the operation of receiving the picture by the remote data center can all adopt the conventional technologies in the field, and are not described herein again.
In an embodiment of the present invention, the remote data center may be a shared remote data center, and the shared remote data center may build a shared space for a plurality of different accounts (each account corresponds to one user, and the plurality of different accounts may correspond to a plurality of users of the same family, for example), and each account may upload pictures to the shared space through its associated terminal. The shared remote data center may classify the pictures uploaded by one or more terminals of each account, for example, each account has a total virtual directory in the shared remote data center, and the total virtual directory has a plurality of sub virtual directories, each sub virtual directory may correspond to each associated terminal in the plurality of associated terminals; or, the accounts share a total virtual directory in the shared remote data center, and the total virtual directory stores pictures uploaded by the users through the associated terminals.
As shown in fig. 2, the pictures received from the associated terminal may be stored in the corresponding storage area 21 through the file system of the server. The picture record contains some basic information of the corresponding picture and at least includes the actual storage address of the picture, i.e. the location of the picture in the file system of the server. In particular, the above-mentioned actual storage address may be a network link in the form of HTML (Hyper TextMarkup Language) for remote access. Further, the picture record may also include one or more of the following: file name (e.g., the name of a picture uploaded by the associated terminal may be used), time of file creation, location of file creation (e.g., GPS location at the time of photograph taking), etc. The operation of storing the picture by the server through the file system thereof and the operation of extracting the information from the picture to generate the picture record can adopt the conventional technology in the field, and the details are not described herein.
Step S12: the picture records are written into one or more virtual directories, and each virtual directory includes a plurality of subdirectories. And writing the picture record into the virtual directory, namely establishing the relation between the picture record and the related sub-directories in the virtual directory, namely forming a classification index of the picture by the virtual directory and the sub-directories thereof, so that the picture can be browsed and positioned quickly.
The virtual directory has no direct relation with a file system directory storing pictures in the server. Through the virtual directory, the association among the pictures can be more intuitively expressed. Particularly, under a part of the subdirectories of the virtual directory, subdirectories may be further included so as to facilitate classified browsing of pictures.
In particular, the virtual directory may correspond to an account name of the associated terminal, and each account name may include a plurality of virtual directories. For the same picture record, it needs to be written into all the virtual directories of the account name. These virtual directories may be created by the server according to default rules, e.g., for each account name, the server may create a time directory, a place directory, etc. by default. And the subdirectories of some virtual directories can be automatically generated according to the picture records, for example, for a time directory, each subdirectory corresponds to a time period, and if the creation time of the picture in the picture record is not within the time period range of the existing subdirectory, the server can automatically create a new subdirectory under the virtual directory.
In an embodiment of the present invention, the virtual directory may also be uploaded by the associated terminal, for example, when the associated terminal creates an account name or backups a local file in a server of the remote data center through an application program, the local picture directory is uploaded to the server of the remote data center, and the server of the remote data center generates the virtual directory according to the picture directory uploaded by the associated terminal.
The virtual directory may be created remotely by a user of the associated terminal, for example, the user may upload corresponding parameters of the virtual directory (including a name of the virtual directory, a name of each subdirectory, a reference of a picture recorded by each subdirectory, and the like) to a server of the remote data center through an application program in the associated terminal, so that the server of the remote data center may create the virtual directory according to the parameters corresponding to the virtual directory, and establish a connection between each picture record and the corresponding subdirectory according to the content of the picture record (corresponding to recording the picture under the corresponding subdirectory).
Step S13: and responding to the gallery downloading request of the associated terminal, sending the virtual directory to the associated terminal, and replacing the local picture directory of the associated terminal with the virtual directory. Each level of subdirectory in the local picture directory corresponds to each level of subdirectory in the virtual directory.
The associated terminal sending the gallery download request may be a new handset for the user to replace. Or, when the storage space of the old mobile phone of the user is insufficient, the local storage space can be increased by deleting the locally stored pictures and sending a gallery downloading request to the server of the remote data center to obtain the virtual directory again.
In particular, each picture record of the virtual directory may include a download instruction, so that after the virtual directory replaces the local picture directory of the associated terminal, when a user needs to browse a certain picture, the download instruction may be triggered by clicking or other similar operations, and the download instruction obtains the picture from the actual storage address of the picture in the remote data center for the user to browse. When the remote data center builds a shared space for a plurality of different accounts and the plurality of accounts have a total virtual directory in the remote data center, the total virtual directory is sent to the associated terminal according to a gallery downloading request of the associated terminal in the remote data center, and the total virtual directory replaces a local directory of the associated terminal, so that the associated terminal can acquire pictures uploaded by a current user and all associated users (namely users using the same shared space) of the current user, and the local storage resources of the associated terminal are basically not occupied.
According to the image storage method based on the network, the images are stored in the remote data center, and the virtual directory established by the remote data center is used for replacing the local image directory of the associated terminal, so that the newly replaced mobile phone (or the mobile phone with the images being emptied) can conveniently browse the images in the original mobile phone without transferring the original images to the local, and the storage space of the new mobile phone (or the mobile phone with the images being emptied) is greatly saved. Different from the existing mode of displaying pictures by a cloud photo album, the picture storage method based on the network saves the local storage space, and meanwhile, a user does not need to change the picture browsing habit, so that the picture storage method based on the network has better use experience.
In addition, the server of the remote data center may also periodically send updates of the virtual directory for the corresponding time period to the associated terminal. In this way, when the user has a plurality of associated terminals, the synchronization of pictures in the respective associated terminals can be realized.
In an embodiment of the present invention, in the step S11, generating a picture record according to the summary information of the picture includes:
the method comprises the steps of taking a picture received from an associated terminal as an original picture, and generating a thumbnail according to the original picture, wherein the occupied space of the thumbnail is smaller than or equal to a first preset value. The first preset value may be set as needed, for example, the first preset value may be a storage space corresponding to a pixel picture of 128 × 128 pixels, and a method for generating a corresponding thumbnail according to the picture may adopt a conventional technique in the art, which is not described herein again.
Accordingly, the picture records comprise thumbnails, i.e. when the virtual directory is transmitted to the associated terminal, a thumbnail of each picture is also transmitted to the associated terminal, which thumbnail is stored to the local storage space of the associated terminal and corresponds to the local picture directory. In the associated terminal, when a local picture directory is opened, a thumbnail of each picture under the directory is displayed. By browsing the thumbnails, the user can quickly acquire the general contents of each picture, and the browsing habit of the user is better met. Because the occupied space of the thumbnail is extremely small, when the thumbnail is stored in the associated terminal along with the virtual directory, the thumbnail does not occupy excessive local storage space of the associated terminal.
Because the pixels of the existing mobile phone camera are generally higher, the shot picture of the existing mobile phone camera is often more than 10Mbit, the size of the mobile phone screen is limited, and the display effect of the picture is basically the same after the picture reaches a certain pixel. In order to reduce the data amount of the interaction between the associated terminal and the remote data center, as shown in fig. 3, in an embodiment of the present invention, the step S11 stores the picture received from the associated terminal according to a preset rule, and specifically includes the following steps executed by a server of the remote data center:
step S111: and receiving the picture from the associated terminal, and taking the picture as an original picture. The associated terminal may upload the pictures to the remote data center by executing a file backup instruction or the like.
Step S112: and judging whether the occupied space of the original picture is smaller than a second preset value or not, executing the step S113 when the occupied space of the original picture is smaller than the second preset value, and otherwise executing the step S114.
Step S113: the original picture is stored directly according to the file system of the server, e.g. to the storage area 21 in fig. 2. Accordingly, only the actual storage address of the original picture is included in the picture record of the original picture.
Step S114: and generating a mirror image picture according to the original picture, wherein the occupied space of the mirror image picture is less than or equal to a second preset value, and the second preset value is greater than the first preset value. Specifically, the second preset value may be set as needed, for example, the second preset value may be 2MBit. The name of the mirror picture may comprise the name of the original picture, e.g. the name of the original picture in combination with a suffix or the like. The method for compressing the picture with larger storage capacity to form the picture with smaller storage capacity can adopt the conventional technology in the field, and is not described herein again.
Step S115: the original picture and the mirror picture are stored according to the file system of the server, for example, the original picture is stored in the storage area 21 in fig. 2, and the mirror picture is stored in the storage area 22 in fig. 2. Correspondingly, the actual storage address in the picture record comprises the storage address of the original picture and the storage address of the mirror image picture, and the default address of the downloading instruction in the picture record is the storage address of the mirror image picture.
In an associated terminal (i.e. an associated terminal downloading the virtual directory) in which the local picture directory is replaced by the virtual directory, when a corresponding thumbnail in the local picture directory is selected for browsing and no original picture or image picture corresponding to the thumbnail exists locally, the image picture corresponding to the thumbnail is downloaded locally by the associated terminal and displayed.
Because the size of the mirror image file is relatively large, the details of the picture can be presented clearly enough for a common mobile phone, and the browsing requirement of a user on the picture is basically met. By the mode, the picture browsing requirements can be basically met, meanwhile, the downloading flow and the downloading time of the picture are greatly saved, and the user experience is improved.
In particular, in the above-mentioned related terminal, once a certain image picture is downloaded locally, the image picture is stored locally in the related terminal in place of the corresponding thumbnail, so that the picture is not required to be downloaded from the remote data center when being browsed next time. In addition, when the user needs to browse the original picture, the user can obtain the original picture from the remote data center by modifying the default address in the picture record (for example, by clicking a specific operation button in the graphical user interface and the like). And after obtaining the original picture, replacing the thumbnail or mirror picture in the local storage device with the original picture so as to avoid subsequent repeated downloading.
In order to avoid repeated storage of pictures of the same content by the remote data center (for example, when the same picture is uploaded by the associated terminal for multiple times), as shown in fig. 4, in an embodiment of the present invention, the above-mentioned storing the pictures received from the associated terminal according to the preset rule includes the following steps performed by the server of the remote data center:
step S111: and receiving the picture from the associated terminal, and taking the picture as an original picture. The associated terminal may upload the pictures to the remote data center by executing a file backup instruction or the like.
Step S116: and comparing the original picture received from the associated terminal with the pictures already stored in the remote data center, and executing step S117 when the similarity between the received original picture and the stored at least one picture reaches a preset threshold, otherwise executing step S118.
Specifically, the remote data center may compare the name, creation time, etc. of the original picture with pictures already stored to the remote data center. For example, when the name and the creation time of the picture stored in the remote data center are the same as those of the original picture, the similarity between the original picture and the picture stored in the remote data center is considered to reach a preset threshold.
Step S117: and storing the original picture to a second preset position. The second preset position is a storage position of the repeated picture, correspondingly, the virtual directory comprises a repeated picture subdirectory, and a user can delete the picture in the subdirectory when confirming that the picture is the repeated picture. Or, for the picture at the second preset position, the remote data center is automatically deleted after keeping the picture for a preset time (for example, 30 days).
In particular, in one embodiment of the present invention, to save the storage space of the terminal, the local picture is transmitted to the remote data center at the association terminal and is determined by the remote data center that the similarity with the stored picture reaches the preset threshold, and the remote data center may directly transmit the thumbnail of the picture to the association terminal, so that the association terminal replaces the original picture in the local gallery with the thumbnail, and the thumbnail refers to the picture with the similarity reaching the preset threshold at the remote data center. The original pictures of the local image library of the associated terminal are replaced by thumbnails, only the thumbnails are locally reserved, the thumbnails point to pictures which are stored in the remote data center and have the similarity reaching a preset threshold value, and when a user clicks the thumbnails, the associated terminal directly obtains the corresponding pictures from the remote data center according to the addresses of the thumbnails.
Step S118: and storing the original picture to a first preset position.
By the mode, the waste of the storage space of the remote data center can be avoided, and the storage resources of the remote data center are saved and improved.
In one embodiment of the present invention, the picture record includes position information extracted from summary information of the picture, for example, position information generated from GPS positioning information when a mobile phone takes a picture, and accordingly, the virtual directory includes a place directory generated according to user settings, a plurality of subdirectories of the place directory respectively correspond to a plurality of different places (for example, countries, cities, etc.), and the subdirectories may be generated according to user settings or generated according to position information in the picture record. The step S12 writes the picture record into one or more virtual directories, including: and acquiring the position information in the picture record, and writing the picture record into the subdirectory of the corresponding place of the place directory according to the position information.
In another embodiment of the present invention, the picture record includes a creation time of the picture extracted from the summary information of the picture, for example, a shooting time of the picture, and accordingly, the virtual directory includes a time directory whose sub-directories correspond to a plurality of different time periods (for example, years, months, etc.), respectively, and the sub-directories may be generated according to a setting of a user or generated according to a creation time of the picture in the picture record. The step S12 writes the picture record into one or more virtual directories, including: and acquiring the creation time of the picture in the picture record, and writing the picture record into the subdirectory of the corresponding time period in the time directory according to the creation time.
In another embodiment of the present invention, the picture record includes a presentation event (e.g., a tour, a party, a meeting, etc.) of a picture extracted from summary information of the picture, the presentation event may be generated by recognizing picture contents through AI, and accordingly, the virtual directory includes an event directory generated according to user settings, and a plurality of sub-directories of the event directory respectively correspond to a plurality of different events. The step S12 writes the picture record into one or more virtual directories, including: and acquiring a display event in the picture record, and writing the picture record into a subdirectory of a corresponding event of the event directory according to the display event.
In another embodiment of the present invention, the picture record includes a presentation character (e.g., family, friend, classmate, etc.) of the picture extracted from the summary information of the picture, the presentation character being generated by recognizing the picture contents through AI, and accordingly, the virtual directory includes a relationship network directory generated according to user settings, a plurality of subdirectories of the relationship network directory respectively corresponding to a plurality of different relationship circles (family, friend, classmate, etc.). The step S12 writes the picture record into one or more virtual directories, including: and acquiring display characters in the picture records, and writing the picture records into the subdirectories of the corresponding relationship circles of the character directory according to the display characters.
When the remote data center builds a shared space for a plurality of different accounts, and the plurality of accounts share a total virtual directory (corresponding to the shared space of the plurality of users in the remote data center) in the remote data center, because the users of the plurality of accounts can mutually view the virtual directory of the account of the other party, the situation can face privacy problem, namely, some pictures of the users do not want to be seen by others. In one embodiment of the present invention, as shown in fig. 5, each virtual directory is used to store picture records of pictures uploaded by associated terminals of multiple users, and each virtual directory includes a shared directory and multiple privacy directories corresponding to the multiple users respectively (i.e. each user has one privacy directory), and each privacy directory includes a privacy condition; accordingly, the picture storage method of the network of the present invention further comprises the following steps performed by the remote data center:
step S111: and receiving the picture from the associated terminal, and taking the picture as an original picture. The associated terminal may upload the picture to the remote data center by executing a file backup instruction, and the remote data center needs to authenticate the associated terminal (for example, through an account) before receiving the picture, and confirm whether a user of the associated terminal is a user of the remote data center and a total virtual directory corresponding to the user.
Step S116': it is determined whether the received original picture satisfies the privacy condition, and step S117 'is performed when the original picture satisfies the privacy condition, and step S118' is performed when the original picture does not satisfy the privacy condition. The above-mentioned privacy conditions may be set in advance, or the privacy conditions may be generated by the remote data center by self-learning. For example, a picture created for a certain time period, a certain place, or a picture showing certain specific, people, scenes may be taken as the privacy condition.
In this step, the summary information of the original picture (for example, the creation time of the picture, the creation location of the picture, etc.) may be read, or the content displayed by the picture may be analyzed (for example, the scene displayed by the picture, the person displayed by the picture, etc. may be obtained by an artificial intelligence recognition method such as depth image recognition, etc.), the related information of the original picture may be obtained, and these information may be compared with the privacy conditions (the privacy conditions correspond to the privacy directory corresponding to the user of the associated terminal that sent the original picture). The reading of the summary information of the original picture and the analysis of the picture display content can adopt the conventional techniques in the art, and are not described herein again.
Step S117': and writing the corresponding picture record into the corresponding privacy directory. In this step, the picture record needs to be stored in the privacy directory corresponding to the user according to the account name used by the associated terminal that uploads the picture (i.e., the user of the associated terminal).
Step S118': and writing the corresponding picture record into the shared directory.
In step S13, when receiving a gallery download request from a user terminal, the remote data center transmits the shared directory and a private directory corresponding to a user of the associated terminal (the user is identified by an account name used by the associated terminal) to the requested associated terminal, and causes the associated terminal to replace its local picture directory with the shared directory and the private directory. By the mode, not only can the pictures of a plurality of users be shared, but also the privacy of different users is ensured. In addition, the pictures are directly and automatically classified according to privacy conditions through the remote data center, and a user does not need to carry out privacy setting operation on each picture at a terminal, so that the use experience of the user is greatly improved.
In an embodiment of the present invention, before the step S116', the following steps performed by the remote data center are further included: and creating the privacy condition of the corresponding privacy directory according to the instruction from the associated terminal.
Specifically, the application program associated with the terminal may provide the user with input of one or more privacy items through a graphical user interface or the like, such as a single person photo, a photo taken in a bedroom, a photo taken between 22 o 'clock and 6 o' clock of the next day, a photo including a parent or a child, a photo of a specific clothing, a photo with poor emotion, and the like, and the remote data center generates a privacy condition of a privacy directory corresponding to the relevant user according to the privacy items after receiving an instruction (e.g., a privacy setting instruction) including the privacy items.
In another embodiment of the invention, the summary information of the original pictures uploaded by the associated terminal includes privacy parameters, whether the corresponding picture is a privacy picture which is not desired to be shared is identified through the privacy parameters, and the user can modify the privacy parameters of each picture through the terminal. Accordingly, the network-based picture storage method of the present invention further comprises the following steps performed by the remote data center: and identifying the received picture, and generating the privacy condition of the corresponding privacy directory by self-learning according to the privacy parameters of the picture.
Specifically, after the remote data center receives the original picture, the original picture is identified, and if the privacy parameter in the received original picture is set to be not desired to be shared, the remote data center analyzes elements identified from the original picture, such as whether the element is a single picture, whether the element is a picture taken in a bedroom, whether the element is a picture taken between 22 o 'clock and 6 o' clock of the next day, whether the element is a picture including parents or children, whether the element is a picture of a specific dress, whether the element is a picture with poor mood, and the like, and then generates the privacy condition corresponding to the privacy directory of the user according to a preset rule. For example, the preset rule may be: setting a privacy weight value aiming at different display contents of the picture, if the picture which is set to be not desired to be shared contains corresponding contents, increasing the privacy weight value corresponding to the contents, and using the weighted sum of all the contents as a privacy condition by the remote data center, namely confirming that the picture meets the privacy condition when the weighted sum of the contents displayed by the picture which is not set to be not desired to be shared is greater than a preset value, otherwise confirming that the picture does not meet the privacy condition. Through the mode, the user does not need to set privacy parameters for each picture, and the remote data center continuously adjusts the privacy conditions according to the pictures which are set to be not wanted to be shared, so that the privacy conditions are more perfect.
In addition, the remote data center can also combine the two modes to generate the privacy condition: that is, before step S116', a privacy condition of the corresponding privacy directory is created according to an instruction from the associated terminal; and identifying the received picture in the process of storing the picture, and self-learning and updating the privacy conditions of the corresponding privacy directory by combining the privacy parameters of the picture.
The invention also provides a network-based picture storage system, which is applied to a remote data center and comprises a processor and a memory, wherein the memory is stored with a computer program executable on the processor, and the processor implements the steps of the network-based picture storage method when executing the computer program.
The network-based picture storage system in this embodiment and the network-based picture storage method in the embodiment corresponding to fig. 1 to 5 belong to the same concept, and specific implementation processes thereof are detailed in the corresponding method embodiments, and technical features in the method embodiments are applicable in this device embodiment, and are not described herein again.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network-based picture storage method as described above.
The computer-readable storage medium in this embodiment and the network-based image storage method in the embodiment corresponding to fig. 1 to 5 belong to the same concept, and specific implementation processes thereof are detailed in the corresponding method embodiments, and technical features in the method embodiments are applicable in this device embodiment, and are not described herein again.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by functions and internal logic of the process, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is merely used for illustration, and in practical applications, the functions may be distributed by different functional units and modules as needed. Each functional unit and module in the embodiments may be integrated in one processor, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed method and system for storing pictures based on network can be implemented in other ways. For example, the network-based picture storage system embodiments described above are merely illustrative.
In addition, functional units in the embodiments of the present application may be integrated into one processor, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any physical or interface switching device, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium or the like capable of carrying said computer program code. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A picture storage method based on a network is applied to a remote data center, and is characterized by comprising the following steps:
storing pictures received from a related terminal according to a preset rule, and generating picture records according to the summary information of the pictures, wherein the picture records comprise actual storage addresses of the pictures;
writing the picture records into one or more virtual directories, and each of the virtual directories comprises a plurality of subdirectories;
and responding to a gallery downloading request of the associated terminal, sending the virtual directory to the associated terminal, and replacing the local picture directory of the associated terminal with the virtual directory.
2. The method according to claim 1, wherein the generating a picture record according to the summary information of the picture comprises:
taking a picture received from an associated terminal as an original picture, and generating a thumbnail according to the original picture;
the picture records comprise thumbnails, and the occupied space of the thumbnails is smaller than or equal to a first preset value, so that the thumbnails are displayed when a virtual directory replacing a local picture directory is opened.
3. The network-based picture storage method according to claim 2, wherein the storing the picture received from the associated terminal according to the preset rule comprises:
when the occupied space of the original picture is larger than or equal to a second preset value, generating a mirror image picture according to the original picture, wherein the occupied space of the mirror image picture is smaller than or equal to the second preset value, and the second preset value is larger than the first preset value;
and respectively storing an original picture and a mirror image picture, wherein the actual storage address in the picture record comprises the storage address of the original picture and the storage address of the mirror image picture, and in an associated terminal in which a local picture directory is replaced by the virtual directory, when a corresponding thumbnail in the local picture directory is selected for browsing and the original picture or the mirror image picture corresponding to the thumbnail does not exist locally, the mirror image picture corresponding to the thumbnail is downloaded locally by the associated terminal and displayed.
4. The network-based picture storage method according to claim 1, wherein the storing the picture received from the associated terminal according to the preset rule comprises:
comparing the picture received from the associated terminal with the picture already stored in the remote data center;
storing the received picture to a first preset position when the similarity between the received picture and at least one stored picture does not exceed a preset threshold;
and storing the received picture to a second preset position when the similarity between the received picture and the stored at least one picture reaches a preset threshold value.
5. The network-based picture storage method according to any one of claims 1 to 4, wherein the remote data center is a shared remote data center, each of the virtual directories is used for storing picture records of pictures uploaded by associated terminals of a plurality of users, and each of the virtual directories includes a shared directory and a plurality of privacy directories corresponding to the plurality of users respectively, each of the privacy directories includes a privacy condition;
the writing the picture records into one or more virtual directories comprises:
judging whether the received picture meets the privacy condition, writing the corresponding picture record into the corresponding privacy directory when the picture meets the privacy condition, and writing the corresponding picture record into the shared directory when the picture does not meet the privacy condition;
the sending the virtual directory to the associated terminal in response to the gallery download request of the associated terminal includes:
and sending the shared directory and the privacy directory corresponding to the user of the associated terminal to the associated terminal according to the gallery downloading request of the associated terminal.
6. The method of claim 5, further comprising:
and creating the privacy condition of the corresponding privacy directory according to the instruction from the associated terminal.
7. The network-based picture storage method according to claim 5, wherein the summary information of the picture includes privacy parameters, the method comprising:
and identifying the received picture, and generating the privacy condition of the corresponding privacy directory by combining the privacy parameter self-learning of the picture.
8. The network-based picture storage method according to claim 5, wherein the summary information of the picture includes privacy parameters, the method further comprising:
creating privacy conditions of the corresponding privacy directories according to instructions from the associated terminals;
and identifying the received picture, and updating the privacy condition of the corresponding privacy directory by self-learning according to the privacy parameters of the picture.
9. A network-based picture storage system applied to a remote data center, wherein the system comprises a processor and a memory, the memory stores a computer program executable on the processor, and the processor executes the computer program to realize the steps of the network-based picture storage method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the network-based picture storage method according to any one of claims 1 to 8.
CN202211126643.1A 2022-09-15 2022-09-15 Network-based picture storage method and system and computer-readable storage medium Pending CN115484421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211126643.1A CN115484421A (en) 2022-09-15 2022-09-15 Network-based picture storage method and system and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211126643.1A CN115484421A (en) 2022-09-15 2022-09-15 Network-based picture storage method and system and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115484421A true CN115484421A (en) 2022-12-16

Family

ID=84423733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211126643.1A Pending CN115484421A (en) 2022-09-15 2022-09-15 Network-based picture storage method and system and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115484421A (en)

Similar Documents

Publication Publication Date Title
EP3210371B1 (en) Camera application
CN107491701B (en) Automatically creating a group for sharing photos
US8650242B2 (en) Data processing apparatus and data processing method
US9619713B2 (en) Techniques for grouping images
US9525789B2 (en) Shuffle algorithm and navigation
US10067652B2 (en) Providing access to a cloud based content management system on a mobile device
JP5790094B2 (en) Image management system, image management system control method, control program, and recording medium
US20210117468A1 (en) Systems and methods for selecting content items to store and present locally on a user device
JP2014501956A (en) Data synchronization in distributed computing environments
US9973649B2 (en) Photographing apparatus, photographing system, photographing method, and recording medium recording photographing control program
TW201308192A (en) Systems and methods for managing media content using a communications device
CN110188216B (en) Photo live broadcasting system with character recognition and method thereof
US20110025858A1 (en) Method, apparatus, and system for adding functionality to a digital camera
CN103167258A (en) Method, system and apparatus for selecting an image captured on an image capture device
US11899719B2 (en) Systems and methods for determining whether to modify content
US20110019007A1 (en) Method, apparatus and method for adding functionality to a digital camera
KR101519421B1 (en) System for sharing picture image and video contents
CN107729485B (en) Data management method, device, terminal and computer readable storage medium
CN110865981A (en) File access method for mobile terminal and mobile terminal thereof
CN115114236A (en) Management system and management method for photos and/or videos
CN115484421A (en) Network-based picture storage method and system and computer-readable storage medium
KR20080040063A (en) Classificating and searching system of map structed video contents and method thereof
KR101963298B1 (en) Smart Apparatus for having Image management application and Image managing method thereof
WO2023004685A1 (en) Image sharing method and device
KR20140130974A (en) Service method of e-card in mobile

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