Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAPI-292 (feat): replace opencv with pure javascript implementation #15

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.1.0] - 26-09-2024

- (feat): remove opencv and replace it with pure javascript functions to improve loading performance

## [2.0.1] - 06-09-2024

- (fix): skip pre-processing step if opencv did not load
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Anyline",
"name": "@anyline/anyline-guidance-sdk",
"version": "2.0.1",
"version": "2.1.0-beta-1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down
6 changes: 1 addition & 5 deletions src/camera/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import HostManager from '../modules/HostManager';
import initRouter from '../lib/initRouter';
import { type Config } from '../modules/ConfigManager/ConfigManager';
import OpenCVManager from '../modules/OpenCVManager';
import DocumentScrollController from '../modules/DocumentScrollController';
import CallbackHandler from '../modules/CallbackHandler';

Expand Down Expand Up @@ -51,10 +50,7 @@
onPreProcessingChecksFailed
);
}

const opencvManager = OpenCVManager.getInstance();
opencvManager.loadOpenCV();


Check warning on line 53 in src/camera/init.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `↹`
const documentScrollController = DocumentScrollController.getInstance();
documentScrollController.disableScroll();

Expand Down
Loading