CN108429877B - Image acquisition method and mobile terminal - Google Patents

Image acquisition method and mobile terminal Download PDF

Info

Publication number
CN108429877B
CN108429877B CN201710081343.9A CN201710081343A CN108429877B CN 108429877 B CN108429877 B CN 108429877B CN 201710081343 A CN201710081343 A CN 201710081343A CN 108429877 B CN108429877 B CN 108429877B
Authority
CN
China
Prior art keywords
image
certificate
mobile terminal
target surface
camera
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.)
Active
Application number
CN201710081343.9A
Other languages
Chinese (zh)
Other versions
CN108429877A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710081343.9A priority Critical patent/CN108429877B/en
Publication of CN108429877A publication Critical patent/CN108429877A/en
Application granted granted Critical
Publication of CN108429877B publication Critical patent/CN108429877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides an image acquisition method, which is used for acquiring an image set of user certificates by a mobile terminal. The method provided by the embodiment of the invention comprises the following steps: the mobile terminal receives the certificate image shooting request and starts a camera according to the certificate image shooting request. Then the camera is kept on, and the certificate is continuously photographed. Compared with the prior art, the method and the device have the advantages that the operation that the user selects the document page to be shot in the shooting interval of the plurality of images is omitted, the steps that the mobile terminal collects the document images are reduced, the selection cost of the user and the switching times of the operation interfaces of the horizontal screen and the vertical screen are reduced, the operation smoothness is high, and the user experience is good. The invention also provides a related mobile terminal.

Description

