Last active
November 26, 2021 23:05
-
-
Save mrtj/fc80b6a2993de798492296e593d9f717 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Application(panoramasdk.node): | |
# ... | |
def process_media(self, stream): | |
image_data, ratio = self.preprocess(stream.image, self.MODEL_INPUT_SIZE) | |
inference_results = self.call( | |
{self.MODEL_INPUT_NAME: image_data}, self.MODEL_NODE | |
) | |
self.process_results(inference_results, stream, ratio) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment