mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update copy2fb example
This commit is contained in:
parent
6b85256ee9
commit
cee80158c3
@ -15,10 +15,10 @@ sensor.set_framesize(sensor.QQVGA)
|
||||
sensor.set_pixformat(sensor.GRAYSCALE)
|
||||
|
||||
# Load image
|
||||
img = image.Image("/image.pgm")
|
||||
img = image.Image("/image.pgm", copy_to_fb=True)
|
||||
|
||||
# Copy image to framebuffer
|
||||
img.copy_to_fb()
|
||||
# Add drawing code here.
|
||||
# img.draw_line(...)
|
||||
|
||||
# Update drawing
|
||||
# Flush FB
|
||||
sensor.snapshot()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user