Advertisement
WarPie90

OLD: FindFishingSpots

Jun 8th, 2022
1,357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.44 KB | None | 0 0
  1. function FindFishingSpot(scanTime: Int32=450): T2DPointArray;
  2. var
  3.   i: Int32;
  4.   SUM,TPA: TPointArray;
  5.   R: TRectangle;
  6.   t: TCountDown;
  7. begin
  8.   t.Init(scanTime);
  9.   while not t.IsFinished do
  10.   begin
  11.     srl.FindColors(TPA, CTS2(8875103,16,0.2,0.7), Mainscreen.Bounds);
  12.     SUM += TPA.Edges();
  13.   end;
  14.  
  15.   SUM.ClearDuplicates();
  16.   SUM := ClearTPAFromTPA(Sum, Sum.Edges());
  17.   Result := SUM.Cluster(5);
  18.   Result.FilterSize(25, __GT__);
  19. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement