def feature(self): f_ptr = self._call_cfunc("vital_track_state_feature", [self.C_TYPE_PTR], [self], Feature.c_ptr_type()) # f_ptr may be null if f_ptr: return Feature(from_cptr=f_ptr) else: return None
def _new(self, frame, feature, descriptor): """ :param feature: Optional Feature instance associated with this state. :type feature: vital.types.Feature :param descriptor: Optional Descriptor instance associated with this state. :type descriptor: vital.types.Descriptor """ return self._call_cfunc( "vital_feature_track_state_new", [ctypes.c_int64, Feature.c_ptr_type(), Descriptor.c_ptr_type()], [frame, feature, descriptor], self.C_TYPE_PTR )