From f856f6e7f1fd0a11244527b266c1fd47334fb5f3 Mon Sep 17 00:00:00 2001
From: Edmond Yoo <hj3yoo@uwaterloo.ca>
Date: Sun, 16 Sep 2018 01:54:09 +0000
Subject: [PATCH] 10-class model for card detection
---
src/option_list.h | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/src/option_list.h b/src/option_list.h
index 054b3fd..29ac943 100644
--- a/src/option_list.h
+++ b/src/option_list.h
@@ -2,6 +2,20 @@
#define OPTION_LIST_H
#include "list.h"
+#ifdef YOLODLL_EXPORTS
+#if defined(_MSC_VER)
+#define YOLODLL_API __declspec(dllexport)
+#else
+#define YOLODLL_API __attribute__((visibility("default")))
+#endif
+#else
+#if defined(_MSC_VER)
+#define YOLODLL_API
+#else
+#define YOLODLL_API
+#endif
+#endif
+
typedef struct{
char *key;
char *val;
@@ -20,4 +34,11 @@
float option_find_float_quiet(list *l, char *key, float def);
void option_unused(list *l);
+typedef struct {
+ int classes;
+ char **names;
+} metadata;
+
+YOLODLL_API metadata get_metadata(char *file);
+
#endif
--
Gitblit v1.10.0