Automation and bots

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


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

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



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


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




In this version:

1) The fix of unpredictable program departure is made.

2) The function of searching 2D images on the screen by incomplete coincidence is realized.
There is an opportunity to specify in the image search function findimage additional parameters with which you can specify the scatter of colors in the form of RGB within which the pixel of the original image and the image on the screen will be considered identical.
It is also possible to specify the percentage of pixels involved in the search (not including the background areas) of the full or within the RGB spread parameters sufficient to identify the image as coincident.

Example of use:
CODE:
findimage (1, # Image_0 [0] [0], 0, # PosX_0 [0], # PosY_0 [0], 0, 0, 1366, 768, Red_less_, Red_Larger_, Green_Message_, Green_Large_None, Blue_Message, Blue_Larger, Percent_of_increments_initial_to_identification, flag_not_object_in_object_here_found, -1);


Explanation:
Each color consists of three primary colors - Red (R), Green (G), Blue (B). (R, G, B). Each of these three colors is denoted by a number from 0 to 255. For example, the color (0, 0, 0) will be black, and (255, 255, 255) white. (255, 0, 0) red, and (255, 50, 70) red with an admixture of green and blue.

Parameter designation:
Red_small_na - here we specify the number HA which the red component may be less than what is in the search.
Red_bolshe__na - here we specify the number HA which the red component can be more than what is in the search.
Green_less_, Green_Larger_, Blue_Message, Blue_Bolsh_a similarly.

Match_Period_Sufficient_to_identification - the percentage of the total number of pixels involved in the search is sufficient to ensure that the image is considered matched. 100 - it is necessary that the whole image coincide. 20 - one fifth of the image is sufficient. Use to search for images that may be partially overlapped or part of the color of the pixels may go beyond the fluctuations described above.

flag_not_in_obscience_here_here_founded - if not 1 no longer search in areas on the screen by the size of the desired figure where the figure is already found.

Example:
CODE:
findimage (1, # Image_0 [0] [0], 0, # PosX_0 [0], # PosY_0 [0], 0, 0, 1366, 768, 20, 50, 50, 70, 10, 20, 33, 1, -1);

We are looking for an image coinciding at least one third of what we are looking for with fluctuations of DO:
less by 20 - more by 50 red, less by 50 - more by 70 Green, less by 10 - more by 20 Blue.


For a hundred percent search of images that do not need color and percentage parameters of the oscillation parameters, it is necessary to use the function findimage without these parameters:
CODE:
findimage (1, # Image_0 [0] [0], 0, # PosX_0 [0], # PosY_0 [0], 0, 0, 1366, 768, -1);


-----
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