Updated README
This commit is contained in:
parent
75e491d14c
commit
3014c45558
1 changed files with 3 additions and 3 deletions
|
@ -172,9 +172,9 @@ for webcam.Read() {
|
||||||
rgb := webcam.framebuffer[i : i+3]
|
rgb := webcam.framebuffer[i : i+3]
|
||||||
r, g, b := int(rgb[0]), int(rgb[1]), int(rgb[2])
|
r, g, b := int(rgb[0]), int(rgb[1]), int(rgb[2])
|
||||||
gray := uint8((3*r + 4*g + b) / 8)
|
gray := uint8((3*r + 4*g + b) / 8)
|
||||||
writer.framebuffer[i] = gray
|
webcam.framebuffer[i] = gray
|
||||||
writer.framebuffer[i+1] = gray
|
webcam.framebuffer[i+1] = gray
|
||||||
writer.framebuffer[i+2] = gray
|
webcam.framebuffer[i+2] = gray
|
||||||
}
|
}
|
||||||
writer.Write(webcam.framebuffer)
|
writer.Write(webcam.framebuffer)
|
||||||
count++
|
count++
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue