question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Label to rectangle overlay

See original GitHub issue

Have you considered adding label to rectangle overlay? I found this function in dlib documentation

void add_overlay(
            const rectangle& r, 
            pixel_type p, 
            const std::string& l
        );

Would it be hard to implement? As far as i can tell - usage of std::string is the biggest problem here: https://github.com/davisking/dlib/blob/6b581d91f6b9b847a8163420630ef947e7cc88db/dlib/gui_widgets/widgets_abstract.h#L2951

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
takuya-takeuchicommented, Apr 3, 2019

ok. give a bit time to implenent.

0reactions
jakosscommented, Apr 9, 2019

Thanks, works like a charm 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simplest way to overlay a text + rectangle label an image?
What I'd like to do is this: insert the PNG file as the 'bottom layer'; on top of that, in a location of...
Read more >
QML - how to overlay a label
1 Answer 1 ... You need to swap the order of the inner Label and Rectangle . There are other issues, such as...
Read more >
Adding Text to the Rectangle Overlay in Adobe Premiere CC ...
Creating a Video Title : Adding Text to the Rectangle Overlay in Adobe Premiere CC 2015. 692 views · 7 years ago ...more ......
Read more >
How to add a text into a Rectangle in Matplotlib
To add a text into a rectangle in matplotlib, we can add a label in annotate method at the center point of the...
Read more >
Transparent Overlay Labels on Object Detection: A Simple ...
This tutorial will show you how to add transparent overlay labels to your detected bounding boxes using Python and OpenCV.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found