Identification photo acquisition system and method based on artificial intelligence and cloud database

Through the ID photo collection system based on artificial intelligence and cloud database, using the shooting data package and processing module, the problem of inconvenience and inaccuracy in ID photo collection in the existing technology is solved, and the independent collection and high-quality output of ID photos are realized.

CN118747225AInactive Publication Date: 2024-10-08GUANGZHOU PARAMETERS INFORMATION & TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410938495.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-13
Publication Date
2024-10-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology lacks a cloud database-based ID photo collection system, which cannot effectively match ID photos and identity information, and the format requirements are not prompt enough, making the collection process inconvenient and inaccurate.

Method used

An ID photo collection system based on artificial intelligence and cloud database is used to generate shooting requirements through the client and upload them to the cloud database. The cloud database generates shooting data packages and processes ID photos, provides multiple formats and clothing templates, and utilizes edge reconstruction and facial recognition. Nudity processing formula optimizes photo quality.

Benefits of technology

It realizes the autonomous collection process of ID photos, simplifies user operations, improves photo quality and user satisfaction, and meets the format and facial exposure requirements of ID photos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747225A_ABST
    Figure CN118747225A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, and discloses an identification photo acquisition system and method based on artificial intelligence and a cloud database, the system comprises the cloud database and a user side, and the method corresponds to the system. According to the application, the photographing demand and the acquisition of the first identification photo are realized through the user side, and a data basis is provided for the cloud database to execute the corresponding operation; the acquisition of the shooting data packet is realized through the cloud database; the automatic processing of the first identification photo is realized through an edge reconstruction formula and a face exposure processing formula in a cloud database. And finally, autonomy of an identification photo acquisition process based on artificial intelligence and a cloud database is realized.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present application relates to the field of image processing technology, and specifically to a system and method for collecting ID photos based on artificial intelligence and cloud database. Background Art

[0002] With the popularity of smart phones, people's photo-taking in daily life has also shifted from dedicated cameras to smart phones; as ID photos are common in daily life and have high requirements for photos, research on their shooting and collection is very necessary.

[0003] Chinese patent number CN202010259953.5 discloses a mobile-based academic certificate photo collection system and method, which replaces the traditional on-site centralized collection mode with a mobile terminal collection mode, so that users can arrange image collection according to their actual time and / or location, and the identity information and student information verification and association, image shooting data storage and transfer, image review and correction, and image upload involved in the image collection process are all integrated and completed on the mobile terminal, which can greatly simplify the steps of academic certificate photo collection and improve the security of collected data, the convenience, timeliness and accuracy of collection operations. However, it only judges the matching relationship between the certificate photo and the identity information, and only makes suggestive suggestions on the format requirements of the certificate photo.

[0004] In summary, the prior art lacks a technical solution for collecting ID photos based on a cloud database. Summary of the invention

[0005] The purpose of this application is to provide a system and method for collecting ID photos based on artificial intelligence and cloud database to solve the technical problems raised in the above background technology.

[0006] To achieve the above objectives, this application discloses the following technical solutions:

[0007] In a first aspect, the present application discloses a system for collecting ID photos based on artificial intelligence and a cloud database, the system comprising: a cloud database and a user terminal;

[0008] The cloud database is configured to: store a plurality of ID photo formats and corresponding image data, receive the ID photo requirements uploaded by the user terminal and generate a shooting data packet and transmit it back to the user terminal, receive the first ID photo uploaded by the user terminal, process it to obtain a second ID photo and transmit the second ID photo back to the user terminal;

[0009] The user terminal is configured to: generate the ID photo requirement and upload it to the cloud database, receive the shooting data packet, shoot the ID photo to obtain the first ID photo and upload it to the cloud database, and receive the second ID photo.

[0010] Through the above, the photo-taking requirement and the acquisition of the first ID photo are realized through the user terminal, providing a data basis for the cloud database to perform corresponding operations; the generation of the shooting data packet and the second ID photo is realized through the cloud database.

[0011] Preferably, the cloud database further comprises a shooting data packet generation module and a second ID photo generation module;

