Merge 51ae3893a7
into 8609e5fae5
This commit is contained in:
commit
d9770dc91d
BIN
mediapipe/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
mediapipe/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
mediapipe/python/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
mediapipe/python/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
|
@ -374,16 +374,13 @@ class SolutionBase:
|
|||
# output stream names.
|
||||
solution_outputs = collections.namedtuple(
|
||||
'SolutionOutputs', self._output_stream_type_info.keys())
|
||||
results = solution_outputs(*([""] * len(solution_outputs._fields)))
|
||||
for stream_name in self._output_stream_type_info.keys():
|
||||
if stream_name in self._graph_outputs:
|
||||
setattr(
|
||||
solution_outputs, stream_name,
|
||||
self._get_packet_content(self._output_stream_type_info[stream_name],
|
||||
self._graph_outputs[stream_name]))
|
||||
else:
|
||||
setattr(solution_outputs, stream_name, None)
|
||||
results = results._replace(**{stream_name: self._get_packet_content(
|
||||
self._output_stream_type_info[stream_name], self._graph_outputs[stream_name])})
|
||||
|
||||
return solution_outputs
|
||||
return results
|
||||
|
||||
def close(self) -> None:
|
||||
"""Closes all the input sources and the graph."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user