{"id":18696305,"url":"https://github.com/dynamsoft/capture-vision-javascript-samples","last_synced_at":"2026-02-07T23:04:49.212Z","repository":{"id":248981586,"uuid":"825601162","full_name":"Dynamsoft/capture-vision-javascript-samples","owner":"Dynamsoft","description":"Dynamsoft Capture Vision Samples for JavaScript","archived":false,"fork":false,"pushed_at":"2026-01-22T23:44:27.000Z","size":1606,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-01-23T16:50:44.151Z","etag":null,"topics":["barcode-reading","browser","camera-control","data-capture","data-parsing","document-capture","javascript","solutions","text-recognition"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Dynamsoft.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":"2024-07-08T06:51:46.000Z","updated_at":"2026-01-22T23:41:46.000Z","dependencies_parsed_at":"2024-07-27T05:26:02.987Z","dependency_job_id":"170a7a99-4bcb-405b-8763-caee64141280","html_url":"https://github.com/Dynamsoft/capture-vision-javascript-samples","commit_stats":null,"previous_names":["dynamsoft/capture-vision-javascript-samples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dynamsoft/capture-vision-javascript-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynamsoft%2Fcapture-vision-javascript-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynamsoft%2Fcapture-vision-javascript-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynamsoft%2Fcapture-vision-javascript-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynamsoft%2Fcapture-vision-javascript-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dynamsoft","download_url":"https://codeload.github.com/Dynamsoft/capture-vision-javascript-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynamsoft%2Fcapture-vision-javascript-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29211645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T22:58:45.823Z","status":"ssl_error","status_checked_at":"2026-02-07T22:58:45.272Z","response_time":63,"last_error":"SSL_read: 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":["barcode-reading","browser","camera-control","data-capture","data-parsing","document-capture","javascript","solutions","text-recognition"],"created_at":"2024-11-07T11:18:01.291Z","updated_at":"2026-02-07T23:04:49.194Z","avatar_url":"https://github.com/Dynamsoft.png","language":"HTML","readme":"# Dynamsoft Capture Vision Samples for JavaScript\n\n## Samples\n\n| Sample Name   | Description                                                                          |\n| ------------  | ------------------------------------------------------------------------------------ |\n| `VIN Scanner` | Scan the VIN code from a barcode or a text line and extract the vehicle information. |\n\n## Request a Trial License\n\nThe key \"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9\" used in this solution (found in the js/init.js file) is a test license valid for 24 hours for any newly authorized browser. If you wish to test the SDK further, you can request a 30-day free trial license through the \u003ca href=\"https://www.dynamsoft.com/customer/license/trialLicense?product=dcv\u0026utm_source=samples\u0026package=js\" target=\"_blank\"\u003eRequest a Trial License\u003c/a\u003e link.\n\n## Project Structure\n\n```text\nSample Project\n├── assets\n│   ├── ...\n│   ├── ...\n│   └── ...\n├── css\n│   └── index.css\n├── font\n│   ├── ...\n│   ├── ...\n│   └── ...\n├── js\n│   ├── const.js\n│   ├── index.js\n│   ├── init.js\n│   └── util.js\n├── index.html\n└── template.json\n```\n\n * `/assets` : This directory contains all the static files such as images, icons, etc. that are used in the project.\n * `/css` : This directory contains the CSS file(s) used for styling the project.\n * `/font` : This directory contains the font files used in the project.\n * `/js` : This directory contains all the JavaScript files used in the project.\n   * `const.js` : This file contains definitions of certain constants or variables used across the project.\n   * `index.js`: This is the main JavaScript file where the core logic of the project is implemented.\n   * `init.js` : This file is used for initialization purposes, such as initializing license, load resources, etc.\n   * `util.js` : This file contains utility functions that are used across the project.\n * `index.html` : This is the main HTML file that represents the homepage of the project.\n * `template.json` : This file contains predefined templates used in the project.\n * `minimum-elements.html` : This HTML file includes the sample project with minimal elements and limited CSS, all contained within a single page.\n\n## System Requirements\n\nThis project requires the following features to work:\n\n- Secure context (HTTPS deployment)\n\n  When deploying your application / website for production, make sure to serve it via a secure HTTPS connection. This is required for two reasons\n  \n  - Access to the camera video stream is only granted in a security context. Most browsers impose this restriction.\n  \u003e Some browsers like Chrome may grant the access for `http://127.0.0.1` and `http://localhost` or even for pages opened directly from the local disk (`file:///...`). This can be helpful for temporary development and test.\n  \n  - Dynamsoft License requires a secure context to work.\n\n- `WebAssembly`, `Blob`, `URL`/`createObjectURL`, `Web Workers`\n\n  The above four features are required for the SDK to work.\n\n- `MediaDevices`/`getUserMedia`\n\n  This API is required for in-browser video streaming.\n\n- `getSettings`\n\n  This API inspects the video input which is a `MediaStreamTrack` object about its constrainable properties.\n\nThe following table is a list of supported browsers based on the above requirements:\n\n  | Browser Name |     Version      |\n  | :----------: | :--------------: |\n  |    Chrome    | v78+\u003csup\u003e1\u003c/sup\u003e |\n  |   Firefox    | v63+\u003csup\u003e1\u003c/sup\u003e |\n  |     Edge     |       v79+       |\n  |    Safari    |       v14+       |\n\n  \u003csup\u003e1\u003c/sup\u003e devices running iOS needs to be on iOS 14.3+ for camera video streaming to work in Chrome, Firefox or other Apps using webviews.\n\nApart from the browsers, the operating systems may impose some limitations of their own that could restrict the use of the SDK. Browser compatibility ultimately depends on whether the browser on that particular operating system supports the features listed above.\n\n## Testing\n\nThis repository also includes end-to-end tests for each samples using [Playwright](https://playwright.dev/). The tests are organized per sample, and the setup supports cross-browser testing across Chromium, Firefox, and WebKit.\n\n### Installation\n\n``` bash\nnpm install\nnpx playwright install --with-deps # installs playwright browsers\n```\n\n### Running Tests\n\n```bash\nnpx playwright test # or `npm test`\n```\n\n### View Test Reports\n\n```bas\nnpx playwright show-report\n```\n\n### CI Integration\n\nThis repository is set up to run tests automatically on each commit via CI Github Actions. To learn more, visit https://playwright.dev/docs/ci-intro.\n\n## Contact Us\n\n[https://www.dynamsoft.com/company/contact/](https://www.dynamsoft.com/company/contact/?product=cvs\u0026utm_source=github\u0026package=js)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamsoft%2Fcapture-vision-javascript-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamsoft%2Fcapture-vision-javascript-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamsoft%2Fcapture-vision-javascript-samples/lists"}