CN111611608A - Photo processing method, device and equipment and computer storage medium - Google Patents

Photo processing method, device and equipment and computer storage medium Download PDF

Info

Publication number
CN111611608A
CN111611608A CN202010492413.1A CN202010492413A CN111611608A CN 111611608 A CN111611608 A CN 111611608A CN 202010492413 A CN202010492413 A CN 202010492413A CN 111611608 A CN111611608 A CN 111611608A
Authority
CN
China
Prior art keywords
photo
group
processed
photos
information
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.)
Withdrawn
Application number
CN202010492413.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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010492413.1A priority Critical patent/CN111611608A/en
Publication of CN111611608A publication Critical patent/CN111611608A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Abstract

The embodiment of the application discloses a photo processing method, a device, equipment and a computer storage medium, which comprises the following steps: acquiring a photo set to be processed; grouping the photo sets to be processed to obtain at least one photo group; determining a key corresponding to each photo group, and encrypting each photo group respectively based on the key corresponding to each photo group; sending each encrypted photo group to a server so that the server stores each encrypted photo group; and acquiring storage address information and a secret key corresponding to each encrypted photo group, and generating a two-dimensional code corresponding to each encrypted photo group based on the storage address information and the secret key corresponding to each encrypted photo group, so that a user can download the corresponding photo group according to the two-dimensional code.

Description

