Skip to content

Commit

Permalink
wpiformat
Browse files Browse the repository at this point in the history
  • Loading branch information
laviRZ committed Jan 30, 2024
1 parent c7f0e40 commit 8a6bf78
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ protected CVPipelineResult process(Frame input_frame, RKNNPipelineSettings setti
CVPipeResult<List<NeuralNetworkPipeResult>> rknnResult = rknnPipe.run(input_frame.colorImage);
sumPipeNanosElapsed += rknnResult.nanosElapsed;

if (rknnResult.output.size() == 0) return new CVPipelineResult(0, calculateFPSPipe.run(null).output, List.of(), input_frame);
if (rknnResult.output.size() == 0)
return new CVPipelineResult(0, calculateFPSPipe.run(null).output, List.of(), input_frame);

var filterContoursResult = filterContoursPipe.run(rknnResult.output);
sumPipeNanosElapsed += filterContoursResult.nanosElapsed;
Expand Down Expand Up @@ -171,7 +172,10 @@ protected CVPipelineResult process(Frame input_frame, RKNNPipelineSettings setti
// // input_frame.colorImage.getMat(), size);

return new CVPipelineResult(
(System.nanoTime() - timeStarted) * 1e-6, calculateFPSPipe.run(null).output, collect2dTargetsResult.output, input_frame);
(System.nanoTime() - timeStarted) * 1e-6,
calculateFPSPipe.run(null).output,
collect2dTargetsResult.output,
input_frame);
}

boolean isIn(List<NeuralNetworkPipeResult> list, NeuralNetworkPipeResult target) {
Expand Down

0 comments on commit 8a6bf78

Please sign in to comment.