We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d0408 commit d37a149Copy full SHA for d37a149
lib/provider/opencv/image-reader.class.ts
@@ -6,7 +6,7 @@ export class ImageReader implements DataSource {
6
public async load(path: string): Promise<Image> {
7
return new Promise<Image>(async (resolve, reject) => {
8
try {
9
- const image = await cv.imreadAsync(path);
+ const image = await cv.imreadAsync(path, cv.IMREAD_UNCHANGED);
10
resolve(new Image(image.cols, image.rows, image.getData(), image.channels));
11
} catch (e) {
12
reject(`Failed to load image from '${path}'`);
0 commit comments