[0012] The shooting data packet generation module is configured to: receive the ID photo requirement, and generate the corresponding shooting data packet based on the ID photo requirement;

[0013] The second ID photo generating module is configured to: receive the first ID photo, and process the first ID photo to obtain the second ID photo.

[0014] Through the above, the shooting data packet provides data support for the shooting of the first ID photo; the second ID photo generation module realizes the processing of the first ID photo, and realizes the automatic generation of the ID photo that meets the ID photo requirements.

[0015] Preferably, the generating of the corresponding shooting data packet based on the ID photo requirement specifically includes:

[0016] Analyze the ID photo requirements to obtain required shooting elements, including ID photo file format and size requirements, ID photo size requirements, ID photo background, ID photo clothing requirements, and ID photo facial exposure requirements;

[0017] The shooting elements are used to traverse a variety of ID photo formats and corresponding image data stored in the cloud database, the image data is configured to provide a variety of ID photo background templates and a variety of ID photo clothing templates, the corresponding image data are filtered out, and the filtered corresponding image data are packaged to obtain the shooting data packet.

[0018] Through the above, by analyzing the needs of ID photos, it is possible to match the corresponding ID photo background template and ID photo clothing template in the cloud database, providing the necessary technical means to simplify the ID photo shooting process and improve user experience.

[0019] Preferably, the step of taking a photo of an ID to obtain the first ID photo specifically includes:

[0020] The user terminal receives the shooting data packet, obtains an ID photo background template and an ID photo clothing template corresponding to the ID photo requirement, and uses the ID photo background template and the ID photo clothing template to shoot to obtain the first ID photo.

[0021] Through the above, users use the ID photo background template and ID photo clothing template provided by the shooting data package to simplify the preparation process of ID photo shooting; the acquisition of the first ID photo provides data support for obtaining the second ID photo; the acquisition process of the first ID photo also standardizes the acquisition of the original ID photo, reducing unnecessary calculations.

[0022] Preferably, the processing of the first ID photo specifically includes:

[0023] defining the boundary between the portrait in the ID photo and the background template and clothing template of the ID photo as an edge, and capturing the edge in the first ID photo;

[0024] The hue information of each pixel of the edge on the portrait side is collected, and the hue information includes brightness and purity, and the in, is the pixel numbered i on the portrait side, is the brightness of the pixel numbered i on the portrait side, is the purity of the pixel numbered i on the portrait side;

[0025] The ID photo background template and the ID photo clothing template are defined as a first template;

[0026] The hue information is collected for each pixel of the edge on the first template side to obtain in, is the pixel numbered j on the first template side, is the brightness of the pixel numbered j on the first template side, is the purity of the pixel numbered j on the first template side;

[0027] Establishing a one-to-one correspondence between pixels on the edge on the portrait side and pixels adjacent to the first template side, wherein the one-to-one correspondence satisfies i=j;

[0028] The ID photo edge reconstruction formula is used to reconstruct each pixel on the edge. The ID photo edge reconstruction formula is:

[0029]

[0030] in, is the reconstructed pixel numbered j on the first template side after reconstruction, is the brightness of the reconstructed pixel numbered j on the first template side after reconstruction, is the purity of the reconstructed pixel numbered j on the first template side after reconstruction, is the brightness of pixel number i on the portrait side collected before reconstruction, is the brightness of the pixel numbered j on the first template side collected before reconstruction, is the purity of the pixel numbered i on the portrait side collected before reconstruction, is the purity of the pixel numbered j on the first template side collected before reconstruction;

[0031] The reconstructed pixels Covering the pixels corresponding to the first template side

[0032] The reconstructed ID photo is defined as the ID photo to be verified, and the ID photo to be verified is tested.

[0033] Based on the above, the edge reconstruction formula is used to optimize the edges and reduce the sense of splicing in the ID photo.

[0034] Preferably, the testing of the photo to be verified specifically includes:

[0035] The photo to be verified is tested using a test formula for the photo to be verified, and the test formula for the photo to be verified is:

[0036]

