CN112319059B - Photo printing method and device and server - Google Patents
Photo printing method and device and server Download PDFInfo
- Publication number
- CN112319059B CN112319059B CN202011197347.1A CN202011197347A CN112319059B CN 112319059 B CN112319059 B CN 112319059B CN 202011197347 A CN202011197347 A CN 202011197347A CN 112319059 B CN112319059 B CN 112319059B
- Authority
- CN
- China
- Prior art keywords
- photo
- printed
- shooting
- printer
- background
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012545 processing Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012790 confirmation Methods 0.000 claims description 7
- 241000282472 Canis lupus familiaris Species 0.000 description 10
- 238000012549 training Methods 0.000 description 9
- 241000282326 Felis catus Species 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 210000000988 bone and bone Anatomy 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000005906 menstruation Effects 0.000 description 2
- 244000025254 Cannabis sativa Species 0.000 description 1
- 244000000626 Daucus carota Species 0.000 description 1
- 241000209504 Poaceae Species 0.000 description 1
- 235000005770 birds nest Nutrition 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 235000005765 wild carrot Nutrition 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J3/00—Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
- B41J3/44—Typewriters or selective printing mechanisms having dual functions or combined with, or coupled to, apparatus performing other functions
- B41J3/445—Printers integrated in other types of apparatus, e.g. printers integrated in cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application provides a photo printing method, a photo printing device and a server. The application provides a photo printing method, which comprises the following steps: receiving a photo printing request sent by a user terminal; wherein the photo printing request carries a photo to be printed; identifying a shooting object and a shooting background of the photo to be printed; and selecting a target file from a preset file library for the photo to be printed based on the shooting object and the shooting background, and sending the target file and the photo to be printed to a printer so as to instruct the printer to print the target file and the print photo on the same photo paper. According to the photo printing method, the photo printing device and the server, when the photo is printed, the corresponding file can be printed on the photo paper, and the interestingness and the playability of photo printing can be improved. In addition, through the case, still make the photo of printing out more commemorative meaning.
Description
Technical Field
The present application relates to the field of printing technologies, and in particular, to a photo printing method, apparatus, and server.
Background
With the popularization of camera technology, more and more users prefer to take pictures, and some users even have a demand for printing out the taken pictures. However, when a photo is printed, the photo is simply printed, and the interestingness is low.
Disclosure of Invention
In view of this, the present application provides a photo printing method, apparatus and server to improve the interest and playability of photo printing.
The application provides a method for photo printing, which is applied to a server and comprises the following steps:
receiving a photo printing request sent by a user terminal; wherein the photo printing request carries a photo to be printed;
identifying a shooting object and a shooting background of the photo to be printed;
and selecting a target file from a preset file library for the photo to be printed based on the shooting object and the shooting background, and sending the target file and the photo to be printed to a printer so as to instruct the printer to print the target file and the photo to be printed on the same photo paper.
A second aspect of the present application provides a photo printing apparatus, which is applied to a server, the apparatus comprising a receiving module, an identifying module, and a processing module, wherein,
the receiving module is used for receiving a photo printing request sent by a user terminal; wherein the photo printing request carries a photo to be printed;
the identification module identifies a shooting object and a shooting background of the photo to be printed;
and the processing module is used for selecting a target file from a preset file library for the photo to be printed based on the shooting object and the shooting background, and sending the target file and the photo to be printed to a printer so as to instruct the printer to print the target file and the photo to be printed on the same piece of photo paper.
A third aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the photo printing methods provided herein.
A fourth aspect of the present application provides a server, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any of the photo printing methods provided in the present application when executing the program.
The photo printing method, the photo printing device and the photo printing server are used for identifying a photo printing request which is sent by a user terminal and carries a to-be-printed photo, and further identifying a shooting object and a shooting background of the to-be-printed photo, so that a target file is selected from a preset file library according to the shooting object and the shooting background, the target file is sent to a printer with the to-be-printed photo, and the printer is used for indicating the target file and the to-be-printed photo to be printed on the same piece of photo paper. Therefore, when the photo is printed, the corresponding file can be printed on the photo, and the interest and the playability of printing the photo can be increased. In addition, through the case, still make the photo of printing out more commemorative meaning.
Drawings
FIG. 1 is a flowchart of a first embodiment of a method for printing a photo according to the present application;
FIG. 2 is a flowchart of a second embodiment of a method for printing a photograph provided by the present application;
FIG. 3 is a diagram illustrating a hardware configuration of a server in which a photo printing apparatus is located according to an exemplary embodiment of the present application;
fig. 4 is a schematic structural diagram of a first photo printing apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The application provides a photo printing method, a photo printing device and a server, so as to improve the interestingness and playability of photo printing.
Several specific embodiments are given below to describe the technical solutions of the present application in detail, and these specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a flowchart of a first embodiment of a photo printing method provided in the present application. Referring to fig. 1, the method provided in this embodiment is applied to a server, and the method may include:
s101, receiving a photo printing request sent by a user terminal; and the photo printing request carries the photo to be printed.
Specifically, in an embodiment, the photo print request may also carry global positioning system GPS location information and shooting time of the photo to be printed.
And S102, identifying the shooting object and the shooting background of the photo to be printed.
It should be noted that the photo print request may also carry a print mode (when the user triggers the photo print request through the user terminal, the user may select the print mode, and further, when the user terminal generates the photo print request, the user terminal may carry the print mode in the photo print request). After receiving the photo printing request, it can be determined whether the printing mode is interesting printing, and when determining that the printing mode is interesting printing, step S102 is executed, and when determining that the printing mode is standard printing, the photo to be printed is directly sent to the printer for printing.
In one embodiment, the photographic subject and the photographic background of the photo to be printed may be identified based on a preset classification library. For example, the recognition model may be trained based on a preset classification library, and then the trained recognition model may be used to recognize the shooting object and the shooting background of the photo to be printed.
It should be noted that, when the recognition model is trained based on the preset classification library, the recognition model after being trained has different recognizable precisions (specifically, to which class) according to the different label settings of the training samples in the preset classification library.
For example, in one embodiment, the predetermined classification library includes only the first class: human bodies and objects, at this time, the trained recognition model can only distinguish the human bodies from the objects, and for the objects, more accurate categories cannot be given (that is, only one object can be recognized as the object, and what is specific cannot be recognized).
For another example, in another embodiment, the preset classification library includes not only the first level categories: human and object, and in addition, a second level type (in particular to the sex of the person, to what object): men, women, dogs, cats, trees, grasses, buildings, etc. In this case, the trained recognition model can recognize not only the human body and the object but also the sex of the human body and the type of the object, for example, a man, a cat, a dog, a ball, a tree, a grass, a building, and the like.
For another example, in another embodiment, the preset classification library is further provided with a third class (for example, the age of the person, the dog of which variety, whether the building is a landmark building, etc.) under the second class, and at this time, the trained recognition model can not only recognize the sex of the person and the class of the object (cat or dog), but also give a finer classification for a certain class. For example, the age of the person may also be identified, whether the building is a landmark building is identified, and when the building is a landmark building, the name of the landmark building is given.
In connection with the above example, for example, in one embodiment, identifying the photographic subject and the photographic background of the photo to be printed by the recognition model includes: cats and balls. For another example, in another embodiment, determining the subject and the background of the photograph to be printed by identifying the model includes: human, trees, buildings, and dogs.
It should be noted that, reference may be made to the description in the related art for the process of training the recognition model, and details are not described here. For example, in one embodiment, to identify a landmark building, a recognition model specific to identifying the landmark building may be trained by the following method.
(1) Constructing landmark building recognition models
In one embodiment, the constructed landmark building identification model may be a convolutional neural network.
(2) Obtaining a training sample set
Photos containing the landmark buildings can be obtained to form a training sample set, wherein the labels of the training samples are the names of the landmark buildings contained in the photos. For example, in one embodiment, the training sample set may be formed by taking photographs of landmark buildings such as eastern pearl, Imperial palace, Potala palace, bird's nest, etc.
(3) And training the landmark building recognition model by adopting the training sample set to obtain the trained landmark building recognition model.
For the specific training process, reference may be made to the description in the related art, and details are not repeated here.
Further, identifying the photographic subject of the photograph to be printed includes: and recognizing the face in the photo to be printed based on a face recognition algorithm, and confirming the relationship of the people according to the recognized face.
Specifically, the specific implementation principle and implementation process of the face recognition algorithm may refer to descriptions in the related art, and are not described herein again.
Further, the human relationship may be determined as follows:
specifically, when the number of faces is greater than 2, the person relationship may be determined based on the position information of the faces. For example, in one embodiment, when the number of faces is 2, the person relationship may be determined based on the distance between the center points of the two faces. Specifically, when the distance is smaller than a preset threshold value, the relationship between the two people is considered as a lover, otherwise, the relationship is determined as other; for another example, when the number of faces is greater than 2, at this time, it may be determined whether the faces are arranged neatly based on the coordinates of the center point of the faces, and further when it is determined that the arrangement is neat, it is determined that the relationship of the person is classmate, otherwise it is determined that the relationship of the person is other.
It should be noted that other factors may also be considered when determining the relationship of the person based on the face of the person. For example, GPS position information, shooting time, and the like may be referred to. For example, for a photo to be printed, if the number of faces is greater than two, the faces are arranged in order, the shooting time is 7 months, the GPS location information is school, and at this time, the relationship of people is determined to be classmate.
For another example, in determining the relationship between persons, the recognition result in recognition based on the preset classification library may be referred to. For example, when the number of faces is 2, if a man and a woman are identified based on the preset classification library, the ages of the two people are not greatly different, and the positions of the faces are smaller than a preset threshold, the relationship between the two people is considered as a lover; if the ages of the two people are different, the relationship between the two people is determined to be father and woman (when the male age is larger than the female age) or mother and son (when the male age is smaller than the female age), and the like. For another example, when the number of faces is 2, if two women or two men are identified based on the predetermined classification library and the ages of the two people are not very different, the relationship between the two people is considered as a friend, and if the ages of the two people are very different, the relationship between the two people is determined as a mother or a mother. For another example, when the number of people is greater than 2, if the ages are not very different, the people are determined as friends or classmates, and if the ages are very different, the people are determined as relatives.
It should be noted that some photographs to be printed may not include a photographic subject. For example, only including taking a photograph of the background sea to be printed.
S103, selecting a target file from a preset file library for the photo to be printed based on the shooting object and the shooting background, and sending the target file and the photo to be printed to a printer to indicate the printer to print the file while printing the photo to be printed.
Specifically, the preset document library is set according to actual needs, and in this embodiment, the actual content of the preset document library is not limited. In addition, the preset case library can record the corresponding relation between at least one keyword and the case. For example, table 1 is a schematic diagram of a predetermined document library shown in an exemplary embodiment:
TABLE 1 Preset case library
Specifically, in an embodiment, based on the keyword corresponding to each document, the document matching the shooting object and the shooting background can be searched from the preset document library as the target document. For example, in an embodiment, the identified shooting object and shooting place are a cat and a ball, a case 1 with a keyword of "cat" and a case 2 with a keyword of "cat and ball" exist in the preset case library, and at this time, the case 1 or the case 2 is determined as the target case.
Optionally, when the document is selected, the document with the highest matching degree with the shooting object and the shooting background can be searched from the preset document library to be used as the target document. For example, in the above example, document 2 is determined to be the target document.
For example, in one embodiment, identifying the subject and the background of the photograph to be printed is: the Potala palace, two human faces and a couple. At this time, the target document selected for the photo to be printed is: on that day, my eyes are closed in the fragrant fog of the menstruation, and the mother hears the truth of you in the song of the menstruation, and in that month, my waves all the prayer wheels, does not touch the fingertips of your body in excess, does fun with lovers, and asks about hijacking or reason. At this time, the target file can be embedded into the photo to be printed for printing.
For another example, in another embodiment, identifying the subject and the background of the photograph to be printed includes: multiple faces and classmates. At this time, the target document selected for the photo to be printed is: friendship is in long term, youth stays forever. At this point, the target copy may be printed on the back of the photograph.
Referring to the descriptions in the two previous examples, it should be noted that, when the target file and the photo to be printed are sent to the printer, the target file may be embedded into the photo to be printed to obtain a processed photo, and then the processed photo is sent to the printer, so that the printer directly prints the processed photo after receiving the processed photo, so as to print the target file and the print photo on the same photo paper.
Of course, in another embodiment, the target document and the photo to be printed may be directly sent to the printer, so that the printer may embed the target document into the photo to be printed to print when receiving the target document and the photo to be printed, or alternatively, the target document and the photo to be printed may be printed on a piece of photo paper in a duplex printing manner (for example, the printer may include a photo printer and a thermal print head, so that the printer may print the photo using the photo printer and print the target document on the back side of the photo using the thermal print head while printing the photo).
In the method provided by this embodiment, a photo printing request carrying a to-be-printed photo sent by a user terminal is received, and a shooting object and a shooting background of the to-be-printed photo are further identified, so that a target file is selected for the to-be-printed photo from a preset file library based on the shooting object and the shooting background, and the target file and the to-be-printed photo are sent to a printer, so as to instruct the printer to print the target file and the to-be-printed photo on the same piece of photo paper. Therefore, when the photo is printed, the corresponding file can be printed on the photo, and the interest and the playability of printing the photo can be increased. In addition, through the case, still make the photo of printing out more commemorative meaning.
Optionally, in an embodiment, before sending the target copy and the photo to be printed to a printer, the method further includes:
returning the target file to the user terminal;
and when receiving the confirmation message of the user terminal, sending the target file and the photo to be printed to a printer.
Specifically, the user terminal can display the target document to the user after receiving the target document, further, the user can confirm whether to print the target document while printing the photo, the user terminal returns a confirmation message to the server when detecting the confirmation operation, and correspondingly, the server sends the target document and the photo to be printed to the printer when detecting the confirmation message.
According to the method provided by the embodiment, before the target file and the photo to be printed are sent to the printer, the target file is returned to the user terminal, and then the target file and the photo to be printed are sent to the printer when the confirmation message of the user terminal is received. Therefore, the user requirements can be further met, and the user experience is improved.
It should be noted that, in a possible implementation manner, after the target document is returned to the user terminal, the method may further include:
receiving a rejection message of a user terminal and a file input by a user;
and sending the user file and the photo to be printed to a printer to instruct the printer to print the target file and the print photo on the same photo paper.
With the above description, the user terminal may display the target document to the user after receiving the target document, further, the user may confirm whether to print the target document while printing the photo, and the user terminal may further display an interface for inputting the user document to the user when detecting the operation rejection. And after the submission operation of the user is detected, the rejection message and the user file input by the user are sent to the server together. Accordingly, after receiving the rejection message, the server may send the user copy and the photo to be printed to the printer to instruct the printer to print the target copy and the print photo on the same photo paper.
Of course, in another possible implementation manner of the present application, the user may not input the document, at this time, the user terminal sends a rejection message to the server, and the server directly sends the photo to be printed to the printer after receiving the rejection message, so as to instruct the printer to print the photo to be printed.
The method provided by the embodiment can further meet the user requirements and improve the user experience through the steps.
Fig. 2 is a flowchart of a second embodiment of a photo printing method provided in the present application. The method provided by the embodiment may include:
s201, receiving a photo printing request sent by a user terminal; the photo printing request carries the photo to be printed, the global positioning system GPS position information of the photo to be printed and the shooting time.
For example, in one embodiment, the photo request carries photo a to be printed and the following information: in Hangzhou city, 10/2020, 28/day 15: 30.
S202, identifying the shooting object and the shooting background of the photo to be printed.
For the specific implementation process and implementation principle of this step, reference may be made to the description in the foregoing embodiments, and details are not described here. For example, through a face recognition algorithm, it is recognized that no face exists in the photo to be printed. Based on the preset classification library, the shooting objects and the shooting backgrounds contained in the photos to be printed are identified as follows: dogs and bones.
S203, based on the shooting object, the shooting background, the GPS positioning information and the shooting time, selecting a target file from a preset file library for the photo to be printed, and sending the target file and the photo to be printed to a printer so as to instruct the printer to print the target file and the photo to be printed on the same piece of photo paper.
Combining the above examples, at this time, the file with the highest matching degree with "dog, bone, Hangzhou, 10/2020, 28/30" is searched from the file library as the target file. For example, in one embodiment, only the case with the keyword "dog" and the case with the keyword "hang state" exist in the case library, and at this time, any case can be determined as the target document.
Optionally, when a plurality of documents with the highest matching degree exist in the document library, the document with the highest matching degree with the shooting object and the shooting background is preferentially selected. In conjunction with the above example, at this time, a document with the keyword "dog" is selected as the target document. For another example, a case with a keyword of "dog, bone" also exists in the case library, and at this time, the matching degree of the case is the highest, and at this time, the case can be determined as the target case.
For another example, another possible implementation manner is to recognize the shooting object and the shooting background of the photo to be printed as follows: one face, one person and sea. The GPS positioning information is third, the shooting time is 10/month/28/15: 30 'in 2020, and at the moment, the file with the highest matching degree with' sea, single photo, third, 10/month/28/15: 30 'in 2020' can be selected from the file library as the target file. For example, a case with a keyword "hai" and a keyword "san, hai" exists in the case library, and at this time, the case with the keyword "san, hai" is determined as the target case.
According to the method provided by the embodiment, when the target file is selected for the photo to be printed, the GPS position information and the shooting time of the photo to be printed are also referred, so that the matching degree of the file and the photo to be printed can be improved, the user requirement can be further improved, and the user experience can be met.
Corresponding to the embodiment of the photo printing method, the application also provides an embodiment of the photo printing device.
The embodiment of the photo printing device can be applied to a server. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the memory into the memory for operation through the processor of the computer device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 3, which is a hardware structure diagram of a server where a photo printing apparatus is located shown in an exemplary embodiment of the present application, except for the memory 310, the processor 320, the memory 30 and the network interface 340 shown in fig. 3, the server where the apparatus is located in the embodiment may also include other hardware according to the actual function of the photo printing apparatus, which is not described again.
Fig. 4 is a schematic structural diagram of a first photo printing apparatus according to an embodiment of the present application. Referring to fig. 4, the apparatus provided in this embodiment is applied to a server, and the apparatus includes a receiving module 410, an identifying module 420 and a processing module 430, wherein,
the receiving module 410 is configured to receive a photo printing request sent by a user terminal; wherein the photo printing request carries a photo to be printed;
the recognition module 420 recognizes a shooting object and a shooting background of the photo to be printed;
the processing module 430 is configured to select a target document from a preset document library for the to-be-printed photo based on the shooting object and the shooting background, and send the target document and the to-be-printed photo to a printer, so as to instruct the printer to print the target document and the to-be-printed photo on the same piece of photo paper.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the photo printing request further carries global positioning system GPS location information and shooting time of the photo to be printed, and the processing module 430 is specifically configured to select a target document for the photo to be printed from a preset document library based on the shooting object, the shooting background, the GPS location information, and the shooting time.
Further, the recognition module 420 is specifically configured to identify a face in the photo to be printed based on a face recognition algorithm, and determine a relationship between people according to the identified face;
the method comprises the following steps of identifying a shooting object and a shooting background of the photo to be printed, and further comprising the following steps: and identifying the shooting object and the shooting background in the photo to be printed based on a preset classification library.
Further, the processing module 430 is further specifically configured to search a document with the highest matching degree with the shooting object and the shooting background from a preset document library, and determine the searched document as the target document.
Further, the processing module 430 is further specifically configured to embed the target copy into the photo to be printed to obtain a processed photo, and send the processed photo to a printer.
Further, the processing module 430 is further configured to return the target document to the user terminal before the photo to be printed is sent to the printer, and send the target document and the photo to be printed to the printer when receiving the confirmation message from the user terminal.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the photo printing methods provided herein.
In particular, computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks.
With continued reference to fig. 3, the present application further provides a server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the photo printing methods provided in the present application when executing the program.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (10)
1. A method for printing a photograph, the method being applied to a server, the method comprising:
receiving a photo printing request sent by a user terminal; wherein the photo printing request carries a photo to be printed;
identifying a shooting object and a shooting background of the photo to be printed;
the recognizing of the photographic subject and the photographic background of the photo to be printed includes: identifying a shooting object and a shooting background in the photo to be printed based on a preset classification library;
and selecting a target file from a preset file library for the photo to be printed based on the shooting object and the shooting background, and sending the target file and the photo to be printed to a printer so as to instruct the printer to print the target file and the photo to be printed on the same photo paper.
2. The method of claim 1, wherein the photo print request further carries Global Positioning System (GPS) location information and a shooting time of the photo to be printed, and the selecting a target document from a preset document library for the photo to be printed based on the shooting object and the shooting background comprises:
and selecting a target file from a preset file library for the photo to be printed based on the shooting object, the shooting background, the GPS position information and the shooting time.
3. The method of claim 1, wherein identifying the subject and the background of the photograph to be printed comprises: identifying a shooting object and a shooting background in the photo to be printed based on a preset classification library;
recognizing the shooting object of the photo to be printed, and further comprising: and recognizing the face in the photo to be printed based on a face recognition algorithm, and confirming the relationship of the people according to the recognized face.
4. The method of claim 1, wherein selecting a target document from a library of pre-set documents for the photo to be printed based on the subject and the background comprises:
searching the file with the highest matching degree with the shooting object and the shooting background from a preset file library, and determining the searched file as the target file.
5. The method of claim 1, wherein sending the target copy and the photograph to be printed to a printer comprises:
embedding the target file into the photo to be printed to obtain a processed photo;
and sending the processed photo to a printer.
6. The method of claim 1, wherein prior to sending the target copy and the photograph to be printed to a printer, the method further comprises:
returning the target file to the user terminal;
and when receiving the confirmation message of the user terminal, sending the target file and the photo to be printed to a printer.
7. A photo printing apparatus applied to a server, the apparatus comprising a receiving module, an identifying module and a processing module, wherein,
the receiving module is used for receiving a photo printing request sent by a user terminal; wherein the photo printing request carries a photo to be printed;
the identification module identifies a shooting object and a shooting background of the photo to be printed;
the recognizing of the photographic subject and the photographic background of the photo to be printed includes: identifying a shooting object and a shooting background in the photo to be printed based on a preset classification library;
and the processing module is used for selecting a target file from a preset file library for the photo to be printed based on the shooting object and the shooting background, and sending the target file and the photo to be printed to a printer so as to instruct the printer to print the target file and the photo to be printed on the same piece of photo paper.
8. The apparatus according to claim 7, wherein the photo print request further carries global positioning system GPS location information and a shooting time of the photo to be printed, and the processing module is specifically configured to select a target document from a preset document library for the photo to be printed based on the shooting object, the shooting background, the GPS location information, and the shooting time.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for printing photographs as claimed in any one of claims 1 to 6.
10. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of printing a photograph as claimed in any one of claims 1 to 6 are carried out when the program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011197347.1A CN112319059B (en) | 2020-10-30 | 2020-10-30 | Photo printing method and device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011197347.1A CN112319059B (en) | 2020-10-30 | 2020-10-30 | Photo printing method and device and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112319059A CN112319059A (en) | 2021-02-05 |
CN112319059B true CN112319059B (en) | 2021-11-02 |
Family
ID=74323866
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011197347.1A Active CN112319059B (en) | 2020-10-30 | 2020-10-30 | Photo printing method and device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112319059B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003333260A (en) * | 2002-05-10 | 2003-11-21 | Canon Inc | System, apparatus, and method for information processing storage medium where program implementing the same is stored in information processor readable state, and the program |
CN1863680A (en) * | 2003-08-08 | 2006-11-15 | 佳能株式会社 | Recording apparatus, image supply device, and recording system, and control method and program thereof |
CN101055592A (en) * | 2007-05-20 | 2007-10-17 | 宁尚国 | Image information generation method and device |
CN101374184A (en) * | 2007-08-20 | 2009-02-25 | 三星Techwin株式会社 | Method and device for printing images |
CN102521619A (en) * | 2011-11-22 | 2012-06-27 | 汉王科技股份有限公司 | Information presentation method and device based on face recognition and face recognition printing system |
JP2018195091A (en) * | 2017-05-18 | 2018-12-06 | 三菱電機株式会社 | Photograph service system and photograph printing device |
CN108962093A (en) * | 2018-07-13 | 2018-12-07 | 法瑞新科技(江西)有限公司 | A kind of digital photo frame |
CN109640757A (en) * | 2016-06-23 | 2019-04-16 | 蒸汽Cc有限公司 | Apparatus and method for being printed on beverage |
CN111526287A (en) * | 2020-04-27 | 2020-08-11 | 北京达佳互联信息技术有限公司 | Image shooting method, image shooting device, electronic equipment, server, image shooting system and storage medium |
-
2020
- 2020-10-30 CN CN202011197347.1A patent/CN112319059B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003333260A (en) * | 2002-05-10 | 2003-11-21 | Canon Inc | System, apparatus, and method for information processing storage medium where program implementing the same is stored in information processor readable state, and the program |
CN1863680A (en) * | 2003-08-08 | 2006-11-15 | 佳能株式会社 | Recording apparatus, image supply device, and recording system, and control method and program thereof |
CN101055592A (en) * | 2007-05-20 | 2007-10-17 | 宁尚国 | Image information generation method and device |
CN101374184A (en) * | 2007-08-20 | 2009-02-25 | 三星Techwin株式会社 | Method and device for printing images |
CN102521619A (en) * | 2011-11-22 | 2012-06-27 | 汉王科技股份有限公司 | Information presentation method and device based on face recognition and face recognition printing system |
CN109640757A (en) * | 2016-06-23 | 2019-04-16 | 蒸汽Cc有限公司 | Apparatus and method for being printed on beverage |
JP2018195091A (en) * | 2017-05-18 | 2018-12-06 | 三菱電機株式会社 | Photograph service system and photograph printing device |
CN108962093A (en) * | 2018-07-13 | 2018-12-07 | 法瑞新科技(江西)有限公司 | A kind of digital photo frame |
CN111526287A (en) * | 2020-04-27 | 2020-08-11 | 北京达佳互联信息技术有限公司 | Image shooting method, image shooting device, electronic equipment, server, image shooting system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112319059A (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6470713B2 (en) | Method, system, and computer-readable storage device for providing search results based on images | |
CN108431802B (en) | Organizing images associated with a user | |
CN109543663B (en) | Method, device and system for identifying identity of dog and storage medium | |
US10055497B2 (en) | Method and apparatus for photograph finding | |
KR100641791B1 (en) | Tagging Method and System for Digital Data | |
AU2012219277B2 (en) | Facial recognition | |
KR101667346B1 (en) | Architecture for responding to a visual query | |
CN102483758B (en) | Processing geo-location information associated with digital image files | |
US11295113B2 (en) | 3D biometric identification system for identifying animals | |
JP6969663B2 (en) | Devices and methods for identifying the user's imaging device | |
JP5018614B2 (en) | Image processing method, program for executing the method, storage medium, imaging device, and image processing system | |
US10810466B2 (en) | Method for location inference from map images | |
Suriyamongkol et al. | Feasibility of using computer-assisted software for recognizing individual Rio Grande Cooter (Pseudemys gorzugi) | |
US10803298B2 (en) | High precision additive pattern recognition for image and other applications | |
US20190244009A1 (en) | High recall additive pattern recognition for image and other applications | |
JP2008117271A (en) | Object recognition device of digital image, program and recording medium | |
US10891522B2 (en) | System for support vector machine prediction | |
CN112319059B (en) | Photo printing method and device and server | |
Pavlidis | Limitations of content-based image retrieval | |
CN113486761B (en) | Nail recognition method, device, equipment and storage medium | |
AU2020102233A4 (en) | The ‘Property Identification Method’ (“PIM”) is a novel algorithm through which a Real Estate Authority and/or Conveyancing data is created through image-processing a document such as a Council/Shire Rates Notice. This invention establishes a unique algorithm incorporating techniques such deep learning segmentation and computer vision to decode property information. This application utilises computer-implemented technology configured in such manner as to enable conveyancers and real estate agents to automate the creation of client files. | |
US11308360B2 (en) | Support vector machine prediction system | |
CN113312600A (en) | Biological relation authentication processing method and device | |
JP7547465B2 (en) | Image content determination device, operation method of image content determination device, and image content determination program | |
CN108780462A (en) | System and method for being clustered to multimedia content element |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A photo printing method, device, and server Granted publication date: 20211102 Pledgee: Industrial Bank Co.,Ltd. Shanghai Zhijiang Branch Pledgor: SHANGHAI HANNTO TECHNOLOGY Inc. Registration number: Y2024310000768 |