Binocular camera

    Instructions

    Need to prepare a binocular camera

    • Import and initialize the binocular camera
    import sensor
    sensor.binocular_reset()
    sensor.shutdown(False)
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QVGA)
    sensor.shutdown(True)
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QVGA)
    sensor.run(1)
    
    • Turn on the camera and capture images
    sensor.shutdown(True)
    img=sensor.snapshot()
    

    For API details, please refer to: Sensor API

    Routine

    Capture image and display on LCD

    demo_binocular