[0037] Among them, Pix test Bri is the pixel hue indicator of the photo to be verified. test Pur is the pixel brightness index of the photo to be verified. test is the pixel purity index of the photo to be verified. It means that the brightness of the pixel numbered i on each portrait side and the brightness of the reconstructed pixel numbered j on each reconstructed first template side are subtracted and summed. represents the sum of the differences between the purity of the pixel numbered i on each portrait side and the purity of the reconstructed pixel numbered j on each reconstructed first template side, and max(i) represents the maximum value of numbered i;

[0038] Preset pixel hue index threshold for the photo to be verified when When the photo to be verified is output to obtain the verified photo, the verified photo is subjected to face exposure processing, otherwise the edge reconstruction formula of the ID photo is used again to reconstruct the edge in the photo to be verified until Pix test ≤Pix test0 Established.

[0039] Through the above, the quality of the second ID photo finally output is guaranteed by detecting the ID photo to be verified; by repeatedly reconstructing the edges of the ID photo to be verified that does not meet the verification requirements, the edges are gradually optimized, reducing the splicing feeling of the ID photo while improving user satisfaction.

[0040] Preferably, the facial exposure processing of the verified ID photo specifically includes:

[0041] The junction of the hair and the face in the portrait part of the verified ID photo is defined as the exposed processing area;

[0042] The exposed processing area is captured in the verified ID photo to obtain a pixel numbered n on the side of the face. facn and the pixel numbered m on the hair side hairm ;

[0043] The exposed area is subjected to facial exposure processing using a facial exposure processing formula, wherein the facial exposure processing formula is:

[0044] Pix rec.hairm =Pix facn

[0045] Among them, Pix rec.hairm is the pixel numbered m on the reconstructed hair side;

[0046] The pixel Pix on the hair side with the number m and m=n hairm Use the pixel numbered n on the side of the face, Pix facn The pixels are covered;

[0047] Retrieve the requirement for exposed facial part of the ID photo, determine whether the verified ID photo meets the requirement for exposed facial part of the ID photo, if yes, output the verified ID photo and obtain the ID photo to be modified, perform format processing on the ID photo to be modified, otherwise, perform facial exposure processing on the exposed processing area using the facial exposure processing formula again, until the verified ID photo meets the requirement for exposed facial part of the ID photo.

[0048] Through the above, the output of the exposed processing area is realized through the facial exposure processing formula, so that the second ID photo finally output meets the facial exposure part requirement in the ID photo requirements. The process is completed autonomously, reducing the user's operation, simplifying the ID photo acquisition process, and thus improving user satisfaction.

[0049] Preferably, the formatting of the ID photo to be modified specifically includes:

[0050] Obtain the ID photo file format and size requirements and the ID photo size requirements;

[0051] The ID photo to be modified is formatted using the ID photo file format and size requirements and the ID photo size requirements to obtain a second ID photo, which is then transmitted to the user terminal.

[0052] Through the above, the second ID photo that meets the ID photo requirements is obtained by formatting the ID photo to be modified, and the simplification of the format processing process provides technical support for improving user satisfaction.

[0053] Preferably, the user terminal receives the second ID photo and determines whether it meets the user's requirements. If so, the user saves the second ID photo; otherwise, the user makes adjustments on his own.

[0054] Through the above, the closed loop of the ID photo collection process is realized through the user's own judgment, and reasonable space is provided for the user's personalized needs based on the second ID photo, thereby improving user satisfaction.

[0055] In a second aspect, the present application discloses a method for collecting ID photos based on artificial intelligence and a cloud database. The method is applicable to the ID photo collection system based on artificial intelligence and a cloud database as described above, and is characterized in that the method comprises the following steps:

[0056] S1: Obtain ID photo requirements;

[0057] S2: Generate a shooting data packet based on the ID photo requirement;

[0058] S3: parsing the photographed data packet to obtain a background template and a clothing template for the ID photo;

[0059] S4: Taking a first ID photo using the ID photo background template and the ID photo clothing template;

[0060] S5: Process the first ID photo to obtain a second ID photo, and transmit the second ID photo;

