Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bounding Box explanation #8

Open
GOBish opened this issue Apr 26, 2020 · 0 comments
Open

Bounding Box explanation #8

GOBish opened this issue Apr 26, 2020 · 0 comments

Comments

@GOBish
Copy link

GOBish commented Apr 26, 2020

Hi,
Could you review how you implement bounding boxes with deeplab?
I am using deeplab on coral and trying to do a similar thing, and I could not fully understand it reading through your code.

#boxes (ymin, xmin, ymax, xmax)
                if BBOX:
                    map_labeled = measure.label(seg_map, connectivity=1)
                    for region in measure.regionprops(map_labeled):
                        if region.area > MINAREA:
                            box = region.bbox
                            p1 = (box[1], box[0])
                            p2 = (box[3], box[2])
                            cv2.rectangle(image, p1, p2, (77,255,9), 2)
                            vis_text(image,label_names[seg_map[tuple(region.coords[0])]],(p1[0],p1[1]-10))
                cv2.imshow('segmentation',image)

Also, I only see this in run.py , not demo.py or test.py .

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant