Skip to content

Commit d37a149

Browse files
committed
Set imread to unchanged mode
1 parent a0d0408 commit d37a149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/provider/opencv/image-reader.class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class ImageReader implements DataSource {
66
public async load(path: string): Promise<Image> {
77
return new Promise<Image>(async (resolve, reject) => {
88
try {
9-
const image = await cv.imreadAsync(path);
9+
const image = await cv.imreadAsync(path, cv.IMREAD_UNCHANGED);
1010
resolve(new Image(image.cols, image.rows, image.getData(), image.channels));
1111
} catch (e) {
1212
reject(`Failed to load image from '${path}'`);

0 commit comments

Comments
 (0)