I want to obtain the coordinates of the object detected by the detector

3 views (last 30 days)
In MATLAB, there is a learning of a suspended sign detector (https://jp.mathworks.com/help/vision/ug/train-a-stop-sign-detector.html?lang=en), but this detection Is it possible to acquire the coordinate information of the detected object later? I would like to acquire the center coordinates of the detected pause signs by comparing with the learning of the pause sign detector.

Answers (1)

michio
michio on 16 Jan 2018
  2 Comments
Atsushi Ueno
Atsushi Ueno on 14 Jun 2021
translation of the answer in Japanese:
It is easy to understand by running the example.
The detection result is:
>> bbox
bbox =
415 135 35 38
This means the x-coordinate, y-coordinate, width, and height of the bounding box (rectangle) respectively. Is it the result you are looking for?
comment for the answer:
Thank you for your answer. I see that each of them was in a bbox, I understand now. I would like to ask again, is it possible to assign the numbers stored in the bbox to variables separately? Sorry for repeating myself.
Substitute the numbers bbox = 415 135 35 38 for x = 415, y = 135, ... and so on.
comment for the comment above:
x = bbox(1);
y = bbox(2);
And so on. It is possible.

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!