如何用opencv讓電腦會分出簡單的箱子?並產生出bounding box

如題,如何寫一支opencv的程式讓程式自動判別箱子並且出現bounding box?如下圖這樣
如果可以能夠提供類似的程式嗎嗎?

img

这还不简单

Set up some anchor frames and draw them in the head