mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
example for tv shield
This commit is contained in:
parent
054f27199b
commit
780fdc5870
15
scripts/examples/31-TV-Shield/tv.py
Normal file
15
scripts/examples/31-TV-Shield/tv.py
Normal file
@ -0,0 +1,15 @@
|
||||
# TV Example
|
||||
#
|
||||
# Note: To run this example you will need a wireless tv shield for your OpenMV Cam.
|
||||
#
|
||||
# The wireless video tv Shield allows you to view your OpenMV Cam's frame buffer on the go.
|
||||
|
||||
import sensor, image, tv
|
||||
|
||||
sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
|
||||
sensor.set_framesize(sensor.QQVGA)
|
||||
tv.init() # Initialize the tv.
|
||||
tv.channel(8) # For wireless video transmitter shield
|
||||
while(True):
|
||||
tv.display(sensor.snapshot()) # Take a picture and display the image.
|
||||
Loading…
Reference in New Issue
Block a user