8000 Fix array indexing error · mtyeager/depthai-python@09142c2 · GitHub
[go: up one dir, main page]

Skip to content

8000 Commit 09142c2

Browse files
Fix array indexing error
1 parent 7f6f4bd commit 09142c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nnet_packet_bindings.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static py::array* _getTensorPythonNumpyArray(unsigned char *data, TensorInfo ti)
214214

215215
py::array* PyNNetPacket::getTensor(unsigned index)
216216
{
217-
if(_NN_config[0].contains("output_format"))
217+
if(_NN_config[index].contains("output_format"))
218218
{
219219
if(_NN_config[index]["output_format"] != std::string("raw"))
220220
{

0 commit comments

Comments
 (0)
0