Smart photographing service method for preventing portrait information leakage, system, and storage medium
Through the smart photography service method and system, the collaborative work of mobile terminals and platform servers is used to solve the security and convenience problems in the collection and management of portrait information, realize the safe and efficient collection of ID photo information and the sharing of multiple IDs, and reduce the number of User operation complexity.
Patent Information
- Application Number
- PCT/CN2023/113648
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2023-08-18
- Publication Date
- 2024-10-03
AI Technical Summary
Existing photography services are unreliable in manual retouching, unsafe to store and copy certificates, cumbersome interactive usage modes, and widely varying standards, resulting in security risks and convenience issues in the collection and management of portrait information.
Adopting smart photography service methods and systems, through the collaborative work of mobile terminals and platform servers, user identity authentication, ID photo standard detection and photo review are performed, and unique ID photo codes are generated to ensure the optimization of the shooting environment and prevent the leakage of portrait information.
It enables users to obtain ID photo information through simple interaction on mobile terminals, prevents unauthorized third parties from obtaining portrait information, improves the security and convenience of ID photo collection, supports the sharing of multiple IDs, and reduces the cumbersome information that users need to keep.
Smart Images

Figure CN2023113648_03102024_PF_FP_ABST
Abstract
Description
Smart photo service method, system and storage medium for preventing portrait information leakage Technical Field
[0001] The present invention relates to a smart photographing service method, system and storage medium for preventing leakage of portrait information, belonging to the technical field of photographing services. Background Art
[0002] In the age of AI (artificial intelligence), portrait information, as the source of personal privacy and an important personal identification mark, has become the key basis for verifying "this person is this person" and is closely related to people's work, life, study, exams, and traveling abroad. The collection of portrait information for ID cards (i.e., ID cards) has become a top priority for protecting information security from the source. Because ID card collection has high requirements for light intensity (exposure), imaging distance (focal length), lighting angle, space and background, there are as many as dozens of ID card collection standards. In addition, people want ID cards to be both beautiful and easy to use. It is not easy to take a beautiful ID card that meets the ID card production standards. Existing photo taking services have the following defects:
[0003] 1) Manual photo editing at the source of ID card collection is unreliable. When the original image is poorly captured, with issues like underexposure and facial shadows, manual retouching is required to optimize it. To meet user aesthetic standards, these processes include not only brightening the color palette but also beautifying the image and even tampering with biometric features, such as removing acne, beautifying the skin, slimming the face, and removing moles and scars. This creates the risk of distortion at the source of portrait information collection, making it difficult to ensure authenticity.
[0004] 2) ID storage and copying are prone to leaks and insecure. Because ID collection requires high standards, existing selfie methods are insufficient, and therefore ID collection is primarily handled by photo studios. These studios operate on a small scale, with varying levels of technical equipment. Personal privacy, including portraits and identity information, is controlled by the studios and can be freely stored, copied, or transmitted online. In addition, these studios lack information security measures, making ID photos, student status photos, and graduation photos all susceptible to leaks.
[0005] 3) The interactive use of certificates and licenses is cumbersome and inconvenient. The current certificate application model mainly requires users to provide satisfactory certificates and licenses themselves. The business department is only responsible for collecting and reviewing information such as photo receipts, fingerprints, and ID cards. Paper photos and receipts are easily lost in the hands of users, and the business acceptance window repeatedly collects user information. The interaction between certificates and licenses and business departments requires users to keep cumbersome documents, which is inconvenient.
[0006] 4) Document standards vary widely, preventing the use of a single image for multiple purposes. Because different documents utilize different production processes, each business department has developed its own standards for documents such as resident ID cards, entry-exit documents, and driver's licenses. These standards include significant differences in the technical specifications for capturing portraits, such as background, size, pixels, and color. Furthermore, business departments have yet to achieve interconnected and shared document information, allowing for the use of a single image for multiple purposes. Consequently, users must take a separate photo and visit a different processing point for each document they apply for.
[0007] This shows that there are security risks exposed in the collection and interactive use of portrait information for ID cards. There is a lack of special equipment on the market that is low-cost, easy to use, and can prevent the leakage of portrait information, such as fingerprint collectors. Existing photo-taking services are difficult to achieve safe and orderly collection and management of portrait information.
[0008] Summary of the Invention
[0009] In view of this, the present invention provides a smart photo-taking service method, device, system and storage medium for preventing the leakage of portrait information. It can prohibit unauthorized third parties from obtaining portrait information and prevent the leakage of portrait information. Users only need to perform simple interactions through mobile terminals to obtain portrait photos and unique ID codes containing information of multiple ID photos. Users can use the ID codes to handle different businesses, and use one photo for multiple purposes without the need to keep cumbersome documents.
[0010] The first object of the present invention is to provide a smart photo taking service method for preventing the leakage of portrait information.
[0011] A second object of the present invention is to provide another smart photo taking service method for preventing leakage of portrait information.
[0012] The third object of the present invention is to provide another smart photo taking service method for preventing the leakage of portrait information.
[0013] A fourth object of the present invention is to provide a smart photo-taking service device that prevents leakage of portrait information.
[0014] A fifth object of the present invention is to provide another smart photo taking service device that prevents leakage of portrait information.
[0015] A sixth object of the present invention is to provide another smart photo-taking service device that prevents leakage of portrait information.
[0016] The seventh object of the present invention is to provide an intelligent photo-taking service system that prevents the leakage of portrait information.
[0017] An eighth object of the present invention is to provide a photographing device.
[0018] A ninth object of the present invention is to provide a mobile terminal.
[0019] The tenth object of the present invention is to provide a platform server.
[0020] An eleventh object of the present invention is to provide a storage medium.
[0021] The first object of the present invention can be achieved by adopting the following technical solutions:
[0022] A smart photo service method for preventing leakage of portrait information, applied to a photo device, comprising:
[0023] Identify the user and guide the shooting based on the user's actions;
[0024] Obtaining the first instruction sent by the mobile terminal and preparing the shooting environment;
[0025] Initially capture the user's face, obtain the first facial information, and play the real-time captured image on the display screen;
[0026] After the first facial information passes the ID photo standard detection, the user's face is officially photographed to obtain the second facial information, and the second facial information is sent to the platform server so that the platform server can perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal, obtain the second instruction of the mobile terminal, and according to the second instruction, send the reviewed ID photo and ID code to the mobile terminal.
[0027] Furthermore, after initially photographing the user's face to obtain first facial information and playing the real-time photographed image on the display screen, the process further includes:
[0028] Perform ID photo standard detection on the first person's facial information;
[0029] If the ID photo standard test result does not meet the ID photo standard, the camera is adjusted according to the ID photo standard test result to re-take the user's face to obtain new first face information until the ID photo standard test result passes the test.
[0030] Furthermore, after initially photographing the user's face to obtain first facial information and playing the real-time photographed image on the display screen, the process further includes:
[0031] Sending the first instruction and the first facial information to the platform server, so that the platform server performs an ID photo standard detection on the first facial information;
[0032] Obtain the ID photo standard test result fed back by the platform server. If the ID photo standard test result does not meet the ID photo standard, adjust the camera device according to the ID photo standard test result to re-take the user's face and obtain new first face information until the ID photo standard test result passes the test.
[0033] Furthermore, the adjusting of the photographing device includes:
[0034] Control the lifting and lowering of the camera component, and / or control the fill light, and / or control the speaker to play voice and the display to play animation to guide the user to organize the photos.
[0035] Furthermore, the controlling the lifting of the photographing component includes: adjusting the position of the photographing component according to the first face information to achieve an optimal shooting height;
[0036] The controlling of the fill light includes: using a segmentation model to segment the skin area in the first face information, calculating the light intensity distribution in the skin area, calculating the shadow position, and adjusting the fill light intensity to achieve an optimal lighting shooting environment;
[0037] The guiding the user to self-edit includes: guiding the user to correct facial expressions, hair, posture and clothing accessories according to the ID photo standard detection results;
[0038] Furthermore, the sending of the second facial information to the platform server so that the platform server performs a photo review on the second facial information includes:
[0039] Performing photo processing on the second facial information, and sending the processed second facial information to the platform server, so that the platform server performs photo review on the processed second facial information;
[0040] Or the second facial information is sent to the platform server so that the platform server performs photo processing on the second facial information and performs photo review on the processed second facial information.
[0041] Furthermore, the photo processing includes performing photo cropping, color adjustment, hair edge processing, and background color change according to the ID type in the first instruction;
[0042] The hair edge treatment includes:
[0043] Divide the second face information into a static area and a dynamic area, wherein the static area includes the head, body, clothing, and dense hair, and the dynamic area includes the sparse hair and background;
[0044] Calculating a distance function of the quiet zone to obtain a rough contraction direction of the hair, the distance function comprising a first curve and a second curve, wherein the first curve represents the outline of the quiet zone, and the second curve represents a curve equidistant from the first curve such that the second curve encompasses most of the hair, and the annular region enclosed by the first and second curves serves as the calculation region;
[0045] According to the annular area, the distance function is recalculated, and the distance at the edge of the annular area is defined as 0, the distance inside the annular area is negative, and the distance outside the annular area is positive. The annular area is segmented and calculated by finite element method to obtain the displacement of each pixel point.
[0046] The second facial information is changed according to the displacement, and the changed dynamic area and the unchanged static area are combined to obtain the changed second facial information.
[0047] Furthermore, the finite element segmentation and finite element calculation are performed on the annular area to obtain the displacement of each pixel point, including:
[0048] The size distribution function of the finite element triangle is obtained by solving the first-order nonlinear partial differential equation on the annular region;
[0049] According to the size distribution function of finite element triangles and the calculation of hyperstatic structures in structural mechanics, the triangulated network is obtained by solving the partial differential equations of structural mechanics.
[0050] In the triangulated mesh area, the partial differential equation of fluid mechanics is solved to obtain the displacement of the corresponding triangulated mesh, and the displacement of each pixel is calculated through triangulated interpolation.
[0051] Furthermore, identifying the user includes:
[0052] When a user appears in front of the camera, the camera detects the user and performs face detection. From the user's face detection frame, multiple facial key points are obtained to form the most basic facial features. This is used to determine whether the head posture of the person being photographed is correct.
[0053] The key points of the person's limbs are obtained from the person detection frame, and used as a basis to determine whether the person's posture is correct, whether the hands are raised, or whether there is any occlusion.
[0054] Furthermore, before identifying the user and guiding the shooting based on the user's actions, the method further includes: obtaining a mini-program code sent by the platform server and displaying the mini-program code on a display screen;
[0055] The obtaining of the first instruction sent by the mobile terminal includes: obtaining the first instruction sent by the mobile terminal after scanning the mini program code displayed on the display screen.
[0056] The second object of the present invention can be achieved by adopting the following technical solutions:
[0057] A smart photo taking service method for preventing leakage of portrait information, applied to a mobile terminal, comprising:
[0058] Sending a first instruction to the camera device to prepare the shooting environment, initially capturing the user's face to obtain first facial information, and playing the captured image in real time on the display screen. After the first facial information passes the ID photo standard test, formally capturing the user's face to obtain second facial information, and sending the second facial information to the platform server;
[0059] Obtaining the photo review result sent by the platform server, and sending a second instruction to the platform server, so that the platform server sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction;
[0060] Receive the reviewed ID photo and ID code sent by the platform server and conduct business processing.
[0061] Furthermore, when the photo review result is qualified, the second instruction includes payment, photo download and receipt;
[0062] When the photo review result is unqualified, the second instruction includes the option of taking a new photo.
[0063] The third object of the present invention can be achieved by adopting the following technical solutions:
[0064] A smart photo taking service method for preventing the leakage of portrait information is applied to a platform server, the method comprising:
[0065] Obtaining second facial information sent by the camera device, performing a photo review on the second facial information, and feeding back the photo review result to the mobile terminal, wherein the second facial information is user facial information formally captured by the camera device;
[0066] Obtain a second instruction from the mobile terminal, and send the verified ID photo and ID code to the mobile terminal according to the second instruction.
[0067] Furthermore, before obtaining the second facial information sent by the photographing device, performing a photo review on the second facial information, and feeding back the photo review result to the mobile terminal, the method further includes:
[0068] Obtaining a first instruction and first facial information sent by a camera device, and performing an ID photo standard detection on the first facial information;
[0069] The ID photo standard test result is sent to the camera device so that the camera device can judge the ID photo standard test result. If the ID photo standard test result does not meet the ID photo standard, the camera device is adjusted according to the ID photo standard test result to re-take the user's face until the ID photo standard test result passes the test; if the ID photo standard test result passes the test, the user's face is officially photographed to obtain the second facial information, and the second facial information is sent to the platform server.
[0070] Furthermore, the step of obtaining the second facial information sent by the photographing device and performing a photo review on the second facial information includes:
[0071] Obtaining the second facial information sent by the camera device, performing photo processing on the second facial information, and performing photo review on the processed second facial information;
[0072] Or obtain the processed second facial information sent by the camera device, and perform photo review on the processed second facial information.
[0073] Furthermore, the photo processing includes performing photo cropping, color adjustment, hair edge processing, and background color change according to the ID type in the first instruction;
[0074] The hair edge treatment includes:
[0075] Divide the second face information into a static area and a dynamic area, wherein the static area includes the head, body, clothing, and dense hair, and the dynamic area includes the sparse hair and background;
[0076] Calculating a distance function of the quiet zone to obtain a rough contraction direction of the hair, the distance function comprising a first curve and a second curve, wherein the first curve represents the outline of the quiet zone, and the second curve represents a curve equidistant from the first curve such that the second curve encompasses most of the hair, and the annular region enclosed by the first and second curves serves as the calculation region;
[0077] According to the annular area, the distance function is recalculated, and the distance at the edge of the annular area is defined as 0, the distance inside the annular area is negative, and the distance outside the annular area is positive. The annular area is segmented and calculated by finite element method to obtain the displacement of each pixel point.
[0078] The second facial information is changed according to the displacement, and the changed dynamic area and the unchanged static area are combined to obtain the changed second facial information.
[0079] Furthermore, the finite element segmentation and finite element calculation are performed on the annular area to obtain the displacement of each pixel point, including:
[0080] The size distribution function of the finite element triangle is obtained by solving the first-order nonlinear partial differential equation on the annular region;
[0081] According to the size distribution function of finite element triangles and the calculation of hyperstatic structures in structural mechanics, the triangulated network is obtained by solving the partial differential equations of structural mechanics.
[0082] In the triangulated mesh area, the partial differential equation of fluid mechanics is solved to obtain the displacement of the corresponding triangulated mesh, and the displacement of each pixel is calculated through triangulated interpolation.
[0083] Furthermore, the step of sending the verified ID photo and ID code to the mobile terminal includes:
[0084] The ID photo is encrypted and stored in the database. At the same time, the encrypted ID photo information is converted into a ID QR code; the ID QR code is sent to the authorized third-party system intranet, and the ID photo and ID QR code are sent to the mobile terminal.
[0085] The fourth object of the present invention can be achieved by adopting the following technical solutions:
[0086] A smart photo service device for preventing leakage of portrait information, applied to a photo device, comprising:
[0087] The recognition module is used to identify the user and guide the shooting according to the user's actions;
[0088] A shooting environment module is used to obtain a first instruction sent by the mobile terminal and prepare a shooting environment;
[0089] The first shooting module is used to initially shoot the user's face, obtain first facial information, and play the real-time shot image through the display screen;
[0090] The second shooting module is used to formally shoot the user's face after the first facial information passes the ID photo standard detection, obtain the second facial information, send the second facial information to the platform server, so that the platform server can perform a photo review on the second facial information, feed back the photo review result to the mobile terminal, obtain the second instruction of the mobile terminal, and send the reviewed ID photo and ID code to the mobile terminal according to the second instruction.
[0091] The fifth object of the present invention can be achieved by adopting the following technical solutions:
[0092] A smart photo service device for preventing leakage of portrait information, applied to a mobile terminal, comprising:
[0093] A first instruction sending module is configured to send a first instruction to a camera device, causing the camera device to prepare a shooting environment, initially capture the user's face, obtain first facial information, and play the captured image in real time on a display screen. After the first facial information passes the ID photo standard test, the camera device formally captures the user's face, obtains second facial information, and sends the second facial information to the platform server;
[0094] A second instruction sending module is used to obtain the photo review result sent by the platform server and send a second instruction to the platform server, so that the platform server sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction;
[0095] The business processing module is used to receive the reviewed ID photo and ID code sent by the platform server to handle business.
[0096] The sixth object of the present invention can be achieved by adopting the following technical solutions:
[0097] A smart photo service device for preventing the leakage of portrait information, applied to a platform server, comprising:
[0098] a photo review module, configured to obtain second facial information sent by the camera device, perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal, wherein the second facial information is the user's facial information formally captured by the camera device;
[0099] The sending module is used to obtain a second instruction from the mobile terminal and send the verified ID photo and ID code to the mobile terminal according to the second instruction.
[0100] The seventh object of the present invention can also be achieved by adopting the following technical solutions:
[0101] A smart photo service system for preventing the leakage of portrait information, the system comprising a photo device, a mobile terminal and a platform server, the photo device being connected to the mobile terminal, and the platform server being connected to the photo device and the mobile terminal respectively;
[0102] The photographing device is used to perform the smart photographing service method of the first objective above;
[0103] The mobile terminal is used to perform the smart photo service method for the second purpose above;
[0104] The platform server is used to execute the smart photo taking service method for the third purpose mentioned above.
[0105] The eighth object of the present invention can also be achieved by adopting the following technical solutions:
[0106] A photographing device includes a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the smart photographing service method for the first purpose mentioned above is realized.
[0107] The ninth object of the present invention can also be achieved by adopting the following technical solutions:
[0108] A mobile terminal includes a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the smart photo service method for the second purpose mentioned above is realized.
[0109] The tenth object of the present invention can also be achieved by adopting the following technical solutions:
[0110] A platform server includes a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the smart photo-taking service method for the third purpose mentioned above is realized.
[0111] The eleventh object of the present invention can also be achieved by adopting the following technical solutions:
[0112] A storage medium stores a program, which, when executed by a processor, implements the above-mentioned smart photo service method.
[0113] The present invention has the following beneficial effects compared to the prior art:
[0114] The smart photo service of the present invention adopts a platform-centralized information management method. The platform server uniformly manages the entire process from photo device configuration, photo review and processing, to information transmission. Unauthorized third parties are prohibited from obtaining portrait information, preventing portrait information leakage. Users only need to interact with the mobile terminal to obtain portrait photos and unique ID codes containing multiple ID photo information. Users can use the ID codes to handle different services, and use one photo for multiple purposes without the need to keep cumbersome documents. BRIEF DESCRIPTION OF THE DRAWINGS
[0115] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0116] FIG1 is a flow chart of a smart photo taking service method for preventing leakage of portrait information according to Embodiment 1 of the present invention.
[0117] FIG2 is a flow chart of a smart photo taking service method for preventing leakage of portrait information according to a second embodiment of the present invention.
[0118] FIG3 is a schematic diagram of the interaction between the mobile terminal and the photographing device, and between the photographing device and the platform server according to the second embodiment of the present invention.
[0119] FIG4 is a flow chart of a smart photo taking service method for preventing leakage of portrait information according to embodiment 3 of the present invention.
[0120] FIG5 is a schematic diagram of the interaction between the platform server, the photo studio, and the photo taking device according to Embodiment 3 of the present invention.
[0121] FIG6 is a flow chart of hair edge processing according to embodiment 3 of the present invention.
[0122] FIG7 is a schematic diagram of an original image and its divided quiet zones according to Example 3 of the present invention.
[0123] FIG8 is a schematic diagram of dividing the static zone and the dynamic zone according to embodiment 3 of the present invention.
[0124] FIG9 is a schematic diagram of a distance function of a quiet zone according to embodiment 3 of the present invention.
[0125] FIG10 is a schematic diagram of a distance function of an annular area according to embodiment 3 of the present invention.
[0126] FIG11 is a schematic diagram of the size distribution function of the finite element triangle in Example 3 of the present invention.
[0127] FIG12 is a schematic diagram of a triangulated network area according to embodiment 3 of the present invention.
[0128] FIG13 is a schematic diagram of the displacement of each pixel in Example 3 of the present invention.
[0129] FIG14 is a comparison diagram of the original image and the final effect image of Example 3 of the present invention.
[0130] FIG15 is a schematic diagram of the interaction between the platform server, the photographing device and the mobile terminal according to Embodiment 3 of the present invention.
[0131] FIG16 is a schematic diagram of the interaction between the platform server, the government affairs system, and the mobile terminal in Example 3 of the present invention.
[0132] FIG17 is a schematic diagram of the interaction between the government affairs system and the mobile terminal according to Example 3 of the present invention.
[0133] FIG18 is a structural block diagram of a smart photo-taking service system for preventing leakage of portrait information according to a fourth embodiment of the present invention.
[0134] FIG19 is a structural block diagram of a smart photo-taking service device for preventing leakage of portrait information according to Embodiment 5 of the present invention.
[0135] FIG20 is a structural block diagram of a smart photo-taking service device for preventing leakage of portrait information according to Example 6 of the present invention.
[0136] FIG21 is a structural block diagram of a smart photo-taking service device for preventing leakage of portrait information according to Example 7 of the present invention. DETAILED DESCRIPTION
[0137] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0138] Example 1:
[0139] As shown in FIG1 , this embodiment provides a smart photo service method for preventing the leakage of portrait information. The method is applied to a photo device and includes the following steps:
[0140] S101: Identify the user and guide the shooting according to the user's actions.
[0141] This embodiment may further include, before step S101: obtaining a mini-program code sent by the platform server, and displaying the mini-program code on a display screen, where the mini-program code is a QR code.
[0142] Among them, the operations of identifying the user specifically include: when the user appears in front of the camera, the user is sensed, and the SDM algorithm HyperLandmark is used to detect the user's face. From the user's face detection frame, 106 facial keypoints are obtained to form the most basic facial features. The key points include the lower edge of the face, eyebrows, eyes, nose, and mouth, so as to determine whether the head posture of the person being photographed is correct; the openpose model under the caffe network framework is used to obtain the key points of the person's limbs from the person detection frame, including 14 key points such as the head, torso, and limbs. Based on this, it is determined whether the person's posture is correct, whether the hands are raised, or whether there is any occlusion.
[0143] In order to perceive the user, the camera device is in video surveillance mode when on standby, playing promotional videos or animations, and using the FastestDet model of the YOLO network framework to detect the environmental scene. When no pedestrians appear, it continues to wait until a pedestrian recognition frame is detected, then starts detecting pedestrian faces, and uses the MTCNN framework network to detect the face frame and five-point positioning information of the facial features. When a certain time frame has passed and it is determined that the user has sat down stably, the operation of perceiving the user is completed. Among them, the stable state means that the user is judged to be stable if he has not moved for several consecutive frames.
[0144] The guided shooting operation is designed to guide users who wish to take photos to the center of the screen based on their actions. This operation may include controlling the speaker to play voice and / or controlling the display to play animation. It is performed after detecting the face frame and the five facial features and five points positioning information. The details are as follows:
[0145] 1) If the user is standing and watching, the promotional video and voice introduction will be played. After the playback is completed, different voice prompts will be given based on whether the user is sitting down. If the playback is not completed and the user has left, the voice playback will end and the video will continue playing.
[0146] 2) If the user's action is standing to scan the code, sitting down to watch, or sitting to scan the code, the display will show the mini program code and provide a corresponding voice prompt.
[0147] S102: Obtain a first instruction sent by the mobile terminal and prepare a shooting environment.
[0148] Specifically, the user scans the mini-program code displayed on the camera device through a mobile terminal (such as a mobile phone), opens the mini-program, enters the smart camera service, and sends a first instruction to the camera device, so that the camera device obtains the first instruction sent by the mobile terminal after scanning the mini-program code. The first instruction includes the type of document selected by the user to be photographed. The document types include three major categories of documents: identity card, driver's license, entry and exit documents, and others; if the user stays on the document type selection page after scanning the mini-program code and does not select the document type, a voice message is played: "After scanning the code, select the type of document you want to photograph"; after 30 seconds, if the first instruction is not obtained, the voice message is played again: "Please select the document to be photographed", and an animation effect of selecting the document type is played. If the first instruction is not obtained, the shooting is exited after the page countdown ends (120 seconds); technicians in this field can understand that the user can also enter the smart camera service by inputting or scanning the one-time code displayed on the camera device through a designated APP, and input the first instruction to the camera device, so that the camera device obtains the first instruction input by the mobile terminal through the designated APP.
[0149] The preparation of the shooting environment in this embodiment includes controlling the speaker to play voice, controlling the fill light, and controlling the opening / lowering of the photographing component. The photographing component can be a camera or a still camera. The fill light can be a group of fill lights arranged in different positions and providing light sources in different directions. The preparation of the shooting environment is specifically as follows:
[0150] 1) After selecting the type of ID to be photographed, the user clicks "Ready," which turns on the fill light and camera, adjusts the lighting according to the surrounding light, and plays a voice message: "Please sit up straight." If the camera fails to open, a voice message will be played: "Oops, there was an error opening the camera, please contact the administrator," and the page will display: "System error page, please contact the administrator."
[0151] 2) After the user sits up straight, if the portrait is too high, find the face position, raise the camera, and adjust the shooting height.
[0152] 3) After adjusting the camera height, search for faces. If no face is captured, a voice prompt will play. After 10 seconds, if no face is captured, the voice prompt will continue to play. If a face is captured, the voice prompt will not play. After 90 seconds, if no face is captured, a voice prompt will play to exit the shooting. After 20 seconds, the shooting will end and return to the mini program code page.
[0153] 4) After adjusting the camera height, search for faces. If multiple faces are found (two or more), a voice message will play: "Please do not take photos with multiple people. Please clear the surrounding area to avoid multiple people appearing on the screen." An animation will pop up to clear the surrounding area. After a 10-second countdown, the animation will turn off. If multiple faces are still found, the camera will automatically focus on the person closest to the camera and standing upright.
[0154] 5) After finding the face, the system identifies the surrounding environment, including ambient lighting and portrait lighting. If the user has dark skin and wears light-colored clothing, the system adjusts the lighting to automatically suit the user's skin tone. If the user wears glasses and the glasses reflect light, the system determines that the shooting light is too bright and adjusts the brightness to a lower level.
[0155] S103: Initially capture the user's face, obtain first facial information, and play the captured image in real time on the display screen.
[0156] This embodiment adopts one-way glass technology. After the viewfinder is aligned with the portrait, the user's face is initially photographed to obtain the first facial information. The real-time photographed picture is played through the display screen and reflected through the one-way glass, making the user look like looking in a mirror.
[0157] S104: Perform ID photo standard detection on the first facial information.
[0158] Among them, the ID photo standard test can be performed through a photographing device, and the ID photo standard test result can be directly obtained, which is easy to understand. The first instruction and the first facial information can also be sent to the platform server, and the platform server performs the ID photo standard test on the first facial information to obtain the ID photo standard test result of the platform server.
[0159] Furthermore, the ID photo standard detection in this embodiment uses the EfficientNet-mobile classification model under the pytorch framework to detect whether the user is wearing glasses, whether the hair is blocked, whether the clothing is blocked, etc.
[0160] If the ID photo standard test result does not meet the ID photo standard, that is, any standard test does not meet the requirements, then go to step S105; if the ID photo standard test result is passed, then go to step S106.
[0161] S105. Adjust the camera to retake the user's face according to the ID photo standard detection result to obtain new first facial information, until the ID photo standard detection result passes the detection.
[0162] Specifically, according to the standard test results of the ID photo, adjust the photo-taking device, and / or wait for the user to complete the organization and re-enter the stable state, re-photograph the user's face, use the re-photographed face information as the first face information, return to the standard test of the ID photo in step S104, and then perform the test of the next standard until the standard test result of the ID photo passes the test and enters step S106.
[0163] Among them, adjusting the photographing device includes controlling the lifting and lowering of the photographing component, and / or controlling the fill light, and / or controlling the speaker to play voice and the display screen to play animation to guide the user to organize by themselves.
[0164] Furthermore, controlling the lifting and lowering of the photographing component includes: adjusting the position of the photographing component according to the first face information to achieve the optimal shooting height; controlling the fill light includes: using the segmentation model to segment the skin area in the first face information, calculating the light intensity distribution in the skin area, calculating the shadow position, and adjusting the fill light intensity. It is easy to understand that the light intensity of the fill light groups arranged in different positions can be adjusted separately to achieve the optimal lighting shooting environment; guiding users to organize by themselves includes: guiding users to correct facial expressions, hair, posture (including head posture and body posture) and clothing accessories according to the standard detection results of ID photos.
[0165] In this embodiment, based on the ID photo standard detection results, the user is guided to correct facial expressions, specifically including:
[0166] 1) If the user closes their eyes, the system will instruct the user to open their eyes through voice.
[0167] 2) If the user is not looking at the camera, guide the user to look at the camera through voice and animation.
[0168] 3) If the user laughs, guide the user to close their mouth through voice and animation.
[0169] 4) If the user is wearing a mask, the user will be guided to remove the mask through voice and animation.
[0170] 5) If the user's glasses still reflect light after adjusting the lighting, the user will be instructed to lower their head slightly through voice instructions.
[0171] 6) If the glasses or frames still reflect light after the user lowers their head, the user will be instructed to take off the glasses through voice.
[0172] 7) If the user squints in front of the mirror, guide the user not to squint through voice and animation.
[0173] 8) If the user wears tinted glasses and their eyes are obviously tinted, the user will be guided to take off the glasses through voice.
[0174] 9) If the user's glasses cover their eyes or eye sockets, the user will be guided through voice and animation to push the glasses up or take them off.
[0175] 10) If the user shows teeth, guide the user not to show teeth through voice.
[0176] 11) If the user is wearing thick-framed glasses when taking a photo, the user will be guided to take off the glasses through voice and animation.
[0177] 12) If the lenses of the glasses worn by the user are blurry, the user will be guided through voice and animation to wipe the glasses or take them off.
[0178] 13) If the user covers their mouth or purses their lips, guide the user through voice to not cover their mouth or purse their lips.
[0179] 14) If the user's mouth is open or twisted, the user will be guided by voice to close the mouth naturally.
[0180] 15) If the user is wearing makeup, false eyelashes, or heavy eye shadow, voice and animation will be used to guide the user to remove the makeup or apply light makeup.
[0181] 16) If the user's face is shiny or sweaty, the user will be guided to wipe their face through voice and animation.
[0182] 17) If the user's eyes are not focused and dull, guide the user to focus through voice.
[0183] In this embodiment, based on the ID photo standard detection results, the user is guided to correct their hair, specifically including:
[0184] 1) If the user's eyebrows are blocked by bangs, part of the eyes are blocked by bangs, the ears are blocked by hair, the face is blocked by hair, the shoulders are blocked by hair, the hair is messy or the hair is high, the user will be guided to tidy up their hair through voice and animation.
[0185] 2) If the user has dyed their hair red, the system will guide the user through voice and animation to restore their natural hair color before taking the photo.
[0186] In this embodiment, based on the ID photo standard detection results, the user is guided to correct their posture, specifically including:
[0187] 1) If the user sways left or right, the system will instruct the user to keep their body steady through voice commands.
[0188] 2) If the user tilts their head back, the system will guide the user to lower their head through voice and animation.
[0189] 3) If the user lowers their head, guide them to raise their head a little higher through voice and animation.
[0190] 4) If the user's head is tilted to the right or left, the user is guided to move their head through voice and animation.
[0191] 5) If the user is sitting on the right side or the left side, the user will be guided to sit up straight through voice and animation.
[0192] 6) If the user turns his face to the right or to the left, the user is guided to move his face through voice and animation.
[0193] 7) If the user sits up straight with the right shoulder higher than the left or vice versa, the user will be guided by voice to adjust their shoulders.
[0194] In this embodiment, based on the ID photo standard detection results, the user is guided to modify clothing and accessories, specifically including:
[0195] 1) If the user is wearing a hat, the user will be instructed to take it off through voice.
[0196] 2) If the user is wearing a white shirt, the system will guide the user through voice and animation to change into dark collared clothes.
[0197] 3) If the user is wearing a sports vest, the system will guide the user through voice and animation to change into dark-colored collared clothing.
[0198] 4) If the user raises the collar of their coat, the system will guide the user to adjust their clothes through voice and animation.
[0199] 5) If the user is wearing a round-neck T-shirt, the user will be guided through voice and animation to change into dark-colored collared clothing.
[0200] 6) If the user is wearing a shiny necklace, the user will be guided to take it off through voice and animation.
[0201] 7) If the user is wearing large earrings, the user will be guided to remove the earrings through voice and animation.
[0202] S106: formally photograph the user's face, obtain second facial information, and send the second facial information to the platform server.
[0203] Specifically, the user is ready according to the instructions, and the camera device plays the voice: "3, 2, 1", officially capturing the user's face and obtaining the second facial information. At this time, the camera device can directly process the second facial information and send the processed second facial information to the platform server. The platform server performs a photo review on the processed second facial information, feeds back the photo review result to the mobile terminal, obtains the second instruction of the mobile terminal, and sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction; the camera device can also send the unprocessed second facial information to the platform server. The platform server performs a photo process on the second facial information and performs a photo review on the processed second facial information, feeds back the photo review result to the mobile terminal, obtains the second instruction of the mobile terminal, and sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction.
[0204] After the shooting is completed, the photographing device restores the normal environment. Restoring the normal environment includes controlling the display screen to play an animation guiding the user to view the mobile terminal and controlling the speaker to play a voice guiding the user to view the mobile terminal, controlling the photographing component to turn off and controlling the fill light to turn off; controlling the display screen to play an animation guiding the user to view the mobile terminal and controlling the speaker to play a voice guiding the user to view the mobile terminal, specifically: the display screen displays: "Photos are being processed, please view photos on your mobile phone", and plays a voice: "Shooting is complete, please view photos on your mobile phone"; the countdown is displayed for 120 seconds, and after the end, it returns to the homepage and displays the refreshed mini program code. If the user does not leave, after 10 seconds, a voice is played: "Please scan the mini program code to shoot". After the user leaves, if a new user comes to shoot again, a welcome voice is played.
[0205] Example 2:
[0206] As shown in FIG2 and FIG3, this embodiment provides a smart photo service method for preventing the leakage of portrait information. The method is applied to a mobile terminal and includes the following steps:
[0207] S201: Send a first instruction to a camera device.
[0208] The user scans the mini program code displayed on the display screen through the mobile terminal, opens the mini program, enters the smart photo service, and sends a first instruction to the photo device, so that the photo device obtains the first instruction sent by the mobile terminal after scanning the mini program code. The first instruction includes the type of document selected by the user to be photographed, and the document types include three major categories of documents: identity card, driver's license, and entry and exit documents, as well as others; technical personnel in this field can understand that the user can also enter the smart photo service through a designated APP input or scan the one-time code displayed on the photo device, input the first instruction to the photo device, so that the photo device obtains the first instruction input by the mobile terminal through the designated APP.
[0209] Furthermore, the first instruction may also include filling in relevant information, such as ID card information, etc. All personal information is completed by the user on the mobile terminal without leaving any traces on the camera device.
[0210] After receiving the first instruction, the photographing device prepares the shooting environment, initially photographs the user's face, obtains the first facial information, and plays the real-time photographed image through the display screen. After the first facial information passes the ID photo standard test, the user's face is formally photographed to obtain the second facial information, and the second facial information is sent to the platform server so that the platform server can perform a photo review on the second facial information.
[0211] Furthermore, after initially photographing the user's face, obtaining the first facial information, and playing the real-time photographed image through the display screen, the photographing device can directly perform an ID photo standard test on the first facial information; if the ID photo standard test result does not meet the ID photo standard, then according to the ID photo standard test result, adjust the photographing device to re-photograph the user's face until the ID photo standard test result passes the test; it is easy for technicians in this field to understand that the photographing device can also send the first instruction and the first facial information to the platform server, so that the platform server performs an ID photo standard test on the first facial information; obtain the ID photo standard test result fed back by the platform server, if the ID photo standard test result does not meet the ID photo standard, then according to the ID photo standard test result, adjust the photographing device to re-photograph the user's face until the ID photo standard test result passes the test.
[0212] S202: Obtain the photo review result sent by the platform server, and send the second instruction to the platform server.
[0213] When the photo review result is qualified, the user can view and confirm the automatically generated qualified ID photo effect on the mini program or APP of the mobile terminal. If the user is satisfied, the second instruction including payment, photo download and receipt can be sent to the platform server through the mobile terminal. After paying the fee, the ID photo can be downloaded and saved to the user's mobile terminal album; if the user is not satisfied, the second instruction including the option to take a new photo can be sent to the platform server through the mobile terminal; when the photo review result is unqualified, the user can send the second instruction including the option to take a new photo to the platform server through the mobile terminal; regardless of whether the photo review result is qualified or unqualified, the process can return to step S201 and repeat the execution.
[0214] Furthermore, when the photo review result is qualified, the second instruction may also include selecting other value-added services, such as album making, photo printing, etc.; users can also share the photos to WeChat friends, Moments, Weibo, etc. with one click through mobile terminals.
[0215] S203: Receive the verified ID photo and ID code sent by the platform server and proceed with the business.
[0216] After receiving the second instruction, the platform server sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction, so that the mobile terminal can present the ID code to the authorized third party when handling business, or upload the downloaded photo to the authorized third party system.
[0217] Furthermore, the authorized third party may be an authorized functional agency such as a government affairs agency.
[0218] Example 3:
[0219] As shown in FIG4 , this embodiment provides a smart photo service method for preventing the leakage of portrait information. The method is applied to a platform server and includes the following steps:
[0220] S401: Obtain a first instruction and first facial information sent by a photographing device, and perform an ID photo standard detection on the first facial information.
[0221] As shown in Figure 5, before step S401, this embodiment may also include: receiving an application for photographic equipment from a photo studio through a client or an official website, the application for photographic equipment including the photo studio's store operating qualifications, the signing of an equipment use agreement, etc.; reviewing the photo studio based on the application for photographic equipment, and after the qualification review is passed, configuring the photographic equipment with relevant information and sending it to the contracted photo studio; after sending the photographic equipment with completed information configuration to the contracted photo studio, unified management and control of all information of the photo studio's photographic equipment, such as the equipment application system, equipment information configuration, equipment hardware upgrade and maintenance, and management.
[0222] Furthermore, the management and control of photographic equipment also includes receiving information from the photo studio through a computer client or a mobile terminal applet, logging into the photo studio account (login account / mobile phone number + password) and binding the photographic equipment.
[0223] S402: Send the ID photo standard test result to the photo taking device.
[0224] After the camera receives the ID photo standard test result, it judges the ID photo standard test result. If the ID photo standard test result does not meet the ID photo standard, the camera is adjusted according to the ID photo standard test result to re-take the user's face until the ID photo standard test result passes the test; if the ID photo standard test result passes the test, the user's face is officially photographed to obtain the second facial information, and the second facial information is sent to the platform server.
[0225] The specific content of the ID photo standard detection can be found in the above-mentioned embodiment 1 and will not be repeated here. Since the ID photo standard detection can be implemented by the photo taking device, the smart photo taking service method of this embodiment can also directly execute steps S403-S404.
[0226] S403: Obtain the second facial information sent by the photographing device, perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal.
[0227] Among them, the second facial information is the user facial information obtained by the photographing device; the platform server can obtain the unprocessed second facial information sent by the photographing device, perform photo processing on the second facial information, and perform photo review on the processed second facial information; the platform server can also obtain the processed second facial information sent by the photographing device, and perform photo review on the processed second facial information.
[0228] The platform server directly obtains the second facial information collected and sent by the camera device, and performs photo review on the second facial information without the need for processing by an unauthorized third party (such as a photo studio or manual photo editing software), thus eliminating the risk of photo information leakage from the root.
[0229] Among them, when the photo review result is qualified, the user can view and confirm the automatically generated qualified ID photo effect on the mini program or APP of the mobile terminal, and can send the second instruction including payment, photo download and receipt to the platform server through the mobile terminal. After paying the fee, the ID photo can be downloaded and saved to the user's mobile terminal album; when the photo review result is unqualified, the mini program or APP will display the reason and solution for the unqualifiedness, display the original photo, and mark the unqualified location in the photo. The user will enter the unqualified page and start a 20-second countdown. Within 20 seconds, the user can send the second instruction including the option to take a photo again through the mobile terminal to the platform server. If it exceeds 20 seconds, the code needs to be scanned again to take the photo.
[0230] The photo processing of this embodiment includes photo cropping, color adjustment, hair edge processing, and background color change according to the ID type in the first instruction.
[0231] As shown in Figure 6, hair edge processing includes:
[0232] S601: Divide the second face information into two parts: a static area and a dynamic area.
[0233] Among them, the static area (mask) includes fixed and incompressible parts such as the head, body, clothing, and parts with dense hair. As shown in Figure 7, the left side is the original image (second face information), and the light-colored part on the right is the static area. The dynamic area includes the part with sparse hair and the background. As shown in Figure 8, the middle portrait part is the static area, and the outer background part is the dynamic area. How to divide the static area and the dynamic area is automatically determined by the mask image generated by the deep learning model and will not be repeated here.
[0234] S602: Calculate the distance function of the quiet zone to obtain the approximate shrinkage direction of the hair.
[0235] Specifically, hair shrinks from a point away from the quiet zone, gradually approaching it, meaning the distance decreases. Therefore, calculating the distance function for the quiet zone can reveal the approximate direction of hair shrinkage. This distance function is calculated using the OpenCV library and is shown in Figure 9. It includes a first curve (the inner curve) and a second curve (the outer curve). The first curve represents the outline of the quiet zone, and the second curve represents a curve equidistant d from the first curve. The value of d is appropriately selected so that the second curve encompasses most of the hair. The annular region enclosed by the first and second curves is the calculation region. The quiet zone remains unchanged and requires no calculation, only copying. The moving zone includes most of the background, and the background outside the second curve also requires no processing. Therefore, the calculation region is significantly reduced.
[0236] S603. Recalculate the distance function based on the annular area, and define the distance at the edge of the annular area as 0, the distance inside the annular area as negative, and the distance outside the annular area as positive. Perform finite element segmentation and finite element calculation on the annular area to obtain the displacement of each pixel point.
[0237] The recalculated distance function is shown in FIG10 , and the edge of the annular area is on the first curve and the second curve.
[0238] This embodiment uses the triangular segmentation method to perform finite element segmentation on the annular region, with the following requirements:
[0239] 1) Each element is a triangle and as close to an equilateral triangle as possible.
[0240] 2) In places where the contour is tortuous, use smaller triangles to make the triangulated network as close to the actual edge as possible. In places where the contour is relatively flat, use larger triangles to reduce the amount of calculation and increase the speed.
[0241] 3) There should be a smooth transition between the large and small triangles, that is, the vertex of any triangle cannot be on the edge of another triangle, and two adjacent triangles must have a common side of equal length, otherwise the finite element equation has no solution.
[0242] To meet the above three conditions, it is necessary to use first-order nonlinear partial differential equations and Delaunay triangulation. The Delaunay triangulation can directly call the OpenCV library.
[0243] The following describes a first-order nonlinear partial differential equation and explains how to use this equation to achieve a smooth transition.
[0244] Define a closed curve as follows, where s is the position parameter and t is the time parameter:
[0245] in, Represents a point on the curve, x and y represent coordinates, s is the position parameter of the curve, and t is the time parameter of the curve.
[0246] Its curvature is:
[0247] Among them, K(s, t) represents the curvature, which is a function related to s and t, x s represents the first-order partial derivative of x with respect to s, y s represents the first-order partial derivative of y with respect to s, x ss represents the second-order partial derivative of x with respect to s, y ss represents the second-order partial derivative of y with respect to s.
[0248] Define its moving direction as the normal direction:
[0249] in, Represents the normal vector of a point s on the curve at time t.
[0250] The movement rate is:
[0251] Among them, F(K) represents the moving rate, which is a function related to the curvature K.
[0252] The velocity components in the x and y directions are:
[0253] Among them, x t represents the first-order partial derivative of x with respect to t, y t represents the first-order partial derivative of y with respect to t.
[0254] The rate function is defined as: K(K) = 1-εK (7);
[0255] Here, ε is a constant greater than 0.
[0256] The above formulas (1)-(7) are combined to form a first-order nonlinear partial differential equation. When solved on the annular area, the size distribution function of the finite element triangle is obtained, as shown in Figure 11. Where the curvature is large, the triangle is small, and where the curvature is small, the triangle is large, and the transition is smooth (the scale on the right side of the picture is relative size).
[0257] Based on the size distribution function of finite element triangles and the calculation of hyperstatic structures in structural mechanics, a triangulated network is obtained by solving the partial differential equations of structural mechanics. The shape of this triangulated network is similar to the shape of the steel frame structure on the Haizhu Bridge, as shown in Figure 12.
[0258] In the triangulated mesh area, the partial differential equation of fluid mechanics is solved to obtain the displacement of the corresponding triangulated mesh. The displacement of each pixel is calculated through triangulated interpolation, as shown in Figure 13.
[0259] S604: Change the second facial information according to the displacement, combine the changed dynamic area and the unchanged static area, and obtain the changed second facial information.
[0260] According to the displacement amount in FIG13 , the original image (the second facial information) is changed, and the changed dynamic area and the unchanged static area are combined to obtain the changed second facial information. The final effect is shown on the right side of FIG14 , and the left side of FIG14 is the original image.
[0261] S404: Obtain a second instruction from the mobile terminal, and send the verified ID photo and ID code to the mobile terminal according to the second instruction.
[0262] The ID photo and ID code are sent to the mobile terminal as shown in Figure 15. Further, as shown in Figure 16, the ID photo and ID code are sent to the mobile terminal, including: after the photo review result is qualified, the platform server processes the second facial information into a variety of commonly used ID photos; the platform server encrypts the various commonly used ID photos through watermark encryption technology, stores them in the database, and at the same time converts the encrypted multiple commonly used ID photo information into a unique ID QR code; after the platform server converts the encrypted multiple commonly used ID photo information into a unique ID QR code, the ID QR code is sent to the government system intranet through a special dedicated transmission channel to ensure the security of the photo information; at the same time, the reviewed ID photo and ID QR code are sent to the mobile terminal, and the user can save the electronic ID photo to the photo album of the mobile terminal.
[0263] The platform server sends the portrait information to the intranet of the government system. The user's photo information is kept completely confidential during the entire transmission process, preventing unauthorized third parties from obtaining any of the user's photo information and ensuring the security of user information.
[0264] Users take photos with their camera devices, and the platform server inspects and processes the photos. Once qualified, the platform automatically generates photos for various commonly used ID cards and converts them into unique ID QR codes. This ID QR code contains information about these photos, enabling multiple photos to be used with a single photo. For example, after taking a photo of an ID card, a ID QR code is generated. This ID QR code includes photos of common ID cards, such as resident ID cards, driver's licenses, residence permits, passports, and travel permits for Hong Kong, Macau, and Taiwan. Within the photo's validity period, users can reuse it in multiple locations and situations. Simply presenting the ID code allows them to use the photo or download an electronic copy, eliminating the need to retake a new photo. This fully utilizes ID photos and improves user efficiency.
[0265] The smart photo taking service method of this embodiment may further include:
[0266] S405: Receive a call instruction with a license code from an authorized third party, encrypt the license photo and transmit it to the authorized third party.
[0267] As shown in Figure 17, when a user visits the ID application hall to process a document, they simply present the ID QR code generated from their portrait information to complete the information exchange, eliminating the need to carry a paper photo or photo receipt. The business department scans the user's ID QR code to obtain the unique ID QR code information, which is then used to retrieve the corresponding portrait information from the government intranet system to complete the transaction.
[0268] It should be noted that although the method operations of the above embodiments are described in a particular order, this does not require or imply that the operations must be performed in that particular order, or that all of the illustrated operations must be performed to achieve the desired results. Rather, the depicted steps may be performed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into a single step, and / or a single step may be broken down into multiple steps.
[0269] Example 4:
[0270] As shown in FIG18 , this embodiment provides a smart photo service system for preventing the leakage of portrait information. The system includes a photo device 1801, a mobile terminal 1802, and a platform server 1803. The photo device 1801 is connected to the mobile terminal 1802, and the platform server 1803 is connected to the photo device 1801 and the mobile terminal 1802, respectively. The photo device 1801, the mobile terminal 1802, and the platform server 1803 are described as follows:
[0271] The photographing device 1801 is used to identify the user and guide the photographing according to the user's actions; obtain the first instruction sent by the mobile terminal 1802 and prepare the photographing environment; initially photograph the user's face to obtain the first facial information, and play the real-time photographed picture through the display screen; perform an ID photo standard test on the first facial information; if the ID photo standard test result does not meet the ID photo standard, adjust the photographing device to re-photograph the user's face according to the ID photo standard test result until the ID photo standard test result passes the test; if the ID photo standard test result passes the test, formally photograph the user's face to obtain the second facial information, and send the second facial information to the platform server 1803.
[0272] The mobile terminal 1802 is used to send the first instruction to the camera device 1801; obtain the photo review result sent by the platform server 1803, and send the second instruction to the platform server 1803; receive the reviewed ID photo and ID code sent by the platform server 1803, and handle the business.
[0273] The platform server 1803 is used to obtain the second facial information sent by the photographing device 1801, perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal 1802; obtain the second instruction of the mobile terminal 1802, and send the reviewed ID photo and ID code to the mobile terminal 1802 according to the second instruction.
[0274] The specific implementations of the photographing device 1801, the mobile terminal 1802 and the platform server 1803 can be found in the above embodiments 1-3, which will not be described in detail here.
[0275] Example 5:
[0276] As shown in FIG19 , this embodiment provides a smart photo service device for preventing the leakage of portrait information. The device is applied to a photo device and includes a recognition module 1901, a shooting environment preparation module 1902, a first shooting module 1903, and a second shooting module 1904. The description of each module is as follows:
[0277] The recognition module 1901 is used to recognize the user and guide the shooting according to the user's actions.
[0278] The shooting environment preparation module 1902 is used to obtain a first instruction sent by the mobile terminal and prepare the shooting environment.
[0279] The first shooting module 1903 is used to initially shoot the user's face, obtain first facial information, and play the real-time shot image through the display screen.
[0280] The second shooting module 1904 is used to formally shoot the user's face after the first facial information passes the ID photo standard detection, obtain the second facial information, send the second facial information to the platform server, so that the platform server can perform a photo review on the second facial information, feed back the photo review result to the mobile terminal, obtain the second instruction of the mobile terminal, and send the reviewed ID photo and ID code to the mobile terminal according to the second instruction.
[0281] The first shooting module 1903 and the second shooting module 1904 may be shooting modules of the same photographing component.
[0282] Example 6:
[0283] As shown in FIG20 , this embodiment provides a smart photo service device for preventing the leakage of portrait information. The device is applied to a mobile terminal and includes a first instruction sending module 2001, a second instruction sending module 2002, and a service processing module 2003. The description of each module is as follows:
[0284] The first instruction sending module 2001 is used to send the first instruction to the photographing device to enable the photographing device to prepare the shooting environment, initially photograph the user's face, obtain the first facial information, play the real-time photographed picture through the display screen, and after the first facial information passes the ID photo standard detection, formally photograph the user's face, obtain the second facial information, and send the second facial information to the platform server.
[0285] The second instruction sending module 2002 is used to obtain the photo review result sent by the platform server and send the second instruction to the platform server, so that the platform server sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction.
[0286] The business processing module 2003 is used to receive the verified ID photo and ID code sent by the platform server and perform business processing.
[0287] The first instruction sending module 2001 and the second instruction sending module 2002 may be sending modules of the same transmission component.
[0288] Example 7:
[0289] As shown in FIG21 , this embodiment provides a smart photo service device for preventing the leakage of portrait information. The device is applied to a platform server and includes a photo review module 2101 and a sending module 2102 . The description of each module is as follows:
[0290] The photo review module 2101 is used to obtain the second facial information sent by the camera device, perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal. The second facial information is the user facial information officially captured by the camera device.
[0291] The sending module 2102 is used to obtain a second instruction from the mobile terminal, and send the verified ID photo and ID code to the mobile terminal according to the second instruction.
[0292] It should be noted that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure can be divided into different functional modules to complete all or part of the functions described above.
[0293] Example 8:
[0294] This embodiment provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the smart photo service method of the above embodiment 1 is implemented as follows:
[0295] Identify the user and guide the shooting based on the user's actions;
[0296] Obtaining the first instruction sent by the mobile terminal and preparing the shooting environment;
[0297] Initially capture the user's face, obtain the first facial information, and play the real-time captured image on the display screen;
[0298] After the first facial information passes the ID photo standard detection, the user's face is officially photographed to obtain the second facial information, and the second facial information is sent to the platform server so that the platform server can perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal, obtain the second instruction of the mobile terminal, and according to the second instruction, send the reviewed ID photo and ID code to the mobile terminal.
[0299] Example 9:
[0300] This embodiment provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the smart photo service method of the above embodiment 2 is implemented as follows:
[0301] Sending a first instruction to the camera device to prepare the shooting environment, initially capturing the user's face to obtain first facial information, and playing the captured image in real time on the display screen. After the first facial information passes the ID photo standard test, formally capturing the user's face to obtain second facial information, and sending the second facial information to the platform server;
[0302] Obtaining the photo review result sent by the platform server, and sending a second instruction to the platform server, so that the platform server sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction;
[0303] Receive the reviewed ID photo and ID code sent by the platform server and conduct business processing.
[0304] Example 10:
[0305] This embodiment provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the smart photo service method of the above embodiment 3 is implemented as follows:
[0306] Obtaining second facial information sent by the camera device, performing a photo review on the second facial information, and feeding back the photo review result to the mobile terminal, wherein the second facial information is user facial information formally captured by the camera device;
[0307] Obtain a second instruction from the mobile terminal, and send the verified ID photo and ID code to the mobile terminal according to the second instruction.
[0308] It should be noted that the computer-readable storage medium in the above-mentioned embodiments may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0309] In this embodiment, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution device, apparatus, or device. Furthermore, in this embodiment, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution device, apparatus, or device. The computer program contained on a computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0310] The computer readable storage medium can be written in one or more programming languages or a combination thereof to implement the computer program of the present embodiment, including object-oriented programming languages such as Java, Python, C++, and conventional procedural programming languages such as C or similar programming languages. The program can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect via the Internet).
[0311] In summary, the smart photo service of the present invention adopts a platform-centralized information management method. The entire process from photo device configuration, photo review and processing, to information transmission is uniformly managed by the platform server, prohibiting unauthorized third parties from obtaining portrait information and preventing portrait information leakage. Users only need to conduct simple interactions through mobile terminals to obtain portrait photos and unique ID codes containing information of multiple ID photos. Users can use the ID code to handle different businesses, and use one photo for multiple purposes without the need to keep cumbersome documents.
[0312] The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes based on the technical solution and invention concept of the present invention within the scope disclosed by the present invention, which falls within the scope of protection of the present invention.
Claims
1. A smart photo service method for preventing leakage of portrait information, applied to a photo device, characterized in that: The method comprises: Identify the user and guide the shooting based on the user's actions; Obtaining a first instruction sent by the mobile terminal and preparing a shooting environment; Initially capture the user's face, obtain the first face information, and play the real-time captured image on the display screen; After the first facial information passes the ID photo standard detection, the user's face is formally photographed to obtain the second facial information, and the second facial information is sent to the platform server, so that the platform server can perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal, obtain the second instruction of the mobile terminal, and according to the second instruction, send the reviewed ID photo and ID code to the mobile terminal.
2. The smart photo service method according to claim 1, characterized in that: After initially photographing the user's face to obtain first face information and playing the real-time photographed image on the display screen, the method further includes: Perform ID photo standard detection on the first person's facial information; If the ID photo standard test result does not meet the ID photo standard, the camera is adjusted to re-photograph the user's face according to the ID photo standard test result to obtain new first face information until the ID photo standard test result passes the test.
3. The smart photo service method according to claim 1, characterized in that: After initially photographing the user's face to obtain first face information and playing the real-time photographed image on the display screen, the method further includes: Sending the first instruction and the first facial information to the platform server, so that the platform server performs a document photo standard detection on the first facial information; Obtain the ID photo standard test result fed back by the platform server. If the ID photo standard test result does not meet the ID photo standard, adjust the camera to re-shoot the user's face according to the ID photo standard test result to obtain new first face information, until the ID photo standard test result passes the test.
4. The smart photo service method according to any one of claims 2-3, characterized in that: The step of adjusting the photographing device comprises: Control the lifting and lowering of the camera component, and / or control the fill light, and / or control the speaker to play voice and the display to play animation to guide the user to organize by themselves.
5. The smart photo service method according to claim 4, characterized in that: The controlling the lifting of the photographing component includes: adjusting the position of the photographing component according to the first face information to achieve an optimal shooting height; The controlling of the fill light includes: using a segmentation model to segment a skin area in the first face information, calculating the light intensity distribution in the skin area, calculating the shadow position, and adjusting the fill light intensity to achieve an optimal lighting shooting environment; The guiding the user to arrange by themselves includes: guiding the user to correct facial expressions, hair, posture and clothing accessories according to the standard detection results of the ID photo.
6. The smart photo service method according to claim 1, characterized in that: The sending of the second facial information to the platform server so that the platform server performs a photo review on the second facial information includes: Performing photo processing on the second facial information, and sending the processed second facial information to the platform server, so that the platform server performs photo review on the processed second facial information; Or the second facial information is sent to the platform server so that the platform server performs photo processing on the second facial information and performs photo review on the processed second facial information.
7. The smart photo service method according to claim 6, characterized in that: The photo processing includes photo cropping, color adjustment, hair edge processing and background color change according to the document type in the first instruction; The hair edge treatment includes: Divide the second face information into a static area and a dynamic area, wherein the static area includes the head, body, clothes and dense hair, and the dynamic area includes the sparse hair and the background; Calculating a distance function of the quiet zone to obtain a rough contraction direction of the hair, the distance function comprising a first curve and a second curve, the first curve representing a contour of the quiet zone, the second curve representing a curve equidistant from the first curve, such that the second curve includes most of the hair, and an annular area enclosed by the first curve and the second curve is a calculation area; According to the annular area, the distance function is recalculated, and the distance at the edge of the annular area is defined as 0, the distance inside the annular area is negative, and the distance outside the annular area is positive. Perform finite element segmentation and finite element calculation on the annular area to obtain the displacement of each pixel point; The second face information is changed according to the displacement, and the changed dynamic area and the unchanged static area are combined to obtain the changed second face information.
8. The smart photo service method according to claim 7, characterized in that: The finite element segmentation and finite element calculation are performed on the annular area to obtain the displacement of each pixel point, including: The size distribution function of the finite element triangle is obtained by solving the first-order nonlinear partial differential equation on the annular region; According to the size distribution function of finite element triangles and the calculation of hyperstatic structures in structural mechanics, the triangulated network is obtained by solving the partial differential equations of structural mechanics. In the triangulated network area, the partial differential equation of fluid mechanics is solved to obtain the displacement of the corresponding triangulated mesh, and the displacement of each pixel is calculated through triangulated interpolation.
9. The smart photo service method according to claim 1, characterized in that: The identifying of the user comprises: When a user appears in front of the camera, the camera senses the user and performs face detection on the user. Multiple facial key points are obtained from the user's face detection frame to form the most basic facial features map, so as to determine whether the head posture of the person being photographed is correct. The key points of the person's limbs are obtained from the person detection frame, and used as a basis to determine whether the person's posture is correct, whether the hand is raised, or whether there is any occlusion.
10. The smart photo service method according to any one of claims 1-3, 5-8, characterized in that: Before the identification of the user and the guidance of the shooting according to the user's action, the method further includes: obtaining the mini program code sent by the platform server and displaying the mini program code on the display screen; The obtaining of the first instruction sent by the mobile terminal includes: obtaining the first instruction sent by the mobile terminal after scanning the mini-program code displayed on the display screen.
11. A smart photo service method for preventing leakage of portrait information, applied to a mobile terminal, characterized in that: The method comprises: Sending a first instruction to a camera device to prepare a shooting environment, initially shooting a user's face, obtaining first facial information, playing a real-time shot image through a display screen, and after the first facial information passes a standard ID photo test, formally shooting the user's face, obtaining second facial information, and sending the second facial information to a platform server; Obtain the photo review result sent by the platform server, and send a second instruction to the platform server, so that the platform server sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction; Receive the reviewed ID photo and ID code sent by the platform server and process the business.
12. The smart photo service method according to claim 11, characterized in that: When the photo review result is qualified, the second instruction includes payment, photo download and receipt; When the photo review result is unqualified, the second instruction includes the option of taking a new photo.
13. A smart photo service method for preventing leakage of portrait information, applied to a platform server, characterized in that: The method comprises: Acquire second facial information sent by the camera device, perform photo review on the second facial information, and feed back the photo review result to the mobile terminal, wherein the second facial information is the user facial information formally captured by the camera device; A second instruction of the mobile terminal is obtained, and according to the second instruction, the verified ID photo and ID code are sent to the mobile terminal.
14. The smart photo service method according to claim 13, characterized in that: Before obtaining the second face information sent by the camera device, performing a photo review on the second face information, and feeding back the photo review result to the mobile terminal, the method further includes: Obtaining a first instruction and first facial information sent by a camera device, and performing a standard ID photo detection on the first facial information; The standard test result of the ID photo is sent to the camera device so that the camera device can judge the standard test result of the ID photo. If the standard test result of the ID photo does not meet the ID photo standard, the camera device is adjusted to re-photograph the user's face according to the standard test result of the ID photo until the standard test result of the ID photo passes the test; if the standard test result of the ID photo passes the test, the user's face is formally photographed to obtain the second face information, and the second face information is sent to the platform server.
15. The smart photo service method according to claim 13, characterized in that: The step of obtaining the second facial information sent by the camera device and performing a photo review on the second facial information includes: Acquire the second facial information sent by the camera device, perform photo processing on the second facial information, and perform photo review on the processed second facial information; Or obtain the processed second facial information sent by the camera device, and perform a photo review on the processed second facial information.
16. The smart photo service method according to claim 15, characterized in that: The photo processing includes photo cropping, color adjustment, hair edge processing and background color change according to the document type in the first instruction; The hair edge treatment includes: Divide the second face information into a static area and a dynamic area, wherein the static area includes the head, body, clothes and dense hair, and the dynamic area includes the sparse hair and the background; Calculating a distance function of the quiet zone to obtain a rough contraction direction of the hair, the distance function comprising a first curve and a second curve, the first curve representing a contour of the quiet zone, the second curve representing a curve equidistant from the first curve, such that the second curve includes most of the hair, and an annular area enclosed by the first curve and the second curve is a calculation area; According to the annular area, the distance function is recalculated, and the distance at the edge of the annular area is defined as 0, the distance inside the annular area is negative, and the distance outside the annular area is positive. The annular area is segmented and calculated by finite element to obtain the displacement of each pixel point. The second face information is changed according to the displacement, and the changed dynamic area and the unchanged static area are combined to obtain the changed second face information.
17. The smart photo service method according to claim 16, characterized in that: The finite element segmentation and finite element calculation are performed on the annular area to obtain the displacement of each pixel point, including: The size distribution function of the finite element triangle is obtained by solving the first-order nonlinear partial differential equation on the annular region; According to the size distribution function of finite element triangles and the calculation of hyperstatic structures in structural mechanics, the triangulated network is obtained by solving the partial differential equations of structural mechanics. In the triangulated network area, the partial differential equation of fluid mechanics is solved to obtain the displacement of the corresponding triangulated mesh, and the displacement of each pixel is calculated through triangulated interpolation.
18. The smart photo service method according to any one of claims 13 to 17, characterized in that: The step of sending the verified ID photo and ID code to the mobile terminal includes: The ID photo is encrypted and stored in the database, and the encrypted ID photo information is converted into a ID QR code; the ID QR code is sent to the authorized third-party system intranet, and the ID photo and ID QR code are sent to the mobile terminal.
19. A smart photo service device for preventing leakage of portrait information, applied to a photo device, characterized in that: The device comprises: The recognition module is used to recognize the user and guide the shooting according to the user's actions; A shooting environment module, used to obtain a first instruction sent by the mobile terminal and prepare a shooting environment; The first shooting module is used to initially shoot the user's face, obtain the first face information, and play the real-time shot picture through the display screen; The second shooting module is used to formally shoot the user's face after the first facial information passes the ID photo standard detection, obtain the second facial information, and send the second facial information to the platform server so that the platform server can perform a photo review on the second facial information, and feed back the photo review result to the mobile terminal, obtain the second instruction of the mobile terminal, and send the reviewed ID photo and ID code to the mobile terminal according to the second instruction.
20. A smart photo service device for preventing leakage of portrait information, applied to a mobile terminal, characterized in that: The device comprises: A first instruction sending module is used to send a first instruction to a camera device, so that the camera device prepares a shooting environment, initially shoots a user's face, obtains first facial information, plays the real-time shot picture through a display screen, and after the first facial information passes the ID photo standard detection, formally shoots the user's face, obtains second facial information, and sends the second facial information to the platform server; A second instruction sending module, used for obtaining the photo review result sent by the platform server, and sending a second instruction to the platform server, so that the platform server sends the reviewed ID photo and ID code to the mobile terminal according to the second instruction; The business processing module is used to receive the reviewed ID photo and ID code sent by the platform server to process the business.
21. A smart photo service device for preventing leakage of portrait information, applied to a platform server, characterized in that: The device comprises: a photo review module, used to obtain second facial information sent by the camera device, perform photo review on the second facial information, and feed back the photo review result to the mobile terminal, wherein the second facial information is the user facial information formally photographed by the camera device; The sending module is used to obtain a second instruction from the mobile terminal, and send the verified ID photo and ID code to the mobile terminal according to the second instruction.
22. A smart photo service system for preventing leakage of portrait information, characterized in that: The system includes a photographing device, a mobile terminal and a platform server, wherein the photographing device is connected to the mobile terminal, and the platform server is connected to the photographing device and the mobile terminal respectively; The photographing device is used to execute the smart photographing service method according to any one of claims 1 to 10; The mobile terminal is used to execute the smart photo service method according to any one of claims 11-12; The platform server is used to execute the smart photo service method described in any one of claims 13-18.
23. A photographing device, comprising a processor and a memory for storing a program executable by the processor, characterized in that: When the processor executes the program stored in the memory, the smart photo service method described in any one of claims 1-10 is implemented.
24. A mobile terminal comprising a processor and a memory for storing a program executable by the processor, characterized in that: When the processor executes the program stored in the memory, the smart photo service method described in any one of claims 11-12 is implemented.
25. A platform server, comprising a processor and a memory for storing a program executable by the processor, characterized in that: When the processor executes the program stored in the memory, the smart photo service method described in any one of claims 13-18 is implemented.
26. A storage medium storing a program, characterized in that: When the program is executed by the processor, the smart photo-taking service method described in any one of claims 1-18 is implemented.
Citation Information
Patent Citations
Method, server and system for collecting and making electronic photo
CN102063659A
Self-service identification photo system based on intelligent terminal
CN103986856A
Self-service type snapshooting equipment and method
CN106652228A
Self-service certificate photo shooting device
CN106709711A
Self-service panoramic image shooting method and related equipment
CN110213482A
