From f7a5497f0c3f5afd3aedfdf9a239dbff9fe99a6a Mon Sep 17 00:00:00 2001 From: Nicholas Young Date: Fri, 18 Oct 2024 22:22:39 -0700 Subject: [PATCH] outputting output data to stdout --- src/main.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 12fc5e9..7d4e2e4 100644 --- a/src/main.zig +++ b/src/main.zig @@ -7,7 +7,7 @@ const hlo = @cImport({ const Allocator = std.mem.Allocator; const assert = std.debug.assert; -const hef_file = "yolov3.hef"; +const hef_file = "yolov7.hef"; const max_edge_layers = 32; @@ -106,7 +106,7 @@ pub fn main() !void { status = hlo.hailo_get_input_vstream_info(input_vstreams[0], &stream_info); assert(status == hlo.HAILO_SUCCESS); - var output_info: hlo.hailo_output_vstream_info = undefined; + var output_info: hlo.hailo_vstream_info_t = undefined; status = hlo.hailo_get_output_vstream_info(output_vstreams[0], &output_info); assert(status == hlo.HAILO_SUCCESS); std.debug.print("\nOutput info: {any}\n\n", .{ output_info }); @@ -134,6 +134,8 @@ pub fn main() !void { assert(status == hlo.HAILO_SUCCESS); std.debug.print("Output finished reading! Cleanup time\n", .{}); + std.debug.print("good luck\n\n{x}", .{ output_data }); + _ = hlo.hailo_release_output_vstreams(&output_vstreams, output_vstream_size); _ = hlo.hailo_release_input_vstreams(&input_vstreams, input_vstream_size);