mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Merge pull request #151 from psayre23/patch-1
Fixed readImage() callback arguments
This commit is contained in:
commit
2714c7219e
@ -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