[0061] S6: Obtain the second ID photo, and process the second ID photo based on user selection.

[0062] Through the above, the technical effect of the ID photo collection system based on artificial intelligence and cloud database is achieved through the ID photo collection method based on artificial intelligence and cloud database.

[0063] Beneficial effects: The ID photo collection system and method based on artificial intelligence and cloud database of the present application realizes the photo taking demand and the acquisition of the first ID photo through the user end, and provides a data basis for the cloud database to perform corresponding operations; the acquisition of the shooting data packet is realized through the cloud database; the automatic processing of the first ID photo is realized through the edge reconstruction formula and the face exposure processing formula in the cloud database. Finally, the autonomy of the ID photo collection process based on artificial intelligence and cloud database is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0065] Figure 1 A schematic block diagram of a system for collecting ID photos based on artificial intelligence and cloud database provided in an embodiment of the present application;

[0066] Figure 2 A flowchart of a method for collecting ID photos based on artificial intelligence and cloud database provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0068] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0069] The first aspect of this embodiment discloses Figure 1 A system for collecting ID photos based on artificial intelligence and cloud database is shown, the system comprising: a cloud database and a user terminal;

[0070] The cloud database is configured to: store multiple ID photo formats and corresponding image data, receive ID photo requirements uploaded by a user terminal and generate a shooting data packet and transmit it back to the user terminal, receive a first ID photo uploaded by the user terminal, process it to obtain a second ID photo and transmit the second ID photo back to the user terminal, wherein the corresponding image data may be, but is not limited to, background templates of various colors used when taking the first ID photo, such as white background, blue background and red background, and multiple ID photo clothing templates for users to choose, such as black collar, white collar and tie;

[0071] The user end is configured as follows: generating a demand for an ID photo and uploading it to a cloud database, receiving a shooting data packet, taking an ID photo to obtain a first ID photo and uploading it to a cloud database, and receiving a second ID photo.

[0072] The need to take photos and obtain the first ID photo are realized through the user end, providing a data basis for the cloud database to perform corresponding operations; the generation of shooting data packets and the second ID photo is realized through the cloud database.

[0073] Specifically, it is characterized in that the cloud database also includes a shooting data packet generation module and a second ID photo generation module;

[0074] The shooting data packet generation module is configured to: receive a ID photo requirement, and generate a corresponding shooting data packet based on the ID photo requirement;

[0075] The second ID photo generating module is configured to: receive the first ID photo, and process the first ID photo to obtain the second ID photo.

[0076] The shooting data packet provides data support for shooting the first ID photo; the second ID photo generation module realizes the processing of the first ID photo, and realizes automatic generation of the ID photo that meets the ID photo requirements.

[0077] Specifically, the corresponding shooting data package is generated based on the ID photo requirements, including:

[0078] Analyze the ID photo requirements and obtain the required shooting elements, including the ID photo file format and size requirements, ID photo size requirements, ID photo background, ID photo clothing requirements, and ID photo facial exposure requirements;

[0079] It should be noted that the file format and size requirements refer to the size of the file in the storage format of the ID photo, such as JPEG and ≤1M; the ID photo size requirement refers to the size of the printed ID photo, such as 1 inch; the ID photo background refers to the background color of the ID photo, such as a blue background; the ID photo dress requirements refer to the requirements for the clothing exposed in the ID photo, such as a black jacket; the ID photo facial exposure requirements refer to the main features of the exposed face, such as the distance from the hair to the eyebrows.

[0080] The shooting elements are used to traverse various ID photo formats and corresponding image data stored in the cloud database. The image data is configured to provide a variety of ID photo background templates and a variety of ID photo clothing templates, filter out the corresponding image data, and package the filtered corresponding image data to obtain a shooting data packet.

[0081] By analyzing the requirements for ID photos, we can match the corresponding ID photo background templates and ID photo clothing templates in the cloud database, providing the necessary technical means to simplify the ID photo shooting process and improve user experience.

[0082] Specifically, taking a photo for an ID card to obtain a first ID card photo specifically includes:

