mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Fixed readImage() callback arguments
Added missing error object in readImage() callback under Creation heading.
This commit is contained in:
parent
05e42b70aa
commit
75a325203c
@ -62,11 +62,11 @@ new Matrix(height, width)
|
||||
Or you can use opencv to read in image files. Supported formats are in the OpenCV docs, but jpgs etc are supported.
|
||||
|
||||
```javascript
|
||||
cv.readImage(filename, function(mat){
|
||||
cv.readImage(filename, function(err, mat){
|
||||
...
|
||||
})
|
||||
|
||||
cv.readImage(buffer, function(mat){
|
||||
cv.readImage(buffer, function(err, mat){
|
||||
...
|
||||
})
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user