Automation and bots

 Помощь      Поиск      Пользователи


 Страниц (1): [1]   

> Без описания
Kibor
Отправлено: 24 Июля, 2018 - 04:36:07
Post Id



Администратор
Full Member


Покинул форум
Сообщений всего: 160
Дата рег-ции: Дек. 2017  
Репутация: 0
Карма 0




Refinement findimage .
Now it's possible to search for images in the previously created screenshot using screen or an image uploaded from a file.

Apply where you have to simultaneously search for many different images.
The difference from the search directly on the screen is that if it is searched for a pointer to a window or -1 (across the entire screen), then every time the findimage is called, the screen of the area in which you want to search is done, and if the last parameter specifies a pointer to a two-dimensional array int in which there is already a picture of the search area that we can load into the array using screen, the screen screen is not done. The search speed is increased 2 - 3 times.

For example, we want to write a text recognition script. For this we have images of all the letters in different files. If we look for them at the last parameter of the pointer to the window, then the screen screen will be made on each letter.

Example:
 Цитата:

int here_home [2000] [2000];
int c, xe, ye;
int x [1000], y [1000];
int xr, yr;
getdisplay (c, xe, ye);


int letters [26] [20] [20];
loadimage (# letters [0] [0] [0], "C:\a.bmp");
loadimage (# letters [1] [0] [0], "C:\b.bmp");
// ...............

screen (#here_site [0] [0], 0, 0, xe, ye, -1);
xr=imagewidth (# here_find [0] [0]);
yr=imageheight (#here_site [0] [0]);


for (int n=0; n <26; n ++)
{
findimage (-1, # letters [n] [0] [0], 16777215, #x [0], #y [0], 0, 0, xr, yr, # here_from [0] [ 0] ); // We are looking for different pictures in the screen shot earlier
}





-----
The Visual Code Editor is Kibor. Creating bots without knowledge of programming.

Learning function for recognizing text.
-----
 
 Top
Страниц (1): [1]
Сейчас эту тему просматривают: 1 (гостей: 1, зарегистрированных: 0)
« About Kibor »


Все гости форума могут просматривать этот раздел.
Только администраторы и модераторы могут создавать новые темы в этом разделе.
Только зарегистрированные пользователи могут отвечать на сообщения в этом разделе.
 




Powered by