[0083] The user end receives the shooting data packet, obtains an ID photo background template and an ID photo clothing template corresponding to the ID photo requirements, and uses the ID photo background template and the ID photo clothing template to shoot to obtain a first ID photo.

[0084] Users use the ID photo background template and ID photo clothing template provided by the shooting data package to simplify the preparation process of ID photo shooting; the acquisition of the first ID photo provides data support for obtaining the second ID photo; the acquisition process of the first ID photo also standardizes the acquisition of the original ID photo, reducing unnecessary calculations.

[0085] Specifically, the first ID photo is processed, including:

[0086] The border between the portrait in the ID photo and the background template and the clothing template of the ID photo is defined as an edge, and the edge in the first ID photo is captured, wherein the technology for capturing the edge in the first ID photo can be any one of the existing technologies;

[0087] The hue information of each pixel on the portrait side is collected. The hue information includes brightness and purity. pori (Bri pori ,Pur pori ), where Pix pori For the pixel numbered i on the portrait side, Bri pori is the brightness of the pixel numbered i on the portrait side, Pur pori is the purity of the pixel numbered i on the portrait side;

[0088] Define the ID photo background template and the ID photo clothing template as the first template;

[0089] The hue information of each pixel on the edge of the first template is collected to obtain in, is the pixel numbered j on the first template side, is the brightness of the pixel numbered j on the first template side, is the purity of the pixel numbered j on the first template side;

[0090] A one-to-one correspondence is established between the pixels on the edge adjacent to the portrait side and the first template side, and the one-to-one correspondence relationship satisfies i=j;

[0091] It should be noted that the portrait side and the first template side use the same numbering rule when numbering, for example, all numbering rules are increased from left to right, so as to ensure the accuracy of i=j matching.

[0092] The ID photo edge reconstruction formula is used to reconstruct each pixel on the edge. The ID photo edge reconstruction formula is:

[0093]

[0094] in, is the reconstructed pixel numbered j on the first template side after reconstruction, is the brightness of the reconstructed pixel numbered j on the first template side after reconstruction, is the purity of the reconstructed pixel numbered j on the first template side after reconstruction, is the brightness of pixel number i on the portrait side collected before reconstruction, is the brightness of the pixel numbered j on the first template side collected before reconstruction, is the purity of the pixel numbered i on the portrait side collected before reconstruction, is the purity of the pixel numbered j on the first template side collected before reconstruction;

[0095] Reconstructing pixels Covering the pixels on the corresponding first template side

[0096] The reconstructed ID photo is defined as the ID photo to be verified, and the ID photo to be verified is tested.

[0097] The edge reconstruction formula is used to optimize the edges, reducing the sense of splicing in ID photos.

[0098] Specifically, the verification document photo is tested, including:

[0099] The photo to be verified is tested using the photo to be verified test formula, which is:

[0100]

[0101] Among them, Pix test Bri is the pixel hue indicator of the photo to be verified. test Pur is the pixel brightness index of the photo to be verified.test is the pixel purity index of the photo to be verified. It means that the brightness of the pixel numbered i on each portrait side and the brightness of the reconstructed pixel numbered j on each reconstructed first template side are subtracted and summed. represents the sum of the difference between the purity of the pixel numbered i on each portrait side and the purity of the reconstructed pixel numbered j on each reconstructed first template side, and max(i) represents the maximum value of numbered i, that is, the total number of pixels on the portrait side of the edge;

[0102] Preset pixel hue index threshold for the photo to be verified when When , the photo to be verified is output to obtain the verified photo, and the verified photo is subjected to facial exposure processing. Otherwise, the edge reconstruction formula of the ID photo is used again to reconstruct the edge of the photo to be verified until Established.

[0103] It should be noted that the edge reconstruction formula of the ID photo is repeatedly used to reconstruct the edge of the ID photo to be verified so that the transition at the edge is gradually natural.

[0104] By detecting the ID photo to be verified, the quality of the second ID photo that is finally output is guaranteed; by repeatedly reconstructing the edges of the ID photo that does not meet the verification requirements, the edges are gradually optimized, reducing the splicing feeling of the ID photo while improving user satisfaction.

