IP Library Granted Patent US 11,232,161
Granted Patent B1
US 11,232,161 · App. 17/355,759 · Granted Jan 25, 2022

Methods and apparatuses for electronically stamping document

Inventor: Jinyu Qu (Hangzhou, CN)
Assignee: Alipay (Hangzhou) Information Technology Co., Ltd.
G06F16/93G06F16/906G06K9/00449H04L9/3247
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,232,161
App. No.
17/355,759
Granted
Jan 25, 2022
Kind
B1
Abstract

Disclosed herein are methods, systems, and apparatus, including computer programs encoded on computer storage media, for electronically stamping a document. One of the methods include receiving an electronic stamping instruction, where the electronic stamping instruction comprises a to-be-stamped document and a stamping type. In response to determining that a format of the to-be-stamped document is a predetermined document format and the stamping type is a first stamping type, a first to-be-stamped area of the to-be-stamped document is determined. An electronic stamp corresponding to the to-be-stamped document is identified using an encryption algorithm interface. A first electronically stamped document is generated and include the electronic stamp in the first to-be-stamped area.

Claims (79)

1. A computer-implemented method, comprising:

receiving an electronic stamping instruction, wherein the electronic stamping instruction comprises a to-be-stamped document and a stamping type;

in response to determining that a format of the to-be-stamped document is a predetermined document format and the stamping type is a first stamping type, determining a first to-be-stamped area of the to-be-stamped document;

identifying an electronic stamp corresponding to the to-be-stamped document using an encryption algorithm interface; and

generating a first electronically stamped document comprising the electronic stamp in the first to-be-stamped area.

2. The computer-implemented method of claim 1 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

segmenting the to-be-stamped document into a plurality of text areas based on a predetermined segmentation box;

counting a number of characters recognized in each of the plurality of text areas; and

determining the first to-be-stamped area of the to-be-stamped document as a text area with a smallest number of characters.

3. The computer-implemented method of claim 1 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

segmenting a first page of the to-be-stamped document into a plurality of text areas based on a predetermined segmentation box;

counting a number of characters recognized in each of the plurality of text areas;

determining a stamping area of the first page of the to-be-stamped document as a text area with a smallest number of texts;

determining stamping areas of other pages of the to-be-stamped document as a location in the other pages of the to-be-stamped document that corresponds to the stamping area of the first page; and

determining the first to-be-stamped area of the to-be-stamped document as the stamping area of the first page and the stamping areas of the other pages.

4. The computer-implemented method of claim 1 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

in response to determining that the to-be-stamped document comprise a text that matches a predetermined stamp text, determining the first to-be-stamped area of the to-be-stamped document as a location of the text that matches the predetermined stamp text.

5. The computer-implemented method of claim 1 , further comprising:

in response to determining that the format of the to-be-stamped document is the predetermined document format and the stamping type is a second stamping type, determining a second to-be-stamped area of the to-be-stamped document.

6. The computer-implemented method of claim 5 , wherein determining the second to-be-stamped area of the to-be-stamped document comprises:

horizontally splicing a current page of the to-be-stamped document and a next page of the to-be-stamped document; and

determining the second to-be-stamped area of the to-be-stamped document as a splicing area of the current page and the next page of the to-be-stamped document.

7. The computer-implemented method of claim 5 , wherein determining the second to-be-stamped area of the to-be-stamped document comprises:

identifying the electronic stamp corresponding to the to-be-stamped document using the encryption algorithm interface;

dividing the electronic stamp by half into a first electronic stamp and a second electronic stamp;

determining a first edge stamping area as a first edge area that is in a current page of the to-be-stamped document and that has a same width as the first electronic stamp;

determining a second edge stamping area as a second edge area that is in a next page of the to-be-stamped document and that has a same width as the second electronic stamp, wherein a first location of the first edge stamping area corresponds to a second location of the second edge stamping area; and

determining the second to-be-stamped area of the to-be-stamped document as the first edge stamping area and the second edge stamping area.

8. The computer-implemented method of claim 7 , further comprising:

generating a second electronically stamped document comprising the first electronic stamp in the first edge stamping area and the second electronic stamp in the second edge stamping area.

9. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

receiving an electronic stamping instruction, wherein the electronic stamping instruction comprises a to-be-stamped document and a stamping type;

in response to determining that a format of the to-be-stamped document is a predetermined document format and the stamping type is a first stamping type, determining a first to-be-stamped area of the to-be-stamped document;

identifying an electronic stamp corresponding to the to-be-stamped document using an encryption algorithm interface; and

