gui working

This commit is contained in:
unknown
2025-12-22 15:02:01 +08:00
parent d4de3e84c4
commit f20fb4b2d7
13 changed files with 1530 additions and 3 deletions
+4 -2
View File
@@ -242,8 +242,10 @@ class nHHD(object):
self.Sn = numpy.sum(numpy.absolute(self.d))
# print("Sn is:", self.Sn)
self.Stx = abs(numpy.sum(self.h[:, :, 0]))
self.Sty = abs(numpy.sum(self.h[:, :, 1]))
# self.Stx = abs(numpy.sum(self.h[:, :, 0]))
# self.Sty = abs(numpy.sum(self.h[:, :, 1]))
self.Stx = numpy.sum(self.h[:, :, 0])
self.Sty = numpy.sum(self.h[:, :, 1])
# print("Stx is:", self.Stx)
# print("Sty is:", self.Sty)
+3
View File
@@ -235,6 +235,9 @@ class Sensor:
results.append(self.depth if self.depth is not None else np.array([]))
return tuple(results) if results else ()
def reset(self):
self.tracker.reset()
def disconnect(self):
"""
Release video capture resources.