Image acquisition method and mobile terminal
Technical Field
The present application relates to the field of image processing, and in particular, to an image acquisition method and a mobile terminal.
Background
With the development of science and technology, more and more applications (apps) have been developed on mobile terminals such as mobile phones and tablets, and various functions can be implemented. For example, a cell phone bank App such as a micro-public bank can replace a traditional bank store to realize functions of account opening, account transfer, inquiry, payment and the like of a bank account. The popularization of apps such as mobile banking and the like saves the travel and queuing time for the user to handle the business, liberates the manpower and material resources of the service department, improves the processing efficiency of the business, and brings great convenience to the life of the user.
At present, the real-name system of the App is a trend, and the App can acquire the identity information of a user in various application scenes. For example, in an account opening business, a mobile phone bank needs a user to provide an image of his related certificate to verify identity for security requirements. Taking an identity card as an example: some Apps collect the identity card image of the user and take the identity card image of the user as the identity information of the user; after acquiring the identity card image of the user, some apps extract information such as the name, the birthday, the identity card number, the validity period of the identity card and the like of the user from the identity card image through means such as an Optical Character Recognizer (OCR) and the like as the identity information of the user.
The modes of the App for collecting the images of the user certificates are various, the images can be uploaded by the user independently, and the App can also start a camera on the mobile terminal to take pictures of the identity cards of the user. Since the identity information of the user on the certificate may exist on a plurality of pages (such as the front and back of the identity card), the App needs to take pictures of the pages of the user certificate. Generally, an App prompts a user to select a certain page of a certificate to take a picture, and after the picture of the page is taken, the App prompts the user to select the next page of the certificate to take a picture.
However, the existing App takes pictures of user certificates in many steps, and the operation between the steps is not smooth enough, so that the user experience of the App is not good.
Disclosure of Invention
The invention provides an image acquisition method, which is used for acquiring a page image of a user certificate by a mobile terminal. The invention also provides a related mobile terminal.
The image acquisition method provided by the invention comprises the following steps:
receiving a certificate image shooting request, and starting a camera according to the certificate image shooting request;
keeping the camera open, and respectively photographing a plurality of pages to be acquired of the certificate until images of all the pages to be acquired of the certificate are acquired.
The mobile terminal provided by the invention comprises:
the instruction receiving module is used for receiving a certificate image shooting request and starting a camera according to the certificate image shooting request;
and the image shooting module is used for keeping the camera open and respectively shooting a plurality of pages to be acquired of the certificate until images of all the pages to be acquired of the certificate are acquired.
In the image acquisition method provided by the invention, the mobile terminal receives the certificate image shooting request and starts the camera according to the certificate image shooting request. And then keeping the camera open, and continuously photographing the certificate until the images of all pages to be acquired of the certificate are acquired. Compared with the prior art, the method and the device have the advantages that the operations of closing the camera in the shooting interval of the multiple images and asking the user to select the certificate page to be shot are omitted, the steps of acquiring the certificate image by the mobile terminal are reduced, the selection cost of the user and the switching times of the transverse screen operation interface and the vertical screen operation interface are reduced, the operation smoothness is high, and the user experience is good.
Drawings
FIG. 1 is a schematic view of an operation interface when a mobile terminal shoots an identity card in a vertical screen mode;
FIG. 2 is a schematic view of an operation interface when the mobile terminal shoots an identity card in a horizontal screen mode;
FIG. 3 is a flowchart of an embodiment of a mobile terminal acquiring a user ID card image at the present stage;
FIG. 4 is a flowchart of an embodiment of an image acquisition method provided by the present invention;
FIG. 5 is a flowchart of another embodiment of an image acquisition method provided by the present invention;
FIG. 5(a) is a schematic view of an operation interface of the mobile terminal according to the present invention for displaying shooting options;
fig. 5(b) is a schematic view of an operation interface of the mobile terminal displaying the first guidance information according to the present invention;
fig. 5(c) is a schematic view of an operation interface of the mobile terminal displaying second guidance information according to the present invention;
FIG. 5(d) is a schematic view of an operation interface of the mobile terminal according to the present invention for displaying a rephotography option;
FIG. 5(e) is a flowchart of another embodiment of an image capturing method provided by the present invention;
FIG. 6 is a flowchart of another embodiment of an image acquisition method according to the present invention;
FIG. 6(a) is a schematic view of an operation interface of a mobile terminal according to the present invention showing a start button;
FIG. 6(b) is a schematic view of an operation interface for displaying guidance information of the mobile terminal according to the present invention;
FIG. 6(c) is a flowchart of another embodiment of an image capturing method according to the present invention;
FIG. 7 is a block diagram of one embodiment of a mobile terminal provided in the present invention;
fig. 8 is a block diagram of another embodiment of a mobile terminal according to the present invention.
Detailed Description
The invention provides an image acquisition method, which is used for acquiring a page image of a user certificate by a mobile terminal. The invention also provides a related mobile terminal, which will be described separately below.
The invention can be used for the mobile terminal to collect the passport, the driving license, the account number, the identity card, the bank card and other various credit investigation image sets of the user. Firstly, taking App to collect an identity card image as an example to introduce the image collection method at the present stage:
apps such as the micro-public bank need to shoot an identity card image of a user in some scenes to acquire identity information of the user. Because the front and back of the identity card all have the identity information of the user, the App needs to take pictures of the front and back of the identity card respectively. At present, the captured identity card image is generally obtained through the following process: the user selects one side of the identity card to be shot, the App shoots the side of the identity card, the user selects the other side of the identity card to be shot, and the App shoots the other side of the identity card. Thus, double-sided images of the identity card can be acquired. In addition, after the user shoots a certain face of the identity card, the user can select the face to shoot again.
In order to facilitate the user's grasp and browse, the mobile terminal (such as a mobile phone, an ipad, etc.) generally adopts a vertical screen operation interface by default, and the vertical direction is longer and the horizontal direction is shorter. The front view of the identity card is vertically shorter and horizontally longer. Therefore, when the mobile terminal shoots the identity card, the image range collected by the lens usually only occupies a small area of the operation interface, as shown in fig. 1.
The image area in fig. 1 is small and the sharpness and accuracy of the picture is low. In order to ensure that a user can clearly and accurately observe the shooting effect, the existing App also supports a horizontal screen shooting mode. Specifically, when the user turns the mobile terminal by 90 degrees to horizontal holding, the mobile terminal is converted into a horizontal screen operation interface, and the lens range of the camera is changed to a full screen, as shown in fig. 2. Therefore, the process of shooting the identity card image by the mobile terminal can be detailed as follows: in the vertical screen state, a user selects one side of the identity card to be photographed, namely the App starts a camera, the user changes the mobile terminal into a horizontal screen, the App photographs the side of the identity card through the camera, the App closes the camera, the user restores the mobile terminal into the vertical screen, the user selects the other side of the identity card to be photographed, the App starts the camera, the user changes the mobile terminal into the horizontal screen, the App item photographs the other side of the identity card, the App closes the camera, and the user restores the mobile terminal into the vertical screen. In addition, after the user shoots a certain face of the identity card, the user can select the face to shoot again. As shown in fig. 3.
As can be seen from fig. 3, the App collects the identity card image of the user in a plurality of steps. And the user needs to directly switch between the horizontal screen operation interface and the vertical screen operation interface of the mobile terminal, so that the operating smoothness of the App is not high, and the user experience is not good.
In order to solve the above problems, the present invention provides an image capturing method for improving the user experience of capturing a certificate image set by a mobile terminal. Referring to fig. 4, the basic flow includes:
401. and receiving a certificate image shooting request.
The mobile terminal receives a certificate image shooting request issued by a user. The certificate to be shot is provided with a plurality of pages to be collected, and the certificate image shooting request is used for requesting to start a camera to shoot each page to be collected of the certificate.
The certificate image shooting request can be an instruction triggered by a user clicking a relevant button used for starting a certificate image acquisition function in an App interface. The certificate image capturing request may also be other instructions, which is not limited in this embodiment.
402. The camera is started.
After receiving the certificate image shooting request, the mobile terminal starts a camera to enter a shooting mode. In the subsequent steps 403-404, the camera of the mobile terminal is kept on all the time, and the mobile terminal is in the photographing mode all the time until the mobile terminal acquires the images of all the pages to be acquired of the certificate.
403. A first image is captured.
After the camera is started, a user places a page to be collected of the certificate in the range of a lens of the camera. The mobile terminal photographs the certificate through the camera to obtain a first image.
Optionally, the user may click a photographing button of the camera to trigger the photographing instruction, and the mobile terminal executes the photographing operation after receiving the photographing instruction of the user, so as to obtain the first image. Optionally, the mobile terminal may also detect whether a certificate exists in the lens range of the camera, and if the certificate exists in the lens range of the camera, the mobile terminal automatically performs a photographing operation to obtain the first image.
After the mobile terminal takes the first image, the mobile terminal still keeps the camera on, and directly jumps to step 404.
404. A second image is captured.
After the mobile terminal takes a picture to obtain the first image, the camera is still kept open, the user places the next page to be collected of the certificate in the lens range of the camera, and the mobile terminal takes a picture of the certificate through the camera to obtain the second image.
Optionally, the user may click a photographing button of the camera to trigger the photographing instruction, and the mobile terminal executes the photographing operation after receiving the photographing instruction of the user, so as to obtain the second image. Optionally, the mobile terminal may also detect whether a certificate exists in the lens range of the camera, and if the certificate exists in the lens range of the camera, the mobile terminal automatically performs a photographing operation to obtain the second image.
The embodiment provides an image acquisition method, wherein a mobile terminal receives a certificate image shooting request and starts a camera according to the certificate image shooting request. And then keeping the camera open, and continuously photographing the certificate until the images of all pages to be acquired of the certificate are acquired. Compared with the prior art, the method and the device have the advantages that the operations of closing the camera and selecting the document page to be shot in the shooting interval of the plurality of images are omitted, the steps of acquiring the document image by the mobile terminal are reduced, the selection cost of a user and the switching times of the transverse screen operation interface and the vertical screen operation interface are reduced, the operation smoothness is high, and the user experience is good.
Optionally, for a document with only two pages to be captured, the image set of the document includes only the first image and the second image. In addition, some documents, such as passports, family books, etc., have more than two pages that need to be imaged. For such a certificate, after the mobile terminal executes steps 403 and 404, the mobile terminal still keeps the camera turned on, and continues to take pictures of other pages to be acquired of the certificate to obtain a third image, a fourth image and a fifth image … … until images of all pages to be acquired of the certificate are acquired.
Optionally, after the mobile terminal collects the images of all to-be-collected pages of the certificate, the camera can be turned off, and a rephotograph option is displayed on the operation interface and is shown to the user. If the user is not satisfied with the captured image or images, a re-shot may be selected.
The embodiment shown in fig. 4 shows a basic flow of the image acquisition method provided by the present invention. The embodiment shown in fig. 4 is suitable for image acquisition of various identity documents such as passports, driver licenses, account books, identity cards, bank cards and the like. Among the certificates, the certificates such as identity cards and bank cards have particularity, the certificates are card-type certificates and have a front face and a back face to be acquired, and the mobile terminal only needs to acquire front face images and back face images of the certificates. A more detailed embodiment of the double-sided card document is provided below, see fig. 5:
501. and receiving a certificate image shooting request.
The mobile terminal receives a certificate image shooting request issued by a user. The certificate image shooting request is used for requesting to start a camera to shoot each page to be collected of the certificate.
Optionally, the certificate image shooting request is further used for indicating that the target surface of the certificate is shot first, and the target surface may be the front surface or the back surface.
Optionally, the mobile terminal may display options of first shooting the front side of the certificate and first shooting the back side of the certificate on the operation interface, and the user clicks the corresponding option to select whether the first shot target side is the front side or the back side. The clicking operation can be used as a certificate image shooting request to be received by the mobile terminal. Fig. 5(a) shows an example of the mobile terminal displaying the shooting option, taking the mobile terminal shooting the identification card as an example.
502. The camera is started.
After receiving the certificate image shooting request, the mobile terminal starts a camera to enter a shooting mode. In subsequent steps 503-506, the camera of the mobile terminal is kept on all the time, and the mobile terminal is in the photographing mode all the time until the mobile terminal acquires the front side image and the back side image of the certificate.
503. And displaying the first guide information.
The mobile terminal displays a photographing interface after entering a photographing mode, and displays first guiding information on the photographing interface, wherein the first guiding information is used for indicating a user to place the target surface of the certificate at a specified position within the range of a camera lens, so that the camera can photograph correctly.
For example, when the mobile terminal photographs the front surface of the user's identification card, a rectangular photographing frame may be displayed on the photographing interface, and "the front surface of the identification card is placed in the area and aligned with the edge" is displayed, as shown in fig. 5 (b).
Step 503 is an optional step, and step 503 may also be omitted in practical applications.
504. Shooting a first image as a target surface image;
after the camera is started, the user places the target surface of the certificate within the range of the lens of the camera. The mobile terminal photographs the certificate through the camera to obtain a first image serving as a target surface image.
Optionally, the user may click a photographing button of the camera to trigger the photographing instruction, and the mobile terminal executes the photographing operation after receiving the photographing instruction of the user, so as to obtain the first image. Optionally, the mobile terminal may also detect whether a certificate exists in the lens range of the camera, and if the certificate exists in the lens range of the camera, the mobile terminal automatically performs a photographing operation to obtain the first image.
Optionally, the mobile terminal may extract image elements, such as head portrait elements, text elements, background elements, and the like, in the shot first image. It is then determined whether the first image is inverted based on the image elements. If the first image is inverted, the mobile terminal turns the first image 180 ° so that the first image is right side up.
After the mobile terminal takes the first image, the mobile terminal still keeps the camera on, and directly jumps to step 505.
505. And displaying the second guide information.
After the mobile terminal obtains the first image through photographing, second guiding information is displayed on a photographing interface and used for indicating a user to place the non-target surface of the certificate at a specified position within the range of a camera lens, so that the camera can photograph correctly. The non-target surface is used for representing the other surface of the target surface in two surfaces of the certificate. For example, if the target side is a front side, the non-target side is a back side. If the target surface is a back surface, the non-target surface is a front surface.
For example, after the mobile terminal successfully shoots the front side of the identity card of the user, a rectangular shooting frame can be displayed on the shooting interface, and "shooting success on the front side of the identity card |)! The back of the identification card is placed in this area and the edges aligned as shown in fig. 5 (c).
Step 505 is an optional step, and step 505 may be omitted in practical applications.
506. The second surface image is captured as a non-target surface image.
After the mobile terminal takes a picture to obtain the first image, the mobile terminal is still in a picture taking mode. The user places the non-target side of the document within the lens range of the camera. And the mobile terminal takes a picture of the certificate through the camera to obtain a second image as a non-target surface image.
Optionally, the user may click a photographing button of the camera to trigger the photographing instruction, and the mobile terminal executes the photographing operation after receiving the photographing instruction of the user, so as to obtain the second image. Optionally, the mobile terminal may also detect whether a certificate exists in the lens range of the camera, and if the certificate exists in the lens range of the camera, the mobile terminal automatically performs a photographing operation to obtain the second image.
Optionally, the mobile terminal may extract image elements, such as head portrait elements, text elements, background elements, and the like, in the shot second image. And then determining whether the second image is inverted based on the image elements. If the second image is inverted, the mobile terminal turns the second image by 180 ° so that the second image is right side up.
Because the card type certificate only comprises the front side and the back side, the mobile terminal finishes the image acquisition operation of all pages to be acquired of the card type certificate after shooting to obtain the first image and the second image.
Optionally, after the front image and the back image of the certificate are collected, the mobile terminal may close the camera, and display a rephotograph option on the operation interface to the user. If the user is not satisfied with the front image or the back image of the certificate, the user can choose to shoot again. Fig. 5(d) shows an example of the mobile terminal displaying the rephotograph option, taking the mobile terminal shooting the identification card as an example.
This embodiment describes in detail the method of capturing the double-sided images of a card-like document. The mobile terminal receives a certificate image shooting request and starts a camera according to the certificate image shooting request. The camera is then left on and both sides of the document are continuously photographed as shown in figure 5 (e). Compared with the prior art shown in fig. 3, the embodiment omits the operations of selecting and closing the camera at the photographing interval on the two sides of the certificate and asking the user to select the certificate page to be photographed, reduces the steps of acquiring the certificate image by the mobile terminal, reduces the selection cost of the user, reduces the switching times of the user between the transverse screen operation interface and the vertical screen operation interface, and has high operation smoothness and better user experience.
In the embodiment shown in fig. 5, whether the first image captured first by the mobile terminal is the front or back image is instructed by the user. Another image capturing method is provided below, and is used for the mobile terminal to actively determine whether the first image taken first is a front image or a back image. Referring to fig. 6, the basic flow includes:
601. and receiving a certificate image shooting request.
The mobile terminal receives a certificate image shooting request issued by a user. The certificate image shooting request is used for requesting to start a camera to shoot each page to be collected of the certificate.
The certificate image shooting request can be an instruction triggered by a user clicking a related button used for starting an image acquisition function of the certificate in an App interface. The certificate image capturing request may also be other instructions, which is not limited in this embodiment.
In this embodiment, the user is not required to instruct to photograph the front side or the back side of the certificate first. Therefore, compared with the embodiment shown in fig. 5, in this embodiment, the mobile terminal does not need to provide the user with options of photographing the front side and the back side of the certificate first on the operation interface, and only needs to provide a related button (such as a camera button) for starting the image capturing function of the certificate. Fig. 6(a) shows an example of the start button of the mobile terminal displaying the image capturing function, taking the mobile terminal shooting the identification card as an example.
602. The camera is started.
After receiving the certificate image shooting request, the mobile terminal starts a camera to enter a shooting mode. In subsequent steps 603-606, the camera of the mobile terminal is kept on all the time, and the mobile terminal is in a photographing mode all the time until the mobile terminal acquires the front image and the back image of the certificate.
603. A first image is captured.
After the camera is started, a user places a page to be photographed of the certificate in the lens range of the camera. The mobile terminal photographs the certificate through the camera to obtain a first image.
Optionally, the user may click a photographing button of the camera to trigger the photographing instruction, and the mobile terminal executes the photographing operation after receiving the photographing instruction of the user, so as to obtain the first image. Optionally, the mobile terminal may also detect whether a certificate exists in the lens range of the camera, and if the certificate exists in the lens range of the camera, the mobile terminal automatically performs a photographing operation to obtain the first image.
Optionally, after the camera is started, the mobile terminal may further display the guidance information on the photographing interface. However, since the mobile terminal does not determine whether the front side or the back side of the certificate is currently to be photographed, the front side or the back side for placing the certificate is not indicated in the guidance information displayed at this time. Fig. 6(b) shows an example of displaying the guidance information by the mobile terminal, taking the mobile terminal shooting the identification card as an example.
After the mobile terminal obtains the first image by taking a picture, the mobile terminal still keeps the camera on, and directly jumps to step 604.
604. And identifying the first image as a target surface image.
After the mobile terminal obtains the first image through shooting, the first image is recognized as a target surface, and the target surface can be a front surface or a back surface.
Optionally, the mobile terminal may extract image elements, such as head portrait elements, text elements, background elements, and the like, in the shot first image. It is then determined from the image elements whether the first image is a front image or a back image of the document. For example, if the first image includes an avatar element, the front side of the document includes an avatar, and the back side of the document does not include an avatar, then the first image may be determined to be the front side image of the document.
After the mobile terminal determines that the first image is the target surface image, the mobile terminal can determine that the second image to be shot is a non-target surface image. The non-target surface is used to represent the other of the two surfaces of the document, the target surface. For example, if the mobile terminal determines that the first image is the front image of the certificate, the second image is determined to be the back image of the certificate; and if the mobile terminal determines that the first image is the back image of the certificate, determining that the second image is the front image of the certificate.
Optionally, after the mobile terminal extracts the image element in the first image, it may further determine whether the first image is inverted according to the image element in the first image. For example, if the avatar of the front side of the document is located in the upper right corner region of the document and the avatar element of the first image is located in the lower left corner region of the first image, the first image can be determined to be inverted. If the first image is inverted, the mobile terminal turns the first image 180 ° so that the first image is right side up.
605. And displaying the third guide information.
After the mobile terminal obtains the first image through photographing, third guiding information is displayed on a photographing interface, and the third guiding information is used for indicating a user to place the non-target surface of the certificate at a specified position within the range of a camera lens, so that the camera can photograph correctly.
Step 605 is an optional step, and step 605 may be omitted in practical applications.
606. The second surface image is captured as a non-target surface image.
After the mobile terminal takes a picture to obtain the first image, the mobile terminal is still in a picture taking mode. The user places the non-target side of the document within the lens range of the camera. And the mobile terminal takes a picture of the certificate through the camera to obtain a second image as a non-target surface image.
Optionally, the user may click a photographing button of the camera to trigger the photographing instruction, and the mobile terminal executes the photographing operation after receiving the photographing instruction of the user, so as to obtain the second image. Optionally, the mobile terminal may also detect whether a certificate exists in the lens range of the camera, and if the certificate exists in the lens range of the camera, the mobile terminal automatically performs a photographing operation to obtain the second image.
Optionally, the mobile terminal may extract image elements, such as head portrait elements, text elements, background elements, and the like, in the shot second image. And then determining whether the second image is inverted based on the image elements. If the second image is inverted, the mobile terminal turns the second image by 180 ° so that the second image is right side up.
Because the card type certificate only comprises the front side and the back side, the mobile terminal finishes the image acquisition operation of all pages to be acquired of the card type certificate after shooting to obtain the first image and the second image.
Optionally, after the mobile terminal collects the front image and the back image of the certificate, a rephotograph option can be displayed on the interface and displayed to the user. If the user is not satisfied with the front image or the back image of the certificate, the user can choose to shoot again.
The present embodiment provides a method for acquiring a double-sided image of a more intelligent card-type document, as shown in fig. 6 (c). The mobile terminal can automatically detect whether the shot image is the front side or the back side of the certificate without the need of a user for selecting to shoot the front side or the back side of the certificate firstly. Therefore, the number of steps of the image acquisition method and the selection cost of a user are further reduced, and the user experience is improved.
Optionally, after the front image and the back image of the certificate are collected, the mobile terminal may close the camera, and display a rephotograph option on the operation interface to the user. If the user is not satisfied with the front image or the back image of the certificate, the user can choose to shoot again.
The above embodiment describes the image capturing method provided by the present invention, and a mobile terminal for implementing the image capturing method is described below, that is, the basic structure of the mobile terminal is shown in fig. 7, which includes:
the instruction receiving module 701 is used for receiving a certificate image shooting request and starting a camera according to the certificate image shooting request;
and the image shooting module 702 is used for keeping the camera open, and respectively shooting the plurality of pages to be acquired of the certificate until the images of all the pages to be acquired of the certificate are acquired.
In the mobile terminal provided in this embodiment, the instruction receiving module 701 receives a certificate image shooting request, and turns on a camera according to the certificate image shooting request. The image capture module 702 keeps the camera on and takes continuous photographs of the certificate. Compared with the prior art, the mobile terminal provided by the embodiment omits the operation that the user selects the document page to be shot in the shooting interval of the plurality of images, reduces the steps of collecting the document image by the mobile terminal, reduces the selection cost of the user and the switching times of the transverse screen and vertical screen operation interfaces, and has high operation smoothness and good user experience.
Optionally, the certificate is a card-type certificate, and the page to be acquired of the certificate includes the front side and the back side of the certificate.
Optionally, the certificate image shooting request is further configured to instruct to shoot an object side image of the certificate first, where the object side image of the certificate is one of a front side image or a back side image of the certificate;
the image capturing module 702 is specifically configured to: keeping the camera open, photographing the certificate to obtain a first image, and determining that the first image is a target surface image of the certificate; and then, photographing the certificate again to obtain a second image, and determining that the second image is a non-target surface image of the certificate, wherein the non-target surface is used for representing the other surface of the target surface.
Optionally, the mobile terminal further includes:
the information display module 703 is configured to display first guidance information before the image capturing module captures a first image of the certificate, where the first guidance information is used to indicate that the target surface of the certificate is placed at a specific position within the range of the camera lens;
the information display module 703 is further configured to: and displaying second guide information before the image shooting module shoots the certificate to obtain a second image, wherein the second guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
Optionally, the mobile terminal further includes:
the page determining module 704 is configured to determine that the first image is a target surface image of the certificate after the image capturing module captures the certificate to obtain the first image, where the target surface image of the certificate is one of a front surface image and a back surface image of the certificate;
the page determining module 704 is further configured to determine that the second image is a non-target surface image of the certificate, where the non-target surface is used to represent another surface of the target surface.
Optionally, the page determining module 704 is further configured to:
extracting image elements in the first image;
and determining whether the first image is a front image or a back image of the certificate according to image elements in the first image, and taking the first image as a target surface image of the certificate.
Optionally, the page determining module 704 is further configured to:
judging whether the first image is inverted or not according to image elements in the first image;
if the first image is determined to be inverted, the first image is flipped 180 °.
Optionally, the information display module 703 is further configured to: and displaying third guide information before the image shooting module shoots the certificate to obtain a second image, wherein the third guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
Optionally, the page determining module is further configured to:
extracting image elements in the second image;
judging whether the second image is inverted or not according to the image elements in the second image;
and if the second image is determined to be inverted, turning the second image by 180 degrees.
In the above, the mobile terminal in the embodiment of the present invention is described from the perspective of a unitized functional entity, and in the following, the mobile terminal in the embodiment of the present invention is described from the perspective of hardware processing, referring to fig. 8, another embodiment of a mobile terminal 800 in the embodiment of the present invention includes:
an input device 801, an output device 802, a processor 803 and a memory 804 (wherein the number of the processors 803 in the mobile terminal 800 may be one or more, and one processor 803 is taken as an example in fig. 8). In some embodiments of the present invention, the input device 801, the output device 802, the processor 803 and the memory 804 may be connected by a bus or other means, wherein the bus connection is taken as an example in fig. 8.
By calling the operation instruction stored in the memory 804, the processor 803 is configured to perform the following steps:
receiving a certificate image shooting request, and starting a camera according to the certificate image shooting request;
keeping the camera open, and respectively photographing a plurality of pages to be acquired of the certificate until images of all the pages to be acquired of the certificate are acquired.
In some embodiments of the invention, the document is a card-type document, and the page to be acquired of the document comprises the front side and the back side of the document.
In some embodiments of the invention, the processor 803 is further configured to perform the following steps:
in some embodiments of the invention, the certificate image capture request is used to indicate that a target side image of the certificate is captured first, and the target side image of the certificate is one of a front side image or a back side image of the certificate. The processor 803 is further configured to perform the following steps:
keeping the camera open, photographing the certificate to obtain a first image, and determining that the first image is a target surface image of the certificate; and then, photographing the certificate again to obtain a second image, and determining that the second image is a non-target surface image of the certificate, wherein the non-target surface is used for representing the other surface of the target surface.
In some embodiments of the invention, the processor 803 is further configured to perform the following steps:
displaying first guide information, wherein the first guide information is used for indicating that the target surface of the certificate is placed at a specified position within the range of the camera lens;
displaying second guide information, wherein the second guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
In some embodiments of the invention, the processor 803 is further configured to perform the following steps:
determining that the first image is a target surface image of the certificate, wherein the target surface image of the certificate is one of a front surface image or a back surface image of the certificate;
and determining that the second image is a non-target surface image of the certificate, wherein the non-target surface is used for representing the other surface of the target surface.
In some embodiments of the invention, the processor 803 is further configured to perform the following steps:
extracting image elements in the first image;
and determining whether the first image is a front image or a back image of the certificate according to image elements in the first image, and taking the first image as a target surface image of the certificate.
In some embodiments of the invention, the processor 803 is further configured to perform the following steps:
judging whether the first image is inverted or not according to image elements in the first image;
if the first image is determined to be inverted, the first image is flipped 180 °.
In some embodiments of the invention, the processor 803 is further configured to perform the following steps:
displaying third guide information, wherein the third guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
In some embodiments of the invention, the processor 803 is further configured to perform the following steps:
extracting image elements in the second image;
judging whether the second image is inverted or not according to the image elements in the second image;
and if the second image is determined to be inverted, turning the second image by 180 degrees.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention 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 unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. An image acquisition method is used for acquiring page images of a certificate by a mobile terminal, the certificate comprises a plurality of pages to be acquired, the certificate is a card-type certificate, the pages to be acquired of the certificate comprise the front side and the back side of the certificate, and the method comprises the following steps:
receiving a certificate image shooting request, starting a camera according to the certificate image shooting request, wherein the certificate image shooting request is also used for indicating that a target surface image of the certificate is shot firstly, and the target surface image of the certificate is one of a front surface image or a back surface image of the certificate;
keeping the camera open, if the certificate is detected to exist in the lens range of the camera, automatically executing photographing operation, photographing the certificate to obtain a first image, and determining that the first image is a target surface image of the certificate;
and photographing the certificate to obtain a second image, and determining that the second image is a non-target surface image of the certificate, wherein the non-target surface is used for representing the other surface of the target surface until images of all pages to be acquired of the certificate are acquired.
2. The method of claim 1, further comprising, prior to said capturing the first image of the document:
displaying first guide information, wherein the first guide information is used for indicating that the target surface of the certificate is placed at a specified position within the range of the camera lens;
the method further comprises, before the taking a picture of the document to obtain a second image:
displaying second guide information, wherein the second guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
3. The method of claim 1, further comprising, after said taking a first image of said document:
determining that the first image is a target surface image of the certificate, wherein the target surface image of the certificate is one of a front surface image or a back surface image of the certificate;
and determining that the second image is a non-target surface image of the certificate, wherein the non-target surface is used for representing the other surface of the target surface.
4. The image capture method of claim 3, wherein the determining that the first image is a target side image of the document comprises:
extracting image elements in the first image;
and determining whether the first image is a front image or a back image of the certificate according to image elements in the first image, and taking the first image as a target surface image of the certificate.
5. The image capturing method according to claim 4, wherein said extracting the image element in the first image further comprises:
judging whether the first image is inverted or not according to image elements in the first image;
if the first image is determined to be inverted, the first image is flipped 180 °.
6. The image capturing method of any one of claims 3 to 5, wherein the step of taking a picture of the document to obtain the second image further comprises:
displaying third guide information, wherein the third guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
7. The image capturing method of any one of claims 3 to 5, wherein the step of taking a picture of the document to obtain the second image further comprises:
extracting image elements in the second image;
judging whether the second image is inverted or not according to the image elements in the second image;
and if the second image is determined to be inverted, turning the second image by 180 degrees.
8. The utility model provides a mobile terminal for gather the page image of certificate, the certificate includes a plurality of pages of waiting to gather, the certificate is card formula certificate, the page of waiting to gather of certificate includes the front and the back of certificate, mobile terminal includes:
the instruction receiving module is used for receiving a certificate image shooting request and starting a camera according to the certificate image shooting request, wherein the certificate image shooting request is specifically used for indicating that a target surface image of the certificate is shot firstly, and the target surface image of the certificate is one of a front surface image or a back surface image of the certificate;
the image shooting module is used for keeping the camera open, automatically executing shooting operation if the certificate is detected to exist in the lens range of the camera, shooting the certificate to obtain a first image, and determining that the first image is a target surface image of the certificate;
and photographing the certificate to obtain a second image, and determining that the second image is a non-target surface image of the certificate, wherein the non-target surface is used for representing the other surface of the target surface until images of all pages to be acquired of the certificate are acquired.
9. The mobile terminal of claim 8, wherein the mobile terminal further comprises:
the information display module is used for displaying first guide information before the image shooting module shoots the certificate to obtain a first image, and the first guide information is used for indicating that the target surface of the certificate is placed at a specified position within the range of the camera lens;
the information display module is further configured to: and displaying second guide information before the image shooting module shoots the certificate to obtain a second image, wherein the second guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
10. The mobile terminal of claim 8, wherein the mobile terminal further comprises:
the page determining module is used for extracting image elements in the first image after the image shooting module shoots the certificate to obtain the first image, determining whether the first image is a front image or a back image of the certificate according to the image elements in the first image, and taking the first image as a target surface image of the certificate;
the page determining module is further configured to determine that the second image is a non-target surface image of the certificate, where the non-target surface is used to represent another surface of the target surface.
11. The mobile terminal of claim 10, wherein the page determining module is further configured to:
judging whether the first image is inverted or not according to image elements in the first image;
if the first image is determined to be inverted, turning the first image by 180 degrees;
extracting image elements in the second image;
judging whether the second image is inverted or not according to the image elements in the second image;
and if the second image is determined to be inverted, turning the second image by 180 degrees.
12. The mobile terminal according to claim 10 or 11, characterized in that the mobile terminal further comprises:
and the information display module is used for displaying third guide information before the image shooting module shoots the certificate to obtain a second image, and the third guide information is used for indicating that the non-target surface of the certificate is placed at a specified position within the range of the camera lens.
CN201710081343.9A 2017-02-15 2017-02-15 Image acquisition method and mobile terminal Active CN108429877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710081343.9A CN108429877B (en) 2017-02-15 2017-02-15 Image acquisition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710081343.9A CN108429877B (en) 2017-02-15 2017-02-15 Image acquisition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108429877A CN108429877A (en) 2018-08-21
CN108429877B true CN108429877B (en) 2021-08-13

