CSI2 OV5647 ISP Example

How to run

IMPORTANT: you might need to change the Master Clock of the OV5647 if you are using the external Add-On to the 12MHz one (default using 24MHz) in the OV5647 Options of the menuconfig.

  1. Demo modes available:

    • Saving pictures (CONFIG_SAVING_PICTURE=y): save a single image to file (Out.ppm in the build directory)

    • Stream image through UART (CONFIG_APP_STREAM_TO_UART=y): stream images via uart. You can use the ../uart_read_image.py script to read the streamed images and display them with this command run in another terminal:

      python ../uart_read_image.py --ttyUSB 1 --img_resolution QVGA/VGA
      
  2. Configure CMake with the desired camera resolution

    Format QVGA: .. code-block:: bash

    cmake -B build “-DCONFIG_DRIVER_OV5647_FORMAT_QVGA=y”

    Format VGA: .. code-block:: bash

    cmake -B build “-DCONFIG_DRIVER_OV5647_FORMAT_VGA=y”

  3. Build and run the application

    cmake --build build -t run
    
  4. Display the image (if SAVING_PICTURE mode)

    feh build/Out.ppm