WO2021027537A1 - 一种拍摄证件照的方法、装置、设备及存储介质 - Google Patents
一种拍摄证件照的方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2021027537A1 WO2021027537A1 PCT/CN2020/104733 CN2020104733W WO2021027537A1 WO 2021027537 A1 WO2021027537 A1 WO 2021027537A1 CN 2020104733 W CN2020104733 W CN 2020104733W WO 2021027537 A1 WO2021027537 A1 WO 2021027537A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- face
- picture
- shooting
- configuration parameter
- image
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
Definitions
- This application relates to the field of artificial intelligence, and in particular to a method, device, equipment, and storage medium for taking ID photos.
- ID photos are taken manually in a photo studio. According to different ID photos, the background color of the photos is manually selected.
- the inventor realizes that this method needs to go to an offline photo studio to shoot, which has space limitations and takes a long time. ,high cost.
- the camera function of mobile phones has basically become a function frequently used by most users. In addition to the most commonly used ordinary camera functions, more and more users choose to use photos taken by mobile phones to make ID photos.
- the present application provides a method, device, equipment, and storage medium for taking ID photos, which can solve the problem of high difficulty in self-service shooting of ID photos and low success rate of obtaining ID photos that meet the requirements of the ID photos in the prior art.
- this application provides a method for taking a photo of an ID, the method includes:
- the shooting device of the terminal After receiving the shooting mode selection instruction triggered by the user based on the terminal, the shooting device of the terminal is activated according to the shooting mode selection instruction, and multiple shooting modes are displayed in the function menu, wherein each shooting mode corresponds to a group Configuration parameters of image features;
- the positioning frame is used to locate the detection that matches the preset shooting object in the picture Object
- the present application also provides a device for photographing ID photos, and the device for shooting ID photos includes the following modules:
- the transceiver module is configured to receive a shooting mode selection instruction triggered by the user based on the terminal, and send the shooting mode selection instruction to the control module;
- the control module is configured to activate the shooting device of the terminal according to the instruction received from the transceiver module, and display multiple shooting modes in the function menu, wherein each shooting mode corresponds to a set of image characteristics Configuration parameters;
- An acquisition module configured to acquire a first configuration parameter based on the target shooting mode selected by the user, and collect a picture taken by the camera according to the first configuration parameter
- the processing module is used to identify the face in the picture taken by the camera according to the face recognition algorithm, and locate the position of the face in the picture through the positioning frame; wherein, the positioning frame is used to locate the The detection object that matches the preset shooting object in the picture; analyzes the face in the picture to determine whether the face in the picture meets the conditions of the first configuration parameter; according to the first configuration
- the parameters standardize the face image to generate the ID photo.
- this application also provides a device for taking a photo of an ID, and the device includes:
- At least one processor, a memory and a transceiver; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory to execute the steps of a method for photographing a passport as described below, include:
- the shooting device of the terminal After receiving the shooting mode selection instruction triggered by the user based on the terminal, the shooting device of the terminal is activated according to the shooting mode selection instruction, and multiple shooting modes are displayed in the function menu, wherein each shooting mode corresponds to a group Configuration parameters of image features;
- the positioning frame is used to locate the detection that matches the preset shooting object in the picture Object
- the present application also provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed, the computer executes the following method for photographing a passport
- the steps include:
- the shooting device of the terminal After receiving the shooting mode selection instruction triggered by the user based on the terminal, the shooting device of the terminal is activated according to the shooting mode selection instruction, and multiple shooting modes are displayed in the function menu, wherein each shooting mode corresponds to a group Configuration parameters of image features;
- the positioning frame is used to locate the detection that matches the preset shooting object in the picture Object
- FIG. 1 is a schematic flow diagram of a method for taking ID photos in an embodiment of this application
- FIG. 2 is a schematic diagram of an interface for displaying a first prompt message on a screen in an embodiment of the application
- FIG. 3 is a schematic diagram of an interface for displaying a second prompt message on a screen according to an embodiment of the application
- FIG. 4 is a schematic diagram of a structure of the device for taking ID photos in an embodiment of the application.
- FIG. 5 is a schematic diagram of a structure of a computer device in an embodiment of the application.
- a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to the clearly listed Those steps or modules may include other steps or modules that are not clearly listed or are inherent to these processes, methods, products, or equipment.
- the division of modules in this application is only a logical division In actual applications, there may be other divisions in implementation. For example, multiple modules may be combined or integrated in another system, or some features may be ignored or not implemented.
- This application provides a method, device, equipment, and storage medium for taking ID photos. It can be used to take ID photos based on artificial intelligence.
- this application mainly provides the following technical solutions:
- FIG. 1 Please refer to FIG. 1, the following describes a method for taking a photo ID in an embodiment of the present application, and the method includes:
- each of the shooting modes refers to a shooting mode that defines a type of ID photo shooting, and each of the shooting modes corresponds to a set of configuration parameters of image features, and the configuration parameters are pre-configured inside the shooting device.
- the ID photo type may include ID card, passport, social security card, driver's license, residence permit, pass and other standard format (also called fixed format) ID types.
- the configuration parameters include at least one of the following parameters: size, background color, pixels, exposure, configuration conditions of the wearing object, configuration conditions of facial texture features, and facial expression configuration conditions; the configuration parameters are provided for the camera Various shooting environments for shooting images.
- the size indicates the size of the ID photo, for example, the ID photo is 32mm*26mm.
- the background color indicates the background color of the ID photo, for example, the background color of the ID photo is white.
- the pixels indicate the resolution of the ID photo.
- Wearables indicate the special requirements of the ID photos for the wearables, such as no hats, no shaved heads, no glasses, no makeup or eyesight, etc., or all five senses must be exposed, such as showing eyes and ears.
- the configuration conditions of the facial texture features include the configuration conditions of the beauty level and the configuration conditions of the blur degree.
- the facial expression configuration conditions include configuration conditions for expressions such as anger, squinting, smiling face, or open mouth.
- the target shooting mode is the ID card shooting mode
- the first configuration parameters corresponding to the ID card shooting mode include size, background color, pixels, exposure, configuration conditions of the wearing object, and facial texture characteristics. Configuration conditions and facial expression configuration conditions;
- the collecting the image shot by the shooting device according to the first configuration parameter corresponding to the target shooting mode includes:
- the shooting mode of the shooting device is switched to the target shooting mode, and the configuration parameters of the shooting device are set to the first configuration parameters by default, so that the shooting device collects according to the first configuration parameters The picture taken by the camera;
- Adjust the to-be-shot image according to the first configuration parameters for example, according to size, background color, pixels, exposure, configuration conditions of wearing objects, configuration conditions of facial texture features, and facial expression configuration conditions, so that the shooting The shooting environment of the device conforms to each parameter in the first configuration parameter;
- the picture to be shot in the shooting device is shot.
- the picture may be a dynamically shot video, and the picture in the picture will not be taken until the user's shooting instruction is not detected.
- the positioning frame is used to locate a detection object matching a preset shooting object in the frame.
- the target shooting mode is used to shoot human faces. If it is detected that the detection object in the picture is a dog face, the positioning frame will not be displayed; if the detection object in the picture is detected as a human face, then The positioning frame is displayed.
- taking into account that it may not be possible to capture a qualified face it is also possible to capture the image captured by the capture device according to the first configuration parameter corresponding to the target capture mode, or before generating the certificate.
- the image captured by the capture device Before taking photos, filter and remind the faces in the picture. Specifically, it can include the following steps:
- the moving direction includes the direction in which the terminal is to be moved or the direction in which the face is to be moved.
- the first prompt information is used to instruct the user to move the face in the screen until all the faces in the screen are displayed; or, the first prompt information is used to instruct the user to move relative to the terminal until the screen is displayed. The face is shown full.
- the first prompt information may be a notification message, a voice prompt, or a horizontal arrow.
- the notification message can float on the screen, and can be in an icon mode, a bullet frame mode, or a bullet screen mode.
- the voice prompt can be "Please raise your head", "Please move to the left", "Please move to the right” or "Please open your eyes", etc.
- the horizontal arrow can be a dynamic arrow. For example, “ ⁇ ” means moving to the right, and “ ⁇ ” means moving to the left. The details are shown in Figure 2.
- the second prompt information may be a notification message, a voice prompt, or a warning icon.
- the notification message can float on the screen, and can be in an icon mode, a bullet frame mode, or a bullet screen mode.
- the voice prompt can be "Please stop moving” or "OK”.
- the warning icon can be a static or dynamic exclamation mark, such as "!, " ⁇ " or "”. The details are shown in Figure 3.
- the exposure of the image in the image is detected, and if the exposure does not meet the requirements of the ID photo (for example, underexposure or overexposure), a third prompt message is sent or the exposure of the image is adaptively adjusted until the exposure The exposure of the picture in the picture meets the conditions of the ID photo.
- the requirements of the ID photo for example, underexposure or overexposure
- processing such as cropping, background color adjustment, and image compression is performed on the face image according to the first configuration parameters to obtain the ID photo.
- processing such as cropping, background color adjustment, and image compression is performed on the face image according to the first configuration parameters to obtain the ID photo.
- the standardized processing of the face image according to the first configuration parameter to generate the ID photo includes:
- the face image is compressed according to the pixels set in the first configuration parameter to obtain an image with a preset resolution size, and the image with the preset resolution size is used as the ID photo.
- the corresponding first configuration parameter is called according to the selected target shooting mode, and the face in the first configuration parameter screen is used for correction and adjustment.
- the face in the first configuration parameter screen is used for correction and adjustment.
- process the face image taken by the camera to get the ID photo it can be seen that by adopting this solution, users do not need to use the camera software provided by a third party to adjust the face image, nor do they need to use other picture editing tools to process the face by themselves. Intelligent and automated generation can be achieved while meeting user expectations and The ID photos with the conditions of ID photos can improve the efficiency of ID photos generation, with low threshold for use and convenient operation, which can improve user experience.
- the collecting the image shot by the shooting device according to the first configuration parameter corresponding to the target shooting mode includes:
- the shooting mode of the shooting device is switched to the target shooting mode, and the configuration parameters of the shooting device are set to the first configuration parameters by default, so that the shooting device collects according to the first configuration parameters The picture taken by the camera;
- the picture to be shot in the shooting device is shot.
- the condition of the first configuration parameter is a positive face condition; the analyzing the face in the screen to determine whether the face in the screen meets the condition of the first configuration parameter includes :
- the key facial features include corresponding feature points such as eyes, cheekbones, nose, mouth, and chin;
- the human face meets the positive face condition. If it is determined that the distance between some or all of the feature points and the proportional relationship between the distances are not within the normal range, it is considered that the face angle does not meet the frontal condition.
- the human face is considered to be a side face, which does not meet the condition of a front face.
- the human face is considered to be a side face, which does not meet the condition of a front face.
- two eyes are identified and one of the eyes is not within the normal range, at least one eye is closed, or the situation is not facing the camera such as looking down or up, it is considered that the human face does not meet the frontal condition ;
- the human face is considered to be a side face, which does not meet the frontal face condition.
- a fourth prompt message is issued, and the fourth prompt The message is used to prompt to adjust the angle of the face in the picture.
- the fourth prompt message is "turn right" or “turn left” and so on.
- the additional conditions can be used to determine whether the face in the picture meets the target shooting mode. Certificate photo conditions.
- the analyzing the human face in the picture to determine whether the human face in the picture meets the condition of the first configuration parameter further includes:
- the wearing objects may include hats, glasses, and clothing.
- the facial texture feature refers to cosmetic traces.
- the target shooting mode is an ID photo and it is recognized that the face contains glasses, it is considered that it does not meet the configuration conditions of the wearing object; if the target shooting mode is a driver's license photo, it is recognized that the face contains glasses, then It is considered to meet the configuration conditions of the wearable article. Since the driver's license requires myopia to wear glasses, the configuration parameters corresponding to the driver's license are different from those corresponding to the ID card.
- the target shooting mode is an ID card photo and it is recognized that the face contains beauty traces, it is considered that it does not meet the configuration conditions of facial texture features; if the target shooting mode is a social security card photo, the face is recognized If it contains traces of beauty makeup below the beauty level, it is considered to meet the configuration conditions of facial texture features. Since the driver's license requires the myopia to wear glasses, the configuration parameters corresponding to the ID card photos are different from the configuration parameters corresponding to the social security card photos.
- FIG. 4 a schematic structural diagram of an apparatus 40 for taking ID photos can be applied to self-service ID photos.
- the device 40 in the embodiment of the present application can implement the steps corresponding to the method of photographing the ID photo executed in the embodiment corresponding to FIG. 1.
- the functions implemented by the device 40 can be implemented by hardware, or implemented by hardware executing corresponding software.
- the hardware or software includes one or more modules corresponding to the above functions, and the modules may be software and/or hardware.
- the device 40 may include a control module 401, a collection module 402, a processing module 403, and a transceiver module 404.
- the functional realization of the control module 401, the collection module 402, the processing module 403, and the transceiver module 404 can be referred to as shown in Figures 1 to 3 The operations performed in the corresponding embodiments are not described here.
- the transceiver module 404 is configured to receive a shooting mode selection instruction triggered by the user based on the terminal, and send the shooting mode selection instruction to the control module 401;
- the control module 401 is configured to activate the shooting device of the terminal according to the instruction received from the transceiver module, and display multiple shooting modes in the function menu, wherein each shooting mode corresponds to a set of image characteristics Configuration parameters;
- the collection module 402 is configured to obtain first configuration parameters based on the target shooting mode selected by the user, and collect the images taken by the shooting device according to the first configuration parameters;
- the processing module 403 can be used to identify the face in the picture taken by the camera according to the face recognition algorithm, and locate the position of the face in the picture through a positioning frame; wherein, the positioning frame is used for Locate the detection object matching the preset shooting object in the picture; analyze the human face in the picture to determine whether the human face in the picture meets the condition of the first configuration parameter; A configuration parameter performs standardized processing on the face image to generate an ID photo.
- the processing module 403 calls the corresponding first configuration parameter according to the selected target shooting mode, and uses the face in the first configuration parameter screen to perform Correct and adjust, and process the face image taken by the camera to get the ID photo. It can be seen that by adopting this solution, users do not need to use the camera software provided by a third party to adjust the face image, nor do they need to use other picture editing tools to process the face by themselves. Intelligent and automated generation can be achieved while meeting user expectations and The ID photos with the conditions of ID photos can improve the efficiency of ID photos generation, with low threshold for use and convenient operation, which can improve user experience.
- processing module 403 is specifically configured to:
- the shooting mode of the shooting device is switched to the target shooting mode, and the configuration parameters of the shooting device are set to the first configuration parameters by default, so that the shooting device collects according to the first configuration parameters The picture taken by the camera;
- the image to be shot in the shooting device is captured by the acquisition module 402.
- the processing module 403 is further configured to:
- the moving direction is determined according to the missing part of the face and the coordinate difference between the coordinates of each pixel on the face contour in the picture and the picture, and the moving direction includes the direction to be moved by the terminal or the face to be moved The direction;
- the human face in the picture is detected in real time, and the real-time detected human face is matched with a preset face image, and when it is detected that the human face in the picture is fully displayed, a second prompt message is issued.
- condition of the first configuration parameter is a face condition; the processing module 403 is specifically configured to:
- the human face in the picture is detected by the human face recognition algorithm, and key facial features in the upper part of the human face are identified and located.
- the key facial features include corresponding feature points such as eyes, cheekbones, nose, mouth, and chin;
- the human face meets the positive face condition. If it is determined that the distance between some or all of the feature points and the proportional relationship between the distances are not within the normal range, it is considered that the face angle does not meet the frontal condition.
- processing module 403 is further configured to:
- the wearing objects may include hats, glasses, and clothing, and the facial texture features refer to the traces of beauty makeup;
- the wearable object meets the configuration condition of the wearable object defined in the first configuration parameter according to the first configuration parameter. If it is determined that there is a trace of beauty makeup in the face, it is determined according to the first configuration parameter whether the trace of beauty makeup meets the configuration condition of the facial texture feature defined in the first configuration parameter.
- processing module 403 is specifically configured to:
- the face image is compressed according to the pixels set in the first configuration parameter to obtain an image with a preset resolution size, and the image with the preset resolution size is used as the ID photo.
- the physical device corresponding to the transceiver module 304 shown in FIG. 4 is the transceiver shown in FIG. 5, which can realize part or all of the functions of the transceiver module 404, or the same or the same as the transceiver module 401. Similar functions.
- the physical device corresponding to the processing module 403 shown in FIG. 4 is the processor shown in FIG. 5, and the processor can implement part or all of the functions of the processing module 403, or implement the same or similar functions as the processing module 403.
- the device 50 in the embodiment of the present application is described above from the perspective of modular functional entities.
- the following describes a computer device from the perspective of hardware, as shown in FIG. 5, which includes: a processor, a memory, and a transceiver (or An input and output unit (not identified in FIG. 5) and a computer program stored in the memory and running on the processor.
- the computer program may be a program corresponding to the method of taking a photo ID in the embodiment corresponding to FIG. 1.
- the processor executes the computer program to implement the method of photographing a passport photo executed by the device 40 in the embodiment corresponding to FIG.
- the computer program may be a program corresponding to the method of photographing ID photos in the embodiment corresponding to FIG. 1.
- the so-called processor can be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
- the processor is the control center of the computer equipment, and various interfaces and lines are used to connect various parts of the entire computer equipment.
- the memory may be used to store the computer program and/or module, and the processor implements the computer by running or executing the computer program and/or module stored in the memory, and calling data stored in the memory.
- the memory may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.); the storage data area may store Data created based on the use of mobile phones (such as audio data, video data, etc.), etc.
- the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, memory, plug-in hard disks, smart memory cards (SmartMedia Card, SMC), and Secure Digital (SD) cards. Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
- non-volatile memory such as hard disks, memory, plug-in hard disks, smart memory cards (SmartMedia Card, SMC), and Secure Digital (SD) cards.
- Flash Card at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
- the transceiver may also be replaced by a receiver and a transmitter, and may be the same or different physical entities. When they are the same physical entity, they can be collectively referred to as transceivers.
- the transceiver can be an input and output unit.
- the memory may be integrated in the processor, or may be provided separately from the processor.
- the present application also provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed, the computer executes the steps of the method for photographing ID photos as described below, including:
- the shooting device of the terminal After receiving the shooting mode selection instruction triggered by the user based on the terminal, the shooting device of the terminal is activated according to the shooting mode selection instruction, and multiple shooting modes are displayed in the function menu, wherein each shooting mode corresponds to a group Configuration parameters of image features;
- the positioning frame is used to locate the detection that matches the preset shooting object in the picture Object
- the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
- the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product.
- the computer software product is stored in a storage medium (such as ROM/RAM), including Several instructions are used to make a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application.
Abstract
Description
Claims (20)
- 一种拍摄证件照的方法,其中,所述方法包括:在接收到用户基于终端触发的拍摄模式选择指令后,根据所述拍摄模式选择指令启动所述终端的拍摄装置,在功能菜单中显示多种拍摄模式,其中,每种所述拍摄模式对应一组图像特征的配置参数;基于用户选择的目标拍摄模式获取第一配置参数,根据所述第一配置参数采集所述拍摄装置所拍摄的画面;根据人脸识别算法识别出所述画面中的人脸,通过定位框定位出人脸在所述画面的位置;其中,所述定位框用于定位所述画面中与预设拍摄对象匹配的检测对象;对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件;根据所述第一配置参数对人脸图像进行标准化处理,生成证件照。
- 根据权利要求1所述的方法,其中,所述根据所述目标拍摄模式对应的第一配置参数采集所述拍摄装置所拍摄的画面,包括:根据所述指令将拍摄装置的拍摄模式切换为所述目标拍摄模式,以及将所述拍摄装置的配置参数默认设置为所述第一配置参数,使得所述拍摄装置按照所述第一配置参数采集拍摄装置所拍摄的画面;启动所述拍摄装置拍摄功能,获取所述拍摄装置获取到的待拍摄画面;按照所述第一配置参数调整所述待拍摄画面,以使得所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数;当检测到所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数时,对所述拍摄装置中的待拍摄画面进行拍摄。
- 根据权利要求1所述的方法,其中,在所述在定位出所述人脸在画面中的位置后,所述方法还包括:将所述画面中的人脸与预设人脸图像作对比,若通过对比确定所述画面中的人脸不全,则检测出所述画面中人脸轮廓上各像素点在所述画面中的坐标,以及人脸缺失部位;计算所述人脸轮廓上各像素点在所述画面中的坐标与画面之间的坐标差;根据所述人脸缺失部位和所述人脸轮廓上各像素点在所述画面中的坐标与画面之间的坐标差确定移动方向,所述移动方向包括终端待移动的方向或人脸待移动的方向;发出指示移动方向的第一提示信息,其中,所述第一提示信息用于指示用户移动在画面中的人脸,直至所述画面中的人脸显示全;或者,所述第一提示信息用于指示用户相对终端移动,直至所述画面中的人脸显示全;实时检测所述画面中的人脸,将实时检测到的人脸与预设人脸图像匹配,当检测到所述画面中的人脸显示全后,发出第二提示信息。
- 根据权利要求1-3中任一项所述的方法,其中,所述第一配置参数的条件为正脸条件;所述对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件,包括:通过所述人脸识别算法检测所述画面中的人脸,识别并定位所述人脸中上的面部关键特征,所述面部关键特征包括眼睛、颧骨、鼻子、嘴巴、下巴等对应的特征点;计算各特征点之间的间距以及各间距之间的比例关系;根据各特征点之间的间距和各间距之间的比例关系判断人脸角度是否符合正脸条件;若确定特征点之间的间距和各间距之间的比例关系都在正常范围内,则认为人脸符合正脸条件;若确定部分或全部特征点之间的间距和各间距之间的比例关系不在正常范围 内,则认为人脸角度不符合正脸条件。
- 根据权利要求4所述的方法,其中,所述对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件,还包括:判断人脸中是否存在穿戴物件和/或面部纹理特征,所述穿戴物件可包含帽子、眼镜和着装,所述面部纹理特征是指美妆痕迹;若判断出人脸中包含穿戴物件,则根据所述第一配置参数判断所述穿戴物件是否符合所述第一配置参数中限定的穿戴物件的配置条件;若判断出人脸中存在美妆痕迹,则根据所述第一配置参数判断所述美妆痕迹是否符合所述第一配置参数中限定的面部纹理特征的配置条件。
- 根据权利要求1所述的方法,其中,所述根据所述第一配置参数对人脸图像进行标准化处理,生成证件照,包括:根据第一配置参数中设置的尺寸对所述人脸图像进行裁剪处理,得到合适大小的图像;根据第一配置参数中设置的背景色对所述人脸图像的背景色进行调整,以使所述人脸图像符合背景色要求;根据第一配置参数中设置的像素对所述人脸图像进行压缩处理,得到预设分辨率大小的图像,将所述预设分辨率大小的图像作为所述证件照。
- 一种拍摄证件照的装置,其中,所述装置包括:收发模块,用于接收用户基于终端触发的拍摄模式选择指令,并将所述拍摄模式选择指令发送至控制模块;所述控制模块,用于根据从所述收发模块接收的所述指令启动所述终端的拍摄装置,在功能菜单中显示多种拍摄模式,其中,每种所述拍摄模式对应一组图像特征的配置参数;采集模块,用于基于用户选择的目标拍摄模式获取第一配置参数,根据所述第一配置参数采集所述拍摄装置所拍摄的画面;处理模块,用于根据人脸识别算法识别出所述摄像头拍摄的画面中的人脸,通过定位框定位出所述人脸在所述画面中的位置;其中,所述定位框用于定位所述画面中与预设拍摄对象匹配的的检测对象;对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件;根据所述第一配置参数对人脸图像进行标准化处理,生成证件照。
- 根据权利要求7所述的装置,其特征在于,所述处理模块具体用于:根据所述指令将拍摄装置的拍摄模式切换为所述目标拍摄模式,以及将所述拍摄装置的配置参数默认设置为所述第一配置参数,使得所述拍摄装置按照所述第一配置参数采集拍摄装置所拍摄的画面;通过所述控制模块启动所述拍摄装置拍摄功能,获取所述拍摄装置获取到的待拍摄画面;按照所述第一配置参数调整所述待拍摄画面,以使得所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数;当检测到所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数时,对所述拍摄装置中的待拍摄画面进行拍摄。
- 一种计算机设备,其中,所述设备包括:至少一个处理器、存储器和收发器;其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中存储的程序代码来执行如下所述的拍摄证件照的方法的步骤:在接收到用户基于终端触发的拍摄模式选择指令后,根据所述拍摄模式选择指令启动所述终端的拍摄装置,在功能菜单中显示多种拍摄模式,其中,每种所述拍摄模式对应 一组图像特征的配置参数;基于用户选择的目标拍摄模式获取第一配置参数,根据所述第一配置参数采集所述拍摄装置所拍摄的画面;根据人脸识别算法识别出所述画面中的人脸,通过定位框定位出人脸在所述画面的位置;其中,所述定位框用于定位所述画面中与预设拍摄对象匹配的检测对象;对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件;根据所述第一配置参数对人脸图像进行标准化处理,生成证件照。
- 根据权利要求9所述的拍摄证件照的设备,其中,所述拍摄证件照的程序被所述处理器执行所述拍摄证件照的程序被所述处理器执行所述根据所述目标拍摄模式对应的第一配置参数采集所述拍摄装置所拍摄的画面的步骤时,还执行以下步骤:根据所述指令将拍摄装置的拍摄模式切换为所述目标拍摄模式,以及将所述拍摄装置的配置参数默认设置为所述第一配置参数,使得所述拍摄装置按照所述第一配置参数采集拍摄装置所拍摄的画面;启动所述拍摄装置拍摄功能,获取所述拍摄装置获取到的待拍摄画面;按照所述第一配置参数调整所述待拍摄画面,以使得所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数;当检测到所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数时,对所述拍摄装置中的待拍摄画面进行拍摄。
- 根据权利要求9所述的拍摄证件照的设备,其中,所述拍摄证件照的程序被所述处理器执行所述拍摄证件照的程序被所述处理器执行所述在定位出所述人脸在画面中的位置后的步骤之后,还执行以下步骤:将所述画面中的人脸与预设人脸图像作对比,若通过对比确定所述画面中的人脸不全,则检测出所述画面中人脸轮廓上各像素点在所述画面中的坐标,以及人脸缺失部位;计算所述人脸轮廓上各像素点在所述画面中的坐标与画面之间的坐标差;根据所述人脸缺失部位和所述人脸轮廓上各像素点在所述画面中的坐标与画面之间的坐标差确定移动方向,所述移动方向包括终端待移动的方向或人脸待移动的方向;发出指示移动方向的第一提示信息,其中,所述第一提示信息用于指示用户移动在画面中的人脸,直至所述画面中的人脸显示全;或者,所述第一提示信息用于指示用户相对终端移动,直至所述画面中的人脸显示全;实时检测所述画面中的人脸,将实时检测到的人脸与预设人脸图像匹配,当检测到所述画面中的人脸显示全后,发出第二提示信息。
- 根据权利要求9-11中任一项所述的拍摄证件照的设备,其中,所述拍摄证件照的程序被所述处理器执行所述一种拍摄证件照的程序被所述处理器执行所述第一配置参数的条件为正脸条件;所述对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件的步骤时,还执行以下步骤:通过所述人脸识别算法检测所述画面中的人脸,识别并定位所述人脸中上的面部关键特征,所述面部关键特征包括眼睛、颧骨、鼻子、嘴巴、下巴等对应的特征点;计算各特征点之间的间距以及各间距之间的比例关系;根据各特征点之间的间距和各间距之间的比例关系判断人脸角度是否符合正脸条件;若确定特征点之间的间距和各间距之间的比例关系都在正常范围内,则认为人脸符合正脸条件;若确定部分或全部特征点之间的间距和各间距之间的比例关系不在正常范围内,则认为人脸角度不符合正脸条件。
- 根据权利要求12所述的拍摄证件照的设备,其中,所述拍摄证件照的程序被所 述处理器执行所述一种拍摄证件照的程序被所述处理器执行所述对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件的步骤时,还执行以下步骤:判断人脸中是否存在穿戴物件和/或面部纹理特征,所述穿戴物件可包含帽子、眼镜和着装,所述面部纹理特征是指美妆痕迹;若判断出人脸中包含穿戴物件,则根据所述第一配置参数判断所述穿戴物件是否符合所述第一配置参数中限定的穿戴物件的配置条件;若判断出人脸中存在美妆痕迹,则根据所述第一配置参数判断所述美妆痕迹是否符合所述第一配置参数中限定的面部纹理特征的配置条件。
- 根据权利要求9所述的拍摄证件照的设备,其中,所述拍摄证件照的程序被所述处理器执行所述根据所述第一配置参数对人脸图像进行标准化处理,生成证件照的步骤时,还执行以下步骤:根据第一配置参数中设置的尺寸对所述人脸图像进行裁剪处理,得到合适大小的图像;根据第一配置参数中设置的背景色对所述人脸图像的背景色进行调整,以使所述人脸图像符合背景色要求;根据第一配置参数中设置的像素对所述人脸图像进行压缩处理,得到预设分辨率大小的图像,将所述预设分辨率大小的图像作为所述证件照。
- 一种计算机存储介质,其中,所述计算机存储介质中存储有指令,当所述指令被执行时,使得计算机执行如下所述的拍摄证件照的方法的步骤:在接收到用户基于终端触发的拍摄模式选择指令后,根据所述拍摄模式选择指令启动所述终端的拍摄装置,在功能菜单中显示多种拍摄模式,其中,每种所述拍摄模式对应一组图像特征的配置参数;基于用户选择的目标拍摄模式获取第一配置参数,根据所述第一配置参数采集所述拍摄装置所拍摄的画面;根据人脸识别算法识别出所述画面中的人脸,通过定位框定位出人脸在所述画面的位置;其中,所述定位框用于定位所述画面中与预设拍摄对象匹配的检测对象;对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件;根据所述第一配置参数对人脸图像进行标准化处理,生成证件照。
- 根据权利要求15所述的计算机可读存储介质,其中,所述拍摄证件照的程序被处理器执行所述根据所述目标拍摄模式对应的第一配置参数采集所述拍摄装置所拍摄的画面的步骤时,还执行如下步骤:根据所述指令将拍摄装置的拍摄模式切换为所述目标拍摄模式,以及将所述拍摄装置的配置参数默认设置为所述第一配置参数,使得所述拍摄装置按照所述第一配置参数采集拍摄装置所拍摄的画面;启动所述拍摄装置拍摄功能,获取所述拍摄装置获取到的待拍摄画面;按照所述第一配置参数调整所述待拍摄画面,以使得所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数;当检测到所述拍摄装置的拍摄环境符合所述第一配置参数中的各项参数时,对所述拍摄装置中的待拍摄画面进行拍摄。
- 根据权利要求15所述的计算机可读存储介质,其中,所述拍摄证件照的程序被处理器执行所述在定位出所述人脸在画面中的位置的步骤之后,还执行以下步骤:将所述画面中的人脸与预设人脸图像作对比,若通过对比确定所述画面中的人脸不全,则检测出所述画面中人脸轮廓上各像素点在所述画面中的坐标,以及人脸缺失部位;计算所述人脸轮廓上各像素点在所述画面中的坐标与画面之间的坐标差;根据所述人脸缺失部位和所述人脸轮廓上各像素点在所述画面中的坐标与画面之间的坐标差确定移动方向,所述移动方向包括终端待移动的方向或人脸待移动的方向;发出指示移动方向的第一提示信息,其中,所述第一提示信息用于指示用户移动在画面中的人脸,直至所述画面中的人脸显示全;或者,所述第一提示信息用于指示用户相对终端移动,直至所述画面中的人脸显示全;实时检测所述画面中的人脸,将实时检测到的人脸与预设人脸图像匹配,当检测到所述画面中的人脸显示全后,发出第二提示信息。
- 根据权利要求15-17中任一项所述的计算机可读存储介质,其中,所述拍摄证件照的程序被处理器执行所述第一配置参数的条件为正脸条件;所述对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件的步骤时,还执行以下步骤:通过所述人脸识别算法检测所述画面中的人脸,识别并定位所述人脸中上的面部关键特征,所述面部关键特征包括眼睛、颧骨、鼻子、嘴巴、下巴等对应的特征点;计算各特征点之间的间距以及各间距之间的比例关系;根据各特征点之间的间距和各间距之间的比例关系判断人脸角度是否符合正脸条件;若确定特征点之间的间距和各间距之间的比例关系都在正常范围内,则认为人脸符合正脸条件;若确定部分或全部特征点之间的间距和各间距之间的比例关系不在正常范围内,则认为人脸角度不符合正脸条件。
- 根据权利要求18所述的计算机可读存储介质,其中,所述拍摄证件照的程序被处理器执行所述对所述画面中的人脸进行分析,判断所述画面中的人脸是否符合所述第一配置参数的条件的步骤时,还执行以下步骤:判断人脸中是否存在穿戴物件和/或面部纹理特征,所述穿戴物件可包含帽子、眼镜和着装,所述面部纹理特征是指美妆痕迹;若判断出人脸中包含穿戴物件,则根据所述第一配置参数判断所述穿戴物件是否符合所述第一配置参数中限定的穿戴物件的配置条件;若判断出人脸中存在美妆痕迹,则根据所述第一配置参数判断所述美妆痕迹是否符合所述第一配置参数中限定的面部纹理特征的配置条件。
- 根据权利要求15所述的计算机可读存储介质,其中,所述拍摄证件照的程序被处理器执行所述根据所述第一配置参数对人脸图像进行标准化处理,生成证件照的步骤时,还执行以下步骤:根据第一配置参数中设置的尺寸对所述人脸图像进行裁剪处理,得到合适大小的图像;根据第一配置参数中设置的背景色对所述人脸图像的背景色进行调整,以使所述人脸图像符合背景色要求;根据第一配置参数中设置的像素对所述人脸图像进行压缩处理,得到预设分辨率大小的图像,将所述预设分辨率大小的图像作为所述证件照。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910751640.9A CN110602379A (zh) | 2019-08-15 | 2019-08-15 | 一种拍摄证件照的方法、装置、设备及存储介质 |
CN201910751640.9 | 2019-08-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021027537A1 true WO2021027537A1 (zh) | 2021-02-18 |
Family
ID=68854280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/104733 WO2021027537A1 (zh) | 2019-08-15 | 2020-07-27 | 一种拍摄证件照的方法、装置、设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110602379A (zh) |
WO (1) | WO2021027537A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113743396A (zh) * | 2021-08-31 | 2021-12-03 | 支付宝(杭州)信息技术有限公司 | 在证件识别过程中识别注入攻击的方法及装置 |
CN114445441A (zh) * | 2022-01-25 | 2022-05-06 | 杭州海量信息技术有限公司 | 一种无需标注的人脸分割方法及系统 |
CN115171197A (zh) * | 2022-09-01 | 2022-10-11 | 广州市森锐科技股份有限公司 | 一种高精度图像信息识别方法、系统、设备及存储介质 |
CN116074618A (zh) * | 2023-03-31 | 2023-05-05 | 广州翼拍联盟网络技术有限公司 | 防止人像信息泄露的智慧拍照服务方法、系统及存储介质 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602379A (zh) * | 2019-08-15 | 2019-12-20 | 平安国际智慧城市科技股份有限公司 | 一种拍摄证件照的方法、装置、设备及存储介质 |
CN113810588B (zh) * | 2020-06-11 | 2022-11-04 | 青岛海信移动通信技术股份有限公司 | 一种图像合成方法、终端及存储介质 |
CN113033506A (zh) * | 2021-05-20 | 2021-06-25 | 杭州宇泛智能科技有限公司 | 一种人像识别交互方法、装置及电子设备 |
CN114511915B (zh) * | 2022-04-19 | 2022-07-29 | 南昌大学 | 一种基于移动客户端的可信任证件照采集系统及方法 |
CN116052236A (zh) * | 2022-08-04 | 2023-05-02 | 荣耀终端有限公司 | 人脸检测处理引擎、涉及人脸检测的拍摄方法及设备 |
CN116528043B (zh) * | 2023-04-13 | 2024-03-29 | 荣耀终端有限公司 | 一种对象标记方法及电子设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105120167A (zh) * | 2015-08-31 | 2015-12-02 | 广州市幸福网络技术有限公司 | 一种证照相机及证照拍摄方法 |
CN106210338A (zh) * | 2016-07-25 | 2016-12-07 | 乐视控股(北京)有限公司 | 证件照片的生成方法及装置 |
US20170230566A1 (en) * | 2014-11-04 | 2017-08-10 | Olympus Corporation | Shooting device, shooting method, and non-transitory computer readable recording medium storing program |
CN110602379A (zh) * | 2019-08-15 | 2019-12-20 | 平安国际智慧城市科技股份有限公司 | 一种拍摄证件照的方法、装置、设备及存储介质 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004096486A (ja) * | 2002-08-30 | 2004-03-25 | Sony Corp | 画像抽出装置、画像抽出方法、及び撮影装置 |
JP4257530B2 (ja) * | 2004-07-20 | 2009-04-22 | 富士フイルム株式会社 | デジタルカメラ及びプリントシステム |
CN102801857B (zh) * | 2012-07-30 | 2014-06-18 | 无锡智感星际科技有限公司 | 一种基于图像匹配的智能手机拍照引导方法 |
CN104284075A (zh) * | 2013-07-06 | 2015-01-14 | 上海科宇营销策划有限公司 | 一种照片采集自动摄影系统 |
JP6278263B2 (ja) * | 2014-03-18 | 2018-02-14 | 大日本印刷株式会社 | 証明写真撮影装置、証明写真撮影方法及び証明写真撮影システム |
CN105046246B (zh) * | 2015-08-31 | 2018-10-09 | 广州市幸福网络技术有限公司 | 可进行人像姿势拍摄提示的证照相机及人像姿势检测方法 |
CN106911887A (zh) * | 2015-12-28 | 2017-06-30 | 小米科技有限责任公司 | 图像拍摄方法及装置 |
CN107197149A (zh) * | 2017-06-14 | 2017-09-22 | 深圳传音通讯有限公司 | 证件照片的生成方法和装置 |
-
2019
- 2019-08-15 CN CN201910751640.9A patent/CN110602379A/zh active Pending
-
2020
- 2020-07-27 WO PCT/CN2020/104733 patent/WO2021027537A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170230566A1 (en) * | 2014-11-04 | 2017-08-10 | Olympus Corporation | Shooting device, shooting method, and non-transitory computer readable recording medium storing program |
CN105120167A (zh) * | 2015-08-31 | 2015-12-02 | 广州市幸福网络技术有限公司 | 一种证照相机及证照拍摄方法 |
CN106210338A (zh) * | 2016-07-25 | 2016-12-07 | 乐视控股(北京)有限公司 | 证件照片的生成方法及装置 |
CN110602379A (zh) * | 2019-08-15 | 2019-12-20 | 平安国际智慧城市科技股份有限公司 | 一种拍摄证件照的方法、装置、设备及存储介质 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113743396A (zh) * | 2021-08-31 | 2021-12-03 | 支付宝(杭州)信息技术有限公司 | 在证件识别过程中识别注入攻击的方法及装置 |
CN113743396B (zh) * | 2021-08-31 | 2023-11-10 | 支付宝(杭州)信息技术有限公司 | 在证件识别过程中识别注入攻击的方法及装置 |
CN114445441A (zh) * | 2022-01-25 | 2022-05-06 | 杭州海量信息技术有限公司 | 一种无需标注的人脸分割方法及系统 |
CN114445441B (zh) * | 2022-01-25 | 2022-09-09 | 杭州海量信息技术有限公司 | 一种无需标注的人脸分割方法及系统 |
CN115171197A (zh) * | 2022-09-01 | 2022-10-11 | 广州市森锐科技股份有限公司 | 一种高精度图像信息识别方法、系统、设备及存储介质 |
CN115171197B (zh) * | 2022-09-01 | 2023-05-16 | 广州市森锐科技股份有限公司 | 一种高精度图像信息识别方法、系统、设备及存储介质 |
CN116074618A (zh) * | 2023-03-31 | 2023-05-05 | 广州翼拍联盟网络技术有限公司 | 防止人像信息泄露的智慧拍照服务方法、系统及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN110602379A (zh) | 2019-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021027537A1 (zh) | 一种拍摄证件照的方法、装置、设备及存储介质 | |
US10956714B2 (en) | Method and apparatus for detecting living body, electronic device, and storage medium | |
CN108764091B (zh) | 活体检测方法及装置、电子设备和存储介质 | |
CN108229369B (zh) | 图像拍摄方法、装置、存储介质及电子设备 | |
CN105488527B (zh) | 图像分类方法及装置 | |
US7844135B2 (en) | Detecting orientation of digital images using face detection information | |
CN106250894B (zh) | 卡片信息识别方法及装置 | |
US8391645B2 (en) | Detecting orientation of digital images using face detection information | |
TW201911130A (zh) | 一種翻拍影像識別方法及裝置 | |
WO2017071065A1 (zh) | 区域识别方法及装置 | |
WO2017031901A1 (zh) | 人脸识别方法、装置及终端 | |
US20200312022A1 (en) | Method and device for processing image, and storage medium | |
JP2016531362A (ja) | 肌色調整方法、肌色調整装置、プログラム及び記録媒体 | |
WO2019237745A1 (zh) | 人脸图像处理方法、装置、电子设备及计算机可读存储介质 | |
US11315360B2 (en) | Live facial recognition system and method | |
CN112689221B (zh) | 录音方法、录音装置、电子设备及计算机可读存储介质 | |
US20230162332A1 (en) | Image Transformation Method and Apparatus | |
CN111654624B (zh) | 拍摄提示方法、装置及电子设备 | |
CN110738607A (zh) | 基于人工智能拍摄驾驶证的方法、装置、设备及存储介质 | |
CN109726613B (zh) | 一种用于检测的方法和装置 | |
CN112153300A (zh) | 多目摄像头曝光方法、装置、设备及介质 | |
CN116363725A (zh) | 显示设备的人像追踪方法、系统、显示设备及存储介质 | |
TW201339986A (zh) | 影像擷取方法與影像擷取裝置 | |
TW201714074A (zh) | 使用手勢的拍照方法、系統與電子裝置 | |
CN111726531B (zh) | 图像拍摄方法、处理方法、装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20851890 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20851890 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16-08-2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20851890 Country of ref document: EP Kind code of ref document: A1 |