0

私は自分の研究に取り組んでいて、現在これに固執しています。私はまったく信頼レベルを得ることができません。次のような多くのコマンドを試しました。

outputRejectLevels = "levelWeights"
outputRejectLevels = "objects"
outputRejectLevels = "rejectLevels"
outputRejectLevels = True
outputRejectLevels = "true"

しかし、私はいつも得ます

TypeError: 'outputRejectLevels' は、この関数の無効なキーワード引数です`

私はそれを行う方法がわかりません

4

1 に答える 1

0

@Sax Tedが言ったように:

これは、次のように detectMultiScale3() を使用して修正できます。

detection_result, rejectLevels, levelWeights =cascade.detectMultiScale3(img, scaleFactor=1.0485258, minNeighbors=6,outputRejectLevels = 1)

print(rejectLevels)
print(levelWeights)
print(detection_result)

detectmultiScale() に関する詳細については、こちらをご覧ください

于 2021-03-12T03:05:57.423 に答える