Write a text in dlib image
问题 i'm using dlib for face detection and i would like to write a text in the image. i've tried this win.add_overlay(dets, rgb_pixel(255,0,0),"test" ); but it's not working Can you please help me. 回答1: According to the dlib documentation, the add_overlay method takes an overlay as a parameter. Since you want to display rectangles you have to create an overlay_rect . You should try the following code : win.add_overlay(dlib::image_window::overlay_rect(dets, rgb_pixel(255,0,0),"test" )); dlib