debug202506031824

This commit is contained in:
CHAMPION923
2025-06-03 18:24:32 +08:00
parent 32ac8c64a6
commit 5348222fac
3 changed files with 15 additions and 5 deletions

View File

@@ -22,8 +22,8 @@ class Process2D(Process):
while True:
sig = self.in_q.get()
if sig == CameraControl.CAPTURE:
img = self.camera.capture()
self.out_q.put({"title": cfg["title"], "img": img})
img = camera.capture()
self.out_q.put({"title": self.cfg["title"], "img": img})
elif sig == CameraControl.DESTORY:
for fn in ("destroy", "close", "release"):
if hasattr(self.camera, fn):

View File

@@ -20,9 +20,9 @@ class Process3D(Process):
while True:
sig = self.in_q.get()
if sig == CameraControl.CAPTURE:
_, _, dep_img = self.camera.capture()
_, _, dep_img = camera.capture()
# self.out_q.put({self.cfg["title"]: dep_img})
self.out_q.put({"title": cfg["title"], "dep_img": dep_img})
self.out_q.put({"title": self.cfg["title"], "dep_img": dep_img})
elif sig == CameraControl.DESTORY:
self.camera.destroy()
break