Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
UrielCh committed Apr 17, 2024
1 parent 672f5cb commit f8b7067
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ examples/src/YOLOv3-Training-Snowman-Detector/weights
docs/
lib/*.d.ts.map
install/*.d.ts.map
cjs/install/
cjs/lib/
esm/install/
esm/lib/
2 changes: 1 addition & 1 deletion examples/src/EASTTextDetection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import { cv, drawBlueRect, getCachedFile, getResourcePath, wait4key } from './utils';
import { Mat, Rect } from '@u4/opencv4nodejs';
import type { Mat, Rect } from '@u4/opencv4nodejs';

/**
* Text detection simple code example.
Expand Down
2 changes: 1 addition & 1 deletion examples/src/dnn/ssdUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Mat, Rect } from '@u4/opencv4nodejs';
import type { Mat, Rect } from '@u4/opencv4nodejs';
import { cv } from '../utils';

export type Prediction = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/faceDetect/videoFaceDetectionCpuAsync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Mat, Rect } from '@u4/opencv4nodejs';
import type { Mat, Rect } from '@u4/opencv4nodejs';
import { cv, getResourcePath } from '../utils';
import { runVideoFaceDetectionAsync } from './commons';

Expand Down
2 changes: 1 addition & 1 deletion lib/src/deprecations.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as assert from 'assert';
import type * as openCV from '../..'
import { Mat } from '../..';
import type { Mat } from '../..';

export default function (cv: typeof openCV) {
// deprecate wrapper for the old calcHist API
Expand Down
6 changes: 3 additions & 3 deletions lib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import makeDrawUtils from './drawUtils.js';
import deprecations from './deprecations.js';
import makeDrawUtils from './drawUtils';
import deprecations from './deprecations';
import * as OpenCV from '../..';
import misc from './misc.js';
import misc from './misc';

export default function(cv: typeof OpenCV) {
// add functions
Expand Down
2 changes: 1 addition & 1 deletion lib/src/misc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type * as openCV from '../..';
import { Mat, Rect } from '../..';
import type { Mat, Rect } from '../..';

export const allTypes = ['CV_8U', 'CV_8S', 'CV_16U', 'CV_16S', 'CV_32S', 'CV_32F', 'CV_64F', 'CV_8UC1', 'CV_8UC2', 'CV_8UC3', 'CV_8UC4', 'CV_8SC1', 'CV_8SC2', 'CV_8SC3', 'CV_8SC4', 'CV_16UC1', 'CV_16UC2', 'CV_16UC3', 'CV_16UC4', 'CV_16SC1', 'CV_16SC2', 'CV_16SC3', 'CV_16SC4', 'CV_32SC1', 'CV_32SC2', 'CV_32SC3', 'CV_32SC4', 'CV_32FC1', 'CV_32FC2', 'CV_32FC3', 'CV_32FC4', 'CV_64FC1', 'CV_64FC2', 'CV_64FC3', 'CV_64FC4'] as const;
export type MatTypes = typeof allTypes[number];
Expand Down

0 comments on commit f8b7067

Please sign in to comment.