Skip to content

Commit e67f0d2

Browse files
committed
Update README.md
1 parent 4c2b2b0 commit e67f0d2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ val mat = image.rgb()
1414
Simply use the static function ```Yuv.toMat```
1515

1616
```java
17-
Mat mat = Yuv.toMat(image)
17+
Mat mat = Yuv.rgb(image)
1818
```
1919

2020
### Clipping the image
2121
This library supports efficient clipping of the image before converting.
2222
Just pass a clip to the function:
2323

2424
```kotlin
25-
val mat = image.mat(Clip(left=20, top=20, right=40, bottom=40))
25+
val yuv = YuvImage(image).clip(left=20, top=20, right=40, bottom=40)
26+
val yuv = YuvImage(image).with(YuvImage.Clip(left=20, top=20, right=40, bottom=40))
27+
val yuv = YuvImage(image) with YuvImage.Clip(left=20, top=20, right=40, bottom=40)
28+
val rgb: Mat = yuv.rgb()
2629
```
2730

2831
## Get the the dependency
@@ -31,7 +34,7 @@ val mat = image.mat(Clip(left=20, top=20, right=40, bottom=40))
3134
```
3235
dependencies {
3336
...
34-
implementation "com.quickbirdstudios:yuvtomat:0.1.0"
37+
implementation "com.quickbirdstudios:yuvtomat:1.1.0"
3538
}
3639
```
3740

0 commit comments

Comments
 (0)