CN113034356A - Photographing method and device, terminal equipment and storage medium - Google Patents

Photographing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113034356A
CN113034356A CN202110438419.5A CN202110438419A CN113034356A CN 113034356 A CN113034356 A CN 113034356A CN 202110438419 A CN202110438419 A CN 202110438419A CN 113034356 A CN113034356 A CN 113034356A
Authority
CN
China
Prior art keywords
certificate
image
photographing
guide frame
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110438419.5A
Other languages
Chinese (zh)
Inventor
韦卫华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202110438419.5A priority Critical patent/CN113034356A/en
Publication of CN113034356A publication Critical patent/CN113034356A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T3/04
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components

Abstract

The application is applicable to the technical field of artificial intelligence, and provides a photographing method, a photographing device, terminal equipment and a storage medium, wherein the method comprises the following steps: in response to the detection of the certificate shooting operation, presenting a shooting guide frame, wherein the shooting guide frame is used for guiding a user to present the certificate image of the certificate to be shot in a target area of a shooting interface; extracting a certificate image presented in the target area, and identifying the certificate type of the certificate indicated by the certificate image; determining a privacy area of the certificate image according to the certificate type obtained by identification and a mapping relation between the certificate type and the position of the privacy area which is stored in advance; the target image is overlaid on the privacy zone of the credential image to generate a new credential image. In addition, the application also relates to a block chain technology.

Description

