Disclosure of Invention
The present invention is intended to solve at least one of the technical problems described in the related description to a certain extent. Therefore, an object of the present invention is to provide a method, an apparatus and a storage medium for making a postcard that are convenient and fast, and that can make an electronic postcard using a user's own photograph as an element.
In order to achieve the above object, the present invention provides a postcard production method, including the steps of:
acquiring a user photo, establishing a user exclusive photo library, and filing the user photo according to personal information of a user;
the face information of the user is collected,
comparing the user face information with the photos in the photo library to obtain user photos corresponding to the user face information;
and generating the electronic postcard according to the user photo selected by the user and the characters input by the user.
Further, the generating an electronic postcard according to the user's selected photo and the user's inputted text may include:
taking the user photo selected by the user as a postcard background, wherein a postcard template is arranged on the postcard background;
and displaying the characters input by the user on the postcard template.
Further, comprising: and setting the saturation, hue and contrast of the background of the postcard.
Further, comprising:
and setting the artistic style of the background of the postcard by one key.
Further, the displaying the text input by the user on the postcard template includes:
and displaying the characters input by the user on the postcard template in the original handwriting or other fonts of the user.
Further, the acquiring a user photo, establishing a user-specific photo library, and filing the user photo according to the personal information of the user further includes:
and establishing a scenic spot library in the exclusive photo library of the user, and filing the user photos according to shooting places.
Further, after the generating the electronic postcard according to the user photo selected by the user and the text input by the user, the method includes:
receiving payment information, a mailing time, and the electronic postcard selected by the user,
and verifying the payment information, and if the payment information passes the verification, successfully completing the on-line post order of the postcard.
Further, before receiving the payment information, the mailing time, and the electronic postcard selected by the user, the method further includes:
receiving the stamp selected by the user, and pasting the stamp on the postcard.
In another aspect, the present invention also provides a computer device, which includes a processor and a memory, the processor being coupled to the memory, and the processor executing instructions to implement the method described above when in operation.
In another aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the above-mentioned method.
Through the steps, the invention overcomes the problem that the user can not participate in the process of making the postcard in the prior art. The face recognition technology and the image recognition technology are utilized to obtain the photo of the user, the post card is manufactured by taking the photo of the user as the background, and the elements of the user are blended into the post card, so that the user can conveniently and quickly manufacture the post card with the personal personality.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive work based on the embodiments of the present invention, are within the scope of the present invention.
In order to make the objects, technical solutions and advantageous technical effects of the present invention more clearly and completely apparent, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a postcard production method according to a first embodiment of the present invention. As shown in fig. 1, the method for making a postcard according to this embodiment includes at least the following steps:
step S1, acquiring user photos, establishing a user-specific photo library, and filing the user photos according to personal information of a user;
the method comprises the steps of capturing photos played by a user through cameras arranged in various scenic spots, uploading the photos to a scenic spot background server, filing the user photos according to personal information of the user, and establishing a user-specific photo library.
Further, the acquiring a user photo, establishing a user-specific photo library, and filing the user photo according to the personal information of the user further includes:
and establishing a scenic spot library in the exclusive photo library of the user, and filing the user photos according to shooting places.
Numbering aiming at different users and different playing items respectively; for example, the user is numbered 2019092500000001, the play item is numbered S001; the background server files all the photos of the user under files corresponding to the user number, and establishes corresponding file files for all the photos of the user according to the number of the playing item; for example, a photograph corresponding to the attraction number S01 played by the user with the number 2019092500000001 is placed under the directory with the relative position of the file "2019092500000001/S01/".
Step S2, collecting the face information of the user;
a visitor captures a face photo of the visitor through a camera of a client (a mobile phone, a PC, a tablet personal computer and the like), extracts specific features of a face image of the face photo, and collects and builds a library. Specifically, we package the SeetaFace face with VS and recognize it into dll file, and then perform face detection, face feature point detection, and extraction functions on 5 face key feature points (two eye centers, nose tip, and two mouth corners). And packaging the packaged DLL file into a LabVIEW function by using a LabVIEW DLL function calling node. And calling a LabVIEW function packaged in advance by using LabVIEW, and extracting the required face identification information. And then the face recognition information of the tourist is sent to a background server.
Step S3, comparing the user face information with the photos in the photo library to obtain the user photos corresponding to the user face information;
the background server compares the received face photos of the tourists with the photos in the photo library, presets a numerical value of a similarity degree, and compares the corresponding face images with all the face images in the system database. If the image exceeds the preset value, the system outputs the exceeding image, and the image is accurately screened according to the similarity degree and the face identity of the face image, wherein the ratio of the exceeding image to the face image can be 1: 1, may be 1: n is the same as the formula (I). For example, a threshold value of 0.7 is set in the system, and the similarity of the system after comparison is greater than 0.7, the system automatically recognizes that the person is the same person and outputs a feedback result in the LabVIEW. And then, all the user photos corresponding to the user face information are sent to the client, and the tourist browses the photos of the tourist at each scenic spot through the client.
And step S4, generating an electronic postcard according to the user' S photo selected by the user and the text input by the user.
The user browses the photos played in each scenic spot through the client, selects the photos of the mood instrument as the background of the postcard, and then inputs the words of the message to be written.
Through the steps, the invention overcomes the problem that the user can not participate in the process of making the postcard in the prior art. The face recognition technology and the image recognition technology are utilized to obtain the photo of the user, the post card is manufactured by taking the photo of the user as the background, and the elements of the user are blended into the post card, so that the user can conveniently and quickly manufacture the post card with the personal personality.
In one embodiment, step S5 is further included after step S4, specifically:
and step S5, selecting the electronic postcard and sending an online postal delivery order to a post and electronic office.
The user selects the electronic postcard to be sent out through the client, an online mailing request is sent to the post office, the post office checks the online mailing request, and if the request passes, the user client sends the order receiving information.
Referring to fig. 2 in conjunction with fig. 1, fig. 2 is a schematic flowchart illustrating a specific process of step S4 in fig. 1.
Further as a preferred embodiment, step S4 includes the following sub-steps:
step S41, the user photo selected by the user is used as a postcard background, and a postcard template is arranged on the postcard background;
the postcard template includes text typesetting, such as address, name, stamp, sending words, etc., or some beautiful pictures are added, and the user can use the existing template or edit the template by himself.
Further preferably, the step S41 further includes: the contrast, brightness, hue, saturation, etc. of the postcard background are set.
Contrast ratio: contrast refers to the difference between different colors. The higher the contrast, the greater the contrast between different colors, so-called black and white, and the too high contrast, the image will appear very dazzling. The smaller the contrast, the smaller the contrast between the different colors.
Brightness: brightness refers to the degree of brightness of light impinging on a scene or image. When the brightness of the image is increased, the image will appear bright or dazzling, and when the brightness is lower, the image will appear dark.
Color tone: the hue is the brightness of the primary color in each image color mode, and the level ranges from 0 to 255, and is 256 hues. For example, in a grayscale image, white is obtained when the tone level is 255, black is obtained when the level is 0, and gray is obtained in various degrees in the middle. In the RGB mode, the hue represents the brightness of three primary colors, red, green, and blue, and for green, there are different hues such as light green, and dark green. Hue refers to the fundamental tendency of a color appearance. Among the three factors of lightness, purity and hue, a certain factor is dominant and may be referred to as a certain hue
Hue: the hue is a color, and the adjusted hue is a color of an adjusted scene, for example, a rainbow is composed of seven colors of red, orange, yellow, green, cyan, blue, and purple, and thus it has seven hues. As the name implies, the names of various colors are named as scarlet, common blue, lemon yellow, etc. Hue is the primary characteristic of color and is the most accurate standard for distinguishing various colors. Virtually any color other than black, white and gray has the attribute of hue, i.e., consisting of primary, secondary and multiple colors
Saturation degree: the saturation refers to the density of the image color. The higher the saturation, the more intense the color, the so-called turquoise feeling. The lower the saturation, the older and the paler the color will appear, and when the saturation is 0, the image will be a grayscale image. The concept of saturation can be further understood by adjusting the saturation of the television set.
Further preferably, the step S41 further includes:
and setting the artistic style of the background of the postcard by one key, such as changing the style of the oil painting, the style of ink and water and the like by one key.
Step S42, displaying the text input by the user on the postcard template.
Further as a preferred embodiment, the displaying the text input by the user on the postcard template includes:
and displaying the characters input by the user on the postcard template in the original handwriting or other fonts of the user.
When a user inputs a Chinese character on a client, the Chinese character can be input through an input method or handwritten input, the Chinese character is input through the input method and then displayed on a template, the client can select a font display format (such as a Song style, a regular style or an artistic style) in a default font library, and the user can also download a font format which the user wants to use through the client. If the characters are input by handwriting, the user can select to directly display the original font of the user.
In this embodiment, adopt the electromagnetic pen to carry out handwriting input, the customer end has the electromagnetic screen, contains two big core assembly electromagnetic plates and electromagnetic pen in the electromagnetic screen technique, and wherein the electromagnetic plate is the electromagnetic induction receiving terminal, and the electromagnetic pen is then the transmitting terminal. The electromagnetic plate is provided with X, Y coordinate axes, and the unique Z axis can be realized by combining the built-in pressure sensing device of the electromagnetic pen with the change of the magnetic field. When the electromagnetic pen touches the screen lightly, the pressure sensing device generates a correspondingly smaller electromagnetic quantity, and the handwriting is naturally thinner. On the contrary, when the applied pressure is heavier, the pressure sensing device sends out larger signals to generate larger electromagnetic quantity, and then thicker handwriting effect is generated, and unique original handwriting input effect is realized.
Referring to fig. 3 in conjunction with fig. 1, fig. 3 is a schematic flowchart illustrating a specific process of step S5 in fig. 1. Step S5 includes the following substeps:
step S51, receiving payment information, mailing time and the electronic postcard selected by the user,
step S52, the payment information is verified,
step S53, if the verification is passed, the postcard posts the order successfully on line,
in step S54, if the verification fails, the postcard fails to post the order online.
Further as a preferred embodiment, the receiving the payment information, the mailing time, and the electronic postcard selected by the user further includes:
receiving the stamp selected by the user, and pasting the stamp on the postcard.
The method comprises the steps that a client receives an instruction of online mailing of a user, the user selects an electronic postcard to be mailed and inputs mailing reservation time to be sent to a background server, the background server sends online payment connection to the client, the user pays online through the client and then sends payment information to the background server, the background server verifies the payment information, if the payment is passed, the postcard is formed in an online mailing order, and if the verification is failed, the postcard online mailing order fails.
A postcard production apparatus according to a first embodiment of the present invention. The postcard making device comprises a controller and a processor which are connected with each other. Wherein a Memory is disposed within the controller, wherein the Memory is configured to store a computer program, and the computer program includes program instructions, and the Memory may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The processor is configured to call the program instructions to execute the postcard making method described in step S1-step S5.
The storage medium may be an internal storage device of the controller. The storage medium may also be an external storage device, such as a Smart Media Card (SMC) equipped on the wireless switch, a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the storage medium may also include both an internal storage unit and an external storage device of the wireless switch. The storage medium is used for storing the computer program and other programs and data required by the terminal. The storage medium may also be used to temporarily store data that has been output or is to be output. The computer program includes program instructions that, when executed by a processor, cause the processor to perform the XX method of steps S1 to S5.
The postcard creation device according to the first embodiment described above. The postcard making device comprises a controller and a processor which are connected with each other. Wherein a Memory is disposed within the controller, wherein the Memory is configured to store a computer program, and the computer program includes program instructions, and the Memory may include a Random Access Memory (RAM) or may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The processor is configured to call the program instructions to execute the postcard making method described in step S1-step S5.
The storage medium may be an internal storage device of the controller. The storage medium may also be an external storage device, such as a Smart Media Card (SMC) equipped on the wireless switch, a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the storage medium may also include both an internal storage unit and an external storage device of the wireless switch. The storage medium is used for storing the computer program and other programs and data required by the terminal. The storage medium may also be used to temporarily store data that has been output or is to be output. The computer program includes program instructions that, when executed by a processor, cause the processor to perform the XX method of steps S1 to S5.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
When implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes 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 steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.