[0105] Specifically, the facial exposure of the verified ID photo includes:

[0106] The junction of the hair and the face in the portrait of the verified ID photo is defined as the exposed processing area;

[0107] Capture the exposed area in the verified photo and obtain the pixel numbered n on the side of the face and pixel numbered m on the hair side The technology for capturing the exposed processing area in the verified document photo may be any one of the existing image processing technologies;

[0108] The facial exposure treatment formula is used to perform facial exposure treatment on the exposed treatment area. The facial exposure treatment formula is:

[0109] Pix rec.hairm =Pix facn

[0110] Among them, Pix rec.hairm is the pixel numbered m on the reconstructed hair side;

[0111] The pixel Pix on the hair side with the number m and m=nhairm Use the pixel numbered n on the side of the face, Pix facn The pixels are covered;

[0112] It should be noted that the same numbering rule is used for the hair side and the face side during numbering, for example, all numbering rules are increased from left to right, so as to ensure the accuracy of m=n matching.

[0113] Retrieve the requirements for the exposed facial part of the ID photo, and determine whether the verified ID photo meets the requirements for the exposed facial part of the ID photo. If so, output the verified ID photo and obtain the ID photo to be modified, and perform format processing on the ID photo to be modified. Otherwise, use the facial exposure processing formula again to perform facial exposure processing on the exposed processing area until the verified ID photo meets the requirements for the exposed facial part of the ID photo.

[0114] It should be noted that, when performing facial exposure processing on the exposed area using the facial exposure processing formula again, the pixels on the hair side can be taken upwards again, and the same numbering rule can be used to achieve the effect of optimizing the facial exposure processing.

[0115] The output of the exposed processing area is achieved through the facial exposure processing formula, so that the final output second ID photo meets the facial exposure part requirement in the ID photo requirements. The process is completed autonomously, reducing user operations, simplifying the ID photo acquisition process, and thus improving user satisfaction.

[0116] Specifically, the format of the ID photo to be modified includes:

[0117] Obtain the ID photo file format and size requirements and ID photo size requirements;

[0118] The ID photo to be modified is formatted using the ID photo file format and size requirements and the ID photo size requirements to obtain a second ID photo, which is then transmitted to the user end.

[0119] By performing format processing on the ID photo to be modified, a second ID photo that meets the ID photo requirements is obtained. The simplification of the format processing process provides technical support for improving user satisfaction.

[0120] Specifically, the user terminal receives the second ID photo and determines whether it meets the user's requirements. If so, the user saves the second ID photo, otherwise, the user makes adjustments independently.

[0121] It should be noted that, in this embodiment, user-initiated adjustments refer to further adjustments made by the user due to dissatisfaction with the effect of the face, such as skin smoothing. This adjustment is irrelevant to and does not conflict with the requirements for ID photos, and is a personalized need of the user, which is not limited here.

[0122] Through the user's own judgment, a closed loop of the ID photo collection process is achieved, and reasonable space is provided for the user's personalized needs based on the second ID photo, thereby improving user satisfaction.

[0123] The second aspect of this embodiment discloses Figure 2 A method for collecting ID photos based on artificial intelligence and a cloud database is shown, and the method is applicable to the ID photo collection system based on artificial intelligence and a cloud database as described above, and is characterized in that the method comprises the following steps:

[0124] S1: Obtain ID photo requirements;

[0125] S2: Generate a shooting data package based on the ID photo requirements;

[0126] S3: Parse the shooting data packet to obtain the ID photo background template and the ID photo clothing template;

[0127] S4: Taking a first ID photo using the ID photo background template and the ID photo clothing template;

[0128] S5: Process the first ID photo to obtain a second ID photo, and transmit the second ID photo;

[0129] S6: Obtain a second ID photo, and process the second ID photo based on user selection.

[0130] The technical effect of the ID photo collection system based on artificial intelligence and cloud database is achieved through the ID photo collection method based on artificial intelligence and cloud database.

