1
静的画像の顔検出にdlibライブラリ(python2)を使用していますが、検出された顔の確率/品質が低い場合、それらの顔を破棄したいと思います。したがって、私は検出された顔の確率を与える関数を望みます。あるいは、顔の品質を破棄するために使用できる別の指標が役立ちます。 official exampleからdlibで検出された顔の確率を得る
静的画像の顔検出にdlibライブラリ(python2)を使用していますが、検出された顔の確率/品質が低い場合、それらの顔を破棄したいと思います。したがって、私は検出された顔の確率を与える関数を望みます。あるいは、顔の品質を破棄するために使用できる別の指標が役立ちます。 official exampleからdlibで検出された顔の確率を得る
抽出:
# Finally, if you really want to you can ask the detector to tell you the score
# for each detection. The score is bigger for more confident detections.
# The third argument to run is an optional adjustment to the detection threshold,
# where a negative value will return more detections and a positive value fewer.
# Also, the idx tells you which of the face sub-detectors matched. This can be
# used to broadly identify faces in different orientations.
if (len(sys.argv[1:]) > 0):
img = io.imread(sys.argv[1])
dets, scores, idx = detector.run(img, 1, -1)
for i, d in enumerate(dets):
print("Detection {}, score: {}, face_type:{}".format(
d, scores[i], idx[i]))