Photographing method and device, terminal equipment and storage medium
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a photographing method, apparatus, terminal device, and storage medium.
Background
When the certificate is photographed, some privacy contents which are not suitable for being exposed, such as home addresses, often exist in the obtained certificate image. In order to protect the private content from being leaked, the user can manually edit the certificate image by using an image editing function to cover the private content. When the image editing function is adopted to manually edit the certificate image, if a user is unfamiliar with operation, more time is consumed to edit the certificate image, so that the efficiency of editing the certificate image is not high.
Disclosure of Invention
In view of this, embodiments of the present application provide a photographing method, apparatus, terminal device and storage medium, so as to solve the problem in the related art that the efficiency of editing a document image is not high enough.
A first aspect of an embodiment of the present application provides a photographing method, including:
in response to the detection of the certificate shooting operation, presenting a shooting guide frame, wherein the shooting guide frame is used for guiding a user to present the certificate image of the certificate to be shot in a target area of a shooting interface;
extracting a certificate image presented in the target area, and identifying the certificate type of the certificate indicated by the certificate image;
determining a privacy area of the certificate image according to the certificate type obtained by identification and a mapping relation between the certificate type and the position of the privacy area which is stored in advance;
the target image is overlaid on the privacy zone of the credential image to generate a new credential image.
Further, presenting a photographing guide frame, comprising:
determining the position and the size of the photographing guide frame according to the photographing direction and the interface size ratio of the photographing interface;
and presenting the photographing guide frame with the determined size at the determined position of the photographing guide frame.
Further, presenting a photographing guide frame, comprising:
presenting the photographing guide frame on the first display layer, and presenting the photographing interface on the second display layer;
the first display layer is laminated over the second display layer.
Further, overlaying the target image on a privacy area of the document image to generate a new document image, comprising:
and transforming the size of the target image to be matched with the size of the privacy area, and overlaying the size-transformed target image on the privacy area of the certificate image to generate a new certificate image.
Further, the method further comprises:
presenting operation guide information for guiding a user operation in response to detecting an editing operation for a target image in the new certificate image;
in response to detecting the interactive operation of the user based on the operation guide information, executing a processing step corresponding to the interactive operation on the new certificate image;
presenting the processed new document image.
Further, the interaction comprises at least one of: zooming operation, splitting operation, merging operation and dragging operation.
Further, if the interactive operation includes a zoom operation, the processing step corresponding to the interactive operation includes: and scaling the target image to the size indicated by the scaling operation.
A second aspect of the embodiments of the present application provides a photographing apparatus, including:
the guide presentation unit is used for responding to the detection of certificate shooting operation and presenting a shooting guide frame, and the shooting guide frame is used for guiding a user to present a certificate image of a certificate to be shot in a target area of a shooting interface;
an image extraction unit for extracting a document image presented by the target area and identifying a document type of a document indicated by the document image;
the area determining unit is used for determining the privacy area of the certificate image according to the certificate type obtained by identification and the mapping relation between the certificate type and the privacy area position stored in advance;
and the target overlaying unit is used for overlaying the target image on the privacy area of the certificate image to generate a new certificate image.
A third aspect of the embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and operable on the terminal device, where the processor implements the steps of the photographing method provided by the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present application provides a storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the photographing method provided by the first aspect.
The photographing method, the photographing device, the terminal equipment and the storage medium provided by the embodiment of the application have the following beneficial effects: when the certificate is photographed, the type of the photographed certificate image is judged, so that the target image is directly covered at the position of the privacy area of the certificate image based on the certificate type, and the privacy content in the certificate image can be protected from being leaked. The method has the advantages that the certificate image is directly edited during photographing, and the efficiency of editing the certificate image can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments or the related technical descriptions will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a photographing method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating an implementation of a photographing method according to another embodiment of the present application;
fig. 3 is a block diagram of a photographing apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The photographing method according to the embodiment of the present application may be executed by a control device or a terminal (hereinafter referred to as "terminal device"). When the photographing method is executed by the terminal equipment, the execution main body is the terminal equipment.
Referring to fig. 1, fig. 1 shows a flowchart of an implementation of a photographing method provided in an embodiment of the present application, including:
step 101, responding to the detected certificate shooting operation, presenting a shooting guide frame, wherein the shooting guide frame is used for guiding a user to present the certificate image of the certificate to be shot in a target area of a shooting interface.
The certificate shooting operation is generally an operation for determining to shoot a certificate. The credential capture operations described above may include, but are not limited to, at least one of: clicking a setting key, sliding the setting key, executing a setting gesture, continuously touching a current interface, sliding on the current interface according to a set operation track, and the like. The setting keys may be hardware keys, such as "volume plus" key, "volume-" key, etc., or software keys, such as [ √ ] control, and [ … ] control, etc. The gesture of setting may be a fist-to-palm gesture, an "O" gesture, a "V" gesture, or the like. The set operation trajectory may include, but is not limited to: straight line segments, arcs, broken lines or curves extending in a preset direction, and the like. The continuous touch generally refers to a continuous touch time period greater than or equal to a preset time period, for example, 5 seconds.
The photographing guide frame is generally a wire frame for guiding a user to present a document image of a document to be photographed in a target area of a photographing interface. The line of the photographing guide frame can be a dotted line, a solid line or other forms of lines. The shape of the photographing guide frame can be various shapes, such as a circle, a rectangle, a hexagon, a cloud and the like. The embodiment does not limit the specific style of the photographing guide frame. The document to be photographed is typically a document to be photographed. The target area is generally defined by the photographing guide frame.
In the present embodiment, the execution main body may detect the certificate photographing operation using a mounted sensor (e.g., a gravity sensor, a distance sensor, a fingerprint sensor, a hall sensor, a GPS position sensor, an accelerator sensor, etc.). And if the certificate shooting operation is detected, presenting a shooting guide frame.
In practical application, a user can execute certificate shooting operation on a shooting interface. In this way, the terminal device for taking pictures, such as a camera, can detect the certificate shooting operation through the sensor installed on the terminal device, and then present the shooting guide frame. The user can present the certificate image of the certificate to be shot in the target area of the shooting interface.
Step 102, extracting the certificate image presented in the target area, and identifying the certificate type of the certificate indicated by the certificate image.
Among other things, the credential type is typically information that indicates the type of credential. The types of documents may include, but are not limited to, identification cards, health cards, driver's licenses, and the like.
Here, the execution main body may extract the document image presented by the target area and identify the document type of the document image using a related art or a future development technology. In practice, in the case of position determination of the photographing guide frame, the execution subject described above may extract the document image of the target area directly from the position of the photographing guide frame. The execution subject can then identify the credential type of the credential indicated by the credential image using machine learning.
And 103, determining the privacy area of the certificate image according to the certificate type obtained by identification and the mapping relation between the certificate type and the position of the privacy area stored in advance.
Here, since a certificate generally has a fixed layout format, and the relative position of the privacy zone of the certificate is generally fixed for the same type of certificate, the mapping relationship between the certificate type and the privacy zone position may be stored in advance for each type of certificate. In this way, the privacy zone can be determined from the certificate image based on the mapping relationship.
Step 104, overlaying the target image on the privacy zone of the certificate image to generate a new certificate image.
The target image is usually a preset image. As an example, the target image may be a mosaic image, a smile image, or the like.
Here, after the privacy area of the certificate image is obtained, the target image may be directly overlaid on the privacy area, so that a new certificate image that protects privacy may be obtained.
According to the method provided by the embodiment, when the certificate is photographed, the type of the photographed certificate image is judged, so that the target image is directly covered at the position of the privacy area of the certificate image based on the certificate type, and the privacy content in the certificate image can be protected from being leaked. The method has the advantages that the certificate image is directly edited during photographing, and the efficiency of editing the certificate image can be improved.
In some optional implementations of the present embodiment, the presenting the photographing guide frame may include:
firstly, the position and the size of the photographing guide frame are determined according to the photographing direction and the interface size ratio of the photographing interface.
Wherein, the above-mentioned direction of shooing can include horizontal screen direction of shooing and vertical screen direction of shooing. The landscape photographing direction generally refers to a direction in which the long side of the screen is placed parallel or nearly parallel to the landscape direction. The portrait photographing direction generally refers to a direction in which the long side of the screen is placed parallel or nearly parallel to the longitudinal direction.
The above-mentioned interface size ratio of the photographing interface generally refers to the length ratio of the long side and the short side of the photographing interface. In practice, the interface size ratio of the camera interface is typically 4:3 or 16: 9.
Here, the execution body may determine an appropriate position and size for the photographing guide frame according to the current photographing direction and the interface size ratio. As an example, when the photographing direction is a landscape photographing direction, the execution main body may determine the centered position as the position of the photographing guide frame. As another example, when the photographing direction is the vertical screen photographing direction, the execution main body may match the size of the long side of the photographing guide frame with the size of the short side of the screen.
Then, the photographing guide frame of the determined size is presented at the determined position of the photographing guide frame.
Here, the execution main body may present the photographing guide frame after determining the position and size of the photographing guide frame. For example, if the position of the photographing guide frame is determined to be L, the size of the photographing guide frame is determined to be m × n, where m is the width of the photographing guide frame and n is the height of the photographing guide frame. At this time, the execution subject in the above may present the photographing guide frame having a size of m × n at the position L. The implementation mode can realize flexible presentation of the photographing guide frame.
In some optional implementations of the present embodiment, the presenting the photographing guide frame may include: firstly, the photographing guide frame is presented on the first display layer, and the photographing interface is presented on the second display layer. The first display layer is then laminated over the second display layer.
The display layer where the photographing guide frame is located above the display layer where the photographing interface is located, and therefore a user can display a certificate image of a certificate to be photographed in a target area of the photographing interface under the guidance of the photographing guide frame.
Optionally, before the step of laminating the first display layer on the second display layer, the method may further include the following steps: and adjusting the transparency of the first display layer.
Here, since the display layer on which the photographing guide frame is located above the display layer on which the photographing interface is located, when the user photographs the certificate to be photographed, the display layer on which the photographing guide frame is located, which is present above the display layer on which the photographing interface is located, may block part of the contents of the photographing interface. Therefore, the realization mode adjusts the transparency of the first display layer, and is beneficial to realizing that a user better photographs the certificate to be photographed.
In some optional implementations of the embodiment, the overlaying the target image on the privacy area of the document image to generate a new document image includes:
the size of the target image is transformed to fit the size of the privacy zone. And overlaying the size-converted target image on a privacy area of the certificate image to generate a new certificate image.
Here, the execution subject may scale the target image based on a size of the privacy area before overlaying the target image on the privacy area of the document image. In particular, the size of the target image may be transformed to fit the size of the privacy zone. Here, the conversion of the size of the target image to be matched with the size of the privacy area may mean that the sizes of the two are the same or that the sizes of the two are close to each other. As an example, if the privacy area is rectangular and the target image is also rectangular, the size of the target image may be transformed to be consistent with the size of the privacy area. The realization mode can realize accurate protection of the privacy content in the certificate.
Referring to fig. 2, fig. 2 is a flowchart illustrating an implementation of a photographing method according to an embodiment of the present application. The photographing method provided by the embodiment may include the following steps:
step 201, in response to the detection of the certificate shooting operation, presenting a shooting guide frame, where the shooting guide frame is used to guide a user to present a certificate image of the certificate to be shot in a target area of a shooting interface.
Step 202, extracting the document image presented by the target area, and identifying the document type of the document indicated by the document image.
And step 203, determining the privacy area of the certificate image according to the certificate type obtained by identification and the mapping relation between the certificate type and the position of the privacy area stored in advance.
Step 204, the target image is overlaid on the privacy area of the certificate image to generate a new certificate image.
In the present embodiment, the specific operations of steps 201-204 are substantially the same as the operations of steps 101-104 in the embodiment shown in fig. 1, and are not repeated herein.
And step 205, in response to detecting the editing operation aiming at the target image in the new certificate image, presenting operation guide information for guiding the user operation.
The editing operation is generally an operation for determining to edit a target image in a new certificate image. The editing operation may include, but is not limited to, at least one of: clicking a setting key, sliding the setting key, executing a setting gesture, continuously touching a current interface, sliding on the current interface according to a set operation track, and the like. The setting keys may be hardware keys, such as "volume plus" key, "volume-" key, etc., or software keys, such as [ √ ] control, and [ … ] control, etc. The gesture of setting may be a fist-to-palm gesture, an "O" gesture, a "V" gesture, or the like. The set operation trajectory may include, but is not limited to: straight line segments, arcs, broken lines or curves extending in a preset direction, and the like. The continuous touch generally refers to a continuous touch time period greater than or equal to a preset time period, for example, 5 seconds.
It is to be noted that the execution procedure of the editing operation in the present embodiment is different from the execution procedure of the aforementioned certificate photographing operation. As an example, if the editing operation is a continuous touch operation, the credential capture operation may be a sliding operation from left to right.
The operation guidance information is generally various information for guiding the user operation. As an example, the operation guidance information may be: "the long-press target image can generate two sub-target images". As another example, the operation guidance information may also be: "pressing two sub-target images at the same time can be merged into one target image".
And step 206, in response to detecting the interactive operation of the user based on the operation guide information, executing a processing step corresponding to the interactive operation on the new certificate image.
The interactive operation may be one operation or a series of operations. In practice, the interaction may include, but is not limited to, at least one of: zooming operation, splitting operation, merging operation and dragging operation.
The zoom operation is generally an operation for instructing reduction or enlargement of a target image. As one example, the zoom operation may implement zooming out of the target image at one click of the target image area and zooming in of the target image at two clicks of the target image area. As another example, the zooming operation may be a movement of two fingers touching the target image area in a direction away from each other to enlarge the target image, and a movement of two fingers touching the target image area in a direction close to each other to reduce the target image.
The splitting operation is generally an operation for instructing splitting of a target image. As an example, the splitting operation may be an operation that slides along a trajectory line that intersects the target image, enabling splitting of the target image along the trajectory line that intersects the target image. As another example, the splitting operation may also be an operation of sliding along the closed trajectory line within the target image area, enabling splitting of the target image along the closed trajectory line. It should be noted that the above-mentioned trajectory line penetrating the target image and the above-mentioned closed trajectory line are generally trajectory lines arbitrarily drawn by the user.
The merge operation is generally an operation for instructing to merge a plurality of sub-target images. As an example, the merging operation may be a movement of a plurality of fingers touching the plurality of sub-target image areas in a direction of moving toward each other, so as to merge the plurality of sub-target images.
Among them, the drag operation is generally an operation for instructing to move the target image. As an example, the drag operation may be an operation of continuously touching the target image for a period of time and then moving along the trajectory, so as to drag the target image.
The processing procedure corresponding to the interactive operation is usually a preset processing procedure corresponding to the interactive operation.
Optionally, if the interactive operation includes a splitting operation and a dragging operation, the processing steps corresponding to the interactive operation may be: firstly, a target image is split into a number of sub-target images indicated by the splitting operation, and then all the sub-target images are sequentially moved to the positions indicated by the corresponding dragging operations. For example, the processing step corresponding to the interactive operation may be to split the target image into three sub-target images, and then move the three sub-target images to the position indicated by the dragging operation.
Optionally, if the interactive operation includes a zoom operation, the processing step corresponding to the interactive operation may be: and scaling the target image to the size indicated by the scaling operation.
Here, the execution main body may detect an interactive operation of the user based on the operation guidance information through a sensor installed in the execution main body, and then, may process a new certificate image using a processing step corresponding to the interactive operation.
Step 207, presenting the processed new certificate image.
Here, the execution main body may present a new certificate image after processing. In this way, the user can visually view the processed new document image.
Note that the new document image is an image obtained by overlaying the target image on the original document image, and the new document image may be written as a processed document image for the purpose of description distinction. The processed new certificate image is an image processed by the primary processing certificate image by adopting a processing step, and the processed new certificate image can be recorded as a secondary processing certificate image for distinguishing description.
According to the method provided by the embodiment, if the user is not satisfied with the automatically overlaid target image, the user can manually edit the target image. In this way, the terminal device can present operation guidance information for guiding the user operation based on the editing operation. The user can edit the certificate image rapidly under the guidance of the operation guide information, and the efficiency of editing the certificate image can be improved. Due to the fact that editing can be conducted according to the intention of the user, the efficiency of editing the certificate image is improved, and meanwhile the privacy content is further protected accurately. In addition, when the certificate image is edited, only one editable item, namely the target image, is introduced, and excessive edibles do not need to be introduced, so that the user can conveniently, quickly and accurately edit the certificate image under the condition of not increasing the size of the application package.
In all embodiments of the application, the terminal device may present the photographing guide frame when detecting a certificate photographing operation, so as to guide a user to present a certificate image of a certificate to be photographed in a target area of a photographing interface. The document image presented by the target area is then extracted, and the document type of the document indicated by the document image is identified. And then, determining the privacy area of the certificate image according to the certificate type obtained by identification and the mapping relation between the certificate type and the position of the privacy area, which is stored in advance. Finally, overlaying the target image on the privacy zone of the credential image to generate a new credential image may overlay the target image on the privacy zone of the credential image to generate the new credential image. The terminal equipment can upload the generated new certificate image to the block chain, so that the safety and the fair transparency to the user can be guaranteed. The user equipment may download the data information from the blockchain to verify whether the data information is tampered. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. The block chain (Blockchain), which is essentially a decentralized storage server, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Referring to fig. 3, fig. 3 is a block diagram of a photographing apparatus 300 according to an embodiment of the present disclosure. In this embodiment, each unit included in the photographing apparatus is configured to perform each step in the embodiment corresponding to fig. 1 to 2. Please refer to fig. 1 to 2 and fig. 1 to 2 for the corresponding embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 3, the photographing apparatus 300 includes:
the guidance presenting unit 301 is configured to present, in response to detection of a certificate photographing operation, a photographing guide frame, where the photographing guide frame is used to guide a user to present a certificate image of a certificate to be photographed in a target area of a photographing interface;
an image extraction unit 302 for extracting a document image presented by the target area and identifying a document type of a document indicated by the document image;
the area determining unit 303 is configured to determine a privacy area of the certificate image according to the certificate type obtained through recognition and a mapping relationship between the certificate type and a position of the privacy area, which is stored in advance;
an object overlay unit 304 for overlaying the object image on the privacy zone of the document image to generate a new document image.
As an embodiment of the present application, a photographing guide frame is presented, including:
determining the position and the size of the photographing guide frame according to the photographing direction and the interface size ratio of the photographing interface;
and presenting the photographing guide frame with the determined size at the determined position of the photographing guide frame.
As an embodiment of the present application, a photographing guide frame is presented, including:
presenting the photographing guide frame on the first display layer, and presenting the photographing interface on the second display layer;
the first display layer is laminated over the second display layer.
As an embodiment of the present application, overlaying a target image on a privacy area of a document image to generate a new document image includes:
and transforming the size of the target image to be matched with the size of the privacy area, and overlaying the size-transformed target image on the privacy area of the certificate image to generate a new certificate image.
As an embodiment of the present application, the apparatus further includes a target editing unit, configured to:
presenting operation guide information for guiding a user operation in response to detecting an editing operation for a target image in the new certificate image;
in response to detecting the interactive operation of the user based on the operation guide information, executing a processing step corresponding to the interactive operation on the new certificate image;
presenting the processed new document image.
As an embodiment of the present application, the interactive operation includes at least one of: zooming operation, splitting operation, merging operation and dragging operation.
As an embodiment of the present application, if the interactive operation includes a zoom operation, the processing step corresponding to the interactive operation includes: and scaling the target image to the size indicated by the scaling operation.
The device provided by the embodiment judges the type of the photographed certificate image when the certificate is photographed, so that the target image is directly covered at the position of the privacy area of the certificate image based on the certificate type, and the privacy content in the certificate image can be protected from being leaked. The method has the advantages that the certificate image is directly edited during photographing, and the efficiency of editing the certificate image can be improved.
It should be understood that, in the structural block diagram of the photographing apparatus shown in fig. 3, each unit is configured to execute each step in the embodiment corresponding to fig. 1 to fig. 2, and each step in the embodiment corresponding to fig. 1 to fig. 2 has been explained in detail in the above embodiment, and please refer to the relevant description in the embodiments corresponding to fig. 1 to fig. 2 and fig. 1 to fig. 2 specifically, which is not repeated herein.
Fig. 4 is a block diagram of a terminal device according to another embodiment of the present application. As shown in fig. 4, the terminal device 400 of this embodiment includes: a processor 401, a memory 402 and a computer program 403, such as a program for a photo method, stored in the memory 402 and executable on the processor 401. The processor 401 executes the computer program 403 to implement the steps in the various embodiments of the photographing methods described above, such as the steps 101 to 104 shown in fig. 1 or the steps 201 to 207 shown in fig. 2. Alternatively, when the processor 401 executes the computer program 403, the functions of the units in the embodiment corresponding to fig. 3, for example, the functions of the units 301 to 304 shown in fig. 3, are implemented, for which reference is specifically made to the relevant description in the embodiment corresponding to fig. 3, which is not described herein again.
Illustratively, the computer program 403 may be divided into one or more units, which are stored in the memory 402 and executed by the processor 401 to accomplish the present application. One or more of the units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 403 in the terminal device 400. For example, the computer program 403 may be divided into a guidance presentation unit, an image extraction unit, an area determination unit, and an object coverage unit, each of which functions as described above.
The terminal device may include, but is not limited to, a processor 401, a memory 402. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 400 and does not constitute a limitation of terminal device 400 and may include more or fewer components than shown, or combine certain components, or different components, e.g., a turntable device may also include input output devices, network access devices, buses, etc.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 402 may be an internal storage unit of the terminal device 400, such as a hard disk or a memory of the terminal device 400. The memory 402 may also be an external storage device of the terminal device 400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device 400. Further, the memory 402 may also include both an internal storage unit of the terminal device 400 and an external storage device. The memory 402 is used for storing computer programs and other programs and data required by the turntable device. The memory 402 may also be used to temporarily store data that has been output or is to be output.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments described above may be implemented by a computer program, which is stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of taking a picture, the method comprising:
in response to the detection of the certificate shooting operation, presenting a shooting guide frame, wherein the shooting guide frame is used for guiding a user to present a certificate image of the certificate to be shot in a target area of a shooting interface;
extracting a certificate image presented in a target area, and identifying a certificate type of a certificate indicated by the certificate image;
determining a privacy area of the certificate image according to the certificate type obtained by identification and a mapping relation between the certificate type and the position of the privacy area which is stored in advance;
overlaying a target image on a privacy zone of the credential image to generate a new credential image.
2. The photographing method according to claim 1, wherein the presenting of the photographing guide frame includes:
determining the position and the size of the photographing guide frame according to the photographing direction and the interface size ratio of the photographing interface;
and presenting the photographing guide frame with the determined size at the determined position of the photographing guide frame.
3. The photographing method according to claim 1, wherein the presenting of the photographing guide frame includes:
presenting the photographing guide frame on the first display layer, and presenting the photographing interface on the second display layer;
the first display layer is laminated over the second display layer.
4. The photographing method of claim 1, wherein overlaying the target image on the privacy zone of the document image to generate a new document image comprises:
and transforming the size of the target image to be matched with the size of the privacy area, and overlaying the size-transformed target image on the privacy area of the certificate image to generate a new certificate image.
5. The photographing method according to one of claims 1 to 4, wherein the method further comprises:
presenting operation guide information for guiding a user operation in response to detecting an editing operation for a target image in the new certificate image;
in response to detecting the interactive operation of the user based on the operation guide information, executing a processing step corresponding to the interactive operation on the new certificate image;
presenting the processed new document image.
6. The photographing method of claim 5, wherein the interaction comprises at least one of: zooming operation, splitting operation, merging operation and dragging operation.
7. The photographing method of claim 5, wherein if the interactive operation comprises a zoom operation, the processing step corresponding to the interactive operation comprises: and scaling the target image to the size indicated by the scaling operation.
8. A photographing apparatus, characterized in that the apparatus comprises:
the system comprises a guide presenting unit, a photographing guide frame and a control unit, wherein the guide presenting unit is used for responding to the detection of certificate photographing operation and presenting the photographing guide frame, and the photographing guide frame is used for guiding a user to present a certificate image of a certificate to be photographed in a target area of a photographing interface;
the image extraction unit is used for extracting the certificate image presented in the target area and identifying the certificate type of the certificate indicated by the certificate image;
the area determining unit is used for determining the privacy area of the certificate image according to the certificate type obtained by identification and the mapping relation between the certificate type and the position of the privacy area, which is stored in advance;
and the target overlaying unit is used for overlaying the target image on the privacy area of the certificate image to generate a new certificate image.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110438419.5A 2021-04-22 2021-04-22 Photographing method and device, terminal equipment and storage medium Pending CN113034356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110438419.5A CN113034356A (en) 2021-04-22 2021-04-22 Photographing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110438419.5A CN113034356A (en) 2021-04-22 2021-04-22 Photographing method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113034356A true CN113034356A (en) 2021-06-25

