mirror of
				https://github.com/PaddlePaddle/FastDeploy.git
				synced 2025-11-01 04:12:58 +08:00 
			
		
		
		
	
		
			
				
	
	
	
		
			1.1 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.1 KiB
		
	
	
	
	
	
	
	
ocr_detection
ocr_detection model is used to detect the text area in the image.
The ocr_detection model is compressed from PP-OCRv3 which released by PaddleOCR, which greatly improves the running speed on js at a small loss of accuracy.
Usage
import * as ocr from '@paddle-js-models/ocrdet';
// Load ocr_detect model
await ocr.load();
// Get text area points
const res = await ocr.detect(img);
Online experience
https://paddlejs.baidu.com/ocrdet
Performance
 
			
		