Skip to content
firepick1 (pixel) edited this page Oct 30, 2014 · 4 revisions

FireSight op draws RotatedRect array from named stage model. Because some folks like square corners, while others are well-rounded.

Pipeline

{"op":"drawRects","model":"s2", "color":[255, 0, 255], "flags":5}
  • model name of stage that generates rects model to be drawn
  • radius if radius>0, draw of a circle of the given radius instead of rectangle. Default is 0
  • color JSON array corresponding to cv::Scalar with 1-4 elements ([-1 -1 -1 -1] default)

Stage Model

{}

Example pipeline

firesight -i img/ass_place_phj.jpg -p json/drawRects.json -o target/drawRects.jpg

Output image saved as target/drawRects.jpg

See Also

Clone this wiki locally