Family

ID=63155413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710081343.9A Active CN108429877B (en) 2017-02-15 2017-02-15 Image acquisition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108429877B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376735A (en) * 2018-08-31 2019-02-22 百度在线网络技术(北京)有限公司 Identity information extracting method, device, electronic equipment and storage medium
CN110324531B (en) * 2019-05-24 2021-09-14 创新先进技术有限公司 Image acquisition guiding method and device
CN110443237B (en) * 2019-08-06 2023-06-30 北京旷视科技有限公司 Certificate identification method, device, electronic equipment and computer readable storage medium
CN112165571B (en) * 2020-09-09 2022-02-08 支付宝实验室(新加坡)有限公司 Certificate image acquisition method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655981A (en) * 2009-09-09 2010-02-24 谭洪舟 Method for detecting and adjusting inversion of certificate image
CN201919040U (en) * 2010-11-24 2011-08-03 龙旗科技(上海)有限公司 Camera mobile phone with function of advanced scanistor
US8699779B1 (en) * 2009-08-28 2014-04-15 United Services Automobile Association (Usaa) Systems and methods for alignment of check during mobile deposit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7119835B2 (en) * 2001-05-30 2006-10-10 Hewlett-Packard Development Company, L.P. Camera docking solution provides a user interface for printers, CD writers and other devices
JP2012008733A (en) * 2010-06-23 2012-01-12 King Jim Co Ltd Card information management device
CN103870257A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Continuous focusing method and device
GB2517674A (en) * 2013-05-17 2015-03-04 Wonga Technology Ltd Image capture using client device
CN104899785A (en) * 2015-04-04 2015-09-09 杭州中焯信息技术股份有限公司 Mobile terminal self-help account opening system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8699779B1 (en) * 2009-08-28 2014-04-15 United Services Automobile Association (Usaa) Systems and methods for alignment of check during mobile deposit
CN101655981A (en) * 2009-09-09 2010-02-24 谭洪舟 Method for detecting and adjusting inversion of certificate image
CN201919040U (en) * 2010-11-24 2011-08-03 龙旗科技(上海)有限公司 Camera mobile phone with function of advanced scanistor

