{"id":15998205,"url":"https://github.com/yushulx/docrectifier4nodejs","last_synced_at":"2026-04-28T11:02:44.940Z","repository":{"id":205738170,"uuid":"713289600","full_name":"yushulx/docrectifier4nodejs","owner":"yushulx","description":"Node.js Document Rectification SDK built with Dynamsoft Document Normalizer","archived":false,"fork":false,"pushed_at":"2024-10-10T05:57:14.000Z","size":22621,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T11:40:14.509Z","etag":null,"topics":["document","edge-detection","nodejs","rectification"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/docrectifier4nodejs","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yushulx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-02T08:14:28.000Z","updated_at":"2024-12-23T06:04:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"08d371d4-6da5-46b4-baf3-50aca0de6c3f","html_url":"https://github.com/yushulx/docrectifier4nodejs","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"98d2480f6528deb15d3c9d5fe923b1c828ad1e96"},"previous_names":["yushulx/nodejs-document-rectification"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yushulx/docrectifier4nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fdocrectifier4nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fdocrectifier4nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fdocrectifier4nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fdocrectifier4nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yushulx","download_url":"https://codeload.github.com/yushulx/docrectifier4nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushulx%2Fdocrectifier4nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["document","edge-detection","nodejs","rectification"],"created_at":"2024-10-08T08:07:59.528Z","updated_at":"2026-04-28T11:02:44.909Z","avatar_url":"https://github.com/yushulx.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Document Rectification\n\nThe Node.js Document Rectification SDK is a Node binding to [Dynamsoft Label Recognizer C++ SDK](https://www.dynamsoft.com/document-normalizer/docs/core/introduction/?ver=latest). It helps developers build Node.js applications for document rectification on Windows and Linux.\n\n\n## License Key \nGet a [30-day FREE trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dcv\u0026package=cross-platform) to activate the SDK.\n\n## Pre-requisites\n- [Node.js](https://nodejs.org/en/download/)\n- Platform-specific C/C++ compiler\n- node-gyp\n\n    ```\n    npm i node-gyp -g\n    ```\n\n## Supported Platforms\n- **Windows**\n- **Linux**\n\n## Quick Start\nSet the `LICENSE-KEY` and specify the `image-file` in the code below:\n```js\nconst DocRectifier = require('docrectifier4nodejs');\nDocRectifier.initLicense('LICENSE-KEY');\n\nvar obj = new DocRectifier();\n(async function () {\ntry {\n    obj.setParameters(DocRectifier.Template.color);\n    let results = await obj.detectFileAsync('image-file');\n    let result = results[0];\n    result = await obj.normalizeFileAsync('image-file', result['x1'], result['y1'], result['x2'], result['y2'], result['x3'], result['y3'], result['x4'], result['y4']);\n    obj.save('test.png');\n} catch (error) {\n    console.log(error);\n}\n})();\n\n```\n\n## API\n- `initLicense(licenseKey)`\n- `setParameters(template)`\n- `getParameters()`\n- `detectFileAsync(imageFile, callback)`\n- `detectBufferAsync(imageBuffer, width, height, stride, callback)`\n- `normalizeFileAsync(imageFile, x1, y1, x2, y2, x3, y3, x4, y4, callback)`\n- `normalizeBufferAsync(imageBuffer, width, height, stride, x1, y1, x2, y2, x3, y3, x4, y4, callback)`\n- `save(imageFile)`\n\n## Examples\n- [Command Line](https://github.com/yushulx/nodejs-document-rectification/tree/main/examples/command-line)\n  \n     ![command line document rectification in node.js](https://github.com/yushulx/nodejs-document-rectification/assets/2202306/bd824c6b-6097-4ff3-a28b-9248c71583aa)\n\n- [Web](https://github.com/yushulx/nodejs-document-rectification/tree/main/examples/web)\n\n    ![nodejs-web-document-rectification](https://github.com/yushulx/nodejs-document-rectification/assets/2202306/022ba158-fc66-4053-9429-f331ca9badcc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyushulx%2Fdocrectifier4nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyushulx%2Fdocrectifier4nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyushulx%2Fdocrectifier4nodejs/lists"}