# US 2025/0156482 A1 · Hand-Drawing Shape-Based Document Retrieval

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156482 A1
- Document ID: US20250156482A1
- Status: Published application
- Kind: A1
- Application number: 18/715,595
- Filed: 2022-11-23
- Published: 2025-05-15
- Earliest claimed: 2022-01-27
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Ran Bi; Yingxia Li; Yuwang Wang; Xiaoyi Zhang
- Web page: https://patentgrep.com/patent/US20250156482A1

## CPC

- G06F 16/5854: {using shape and object relationship}
- G06F 16/93: Document management systems
- G06F 16/24578: {using ranking}
- G06F 16/901: Indexing; Data structures therefor; Storage structures (for retrieval from the web G06F16/951)
- G06V 10/32: Normalisation of the pattern dimensions
- G06V 10/46: Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features (colour feature extraction G06V10/56)
- G06V 10/757: {Matching configurations of points or features}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V 30/418: Document matching, e.g. of document images
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The present disclosure provides methods, apparatuses and computer program products for hand-drawing shape-based document retrieval. An input hand-drawing shape may be obtained. A hand-drawing shape feature of the hand-drawing shape may be extracted through a feature extracting model. At least one target document may be retrieved by using the hand-drawing shape feature and a feature index library associated with a plurality of candidate documents, at least one document page in the target document locally matching the hand-drawing shape.

## Claims

### Claim 1

A method for hand-drawing shape-based document retrieval, comprising:
obtaining an input hand-drawing shape;
extracting, through a feature extracting model, a hand-drawing shape feature of the hand-drawing shape; and
retrieving at least one target document by using the hand-drawing shape feature and a feature index library associated with a plurality of candidate documents, at least one document page in the target document locally matching the hand-drawing shape.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
preprocessing the hand-drawing shape, to scale the hand-drawing shape to a predetermined size,
wherein the extracting a hand-drawing shape feature comprises: extracting the hand-drawing shape feature of the preprocessed hand-drawing shape.

### Claim 3 (depends on 1)

The method of claim 1, wherein
the feature index library comprises a plurality of data items respectively corresponding to a plurality of document page images, and each data item at least comprises: a document page image feature extracted from a document page image corresponding to a document page in a candidate document; and an index of the document page image.

### Claim 4 (depends on 3)

The method of claim 3, wherein the retrieving at least one target document comprises:
calculating a similarity value between the hand-drawing shape feature and each document page image feature in the feature index library;
ranking the plurality of document page images based on similarity values; and
selecting at least one candidate document corresponding to at least one highest-ranked document page image, as the at least one target document.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
for each candidate document in the plurality of candidate documents, obtaining a group of document page images corresponding to the candidate document, each document page image in the group of document page images corresponding to a document page in a group of document pages included in the candidate document; and
establishing, at least through the feature extracting model, the feature index library based on a plurality of groups of document page images respectively corresponding to the plurality of candidate documents.

### Claim 6 (depends on 5)

The method of claim 5, wherein the establishing the feature index library comprises, for each document page image:
extracting, through the feature extracting model, a document page image feature of the document page image; and
storing the document page image feature and an index of the document page image together into the feature index library.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
preprocessing the document page image, to scale the document page image to a predetermined size,
wherein the extracting a document page image feature comprises: extracting the document page image feature of the preprocessed document page image.

### Claim 8 (depends on 1)

The method of claim 1, wherein,
the feature extracting model is based on deep convolutional neural network.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
training the feature extracting model by using a training dataset which includes a group of training samples, each training sample at least comprising a hand-drawing shape sample, a document page image sample and a similarity label.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
performing data augmentation to at least one training sample in the training dataset, to randomly change a hand-drawing shape sample and a document page image sample in the training sample.

### Claim 11 (depends on 10)

The method of claim 10, wherein the data augmentation comprises at least one of:
random cropping and scaling; random region erasing; random perspective converting; and random color jittering.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
presenting a retrieval result about the document page and/or the target document.

### Claim 13 (depends on 1)

The method of claim 1, wherein
the plurality of candidate documents are personal documents of a user and/or public documents on the network.

### Claim 14

An apparatus for hand-drawing shape-based document retrieval, comprising:
at least one processor; and
a memory storing computer-executable instructions that, when executed, cause the at least one processor to:
obtain an input hand-drawing shape,
extract, through a feature extracting model, a hand-drawing shape feature of the hand-drawing shape, and
retrieve at least one target document by using the hand-drawing shape feature and a feature index library associated with a plurality of candidate documents, at least one document page in the target document locally matching the hand-drawing shape.

### Claim 15

A computer program product for hand-drawing shape-based document retrieval, comprising a computer program that is executed by at least one processor for:
obtaining an input hand-drawing shape;
extracting, through a feature extracting model, a hand-drawing shape feature of the hand-drawing shape; and
retrieving at least one target document by using the hand-drawing shape feature and a feature index library associated with a plurality of candidate documents, at least one document page in the target document locally matching the hand-drawing shape.