Also Published As

Publication number Publication date
CN108429877A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
CN108429877B (en) Image acquisition method and mobile terminal
CN102006409B (en) Photographing condition setting apparatus, photographing condition setting method, and photographing condition setting program
US9684819B2 (en) Apparatus and method for distinguishing whether an image is of a live object or a copy of a photo or moving picture
CN104537339B (en) Information identifying method and information identification system
TWI752937B (en) Recognition method, device, mobile terminal and camera for photographed objects
CN104463103B (en) Image processing method and device
CN108009546A (en) information identifying method and device
WO2022161340A1 (en) Image display method and apparatus, and electronic device
CN110463177A (en) The bearing calibration of file and picture and device
CN109961594A (en) Data object information processing method, apparatus and system
CN111970437B (en) Text shooting method, wearable device and storage medium
CN105931239A (en) Image processing method and device
CN201114633Y (en) A mobile phone with camera
US10223584B2 (en) Document detection
US10212363B2 (en) Picture processing method and electronic device
CN108650431B (en) Shooting control method and device and electronic equipment
CN111290659A (en) Writing board information recording method and system and writing board
CN113379713B (en) Certificate image detection method and device
CN106469132A (en) The method and device of data processing
CN101867715A (en) Automatic image shooting system
US20140108405A1 (en) User-specified image grouping systems and methods
CN114742561A (en) Face recognition method, device, equipment and storage medium
US8502873B2 (en) Method for determining clear image using an image pickup device
CN101937256B (en) External lens device and erection method thereof
CN115334241B (en) Focusing control method, device, storage medium and image pickup apparatus

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
GR01 Patent grant
GR01 Patent grant