Family

ID=76457498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110438419.5A Pending CN113034356A (en) 2021-04-22 2021-04-22 Photographing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113034356A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103890810A (en) * 2011-10-25 2014-06-25 索尼公司 Image processing apparatus, method and computer program product
US20150332439A1 (en) * 2014-05-13 2015-11-19 Xiaomi Inc. Methods and devices for hiding privacy information
CN107122679A (en) * 2017-05-16 2017-09-01 北京小米移动软件有限公司 Image processing method and device
CN111159749A (en) * 2019-12-31 2020-05-15 Oppo广东移动通信有限公司 Photographing method, photographing device, mobile terminal and computer readable storage medium
CN111767554A (en) * 2020-06-01 2020-10-13 Oppo(重庆)智能科技有限公司 Screen sharing method and device, storage medium and electronic equipment
CN112035877A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Information hiding method and device, electronic equipment and readable storage medium
CN112052857A (en) * 2020-09-02 2020-12-08 中国银行股份有限公司 Method and related device for detecting target field in bill image
CN112165571A (en) * 2020-09-09 2021-01-01 支付宝实验室(新加坡)有限公司 Certificate image acquisition method, device and equipment
US20210110579A1 (en) * 2018-06-21 2021-04-15 Dingtalk Holding (Cayman) Limited Screenshot processing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103890810A (en) * 2011-10-25 2014-06-25 索尼公司 Image processing apparatus, method and computer program product
US20150332439A1 (en) * 2014-05-13 2015-11-19 Xiaomi Inc. Methods and devices for hiding privacy information
CN107122679A (en) * 2017-05-16 2017-09-01 北京小米移动软件有限公司 Image processing method and device
US20210110579A1 (en) * 2018-06-21 2021-04-15 Dingtalk Holding (Cayman) Limited Screenshot processing method and device
CN111159749A (en) * 2019-12-31 2020-05-15 Oppo广东移动通信有限公司 Photographing method, photographing device, mobile terminal and computer readable storage medium
CN111767554A (en) * 2020-06-01 2020-10-13 Oppo(重庆)智能科技有限公司 Screen sharing method and device, storage medium and electronic equipment
CN112035877A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Information hiding method and device, electronic equipment and readable storage medium
CN112052857A (en) * 2020-09-02 2020-12-08 中国银行股份有限公司 Method and related device for detecting target field in bill image
CN112165571A (en) * 2020-09-09 2021-01-01 支付宝实验室(新加坡)有限公司 Certificate image acquisition method, device and equipment

