outputting output data to stdout

This commit is contained in:
Nicholas Young 2024-10-18 22:22:39 -07:00
parent d2f585af6c
commit f7a5497f0c

View file

@ -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);