This commit is contained in:
AGulev
2024-02-27 07:55:43 +01:00
parent 73c3596156
commit 851f3dee87
3 changed files with 25 additions and 22 deletions

View File

@@ -3,7 +3,6 @@ local function stop_capture(self)
if self.cameraframe == nil then
return
end
self.cameraframe = nil
camera.stop_capture()
@@ -24,7 +23,7 @@ local function start_capture(self)
type = camera.CAMERA_TYPE_BACK
quality = camera.CAPTURE_QUALITY_MEDIUM
end
camera.start_capture(type, quality, function(self, status)
if status == camera.CAMERA_STARTED then
self.cameraframe = camera.get_frame()