roboflow / roboflow/roboflow-python

predict() for URLs sets image_dims to "Undefined"

Open
#144 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.