Similar Documents

Publication Publication Date Title
JP6250014B2 (en) System and method for mobile image capture and processing
US10108860B2 (en) Systems and methods for generating composite images of long documents using mobile video data
US9754164B2 (en) Systems and methods for classifying objects in digital images captured using mobile devices
US10929597B2 (en) Techniques and systems for storing and protecting signatures and images in electronic documents
JP6025522B2 (en) Image processing apparatus, image processing method, image processing system, and program
US11568631B2 (en) Method, system, and non-transitory computer readable record medium for extracting and providing text color and background color in image
CN107622497A (en) Image cropping method, apparatus, computer-readable recording medium and computer equipment
JP6857586B2 (en) An image extraction device, an image extraction method, an image extraction program, and a recording medium in which the program is stored.
CN111325107A (en) Detection model training method and device, electronic equipment and readable storage medium
EP3069298A1 (en) Systems and methods for generating composite images of long documents using mobile video data
US10699145B1 (en) Systems and methods for augmented reality assisted form data capture
CN113034356A (en) Photographing method and device, terminal equipment and storage medium
KR20110087620A (en) Layout based page recognition method for printed medium
JP7318289B2 (en) Information processing device and program
KR102027786B1 (en) Method and system for recognizing face of user based on multiple images
CN112434727A (en) Identity document authentication method and system
CN111860475B (en) Image processing method and device, electronic equipment and storage medium
US20220198812A1 (en) Method for detecting groceries in corridor, terminal device and storage medium
JP6790672B2 (en) Information processing equipment, terminal equipment, servers, image distribution systems, and information processing programs
CN113056905A (en) System and method for taking tele-like images
JP6705988B2 (en) Information processing system, control method thereof, and program
CN116343241A (en) Object authenticity identification method and device, storage medium and electronic equipment
CN113780267A (en) Method, device and equipment for character recognition and computer readable medium
CN115880695A (en) Card identification method, card identification model training method and electronic equipment
CN115589456A (en) Shooting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination