detectMultiScale3Async method
Future<(VecRect, VecI32, VecF64)>
detectMultiScale3Async(
- InputArray image, {
- double scaleFactor = 1.1,
- int minNeighbors = 3,
- int flags = 0,
- (int, int) minSize = (0, 0),
- (int, int) maxSize = (0, 0),
- bool outputRejectLevels = false,
})
Implementation
Future<(VecRect objects, VecI32 rejectLevels, VecF64 levelWeights)> detectMultiScale3Async(
InputArray image, {
double scaleFactor = 1.1,
int minNeighbors = 3,
int flags = 0,
(int, int) minSize = (0, 0),
(int, int) maxSize = (0, 0),
bool outputRejectLevels = false,
}) async {
final rval = cvRunAsync3<(VecRect, VecI32, VecF64)>(
(callback) => cobjdetect.CascadeClassifier_DetectMultiScale3_Async(
ref,
image.ref,
scaleFactor,
minNeighbors,
flags,
minSize.cvd.ref,
maxSize.cvd.ref,
outputRejectLevels,
callback,
),
(c, p1, p2, p3) => c.complete(
(
VecRect.fromPointer(p1.cast<cobjdetect.VecRect>()),
VecI32.fromPointer(p2.cast<cobjdetect.VecI32>()),
VecF64.fromPointer(p3.cast<cobjdetect.VecF64>())
),
),
);
return rval;
}