Photo processing method, device and equipment and computer storage medium
Technical Field
The embodiment of the application relates to the field of photography, and relates to but is not limited to a photo processing method, a photo processing device, photo processing equipment and a computer storage medium.
Background
At present, the photographic negative film processing mode in the photographic industry is generally to directly copy or send a mail box or record the negative film into a CD or DVD optical disc by using a storage medium such as a U disk and the like or input codes and download the negative film by a client through logging in an internet by coding the photo. If storage media such as a U disk are used for storing the negative film, the storage media such as the U disk need to be inserted into a computer in the middle, and if the storage media carry viruses or trojans, the computer of a merchant is poisoned, so that the loss of the merchant is immeasurable; if the users send the mails, the number of photos in one day in the industries is very large, and the users have many individuals, so that the mails of each user need to be recorded, and the efficiency is low; if recording a CD or DVD, the recording time will increase extra cost, the CD is easy to damage and scratch, and the CD is easy to lose.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a device, and a computer storage medium for processing a photo.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a photo processing method, which comprises the following steps:
acquiring a photo set to be processed;
grouping the photo sets to be processed to obtain at least one photo group;
determining a key corresponding to each photo group, and encrypting each photo group based on the key corresponding to each photo group;
sending each encrypted photo group to a server so that the server stores each encrypted photo group;
and acquiring storage address information and a secret key corresponding to each encrypted photo group, and generating a two-dimensional code corresponding to each encrypted photo group based on the storage address information and the secret key corresponding to each encrypted photo group, so that a user can download the corresponding photo group according to the two-dimensional code.
In some embodiments of the present invention, the,
acquiring attribute information of each photo in the photo set to be processed;
correspondingly, grouping the photo sets to be processed to obtain at least one photo group, including:
and grouping the photo sets to be processed according to the attribute information to obtain at least one photo group.
In some embodiments, the attribute information includes: the time information, the grouping the photo sets to be processed according to the attribute information to obtain at least one photo group, includes:
determining a first photo and a second photo with interval duration larger than a first time threshold value in the photos to be processed based on the time information of the photos, wherein the time information of the first photo is earlier than that of the second photo;
determining the time information of the second photo as the starting point of a target time period, and determining the time information obtained by adding a second time length threshold to the time information of the second photo as the end point of the target time period;
determining the target time period according to the starting point of the time period and the end point of the target time period;
and determining all the photos in the target time period as the same photo group to obtain at least one photo group.
In some embodiments, the method further comprises:
acquiring the quantity and the characteristic information of target objects in each photo in the photo set to be processed;
correspondingly, the grouping the photo sets to be processed to obtain at least one photo group includes:
determining a first reference photo set based on the number of target objects in each photo in the photo set to be processed, wherein the number of target objects in each photo in the first reference photo set is greater than the number of target objects in other photos in the photo set to be processed;
selecting a photo from the first reference photo set to determine as a first reference photo;
calculating a first similarity between the characteristic information of each target object in the first reference picture and the characteristic information of each target object in other pictures in the photo set to be processed;
determining a first photo subset according to the first similarity, wherein the first similarity between the feature information of at least one target object in each photo in the first photo subset and the feature information of at least one target object in the first reference photo is greater than or equal to a similarity threshold;
determining a first group of pictures based on the first subset of pictures and the first reference picture.
In some embodiments, the method further comprises:
determining a second reference photo set based on the number of target objects in each photo in the to-be-processed photo subset, wherein the to-be-processed photo subset is a photo excluding the first photo group in the to-be-processed photo, and the number of target objects in each photo in the second reference photo set is greater than the number of target objects in other photos in the to-be-processed photo subset;
selecting a photo from the second reference photo set to determine the photo as a second reference photo;
calculating a second similarity between the characteristic information of each target object in the second reference picture and the characteristic information of each target object in other pictures in the to-be-processed picture subset;
determining a second photo subset according to the second similarity, wherein the second similarity between the feature information of at least one target object in each photo in the first photo subset and the feature information of at least one target object in the second reference photo is greater than or equal to the similarity threshold;
determining a second group of pictures based on the second subset of pictures and the second reference picture.
In some embodiments, the method further comprises:
acquiring status information of a plurality of printing devices;
determining the number of the first photos to be printed of each printing device according to each state information;
distributing the photos in each photo group according to the number of the photos to be printed to obtain a distribution result, wherein the distribution result represents that the number of the second photos to be printed of each printing device is balanced;
and sending each photo group to each printing device according to the distribution result.
In some embodiments, the method further comprises:
and sending the two-dimensional code corresponding to each photo group to each printing device according to the distribution result, so that when each printing device prints the photos in each photo group, the two-dimensional code corresponding to each photo group is printed on the photos in each photo group.
An embodiment of the present application provides a photo processing apparatus, the apparatus includes:
the first acquisition module is used for acquiring a photo set to be processed;
the grouping module is used for grouping the photo sets to be processed to obtain at least one photo group;
the encryption module is used for determining the secret key corresponding to each photo group and encrypting the at least one photo group respectively based on the secret key corresponding to each photo group;
the first sending module is used for sending each encrypted photo group to a server so that the server stores each encrypted photo group;
and the generating module is used for acquiring the storage address information and the secret key corresponding to each encrypted photo group, and generating the two-dimensional code corresponding to each encrypted photo group based on the storage address information and the secret key corresponding to each encrypted photo group, so that a user can download the corresponding photo group according to the two-dimensional code.
An embodiment of the present application provides a photo processing apparatus, including:
a processor;
a memory storing a computer program operable on a processor, wherein the processor implements the steps of any of the above-described photograph processing methods when executing the program.
An embodiment of the present application provides a computer storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute any one of the above-mentioned photo processing methods.
The embodiment of the application provides a photo processing method, a photo processing device, photo processing equipment and a computer storage medium, a photo set to be processed is grouped, each grouped photo group is encrypted, the encrypted photo groups are sent to a server, and a two-dimensional code is generated based on an encrypted secret key and an address of the server for storing the photo groups, so that a user can download the corresponding photo groups according to the two-dimensional code, the efficiency of processing photos (negatives) of the user by a photography merchant is improved, the loss of the photography merchant caused by the fact that viruses possibly exist in the storage medium of the user in the prior art is avoided, and meanwhile the satisfaction degree of the user is improved.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed herein.
Fig. 1 is a schematic flowchart of a photo processing method according to an embodiment of the present application;
fig. 2 is a schematic view of an implementation flow of step S1021 according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of grouping the photo sets to be processed to obtain at least one photo group according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a photo processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a photo processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
The following description will be added if a similar description of "first \ second \ third" appears in the application file, and in the following description, the terms "first \ second \ third" merely distinguish similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under certain circumstances in a specific order or sequence, so that the embodiments of the application described herein can be implemented in an order other than that shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Based on the problems in the related art, the embodiments of the present application provide a photo processing method, which is applied to a photo processing device, and the photo processing device may be a computer. The method provided by this embodiment may be implemented by a computer program, and when the computer program is executed, each step in the method provided by this embodiment is completed. In some embodiments, the computer program may be executed by a processor in the receiving end device. Fig. 1 is a schematic flowchart of a photo processing method provided in an embodiment of the present application, and as shown in fig. 1, the method includes:
and step S101, acquiring a photo set to be processed.
In the embodiment of the present application, the photo album to be processed may be obtained from a storage medium on the photographing apparatus, and the storage medium may be a digital camera. In the embodiment of the present application, the photo set to be processed includes at least one photo. The photo album to be processed may include: individual photos, and multiple individuals.
Step S102, grouping the photo sets to be processed to obtain at least one photo group;
in this application embodiment, when receiving a photo set to be processed, an image processing device may group the photo set to be processed to obtain at least one photo group. For example, for a single photograph of a person, usually the client is the person in the single photograph, and for a group photograph of a plurality of persons, the client corresponds to one client.
In the embodiment of the present application, grouping the photo sets to be processed to obtain at least one photo group may be implemented by any one of the following manners: grouping operation of a user can be received, and a photo set to be processed is grouped to obtain at least one photo group; in some embodiments, the photos may be grouped into at least one photo group according to attribute information of the photos to be processed, where the attribute information may be time information. In some embodiments, the to-be-processed photos may be further grouped by feature information of the target objects in the photos to obtain at least one photo group. In this embodiment, the target object is generally a person, and correspondingly, the feature information of the target object may be a facial feature of the person.
Step S103, determining a key corresponding to each photo group, and encrypting each photo group based on the key corresponding to each photo group.
In the embodiment of the application, after the photo sets to be processed are grouped, the photo processing equipment randomly generates the corresponding number of secret keys according to the number of the photo groups so as to encrypt the photo groups. In the embodiment of the present application, the keys corresponding to the respective photo groups may be the same or different. In some embodiments, an operation of setting a password by a user may be further received to encrypt each photo group. In the implementation of the application, the personal information security is ensured by encrypting the picture group.
Step S104, sending each encrypted photo group to a server so that the server stores each encrypted photo group;
in the embodiment of the application, the server is used for storing the photo sets to be processed. After storing each encrypted photo group, the server generates a storage address corresponding to each photo group.
Step S105, obtaining storage address information and a secret key corresponding to each encrypted photo group, and generating a two-dimensional code corresponding to each encrypted photo group based on the storage address information and the secret key corresponding to each encrypted photo group, so that a user downloads a corresponding photo group according to the two-dimensional code.
In the embodiment of the application, the picture processing device can acquire the encrypted address information corresponding to each picture group from the server, and can also acquire the key corresponding to each picture group from the server, and the picture processing device can generate the two-dimensional code corresponding to each encrypted picture group according to the encrypted address information corresponding to each picture group and the key. By using the two-dimensional code, the encoding safety is higher than that of the traditional encoding. In the embodiment of the application, after the two-dimensional code corresponding to each photo group is generated, the two-dimensional code can be printed out, so that a client can shoot the two-dimensional code by using a mobile phone, and the two-dimensional code can be sent to the client. And when the secret key is the secret key corresponding to the photo group, the server allows the client to download the photos.
According to the photo processing method provided by the embodiment of the application, the photo sets to be processed are grouped, the grouped photo sets are encrypted, the encrypted photo sets are sent to the server, the two-dimensional codes are generated based on the encrypted secret keys and the address of the server for storing the photo sets, so that a user can download the corresponding photo sets according to the two-dimensional codes, the processing efficiency of a photography merchant on the photos (negatives) of the customer is improved, the loss of the photography merchant due to the fact that viruses possibly exist in a storage medium in the prior art is avoided, and meanwhile the satisfaction degree of the customer is improved.
In some embodiments, before "grouping the photo collections to be processed into at least one photo group" in step S102, the method further includes:
step S102A, acquiring attribute information of each photo in the photo set to be processed.
In the embodiment of the application, the photo processing device may read attribute information of each photo in a photo set to be processed, where the attribute information may be time information.
Correspondingly, step S102 "grouping the photo collections to be processed to obtain at least one photo group" includes:
and S1021, grouping the photo sets to be processed according to the attribute information to obtain at least one photo group.
In the embodiment of the application, the shooting time of each photo in the photo sets to be processed can be determined through the attribute information, and then each photo set to be processed is grouped based on shooting design, for example, the time difference between two photos is large, the two photos are not taken in one day, and the two photos may not be photos of the same client, so that the two photos are divided into different groups. For another example, 50 photos are taken within 1 hour, and the 50 photos may be photos of the same customer, so the 50 photos are grouped together.
In some scenes, when the number of photo sets to be processed is particularly large, if grouping is performed manually, the workload of manual work is also quite large, and therefore, in the embodiment of the application, by acquiring the attribute information of each photo in the photo sets to be processed and grouping the photo sets to be processed according to the attribute information, automatic grouping of the photo sets to be processed can be achieved, and the workload of manual work is reduced.
In some embodiments, the attribute information includes: the time information, step S1021 "grouping the photo sets to be processed according to the attribute information to obtain at least one photo group" may be implemented by the following steps, and fig. 2 is a schematic diagram of an implementation flow of step S1021 provided in this embodiment, as shown in fig. 2, including:
and step S1, determining a first photo and a second photo with the interval duration larger than a first duration threshold value in the photos to be processed based on the time information of the photos.
In an embodiment of the present application, the time information of the first photo is earlier than the time information of the second photo. The first time threshold value can be set by a photographing merchant, the photographing merchant can set specific time according to own experience, and the last photo of the former group of two adjacent groups and the starting photo of the latter group are determined by determining the first photo and the second photo with the interval time length larger than the first time threshold value. Generally, when two customers take photos, a preparation time is usually needed before the next customer takes a photo after the previous customer finishes taking a photo, and the merchant can determine the duration of the first duration threshold according to the statistical preparation time. Illustratively, the time of the first duration threshold is 1 hour, the time interval between the first photo and the second photo is greater than 1 hour, and since the time information of the first photo is earlier than the time information of the second photo, the first photo can be determined as the last photo in all photos of the previous customer, and similarly, the second photo can be determined as the first photo in all photos of the next customer.
Step S2, determining that the time information of the second photo is a start point of a target time period, and determining that the time information obtained by adding a second duration threshold to the time information of the second photo is an end point of the target time period.
In this embodiment of the application, the second duration threshold may be set by a camera merchant, and a specific time may be set according to experience of the merchant, in this embodiment of the application, each customer usually has a time period when shooting, for example, the shooting time is 2 hours, and the second duration threshold may be set to 2 hours. When the time information of the second photo is determined to be the starting point of the target time period, the time information obtained by adding the time information of the second photo to the second time length threshold value can be determined to be the terminal of the target time period.
Step S3, determining the target time period according to the start point of the time period and the end point of the target time period.
The target time period is a shooting time period of one client. Illustratively, the time of the second photo is 12 o ' clock, the second duration threshold is 2 hours, and then the target time period corresponding to the customer is 12 o ' clock to 14 o ' clock.
Step S4, determining all photos in the target time period as the same photo group, to obtain at least one photo group.
In the embodiment of the application, since the shooting time period of a client is determined, all photos in the target time period are photos corresponding to the client. Therefore, all the photos within the target time period are divided into one group, i.e., determined as the same group of photos.
As such, in the embodiment of the present application, each photo group may be determined through the above steps.
According to the method provided by the embodiment of the application, the starting point of the shooting time of one client and the terminal capable of shooting the time are judged, the target time period is determined, all photos in the target time period are divided into one group, and therefore the grouping of the photo sets to be processed is achieved. Through the integral storage of each photo group, when a user downloads photos through the two-dimensional code, all corresponding photos can be directly found.
In some embodiments, to improve the precision of photo grouping, before "grouping the photo sets to be processed into at least one photo group" in step S102, the method further includes:
step S102B, acquiring the quantity and characteristic information of the target objects in each photo in the photo set to be processed.
In the embodiment of the application, the number of the target objects in each photo in the photo set to be processed can be acquired through the target object recognition model. In the embodiment of the application, the feature information may be face feature information. Prior to step S102B, the method further comprises: the method comprises the steps of establishing a target object recognition model in advance, training an initial target object recognition model through a sample photo set by establishing the sample photo set, wherein each photo in the sample photo set is provided with the target object number marked with the photo corresponding to the photo, so that the trained target object recognition model is obtained, inputting the photo set to be processed into the target object recognition model when the photo set to be processed is obtained, and obtaining the number of the target objects in each photo.
In the embodiment of the present application, the target object is a person, for example, one photo is a family photo, and the number of persons in the photo is 4; a picture is taken individually, and the number of people in the picture is 1.
Correspondingly, the step S102 "grouping the photo sets to be processed to obtain at least one photo group" may be implemented by the following steps, and fig. 3 is a schematic flow chart of grouping the photo sets to be processed to obtain at least one photo group according to an embodiment of the present application, as shown in fig. 3, including:
step S21, determining a first reference photo set based on the number of target objects in each photo in the photo set to be processed.
In the embodiment of the application, the number of the target objects in each photo in the first reference photo set is greater than or equal to the number of the target objects in other photos in the photo set to be processed. When the number of the target objects in each photo in the photo set to be processed is equal, the first reference photo set is the photo set to be processed, and when the number of the target objects in each photo in the photo set to be processed is not equal, the photo with the largest number of the target objects is determined as the first reference photo set. That is, at the time of grouping, a target object is first determined as many picture groups as the number of the target object. Illustratively, there are 5 photos in the photo set to be processed, the number of target objects in the 5 photos is not equal, the 5 photos are represented by X1, X2, X3, X4, and X5, X1 has 1 target object, X2 has 1 target object, X3 has 3 target objects, X3 has 4 target objects, and X5 has 4 target objects. Then the first set of reference photos X4, X5 are determined. If the target objects in X1, X2, X3, X4, X5 are all equal, then the first set of reference photos is { X1, X2, X3, X4, X5 }.
In step S22, a photo is selected from the first reference photo set and determined as a first reference photo.
In the embodiment of the present application, any one of the photos may be selected from the first reference photo set as the reference photo. Bearing the above example, X4 may be selected as the first reference photograph.
Step S23, calculating a first similarity between the feature information of each target object in the first reference picture and the feature information of each target object in other pictures in the to-be-processed picture set.
In the embodiment of the present application, since the feature information of each target object in each photo is already determined, the feature information of the target object in the first reference photo is also already determined, and the similarity between the feature information of each target object in the first reference photo and the feature information of each target object in other photos in the photo set to be processed can be calculated. Bearing the above example, 4 target objects are included in X4, then a first similarity between the 4 target objects and each of X1, X2, X3, and X5 is calculated.
Step S24, determining a first subset of photos according to the first similarity.
In this embodiment of the application, a first photo subset may be determined according to a first similarity, where a first similarity between feature information of at least one target object in each photo in the first photo subset and feature information of at least one target object in the first reference photo is greater than or equal to a similarity threshold. In this embodiment of the present application, the similarity threshold may be set by a user, for example, the similarity threshold is 90%.
Taking the above example into consideration, if there is a similarity of the feature information of one target object among X1, X2, X3, and X5 and the feature information of any one target object among X4 greater than or equal to a similarity threshold, that is, the target object among X1, X2, X3, and X5 is at least one or more of the target objects among X4. Then X1, X2, X3, and X5 are added to the first subset of photos, i.e., the first subset of photos is { X1, X2, X3, X5 }. If the similarity between the feature information of one target object and the feature information of any one target object in the X4 is larger than or equal to the similarity threshold value in the X1 and the X2, the first photo subset comprises { X1, X2 }. And X3 and X5 are not in the first subset of photos.
Step S25, determining a first group of pictures based on the first subset of pictures and the first reference picture.
In the embodiment of the present application, a first group of photos may be determined based on the first subset of photos and the first reference photo, and in connection with the above example, if the first subset of photos is { X1, X2, X3, X5}, then the first group of photos is { X1, X2, X3, X4, X5 }. For another example, the first subset of photos is { X1, X2}, then the first set of photos is { X1, X2, X4 }. For convenience of understanding, the embodiment of the present application provides an application scenario, in which when a customer takes a picture, a whole family photo is taken, and a personal photo is also taken, so that the customer's photos include the whole family photo and the personal photo, and the photos are all placed in a photo group.
According to the method provided by the embodiment of the application, all photos with the same target object as the reference photo can be found by taking the photo with the largest number of target objects as the reference photo, so that the grouping is more accurate.
In some embodiments, after determining the first group of pictures based on the first subset of pictures and the first reference picture at step S25, "the method further comprises:
step S26, determining a second reference photo set based on the number of target objects in each photo in the to-be-processed photo subset.
In this embodiment of the application, the to-be-processed photo subset is a photo from which the first photo group is removed from the to-be-processed photo set, and the number of target objects in each photo in the second reference photo set is greater than or equal to the number of target objects in other photos in the to-be-processed photo subset. Taking the above example as a reference, if the first photo group is { X1, X2, X4}, then the subset of photos to be processed in this embodiment of the present application is { X3, X5}, where there are 3 target objects with X3 and 4 target objects with X5, and then { X5} is the second reference photo set.
Step S27, selecting one photo from the second reference photo set to determine as a second reference photo.
Taking the above example in mind, since only X5 exists in the second reference picture set, X5 is the second reference picture.
Step S28, calculating a second similarity between the feature information of each target object in the second reference picture and the feature information of each target object in other pictures in the to-be-processed picture subset.
And step S29, determining a second photo subset according to the second similarity.
In an embodiment of the present application, a second similarity between feature information of at least one target object in each of the first photograph subset and feature information of at least one target object in the second reference photograph is greater than or equal to the similarity threshold.
Taking the above example in mind, if the similarity between the feature information of one target object in X3 and the feature information of one target object in X5 is greater than or equal to the similarity threshold, then the second subset of photos { X3 }. If the similarity between the feature information of one target object not existing in the X3 and the feature information of one target object in the X5 is greater than or equal to the similarity threshold, the photos in the second photo subset are 0.
Step S30, determining a second group of pictures based on the second subset of pictures and the second reference picture.
Taking the above example in mind, if the photos in the second subset of photos are 0, then X5 is the second group of photos. That is, the photo set to be processed is divided into 3 groups including a first group of photos { X1, X2, X4}, a second group of photos { X5}, and a third group of photos { X3 }. If the second subset of photos is X3, then the second set of photos is X3, X5. At this time, the photo collection to be processed is divided into two groups { X1, X2, X4} and { X3, X5 }. It should be noted that, in this example, the grouping is only for convenience of understanding, and the grouping may be performed by using this method for a large number of photos.
According to the method provided by the embodiment of the application, all photos with the same target object as the reference photo can be found by taking the photo with the largest number of target objects as the reference photo, so that the grouping is more accurate.
In some embodiments, in step S105, "obtaining storage address information and a key corresponding to each encrypted photo group, and generating a two-dimensional code corresponding to each encrypted photo group based on the storage address information and the key corresponding to each encrypted photo group, so that a user downloads a corresponding photo group according to the two-dimensional code", the method further includes:
in step S106, status information of a plurality of printing apparatuses is acquired.
In step S107, the number of first photos to be printed of each printing apparatus is determined based on each status information.
In the embodiment of the application, the number of photos to be printed of each printing device can be determined through each state information, for example, there are 3 printing devices, the 3 printing devices are respectively represented by D1, D2 and D3, the number of D1 to be printed is 3, the number of D2 to be printed is 6, and the number of D3 to be printed is 12.
And S108, distributing the photos in each photo group according to the number of the photos to be printed to obtain a distribution result.
In the embodiment of the application, the distribution result represents that the number of the second photos to be printed of each printing device is balanced. Taking the above example, if the number of photos in a group of photos is 39, it is determined that 17 photos are assigned to D1, 14 photos are assigned to D2, and 8 photos are assigned to D3. This equalizes the number of prints to be made in the printing apparatus.
And sending each photo group to each printing device according to the distribution result.
In the embodiment of the application, the photos in the photo group are sent to each device.
The method provided by the embodiment of the application determines the number of the printers to be printed by acquiring the state information of the plurality of printing devices, so that the number of the printers to be printed is balanced when the printers are distributed, and the printing efficiency is improved if the waiting time of the printers during printing the photos can be reduced.
In some embodiments, after step S30, the method further comprises:
and sending the two-dimensional codes corresponding to the photo groups to the printing devices according to the distribution result.
In the embodiment of the application, the two-bit code is sent to each printing device, so that when each printing device prints the photos in each photo group, the two-dimensional code corresponding to each photo group is printed on the photos in each photo group.
According to the method provided by the embodiment of the application, the two-dimensional code can be printed on the back of the photo.
Based on the foregoing embodiments, the present application provides a photo processing apparatus, where the apparatus includes modules and units included in the modules, and the modules and the units may be implemented by a processor in a computer device; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the processor may be a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4 is a schematic structural diagram of a photo processing apparatus according to an embodiment of the present application, and as shown in fig. 4, the photo processing apparatus 400 includes:
a first obtaining module 401, configured to obtain a photo set to be processed;
a grouping module 402, configured to group the photo sets to be processed to obtain at least one photo group;
an encryption module 403, configured to determine a key corresponding to each photo group, and encrypt the at least one photo group based on the key corresponding to each photo group;
a first sending module 404, configured to send each encrypted photo group to a server, so that the server stores each encrypted photo group;
a generating module 405, configured to obtain the storage address information and the secret key corresponding to each encrypted photo group, and generate a two-dimensional code corresponding to each encrypted photo group based on the storage address information and the secret key corresponding to each encrypted photo group, so that a user downloads a corresponding photo group according to the two-dimensional code.
In some embodiments, the photo processing apparatus 400 further comprises:
the second acquisition module is used for acquiring the attribute information of each photo in the photo set to be processed;
correspondingly, the grouping module 402 includes:
and the first grouping unit is used for grouping the photo sets to be processed according to the attribute information to obtain at least one photo group.
In some embodiments, the first grouping unit comprises:
the first determining subunit is configured to determine, based on time information of each photo, a first photo and a second photo in a photo set to be processed, where an interval duration of each photo is greater than a first duration threshold, where time information of the first photo is earlier than time information of the second photo;
the second determining subunit is configured to determine that the time information of the second photo is a starting point of a target time period, and determine that the time information of the second photo plus a second duration threshold is an end point of the target time period;
a third determining subunit, configured to determine the target time period according to a starting point of the time period and an end point of the target time period;
and the fourth determining subunit is configured to determine all the photos in the target time period as the same photo group, so as to obtain at least one photo group.
In some embodiments, the photo processing apparatus 400 further comprises:
the third acquisition module is used for acquiring the quantity and the characteristic information of the target objects in each photo in the photo set to be processed;
correspondingly, the grouping module 402 includes:
the first determining unit is used for determining a first reference photo set based on the number of target objects in each photo in the photo set to be processed, wherein the number of the target objects in each photo in the first reference photo set is larger than the number of the target objects in other photos in the photo set to be processed;
a second determination unit, configured to select a photo from the first reference photo set and determine the photo as a first reference photo;
the first calculating unit is used for calculating a first similarity between the characteristic information of each target object in the first reference picture and the characteristic information of each target object in other pictures in the photo set to be processed;
a third determining unit, configured to determine a first photo subset according to the first similarity, where a first similarity between feature information of at least one target object in each photo in the first photo subset and feature information of at least one target object in the first reference photo is greater than or equal to a similarity threshold;
a fourth determining unit for determining a first group of pictures based on the first subset of pictures and the first reference picture.
In some embodiments, the grouping module 402 further comprises:
a fifth determining unit, configured to determine a second reference photo set based on a number of target objects in each photo in the to-be-processed photo subset, where the to-be-processed photo subset is a photo excluding the first photo group in the to-be-processed photo, and the number of target objects in each photo in the second reference photo set is greater than the number of target objects in other photos in the to-be-processed photo subset;
a sixth determining unit, configured to select one photo from the second reference photo set and determine the selected photo as a second reference photo;
the second calculating unit is used for calculating a second similarity between the characteristic information of each target object in the second reference picture and the characteristic information of each target object in other pictures in the picture subset to be processed;
a seventh determining unit, configured to determine a second subset of photos according to the second similarity, where a second similarity between feature information of at least one target object in each photo in the first subset of photos and feature information of at least one target object in the second reference photo is greater than or equal to the similarity threshold;
an eighth determining unit for determining a second group of pictures based on the second subset of pictures and the second reference picture.
In some embodiments, the photo processing apparatus 400 further comprises:
a second acquisition module for acquiring status information of the plurality of printing apparatuses;
the determining module is used for determining the number of the first photos to be printed of each printing device according to each state information;
the distribution module is used for distributing the photos in each photo group according to the number of the photos to be printed to obtain a distribution result, wherein the distribution result represents that the number of the second photos to be printed of each printing device is balanced;
and the second sending module is used for sending each photo group to each printing device according to the distribution result.
In some embodiments, the photo processing apparatus 400 further comprises:
and the third sending module is used for sending the two-dimensional code corresponding to each photo group to each printing device according to the distribution result so that each printing device can print the photos in each photo group.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the above-mentioned photo processing method is implemented in the form of a software functional module and sold or used as a standalone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is implemented to implement the steps in the photo processing method provided in the above embodiment when executed by a processor.
An embodiment of the present application provides a photo processing apparatus, and fig. 5 is a schematic structural diagram of a composition of the photo processing apparatus provided in the embodiment of the present application, and as shown in fig. 5, the photo processing apparatus 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and memory 505. Wherein the communication bus 502 is configured to enable connective communication between these components. The user interface 503 may include a display screen, and the external communication interface 504 may include a standard wired interface and a wireless interface, among others. Wherein the processor 501 is configured to execute the program of the photo processing method stored in the memory to realize the steps in the photo processing method provided in the above embodiments
The above description of the photo processing apparatus and storage medium embodiments is similar to the description of the method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the photo processing apparatus and the storage medium of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
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. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an AC to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of processing a photograph, the method comprising:
acquiring a photo set to be processed;
grouping the photo sets to be processed to obtain at least one photo group;
determining a key corresponding to each photo group, and encrypting each photo group respectively based on the key corresponding to each photo group;
sending each encrypted photo group to a server so that the server stores each encrypted photo group;
and acquiring storage address information and a secret key corresponding to each encrypted photo group, and generating a two-dimensional code corresponding to each encrypted photo group based on the storage address information and the secret key corresponding to each encrypted photo group, so that a user can download the corresponding photo group according to the two-dimensional code.
2. The method of photo processing according to claim 1, further comprising:
acquiring attribute information of each photo in the photo set to be processed;
correspondingly, grouping the photo sets to be processed to obtain at least one photo group, including:
and grouping the photo sets to be processed according to the attribute information to obtain at least one photo group.
3. The photograph processing method according to claim 2, wherein the attribute information includes: the time information, the grouping the photo sets to be processed according to the attribute information to obtain at least one photo group, includes:
determining a first photo and a second photo of which the interval duration is greater than a first duration threshold in the photo set to be processed based on the time information of the photos, wherein the time information of the first photo is earlier than that of the second photo;
determining the time information of the second photo as the starting point of a target time period, and determining the time information obtained by adding a second time length threshold to the time information of the second photo as the end point of the target time period;
determining the target time period according to the starting point of the target time period and the end point of the target time period;
and determining all the photos in the target time period as the same photo group to obtain at least one photo group.
4. The method of claim 1, further comprising,
acquiring the quantity and the characteristic information of target objects in each photo in the photo set to be processed;
correspondingly, the grouping the photo sets to be processed to obtain at least one photo group includes:
determining a first reference photo set based on the number of target objects in each photo in the photo set to be processed, wherein the number of target objects in each photo in the first reference photo set is greater than or equal to the number of target objects in other photos in the photo set to be processed;
selecting a photo from the first reference photo set to determine as a first reference photo;
calculating a first similarity between the characteristic information of each target object in the first reference picture and the characteristic information of each target object in other pictures in the photo set to be processed;
determining a first photo subset according to the first similarity, wherein the first similarity between the feature information of at least one target object in each photo in the first photo subset and the feature information of at least one target object in the first reference photo is greater than or equal to a similarity threshold;
determining a first group of pictures based on the first subset of pictures and the first reference picture.
5. The method of claim 4, further comprising:
determining a second reference photo set based on the number of target objects in each photo in the to-be-processed photo subset, wherein the to-be-processed photo subset is a photo excluding the first photo set in the to-be-processed photo set, and the number of target objects in each photo in the second reference photo set is greater than the number of target objects in other photos in the to-be-processed photo subset;
selecting a photo from the second reference photo set to determine the photo as a second reference photo;
calculating a second similarity between the characteristic information of each target object in the second reference picture and the characteristic information of each target object in other pictures in the to-be-processed picture subset;
determining a second photo subset according to the second similarity, wherein the second similarity between the feature information of at least one target object in each photo in the first photo subset and the feature information of at least one target object in the second reference photo is greater than or equal to the similarity threshold;
determining a second group of pictures based on the second subset of pictures and the second reference picture.
6. The method of claim 1, further comprising:
acquiring status information of a plurality of printing devices;
determining the number of the first photos to be printed of each printing device according to each state information;
distributing the photos in each photo group according to the number of the photos to be printed to obtain a distribution result, wherein the distribution result represents that the number of the second photos to be printed of each printing device is balanced;
and sending each photo group to each printing device according to the distribution result.
7. The method of claim 6, further comprising:
and sending the two-dimensional code corresponding to each photo group to each printing device according to the distribution result, so that when each printing device prints the photos in each photo group, the two-dimensional code corresponding to each photo group is printed on the photos in each photo group.
8. A photo processing apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring a photo set to be processed;
the grouping module is used for grouping the photo sets to be processed to obtain at least one photo group;
the encryption module is used for determining the secret key corresponding to each photo group and encrypting the at least one photo group respectively based on the secret key corresponding to each photo group;
the first sending module is used for sending each encrypted photo group to a server so that the server stores each encrypted photo group;
and the generating module is used for acquiring the storage address information and the secret key corresponding to each encrypted photo group, and generating the two-dimensional code corresponding to each encrypted photo group based on the storage address information and the secret key corresponding to each encrypted photo group, so that a user can download the corresponding photo group according to the two-dimensional code.
9. A photo processing apparatus, comprising:
a processor;
a memory storing a computer program operable on a processor, wherein the processor implements the photo processing method of any one of claims 1 to 7 when executing the program.
10. A computer storage medium having computer-executable instructions stored therein, the computer-executable instructions being configured to perform the photo processing method of any of claims 1 to 7.
CN202010492413.1A 2020-06-03 2020-06-03 Photo processing method, device and equipment and computer storage medium Withdrawn CN111611608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010492413.1A CN111611608A (en) 2020-06-03 2020-06-03 Photo processing method, device and equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010492413.1A CN111611608A (en) 2020-06-03 2020-06-03 Photo processing method, device and equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN111611608A true CN111611608A (en) 2020-09-01

