物体検知は1物体ごとに1枚~5枚の特徴点用画像を作成してそれらとのマッチングをすると思うのですが、では特徴点画像が全然違うものについてはどう挙動するのでしょうか?…
- User
物体検知は1物体ごとに1枚~5枚の特徴点用画像を作成してそれらとのマッチングをすると思うのですが、では特徴点画像が全然違うものについてはどう挙動するのでしょうか? findMatchSub()でマッチングを探しているときに、全然別のデータに反応する場合にどこか重みづけがあるのでしょうか? このあたりの挙動です FeatureMatcingManager.kt 内 /**
-
ターゲット画像と入力画像のマッチングを行う。
-
@param image 入力画像 */ fun targetMatching(image: Bitmap) { if (isMatching) { LogUtil.d("TargetMatching", "[Matching] Processing") delegate?.matchingError() return }
if (skipFrameCount < skipFrameCountMax) { skipFrameCount += 1 LogUtil.d("TargetMatching", "[Matching] SKIP") delegate?.matchingError() return } else { LogUtil.d("TargetMatching", "[Matching] GO") skipFrameCount = 0 }
delegate?.CameraStableCheckStart( 50) isMatching = true CoroutineScope(trackQueue).launch { val featureCount = delegate?.getTargetFeatureInfo() ?: 0 if (featureCount > 0) { val deferredResults = (0 until featureCount).map { i -> async { val targetFeature = delegate?.getTargetFeature(i) targetFeature?.descriptors?.let { val tarCenter = PointF( targetFeature.rect!!.centerX(), targetFeature.rect!!.centerY() )
val rect = RectF(0.0F, 0.0F, image.width.toFloat(), image.height.toFloat()) val (liveKeypoints, liveDescriptors) = getFeature(image, rect) liveDescriptors?.let { descriptors -> val (matchCenter, goodMatches) = findMatchesSub( tarCenter, targetFeature, liveKeypoints, descriptors ) if (matchCenter.x != 0f) { targetFeature to Pair(matchCenter, goodMatches) } else { null } } } } } val results = deferredResults.awaitAll().filterNotNull() if (results.isNotEmpty()) { val (_, matchResult) = results.first() val (matchCenter, _) = matchResult delegate?.let { delegate -> delegate.matchingSucceeded(image, matchCenter) } } else { LogUtil.d("TargetMatching", "[Matching] Empty") delegate?.matchingError() } } else { LogUtil.d("TargetMatching", "[Matching] NO DATA") delegate?.matchingError() } isMatching = false} }
-
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.