Save requesting image to local and return a resultant image with bounding box?
See original GitHub issue🚀 The feature
By requesting
curl http://192.168.1.100:8080/predictions/alexnet -T ./serve/examples/image_classifier/kitten.jpg
,
Wondering if there is an option to:
- save the uploaded kitten.jpg to a local folder on http://192.168.1.100 ??
- return an image with bounding box to the requesting web browser ?
Motivation, pitch
As described in The feature, the motivation is quite obvious.
Alternatives
N/A
Additional context
N/A
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Extract bounding box and save it as an image - Stack Overflow
this returns cropped image (bounding box). in this aproach, bounding box coordinates bases on pascal-voc annotation formats like here.
Read more >Mis-aligned bounding boxes in test_batch_labels · Issue #1782
The labels we generate are plotting a bounding box such as this: image. We save our bounding-box coordinates in the label-txt files, ...
Read more >front end - How to save a bounding box on an image?
enter image description here. Click Cancel in the Selection Tools dialog, but leave the image itself selected: enter image description here.
Read more >Displaying bounding boxes - Amazon Rekognition
Amazon Rekognition Image operations can return bounding boxes coordinates for items that are detected in images. For example, the DetectFaces operation ...
Read more >image — CASAdocs documentation - Read the Docs
This function finds the bounding box of a region of interest when it is applied to a particular image. Both float and complex...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TillmannRheude The following code worked for me with the AlexNet example. I modified the inference code to return a tuple of the inference result and input image We can unpack the data in the postprocess method and do the necessary post processing operation on the image and save it
` def inference(self, data, *args, **kwargs): marshalled_data = data.to(self.device) with torch.no_grad(): results = self.model(marshalled_data, *args, **kwargs) return (results, data)
`
Please let us know if this answers your question
Thank ya @agunapal, it worked like a charm - My fault was not to define “/home/…” in front of the path for the image.