mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-04-01 06:09:50 +08:00
去除多余流程 (#3017)
This commit is contained in:
@@ -172,11 +172,8 @@ async function alignAndInteractTarget(targetTextsOrFunc, fDialogueRo, textxRange
|
||||
ocrScreenshots.push({ screenshot: ocrScreenshot, shouldDispose });
|
||||
|
||||
let foundTarget = false;
|
||||
for (const targetText of targetTexts) {
|
||||
const targetResult = ocrResults.find(res =>
|
||||
res.text.includes(targetText) || targetText.includes(res.text)
|
||||
);
|
||||
if (!targetResult) continue;
|
||||
for (const targetResult of ocrResults) {
|
||||
const targetText = targetResult.text;
|
||||
|
||||
const materialId = `${targetText}-${targetResult.y}`;
|
||||
recognitionCount.set(materialId, (recognitionCount.get(materialId) || 0) + 1);
|
||||
|
||||
Reference in New Issue
Block a user