libcoral icon indicating copy to clipboard operation
libcoral copied to clipboard

Example only accepts fixed size input and not detection example?

Open jedichen121 opened this issue 3 years ago • 1 comments

I was trying these C++ api and examples and realized that there's no example that uses detection model? But there is one in pycoral repository.

Besides, I also noticed the example only accepts fixed size input. However, in the test framework it does accept variable size input and has a resize function. I'm wondering why those useful functions are only in the test_utils but not tflite_utils? I have created a detection example that takes bmp files by copying those resize functions to tflite_utils as well. But not sure if this is the desired implementation.

jedichen121 avatar Mar 15 '21 13:03 jedichen121

@jedichen121 I was going to point you to that resized example function in out test_utils directory. It is up to you to decide if you want to use it or not, keep in mind that all of our examples are just that, examples :) pycoral is python and so it is super simple to just import another library for resizing purposes, for c++ we want to keep it minimal

Here is also another example to parse detection outputs: https://github.com/Namburger/edgetpu-detection-camera/blob/master/src/tflite_wrapper.cc#L65

Namburger avatar Mar 16 '21 13:03 Namburger