1
Общие вопросы / Re: Анализ картинок
« on: February 05, 2020, 01:14:59 AM »
Спасибо за подсказку походу получилась
Code: (clickermann) [Select]
GETSCREEN
SCREENSHOTFIX ($1_x, $1_y, $1_x1, $1_y1, "1.bmp")
GETSCREEN //1
IF_PICTURE_IN ($1_x, $1_y, $1_x1, $1_y1, "1.bmp")
LOGWRITE ("Одинаковая1")
IF_PICTURE_IN ($2_x, $2_y, $2_x1, $2_y1, "1.bmp")
LOGWRITE ("Одинаковая2")
GETSCREEN
IF_PICTURE_IN ($3_x, $3_y, $3_x1, $3_y1, "1.bmp")
LOGWRITE ("Одинаковая3")
GETSCREEN
IF_PICTURE_IN ($4_x, $4_y, $4_x1, $4_y1,"1.bmp")
LOGWRITE ("Одинаковая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
END_IF
LOGWRITE ("Другая5")
LOGWRITE ("Выход5")
ELSE
LOGWRITE ("Другая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
LOGWRITE ("Одинаковая5")
ELSE
END_IF
LOGWRITE ("Выход4")
END_IF
ELSE
LOGWRITE ("Другая3")
GETSCREEN
IF_PICTURE_IN ($4_x, $4_y, $4_x1, $4_y1,"1.bmp")
LOGWRITE ("Одинаковая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
LOGWRITE ("Одинаковая5")
ELSE
END_IF
LOGWRITE ("Выход3")
ELSE
LOGWRITE ("Другая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
LOGWRITE ("Одинаковая5")
ELSE
LOGWRITE ("Другая5")
END_IF
END_IF
END_IF
ELSE
LOGWRITE ("Другая2")
GETSCREEN
IF_PICTURE_IN ($3_x, $3_y, $3_x1, $3_y1, "1.bmp")
LOGWRITE ("Одинаковая3")
GETSCREEN
IF_PICTURE_IN ($4_x, $4_y, $4_x1, $4_y1,"1.bmp")
LOGWRITE ("Одинаковая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
LOGWRITE ("Одинаковая5")
ELSE
END_IF
LOGWRITE ("Выход2")
ELSE
LOGWRITE ("Другая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
LOGWRITE ("Одинаковая5")
ELSE
LOGWRITE ("Другая5")
END_IF
END_IF
ELSE
LOGWRITE ("Другая3")
GETSCREEN
IF_PICTURE_IN ($4_x, $4_y, $4_x1, $4_y1,"1.bmp")
LOGWRITE ("Одинаковая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
LOGWRITE ("Одинаковая5")
ELSE
END_IF
LOGWRITE ("Выход3")
ELSE
LOGWRITE ("Другая4")
GETSCREEN
IF_PICTURE_IN ($5_x, $5_y, $5_x1, $5_y1, "1.bmp")
LOGWRITE ("Одинаковая5")
ELSE
LOGWRITE ("Другая5")
END_IF
LOGWRITE ("Выход1")
END_IF
END_IF
END_IF
ELSE
END_IF