Family

ID=72199399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010492413.1A Withdrawn CN111611608A (en) 2020-06-03 2020-06-03 Photo processing method, device and equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111611608A (en)

Similar Documents

Publication Publication Date Title
Cogranne et al. The ALASKA steganalysis challenge: A first step towards steganalysis
US20230360165A1 (en) Method and apparatus for protecting digital photos from alteration
US8554690B2 (en) Techniques for using media keys
EP3748898A1 (en) System and method for operating pseudorandom generators
US9092457B2 (en) Organizing images captured by multiple image capture devices
CN101795336B (en) Image generating, processing, reading, forming devices and image generating and processing methods
US9525547B2 (en) Transmission of media keys
EP1840898B1 (en) Techniques for using media keys
US20120328190A1 (en) System and method for intelligently determining image capture times for image applications
WO2017113790A1 (en) Method for implementing code-scan bluetooth automatic connection, master device, slave device, and system
JP2008257720A (en) Technique for sharing data
US20070233612A1 (en) Techniques for generating a media key
EP3073394A1 (en) Image processing device, image processing method, program, and recording medium
CN107728892B (en) Picture display method, device, terminal and storage medium
US20040264734A1 (en) Image verification apparatus and image verification method
JP2013146915A (en) Print terminal, image printing method and print system
CN114285575B (en) Image encryption and decryption method and device, storage medium and electronic device
US20090271477A1 (en) Digital photo frame framework controlled by computer and synchronously updated with remote server
JP2016091079A (en) Information processing device and information processing program
US20110211221A1 (en) Method and System for Photo Identification and Distribution
CN111611608A (en) Photo processing method, device and equipment and computer storage medium
JP2008507155A (en) Key binding method, system, and apparatus capable of dynamic key generation
WO2016053593A1 (en) Method and system for information recording
WO2017201999A1 (en) File encryption method, device, terminal and storage medium
JP2007098794A (en) Printer, printing system, printing method and printing program

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200901