Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FindFishingSpot(scanTime: Int32=450): T2DPointArray;
- var
- i: Int32;
- SUM,TPA: TPointArray;
- R: TRectangle;
- t: TCountDown;
- begin
- t.Init(scanTime);
- while not t.IsFinished do
- begin
- srl.FindColors(TPA, CTS2(8875103,16,0.2,0.7), Mainscreen.Bounds);
- SUM += TPA.Edges();
- end;
- SUM.ClearDuplicates();
- SUM := ClearTPAFromTPA(Sum, Sum.Edges());
- Result := SUM.Cluster(5);
- Result.FilterSize(25, __GT__);
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement