Annotating -- IM v6 Examples - ImageMagick
This last technique has very some distinct advantages. The dimmed box can be sized to fit the label, and it can be position with "-gravity" to position it correctly, without needing any specific knowledge of the image it is being added to, or of the drawn font being used.