roboflow / roboflow/roboflow-python
predict() for URLs sets image_dims to "Undefined"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 629
- Forks
- 140
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 5
Description
When calling model.predict('https://example.com/test.jpg) with a URL the response contains:
results.image_dims
{'width': 'Undefined', 'height': 'Undefined'}
Which is unfortunate since the Roboflow server (or inference library) is calculating the width/height in order to return bounding boxes in image coordinates.
This would be helpful, so library users don't have to also download the image to calculate it's width/height.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the model.predict URL-handling entry point and trace how the response's image_dims values are populated for remote images. Compare URL predictions with local-image predictions, then verify that width and height are returned as actual dimensions without requiring the caller to download the image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100