Method for character recognition, electronic device, and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsQunyi XIE, Yangliu XU, Xiameng QIN, Chengquan ZHANG
Life of this patent
Estimating the term…
Abstract
The disclosure discloses a method for character recognition, an electronic device, and a storage medium. The technical solution includes: obtaining a test sample image and a test sample character both corresponding to a test task; performing fine-tuning on a trained meta-learning model based on the test sample image and the test sample character to obtain a test task model; obtaining a test image corresponding to the test task; and generating a test character corresponding to the test image by inputting the test image into the test task model.
Claims18
A method for character recognition, comprising:
- obtaining a test sample image and a test sample character both corresponding to a test task;
- performing fine-tuning on a trained meta-learning model based on the test sample image and the test sample character to obtain a test task model;
- obtaining a test image corresponding to the test task;
- and
- generating a test character corresponding to the test image by inputting the test image into the test task model.
An electronic device, comprising:
- at least one processor;
- and
- a memory, communicatively coupled to the at least one processor;
- wherein the memory is configured to store instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is configured to:
- obtain a test sample image and a sample character both corresponding to a test task;
- perform fine-tuning on a trained meta-learning model based on the test sample image and the test sample character to obtain a test task model;
- obtain a test image corresponding to the test task;
- and
- generate a test character corresponding to the test image by inputting the test image into the test task model.
A non-transitory computer readable storage medium having computer instructions stored thereon, wherein the computer instructions are configured to cause a computer to execute a method for character recognition, and the method comprises:
- obtaining a test sample image and a test sample character both corresponding to a test task;
- performing fine-tuning on a trained meta-learning model based on the test sample image and the test sample character to obtain a test task model;
- obtaining a test image corresponding to the test task;
- and
- generating a test character corresponding to the test image by inputting the test image into the test task model.
Dependencies are inferred from the claim text.