# Inference
## Issue: 假如要描邊,不用方框,或是改顏色,改虛線,或線條大小
1. def drawBox(frame, classId, conf, left, top, right, bottom, classMask):
畫遮罩(mask)的函式在第49行,可以分為畫遮罩以及畫方框兩個部分,主要都是用opencv的函式來執行。
1. cv.rectangle(frame, (left, top), (right, bottom), (255, 178, 50), 3)
此函式是用來畫出四邊形。
若要修改顏色,只需修改RGB的參數即可。(範例的部分為(255,178,50))
如果要改虛線或實線,則需要設定lineType。
若要修改線條大小,只需要調整thickness的參數即可。(範例的部分為最後一項的3)
[函式官方參考文檔](https://docs.opencv.org/2.4/modules/core/doc/drawing_functions.html#rectangle)

2. cv.drawContours(frame[top:bottom+1, left:right+1], contours, -1, color, 3, cv.LINE_8, hierarchy, 100)
此函式是用來畫出邊緣。
若要修改顏色,只需修改color的參數即可。(color於第70行修改))
如果要改虛線或實線,則需要設定lineType。(範例的部分為cv.LINE_8)
若要修改線條大小,只需要調整thickness的參數即可。(範例的部分為3)
[函式官方參考文檔](https://docs.opencv.org/2.4/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=drawcontours)
