Grabbing camera frames from the serial port with Python
In the previous recipe, we showed how to take images from the OV7670, but we didn't present a method for displaying them.
This recipe will use Python to parse the pixel values transmitted serially to display the captured pictures on the screen.
The following Arduino sketch and Python script contain the code referred to in this recipe:
02_camera_capture_qvga_rgb565.ino
:
02_parse_camera_frame.py
:
Getting ready
In contrast to all Python programs developed so far, we will write the Python script on our local machine to access the serial port used by the Arduino Nano.
Parsing serial data with Python requires little effort with the pySerial
library, which...