tensorflow / tensorflow/models

Extracting the coordinates of multiple Bounding box coordinates via video object detection

Open
#8,030 2 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since May 29, 2020.

models:research:odapi type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

I am not able to extract the multiple coordinates of the bounding boxes by using the below code
can someone help me how to extract multiple coordinates?

box = np.squeeze(boxes)
for i in range(len(boxes)):
ymin = (int(box[i, 0] * height))
xmin = (int(box[i, 1] * width))
ymax = (int(box[i, 2] * height))
xmax = (int(box[i, 3] * width))

            print(ymin,xmin,ymax,xmax)
            roi = image_np[ymin:ymax, xmin:xmax].copy()

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.