peterbraden / node-opencv

OpenCV Bindings for node.js
MIT License
4.37k stars 858 forks source link

How to draw a rectangle what method?[BUG] #680

Closed jartins closed 3 years ago

jartins commented 3 years ago

Describe the bug How to draw a rectangle what method?

image Like above. thanks a lot.

jartins commented 3 years ago

The method that only needs to draw a rectangle does not need to identify vehicles or obstacles

jartins commented 3 years ago

example : im.ellipse(x.x + x.width/2, x.y + x.height/2, x.width/2, x.height/2);

jartins commented 3 years ago

I find it.

im.rectangle([face.x, face.y], [face.width, face.height], COLOR, 2);