[0131] In summary, the ID photo collection system and method based on artificial intelligence and cloud database in this embodiment realizes the photo taking demand and the acquisition of the first ID photo through the user end, and provides a data basis for the cloud database to perform corresponding operations; the acquisition of the shooting data packet is realized through the cloud database; the first ID photo is automatically processed through the edge reconstruction formula and the face exposure processing formula in the cloud database. Finally, the ID photo collection process based on artificial intelligence and cloud database is realized to be autonomous.

[0132] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, other electronic units designed to implement the functions described herein or their combination. For software implementation, part or all of the flow of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a computer can access. The computer-readable storage medium can include but is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.

[0133] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A ID photo collection system based on artificial intelligence and cloud database, characterized in that: The system includes: a cloud database and a user terminal; The cloud database is configured to: store a plurality of ID photo formats and corresponding image data, receive the ID photo requirements uploaded by the user terminal and generate a shooting data packet and transmit it back to the user terminal, receive the first ID photo uploaded by the user terminal, process it to obtain a second ID photo and transmit the second ID photo back to the user terminal; The user terminal is configured to: generate the ID photo requirement and upload it to the cloud database, receive the shooting data packet, shoot the ID photo to obtain the first ID photo and upload it to the cloud database, and receive the second ID photo.

2. The ID photo collection system based on artificial intelligence and cloud database according to claim 1 is characterized in that: The cloud database also includes a shooting data packet generation module and a second ID photo generation module; The shooting data packet generation module is configured to: receive the ID photo requirement, and generate the corresponding shooting data packet based on the ID photo requirement; The second ID photo generating module is configured to: receive the first ID photo, and process the first ID photo to obtain the second ID photo.

3. The ID photo collection system based on artificial intelligence and cloud database according to claim 2 is characterized in that: The generating of the corresponding shooting data packet based on the ID photo requirement specifically includes: Analyze the ID photo requirements to obtain required shooting elements, including ID photo file format and size requirements, ID photo size requirements, ID photo background, ID photo clothing requirements, and ID photo facial exposure requirements; The shooting elements are used to traverse a variety of ID photo formats and corresponding image data stored in the cloud database, the image data is configured to provide a variety of ID photo background templates and a variety of ID photo clothing templates, the corresponding image data are filtered out, and the filtered corresponding image data are packaged to obtain the shooting data packet.

4. The ID photo collection system based on artificial intelligence and cloud database according to claim 3 is characterized in that: The step of taking a photo of the ID card to obtain the first ID card photo specifically includes: The user terminal receives the shooting data packet, obtains an ID photo background template and an ID photo clothing template corresponding to the ID photo requirement, and uses the ID photo background template and the ID photo clothing template to shoot to obtain the first ID photo.

5. The ID photo collection system based on artificial intelligence and cloud database according to claim 4 is characterized in that: The processing of the first ID photo specifically includes: defining the boundary between the portrait in the ID photo and the background template and clothing template of the ID photo as an edge, and capturing the edge in the first ID photo; The hue information of each pixel of the edge on the portrait side is collected, and the hue information includes brightness and purity, and the in, is the pixel numbered i on the portrait side, is the brightness of the pixel numbered i on the portrait side, is the purity of the pixel numbered i on the portrait side; The ID photo background template and the ID photo clothing template are defined as a first template; The hue information is collected for each pixel of the edge on the first template side to obtain in, is the pixel numbered j on the first template side, is the brightness of the pixel numbered j on the first template side, is the purity of the pixel numbered j on the first template side; Establishing a one-to-one correspondence between pixels on the edge on the portrait side and pixels adjacent to the first template side, wherein the one-to-one correspondence satisfies i=j; The ID photo edge reconstruction formula is used to reconstruct each pixel on the edge. The ID photo edge reconstruction formula is: in, is the reconstructed pixel numbered j on the first template side after reconstruction, is the brightness of the reconstructed pixel numbered j on the first template side after reconstruction, is the purity of the reconstructed pixel numbered j on the first template side after reconstruction, is the brightness of pixel numbered i on the portrait side collected before reconstruction, is the brightness of the pixel numbered j on the first template side collected before reconstruction, is the purity of the pixel numbered i on the portrait side collected before reconstruction, is the purity of the pixel numbered j on the first template side collected before reconstruction; The reconstructed pixels Covering the pixels corresponding to the first template side The reconstructed ID photo is defined as the ID photo to be verified, and the ID photo to be verified is tested.