generating a first electronically stamped document comprising the electronic stamp in the first to-be-stamped area.

10. The non-transitory, computer-readable medium of claim 9 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

segmenting the to-be-stamped document into a plurality of text areas based on a predetermined segmentation box;

counting a number of characters recognized in each of the plurality of text areas; and

determining the first to-be-stamped area of the to-be-stamped document as a text area with a smallest number of characters.

11. The non-transitory, computer-readable medium of claim 9 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

segmenting a first page of the to-be-stamped document into a plurality of text areas based on a predetermined segmentation box;

counting a number of characters recognized in each of the plurality of text areas;

determining a stamping area of the first page of the to-be-stamped document as a text area with a smallest number of texts;

determining stamping areas of other pages of the to-be-stamped document as a location in the other pages of the to-be-stamped document that corresponds to the stamping area of the first page; and

determining the first to-be-stamped area of the to-be-stamped document as the stamping area of the first page and the stamping areas of the other pages.

12. The non-transitory, computer-readable medium of claim 9 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

in response to determining that the to-be-stamped document comprise a text that matches a predetermined stamp text, determining the first to-be-stamped area of the to-be-stamped document as a location of the text that matches the predetermined stamp text.

13. The non-transitory, computer-readable medium of claim 9 , wherein the operations further comprise:

in response to determining that the format of the to-be-stamped document is the predetermined document format and the stamping type is a second stamping type, determining a second to-be-stamped area of the to-be-stamped document.

14. The non-transitory, computer-readable medium of claim 13 , wherein determining the second to-be-stamped area of the to-be-stamped document comprises:

horizontally splicing a current page of the to-be-stamped document and a next page of the to-be-stamped document; and

determining the second to-be-stamped area of the to-be-stamped document as a splicing area of the current page and the next page of the to-be-stamped document.

15. The non-transitory, computer-readable medium of claim 13 , wherein determining the second to-be-stamped area of the to-be-stamped document comprises:

identifying the electronic stamp corresponding to the to-be-stamped document using the encryption algorithm interface;

dividing the electronic stamp by half into a first electronic stamp and a second electronic stamp;

determining a first edge stamping area as a first edge area that is in a current page of the to-be-stamped document and that has a same width as the first electronic stamp;

determining a second edge stamping area as a second edge area that is in a next page of the to-be-stamped document and that has a same width as the second electronic stamp, wherein a first location of the first edge stamping area corresponds to a second location of the second edge stamping area; and

determining the second to-be-stamped area of the to-be-stamped document as the first edge stamping area and the second edge stamping area.

16. The non-transitory, computer-readable medium of claim 15 , wherein the operations further comprise:

generating a second electronically stamped document comprising the first electronic stamp in the first edge stamping area and the second electronic stamp in the second edge stamping area.

17. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

receiving an electronic stamping instruction, wherein the electronic stamping instruction comprises a to-be-stamped document and a stamping type;

in response to determining that a format of the to-be-stamped document is a predetermined document format and the stamping type is a first stamping type, determining a first to-be-stamped area of the to-be-stamped document;

identifying an electronic stamp corresponding to the to-be-stamped document using an encryption algorithm interface; and

generating a first electronically stamped document comprising the electronic stamp in the first to-be-stamped area.

18. The computer-implemented system of claim 17 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

segmenting the to-be-stamped document into a plurality of text areas based on a predetermined segmentation box;

counting a number of characters recognized in each of the plurality of text areas; and

determining the first to-be-stamped area of the to-be-stamped document as a text area with a smallest number of characters.

19. The computer-implemented system of claim 17 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

segmenting a first page of the to-be-stamped document into a plurality of text areas based on a predetermined segmentation box;

counting a number of characters recognized in each of the plurality of text areas;

determining a stamping area of the first page of the to-be-stamped document as a text area with a smallest number of texts;

determining stamping areas of other pages of the to-be-stamped document as a location in the other pages of the to-be-stamped document that corresponds to the stamping area of the first page; and

determining the first to-be-stamped area of the to-be-stamped document as the stamping area of the first page and the stamping areas of the other pages.

20. The computer-implemented system of claim 17 , wherein determining the first to-be-stamped area of the to-be-stamped document comprises:

in response to determining that the to-be-stamped document comprise a text that matches a predetermined stamp text, determining the first to-be-stamped area of the to-be-stamped document as a location of the text that matches the predetermined stamp text.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2021
From: QU, JINYU
To: ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 057383/0796 →
Priority Claims (1)
CN 202010955058.7 · Sep 11, 2020 · national
Cited By (1)
US 12,505,299