Skip to content

Commit 71d1e83

Browse files
committed
Wording
1 parent 989f441 commit 71d1e83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ class MobileScanner(
489489
// Convert YUV_420_888 image to NV21 format
490490
val imageByteArray = yuv420888toNV21(image)
491491

492-
// Invert the cropped image
492+
// Inverts the result of NV21
493493
val invertedBytes = inverse(imageByteArray)
494494

495495
// Create a new InputImage from the inverted byte array
@@ -521,7 +521,6 @@ class MobileScanner(
521521
return nv21
522522
}
523523

524-
// Helper function to invert image data
525524
private fun inverse(bytes: ByteArray): ByteArray {
526525
return ByteArray(bytes.size) { i -> (bytes[i].toInt() xor 0xFF).toByte() }
527526
}

0 commit comments

Comments
 (0)