6. The ID photo collection system based on artificial intelligence and cloud database according to claim 5 is characterized in that: The testing of the photo to be verified specifically includes: The photo to be verified is tested using a test formula for the photo to be verified, and the test formula for the photo to be verified is: Among them, Pix test Bri is the pixel hue indicator of the photo to be verified. test Pur is the pixel brightness index of the photo to be verified. test is the pixel purity index of the photo to be verified. It means that the brightness of the pixel numbered i on each portrait side and the brightness of the reconstructed pixel numbered j on each reconstructed first template side are subtracted and summed. represents the sum of the differences between the purity of the pixel numbered i on each portrait side and the purity of the reconstructed pixel numbered j on each reconstructed first template side, and max(i) represents the maximum value of numbered i; Preset pixel hue index threshold for the photo to be verified when When the photo to be verified is output to obtain the verified photo, the verified photo is subjected to face exposure processing, otherwise the edge reconstruction formula of the ID photo is used again to reconstruct the edge in the photo to be verified until Established.

7. The ID photo collection system based on artificial intelligence and cloud database according to claim 6 is characterized in that: The facial exposure processing of the verified ID photo specifically includes: The junction of the hair and the face in the portrait part of the verified ID photo is defined as the exposed processing area; The exposed processing area is captured in the verified ID photo to obtain a pixel numbered n on the side of the face. facn and the pixel numbered m on the hair side hairm ; The exposed area is subjected to facial exposure processing using a facial exposure processing formula, wherein the facial exposure processing formula is: Pix rec.hairm =Pix facn Among them, Pix rec.hairm is the pixel numbered m on the reconstructed hair side; The pixel Pix on the hair side with the number m and m=n hairm Use the pixel numbered n on the side of the face, Pix facn The pixels are covered; Retrieve the requirement for exposed facial part of the ID photo, determine whether the verified ID photo meets the requirement for exposed facial part of the ID photo, if yes, output the verified ID photo and obtain the ID photo to be modified, perform format processing on the ID photo to be modified, otherwise, perform facial exposure processing on the exposed processing area using the facial exposure processing formula again, until the verified ID photo meets the requirement for exposed facial part of the ID photo.

8. The ID photo collection system based on artificial intelligence and cloud database according to claim 7 is characterized in that: The format processing of the ID photo to be modified specifically includes: Obtain the ID photo file format and size requirements and the ID photo size requirements; The ID photo to be modified is formatted using the ID photo file format and size requirements and the ID photo size requirements to obtain a second ID photo, which is then transmitted to the user terminal.

9. The ID photo collection system based on artificial intelligence and cloud database according to claim 8 is characterized in that: The user terminal receives the second ID photo and determines whether it meets the user's requirements. If so, the user saves the second ID photo; otherwise, the user makes adjustments on his own.

10. A method for collecting ID photos based on artificial intelligence and cloud database, the method being applicable to the ID photo collection system based on artificial intelligence and cloud database as claimed in any one of claims 1 to 9, characterized in that: The method comprises the following steps: S1: Obtain ID photo requirements; S2: Generate a shooting data packet based on the ID photo requirement; S3: parsing the photographed data packet to obtain a background template and a clothing template for the ID photo; S4: Taking a first ID photo using the ID photo background template and the ID photo clothing template; S5: Process the first ID photo to obtain a second ID photo, and transmit the second ID photo; S6: Obtain the second ID photo, and process the second ID photo based on user selection.

Citation Information

Patent Citations

  • Shooting method and mobile terminal

    CN107613202A

  • Educational background certificate photo standardization processing method based on mobile terminal

    CN111476146A

  • Educational background certificate photo acquisition system and method based on mobile terminal

    CN111476148A

  • Photographing method and device

    CN114466133A

  • Identification photo reloading method and system

    CN114549694A