chore: update package.json to include pdf-to-img dependency and add TODO comment in MacSysOcrProvider for future optimization
This commit is contained in:
@@ -43,6 +43,7 @@ export default class MacSysOcrProvider extends BaseOcrProvider {
|
||||
writeStream: fs.WriteStream
|
||||
): Promise<void> {
|
||||
await this.initMacOCR()
|
||||
// TODO: 下个版本后面使用批处理,以及p-queue来优化
|
||||
for (let i = 0; i < totalPages; i++) {
|
||||
// Convert pages to buffers
|
||||
const pageNum = i + 1
|
||||
|
||||
Reference in New Issue
Block a user