Added min_confidence. Fixed bounding box issue. #75
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should fix #58 - It'll allow you to set a min_confidence in the form post similar to how deepstack operates.
I also noticed that my bounding boxes were all out of whack, similar to #62 . I think @robmarkcole was right on the money with the resize to 300x300.
Following this example: https://github.com/google-coral/pycoral/blob/master/examples/detect_image.py
I reworked it so that it didn't resize the image prior to calling interpreter.invoke().
I also borrowed some code to write out how much processing time each run takes, but I commented it out so as not to spam
the log.
I also noticed that you could reference bbox.ymin in the pycoral docs, so I swapped out the bbox[0] so that its a little more clear.
Lastly, I switched out the print for the global interpreter to use a logging.debug instead. This'll print it out to the docker container.
BTW - once a new release is made in this repo, I can update https://github.com/sstratoti/docker-coral-rest-server Dockerfile which I forked from another user and have since updated with some fixes. This is working pretty great so far!