{"id":19069596,"url":"https://github.com/srect/recognition","last_synced_at":"2026-05-17T04:30:16.948Z","repository":{"id":114173065,"uuid":"329577757","full_name":"sRect/recognition","owner":"sRect","description":"图片文字识别","archived":false,"fork":false,"pushed_at":"2021-02-03T06:10:58.000Z","size":47912,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T15:45:24.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sRect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-14T10:14:06.000Z","updated_at":"2021-02-03T06:11:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"efe6c26a-5218-4f8d-909b-f80d3d718ffe","html_url":"https://github.com/sRect/recognition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Frecognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Frecognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Frecognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Frecognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sRect","download_url":"https://codeload.github.com/sRect/recognition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240122573,"owners_count":19751142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T01:14:51.825Z","updated_at":"2026-05-17T04:30:16.896Z","avatar_url":"https://github.com/sRect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 图片文字识别\n\n### 1. 直接使用\n\u003e **注意**：请提前在根目录新建好download文件夹，并把图片放置文件夹内\n1. 识别网络图片\n```shell\nnode cli.js --url=\"http//xxxxxx.jpg\" \n```\n2. 识别本地图片\n```shell\nnode cli.js --url=\"xxxxxx.jpg\" --isLocalUrl=true\n```\n### 2. 打包成pkg使用\n1. 识别网络图片\n```shell\nrecognition.exe --url=\"http//xxxxxx.jpg\" --isPkg=true\n```\n2. 识别本地图片\n```shell\nrecognition.exe --url=\"xxxxxx.jpg\" --isLocalUrl=true --isPkg=true\n```\n\n### 3. 遗留的问题\n\u003e 打包成exe可执行文件，运行命令后，会出现[报错](https://github.com/vercel/pkg/issues/903)，还未解决。\n```\ninternal/modules/cjs/loader.js:636\n    throw err;\n    ^\n\nError: Cannot find module 'E:\\my\\resource\\recognition\\dist\\--debug-port=9230'\n    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:634:15)\n    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)\n    at Function.Module._load (internal/modules/cjs/loader.js:560:25)\n    at Function.Module.runMain (pkg/prelude/bootstrap.js:1375:12)\n    at startup (internal/bootstrap/node.js:320:19)\n    at bootstrapNodeJSCore (internal/bootstrap/node.js:660:3)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrect%2Frecognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrect%2Frecognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrect%2Frecognition/lists"}