diff --git a/kivy/uix/camera.py b/kivy/uix/camera.py index 81eb5dfb9..c707a9cf1 100644 --- a/kivy/uix/camera.py +++ b/kivy/uix/camera.py @@ -96,6 +96,8 @@ class Camera(Image): self._camera = None if self.index < 0: return + if self.resolution[0] < 0 or self.resolution[1] < 0: + return self._camera = CoreCamera(index=self.index, resolution=self.resolution, stopped=True) self._camera.bind(on_load=self._camera_loaded)