def remove_overlay(self, overlay):
    '\n        Removes a static overlay from the preview output.\n\n        This method removes an overlay which was previously created by\n        :meth:`add_overlay`. The *overlay* parameter specifies the\n        :class:`PiRenderer` instance that was returned by :meth:`add_overlay`.\n\n        .. versionadded:: 1.8\n        '
    if (not (overlay in self._overlays)):
        raise PiCameraValueError('The specified overlay is not owned by this instance of PiCamera')
    overlay.close()
    self._overlays.remove(overlay)
Removes a static overlay from the preview output.

This method removes an overlay which was previously created by
:meth:`add_overlay`. The *overlay* parameter specifies the
:class:`PiRenderer` instance that was returned by :meth:`add_overlay`.

.. versionadded:: 1.8
def remove_overlay(self, overlay):
    '\n        Removes a static overlay from the preview output.\n\n        This method removes an overlay which was previously created by\n        :meth:`add_overlay`. The *overlay* parameter specifies the\n        :class:`PiRenderer` instance that was returned by :meth:`add_overlay`.\n\n        .. versionadded:: 1.8\n        '
    if (not (overlay in self._overlays)):
        raise PiCameraValueError('The specified overlay is not owned by this instance of PiCamera')
    overlay.close()
    self._overlays.remove(overlay)