1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
| using RichCreator.Utility.CV;
| using RichCreator.Utility.Structs;
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Text;
| using System.Threading.Tasks;
| using Emgu.CV;
| using Emgu.CV.Structure;
| using System.Threading;
| using RichCreator.Utility.Captures;
| using ZTImage.Configuration;
| using RichCreator.Utility.Utilitys;
|
| namespace RichCreator.Utility.CV
| {
| /// <summary>
| /// 技能识别
| /// </summary>
| public class SkillCVHelper
| {
| /// <summary>
| /// 技能窗标题文字
| /// </summary>
| private static ColorArray skillTitleText = ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f, "646,119,255,255,255$645,111,255,255,255$647,111,255,255,255$648,111,255,255,255$647,108,255,255,255$647,109,255,255,255$647,110,255,255,255$647,111,255,255,255$645,115,255,255,255$646,115,255,255,255$647,115,255,255,255$647,119,255,255,255$649,119,255,255,255$650,119,255,255,255$654,119,255,255,255$655,119,255,255,255$658,119,255,255,255$660,119,255,255,255$661,119,255,255,255$665,119,255,255,255$667,119,255,255,255$671,119,255,255,255$673,119,255,255,255$674,119,255,255,255$675,119,255,255,255$676,119,255,255,255$677,119,255,255,255$678,115,255,255,255$676,115,255,255,255$674,115,255,255,255$671,115,255,255,255$671,114,255,255,255$671,113,255,255,255$671,112,255,255,255$671,111,255,255,255$671,110,255,255,255$671,108,255,255,255$674,108,255,255,255$678,108,255,255,255$666,108,255,255,255$663,108,255,255,255$660,110,255,255,255$659,110,255,255,255$658,110,255,255,255$654,110,255,255,255$651,110,255,255,255$650,110,255,255,255$652,110,255,255,255$652,113,255,255,255");
|
| /// <summary>
| /// lv文字
| /// </summary>
| private static ColorArray lvText = ColorArray.FromHsvFloatString(0.01f,0.01f,0.01f, "278,261,153,153,153$279,256,145,145,145$279,255,153,153,153$278,256,153,153,153$278,257,153,153,153$278,258,153,153,153$277,258,153,153,153$277,259,153,153,153$277,260,153,153,153$277,261,153,153,153$279,261,153,153,153$280,261,153,153,153$285,261,153,153,153$285,258,153,153,153$285,257,153,153,153$285,262,153,153,153$286,261,153,153,153$287,260,153,153,153$288,259,153,153,153$289,258,145,145,145$289,257,153,153,153");
|
| /// <summary>
| /// 向上滚动键
| /// </summary>
| private static ColorArray upKey = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "818,275,221,197,147$811,266,221,197,147$812,266,221,197,147$815,266,221,197,147$817,266,221,197,147$818,267,221,197,147$818,269,221,197,147$818,271,221,197,147$818,273,221,197,147$818,276,221,197,147$817,277,221,197,147$815,277,221,197,147$813,277,221,197,147$811,277,221,197,147$810,276,221,197,147$810,274,221,197,147$810,272,221,197,147$810,271,221,197,147$810,270,221,197,147$810,269,221,197,147$810,268,221,197,147$810,267,221,197,147$814,270,221,197,147$814,271,221,197,147$813,271,221,197,147$815,271,221,197,147$815,272,221,197,147$814,272,221,197,147$813,272,221,197,147$812,273,221,197,147$813,273,221,197,147$814,273,221,197,147$815,273,221,197,147$816,273,221,197,147");
| private static ColorArray upGrayKey = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "832,262,136,134,134$829,272,136,134,134$829,271,136,134,134$829,270,136,134,134$829,269,136,134,134$829,268,136,134,134$829,267,136,134,134$829,266,136,134,134$829,265,136,134,134$829,264,136,134,134$829,263,136,134,134$830,262,136,134,134$834,262,136,134,134$836,262,136,134,134$837,263,136,134,134$837,265,136,134,134$837,267,136,134,134$837,269,136,134,134$837,271,136,134,134$837,272,136,134,134$836,273,136,134,134$834,273,136,134,134$832,273,136,134,134$830,273,136,134,134$831,269,136,134,134$832,269,136,134,134$835,269,136,134,134$834,269,136,134,134$834,268,136,134,134$832,268,136,134,134$832,267,136,134,134$833,267,136,134,134$833,266,136,134,134$834,267,136,134,134");
| /// <summary>
| /// 向下滚动键
| /// </summary>
| private static ColorArray downKey = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "816,599,221,197,147$811,588,221,197,147$812,588,221,197,147$814,588,221,197,147$815,588,221,197,147$817,588,221,197,147$818,589,221,197,147$818,590,221,197,147$818,592,221,197,147$818,593,221,197,147$818,595,221,197,147$818,596,221,197,147$818,598,221,197,147$817,599,221,197,147$814,599,221,197,147$813,599,221,197,147$811,599,221,197,147$810,598,221,197,147$810,597,221,197,147$810,595,221,197,147$810,594,221,197,147$810,592,221,197,147$810,591,221,197,147$810,589,221,197,147$812,592,221,197,147$813,592,221,197,147$814,592,221,197,147$815,592,221,197,147$816,592,221,197,147$814,595,221,197,147$815,594,221,197,147$814,594,221,197,147$813,594,221,197,147");
| private static ColorArray downGrayKey = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "836,599,136,134,134$830,599,136,134,134$832,599,136,134,134$834,599,136,134,134$837,600,136,134,134$837,601,136,134,134$837,603,136,134,134$837,604,136,134,134$837,608,136,134,134$837,609,136,134,134$836,610,136,134,134$835,610,136,134,134$833,610,136,134,134$831,610,136,134,134$830,610,136,134,134$829,609,136,134,134$829,607,136,134,134$829,605,136,134,134$829,603,136,134,134$829,601,136,134,134$829,600,136,134,134$831,603,136,134,134$832,603,136,134,134$834,603,136,134,134$835,603,136,134,134$834,604,136,134,134$833,604,136,134,134$832,604,136,134,134$832,605,136,134,134$833,605,136,134,134$834,605,136,134,134$833,606,136,134,134");
|
| /// <summary>
| /// 查找技能窗口
| /// </summary>
| /// <param name="titleRect"></param>
| /// <param name="lvRect"></param>
| /// <param name="upKeyRect"></param>
| /// <param name="downKeyRect"></param>
| /// <param name="gameRect"></param>
| /// <returns></returns>
| public static bool FindSkillWindow(out ZTRectangle titleRect, out ZTRectangle lvRect, out ZTRectangle upKeyRect, out ZTRectangle downKeyRect, out bool isGray,ZTRectangle gameRect)
| {
| isGray = false;
| titleRect = lvRect = upKeyRect = downKeyRect = ZTRectangle.Empty;
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
|
| if (!CVHelper.FindColorArray(out titleRect, image, skillTitleText, gameRect))
| {
| return false;
| }
|
| if (!CVHelper.FindColorArray(out lvRect, image, lvText, gameRect))
| {
| return false;
| }
|
| ZTRectangle updownkeylimit = new ZTRectangle(titleRect.Start.X, titleRect.Start.Y, titleRect.Start.X + 222, gameRect.End.Y);
| if (!CVHelper.FindColorArray(out upKeyRect, image, upKey, updownkeylimit))
| {
| if (!CVHelper.FindColorArray(out upKeyRect, image, upGrayKey, updownkeylimit))
| {
|
| return false;
| }
|
| if (!CVHelper.FindColorArray(out downKeyRect, image, downGrayKey, updownkeylimit))
| {
| return false;
| }
| isGray = true;
| }
| else
| {
| if (!CVHelper.FindColorArray(out downKeyRect, image, downKey, updownkeylimit))
| {
| return false;
| }
| }
| return true;
| }
|
|
| public static bool FindCommonUpDownKey(out ZTRectangle upKeyRect, out ZTRectangle downKeyRect, ZTRectangle titleRect, ZTRectangle gameRect)
| {
| upKeyRect = downKeyRect = ZTRectangle.Empty;
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
|
| ZTRectangle updownkeylimit = new ZTRectangle(titleRect.Start.X, titleRect.Start.Y, titleRect.Start.X + 222, gameRect.End.Y);
|
| if (!CVHelper.FindColorArray(out upKeyRect, image, upKey, updownkeylimit))
| {
| return false;
| }
|
| if (!CVHelper.FindColorArray(out downKeyRect, image, downKey, updownkeylimit))
| {
| return false;
| }
|
| return true;
| }
|
| private static ColorArray notificationText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "661,316,255,255,255$658,306,255,255,255$658,308,255,255,255$657,309,255,255,255$657,310,255,255,255$660,311,255,255,255$660,310,255,255,255$659,313,255,255,255$659,312,255,255,255$656,316,255,255,255$657,316,255,255,255$658,316,255,255,255$659,316,255,255,255$660,316,255,255,255$664,316,255,255,255$668,316,255,255,255$668,317,255,255,255$668,313,255,255,255$676,313,255,255,255$676,317,255,255,255$676,311,255,255,255$672,311,255,255,255$668,311,255,255,255$668,309,255,255,255$669,308,255,255,255$672,306,255,255,255$672,308,255,255,255$672,310,255,255,255$673,308,255,255,255$675,308,255,255,255$676,308,255,255,255");
|
| /// <summary>
| /// 是否存在公告文本
| /// </summary>
| /// <param name="gameRect"></param>
| /// <returns></returns>
| public static bool ExistsNotificationText(out ZTRectangle notificationRect,ZTRectangle gameRect)
| {
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
|
| if (!CVHelper.FindColorArray(out notificationRect, image, notificationText, gameRect))
| {
| return false;
| }
| return true;
| }
|
| /// <summary>
| /// 加技能时向右的红色按钮
| /// </summary>
| private static ColorArray rightRedButton = ColorArray.FromHsvFloatString(0.002f, 0.02f, 0.02f, "515,264,255,34,34$515,259,255,51,51$515,260,255,34,34$515,261,255,34,34$515,262,255,34,34$515,263,255,34,34$515,265,255,34,34$516,265,255,34,34$516,261,255,34,34$516,260,255,34,34$517,261,255,34,34$517,262,255,34,34$517,264,255,34,34$518,262,255,34,34$518,263,255,34,34$521,259,255,51,51$521,260,255,34,34$521,266,255,51,51$521,265,255,34,34$521,264,255,34,34$521,263,255,34,34$522,264,255,34,34$522,265,255,34,34$522,260,255,34,34$522,261,255,34,34$523,262,255,34,34$523,261,255,34,34$523,264,255,34,34$523,263,255,34,34$524,263,255,34,34$524,262,255,34,34");
|
| /// <summary>
| /// 加技能时向右的灰色按钮
| /// </summary>
| private static ColorArray grayRedButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "516,261,153,153,153$515,259,153,153,153$515,260,153,153,153$515,262,153,153,153$515,263,153,153,153$515,265,153,153,153$515,266,153,153,153$516,265,153,153,153$516,264,153,153,153$516,262,153,153,153$516,260,153,153,153$517,261,153,153,153$517,262,153,153,153$517,263,153,153,153$517,264,153,153,153$518,263,153,153,153$518,262,153,153,153$521,259,153,153,153$521,260,153,153,153$521,261,153,153,153$521,262,153,153,153$521,263,153,153,153$521,264,153,153,153$521,265,153,153,153$521,266,153,153,153$522,265,153,153,153$522,264,153,153,153$522,261,153,153,153$522,260,153,153,153$523,261,153,153,153$523,262,153,153,153$523,263,153,153,153$523,264,153,153,153$524,263,153,153,153$524,262,153,153,153");
|
| /// <summary>
| /// 是否已经选中技能
| /// </summary>
| /// <param name="right"></param>
| /// <param name="skillIsFullLevel">技能是否已经满级</param>
| /// <param name="limitRect"></param>
| /// <returns></returns>
| public static bool IsSelectSkill(out ZTRectangle rightButtonRect,out bool skillIsFullLevel, ZTRectangle limitRect)
| {
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
| if (CVHelper.FindColorArray(out rightButtonRect, image, rightRedButton, limitRect))
| {
| //已选中,未满级
| skillIsFullLevel = false;
| return true;
| }
|
| if (CVHelper.FindColorArray(out rightButtonRect, image, grayRedButton, limitRect))
| {
| //已选中,已满级
| skillIsFullLevel = true;
| return true;
| }
| skillIsFullLevel = false;
| return false;
| }
|
| /// <summary>
| /// 技能是否已经满级
| /// </summary>
| /// <param name="limitRect"></param>
| /// <returns></returns>
| public static bool SkillIsFullLevel(ZTRectangle limitRect)
| {
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
|
| ZTRectangle rect = ZTRectangle.Empty;
| if (CVHelper.FindColorArray(out rect, image, grayRedButton, limitRect))
| {
| //已满级
| return true;
| }
| return false;
| }
|
| /// <summary>
| /// 技能等级数字
| /// </summary>
| private static ColorArray[] numbers = new ColorArray[] {
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "254,400,140,140,140$254,396,140,140,140$254,397,140,140,140$253,397,140,140,140$254,398,140,140,140$254,399,140,140,140$254,401,140,140,140$254,402,140,140,140$254,403,140,140,140$253,403,140,140,140$255,403,140,140,140"),//1
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "254,533,140,140,140$251,532,140,140,140$251,531,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$255,532,140,140,140$253,534,140,140,140$252,535,140,140,140$251,536,140,140,140$251,537,140,140,140$252,537,140,140,140$253,537,140,140,140$254,537,140,140,140$255,537,140,140,140"),//2
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "255,532,140,140,140$251,531,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$254,533,140,140,140$253,533,140,140,140$255,534,140,140,140$255,535,140,140,140$255,536,140,140,140$254,537,140,140,140$253,537,140,140,140$252,537,140,140,140$251,536,140,140,140"),//3
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "252,332,140,140,140$255,334,140,140,140$254,334,140,140,140$253,334,140,140,140$252,334,140,140,140$251,334,140,140,140$251,333,140,140,140$253,331,140,140,140$253,330,140,140,140$254,329,140,140,140$254,330,140,140,140$254,331,140,140,140$254,332,140,140,140$254,333,140,140,140$254,335,140,140,140$254,336,140,140,140$255,336,140,140,140$253,336,140,140,140"),//4
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "251,467,140,140,140$255,463,140,140,140$254,463,140,140,140$253,463,140,140,140$252,463,140,140,140$251,463,140,140,140$251,464,140,140,140$251,465,140,140,140$251,466,140,140,140$252,466,140,140,140$253,466,140,140,140$254,466,140,140,140$255,467,140,140,140$255,468,140,140,140$255,469,140,140,140$254,470,140,140,140$253,470,140,140,140$252,470,140,140,140$251,469,140,140,140"),//5
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "252,537,140,140,140$255,531,140,140,140$254,530,140,140,140$253,530,140,140,140$252,531,140,140,140$251,532,140,140,140$251,533,140,140,140$251,534,140,140,140$251,535,140,140,140$251,536,140,140,140$253,537,140,140,140$254,537,140,140,140$255,536,140,140,140$255,535,140,140,140$255,534,140,140,140$254,533,140,140,140$253,533,140,140,140$252,534,140,140,140"),//6
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "254,465,140,140,140$252,463,140,140,140$253,463,140,140,140$254,463,140,140,140$255,463,140,140,140$255,464,140,140,140$254,466,140,140,140$253,467,140,140,140$253,468,140,140,140$253,469,140,140,140$253,470,140,140,140"),//7
| ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "255,534,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$255,532,140,140,140$254,533,140,140,140$253,533,140,140,140$252,533,140,140,140$255,535,140,140,140$255,536,140,140,140$254,537,140,140,140$253,537,140,140,140$252,537,140,140,140$251,536,140,140,140$251,535,140,140,140$251,534,140,140,140$251,532,140,140,140$251,531,140,140,140"),//8
| };
|
| /// <summary>
| /// 是否有数字文本
| /// </summary>
| /// <param name="limitRect"></param>
| /// <returns></returns>
| public static bool HasNumberText(ZTRectangle limitRect)
| {
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
|
| ZTRectangle rect = ZTRectangle.Empty;
| for (int i = 0; i < numbers.Length; i++)
| {
| if (CVHelper.FindColorArray(out rect, image, numbers[i], limitRect))
| {
| return true;
| }
| }
|
| return false;
| }
|
| /// <summary>
| /// 技能节
| /// </summary>
| private static ColorArray[] numberSections = new ColorArray[] {
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"100,578,140,140,140$109,309,140,140,140$109,310,140,140,140$108,310,140,140,140$109,311,140,140,140$109,312,140,140,140$109,313,140,140,140$109,314,140,140,140$109,315,140,140,140$109,316,140,140,140$110,316,140,140,140$108,316,140,140,140$100,579,140,140,140$101,577,140,140,140$102,577,140,140,140$103,577,140,140,140$104,578,140,140,140$104,579,140,140,140$103,580,140,140,140$102,581,140,140,140$101,582,140,140,140$100,583,140,140,140$100,584,140,140,140$101,584,140,140,140$102,584,140,140,140$103,584,140,140,140$104,584,140,140,140$107,584,140,140,140$109,584,140,140,140$110,583,140,140,140$110,578,140,140,140$109,577,140,140,140$107,577,140,140,140$106,578,140,140,140$106,583,140,140,140"),
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"251,269,140,140,140$251,264,140,140,140$251,263,140,140,140$252,262,140,140,140$253,262,140,140,140$254,262,140,140,140$255,263,140,140,140$255,264,140,140,140$254,265,140,140,140$253,266,140,140,140$252,267,140,140,140$251,268,140,140,140$252,269,140,140,140$253,269,140,140,140$254,269,140,140,140$255,269,140,140,140$258,269,140,140,140$260,269,140,140,140$261,268,140,140,140$261,263,140,140,140$260,262,140,140,140$258,262,140,140,140$257,263,140,140,140$257,268,140,140,140$254,530,140,140,140$254,531,140,140,140$253,531,140,140,140$253,532,140,140,140$254,532,140,140,140$254,533,140,140,140$252,533,140,140,140$251,534,140,140,140$254,534,140,140,140$255,535,140,140,140$254,535,140,140,140$253,535,140,140,140$252,535,140,140,140$251,535,140,140,140$254,536,140,140,140$254,537,140,140,140$255,537,140,140,140$253,537,140,140,140"),
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"261,334,140,140,140$251,329,140,140,140$252,329,140,140,140$253,329,140,140,140$254,329,140,140,140$255,329,140,140,140$258,329,140,140,140$259,329,140,140,140$260,329,140,140,140$261,330,140,140,140$261,331,140,140,140$261,335,140,140,140$260,336,140,140,140$258,336,140,140,140$257,335,140,140,140$257,334,140,140,140$257,330,140,140,140$251,330,140,140,140$251,332,140,140,140$252,332,140,140,140$253,332,140,140,140$254,332,140,140,140$251,333,140,140,140$255,333,140,140,140$255,334,140,140,140$255,335,140,140,140$254,336,140,140,140$253,336,140,140,140$252,336,140,140,140$251,335,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$255,532,140,140,140$254,533,140,140,140$253,533,140,140,140$252,533,140,140,140$251,534,140,140,140$251,535,140,140,140$251,536,140,140,140$252,537,140,140,140$253,537,140,140,140$254,537,140,140,140$255,536,140,140,140$255,535,140,140,140$255,534,140,140,140")
| };
|
| /// <summary>
| /// 查找技能节
| /// </summary>
| /// <param name="numberSection"></param>
| /// <param name="sectionRect"></param>
| /// <param name="limitRect"></param>
| /// <returns></returns>
| public static bool IsNumberSections(out Int32 numberSection,out ZTRectangle sectionRect, ZTRectangle limitRect)
| {
| numberSection = 0;
| sectionRect = ZTRectangle.Empty;
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
|
| for (int i = 0; i < numberSections.Length; i++)
| {
| if (CVHelper.FindColorArray(out sectionRect, image, numberSections[i], limitRect))
| {
| numberSection = i;
| return true;
| }
| }
|
| return false;
| }
|
|
| /// <summary>
| /// 已学技能文字
| /// 白色
| /// 灰色
| /// </summary>
| private static ColorArray[] studayedText = new ColorArray[] {
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"739,471,255,255,255$739,468,255,255,255$740,468,255,255,255$742,468,255,255,255$743,468,255,255,255$745,468,255,255,255$746,468,255,255,255$747,468,255,255,255$747,469,255,255,255$747,472,255,255,255$747,473,255,255,255$746,473,255,255,255$739,473,255,255,255$739,477,255,255,255$739,476,255,255,255$740,478,255,255,255$741,478,255,255,255$747,478,255,255,255$748,478,255,255,255$748,477,255,255,255$748,476,255,255,255$753,478,255,255,255$755,478,255,255,255$755,474,255,255,255$760,474,255,255,255$750,474,255,255,255$756,473,255,255,255$757,472,255,255,255$758,471,255,255,255$752,471,255,255,255$750,470,255,255,255$750,469,255,255,255$751,469,255,255,255$753,469,255,255,255$755,469,255,255,255$757,469,255,255,255$760,469,255,255,255$760,470,255,255,255"),
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"739,476,170,170,170$739,468,170,170,170$740,468,170,170,170$743,468,170,170,170$744,468,170,170,170$747,468,170,170,170$747,469,170,170,170$747,472,170,170,170$747,473,170,170,170$746,473,170,170,170$742,473,170,170,170$740,473,170,170,170$739,473,170,170,170$739,472,170,170,170$739,471,170,170,170$739,477,170,170,170$740,478,170,170,170$741,478,170,170,170$744,478,170,170,170$748,478,170,170,170$748,477,170,170,170$748,476,170,170,170$753,478,170,170,170$754,478,170,170,170$755,478,170,170,170$755,477,170,170,170$755,474,170,170,170$750,474,170,170,170$751,474,170,170,170$760,474,170,170,170$759,474,170,170,170$756,473,170,170,170$757,472,170,170,170$758,471,170,170,170$756,471,170,170,170$752,471,170,170,170$750,470,170,170,170$750,469,170,170,170$751,469,170,170,170$757,469,170,170,170$759,469,170,170,170$760,469,170,170,170$760,470,170,170,170"),
|
| };
| /// <summary>
| /// 已学技能窗口是否打开
| /// </summary>
| /// <returns></returns>
| public static bool StudaySkillWindowIsOpen(out ZTRectangle innerstudyTextRect,ZTRectangle gameRect)
| {
| innerstudyTextRect = ZTRectangle.Empty;
|
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
| for (int i = 0; i < studayedText.Length; i++)
| {
| if (CVHelper.FindColorArray(out innerstudyTextRect, image, studayedText[i], gameRect))
| {
| return true;
| }
| }
|
| return false;
| }
|
|
| private static ColorArray[] skillsText = new ColorArray[] {
| //0.后跳
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"555,357,247,214,90$555,353,247,214,90$554,353,247,214,90$553,353,247,214,90$552,354,247,214,90$551,354,247,214,90$550,354,247,214,90$548,354,247,214,90$548,357,247,214,90$549,357,247,214,90$550,357,247,214,90$552,357,247,214,90$556,357,247,214,90$556,360,247,214,90$556,361,247,214,90$556,363,247,214,90$550,363,247,214,90$550,364,247,214,90$550,360,247,214,90$548,361,247,214,90$548,359,247,214,90$558,353,247,214,90$561,353,247,214,90$561,356,247,214,90$558,356,247,214,90$560,357,247,214,90$560,362,247,214,90$561,362,247,214,90$561,359,247,214,90$564,353,247,214,90$564,356,247,214,90$564,359,247,214,90$564,362,247,214,90$563,363,247,214,90$562,364,247,214,90$567,364,247,214,90$568,364,247,214,90$568,363,247,214,90$568,362,247,214,90$568,360,247,214,90"),
| //1.魔法旋风
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"563,51,247,214,90$569,42,247,214,90$568,42,247,214,90$565,42,247,214,90$565,41,247,214,90$561,42,247,214,90$560,42,247,214,90$560,51,247,214,90$559,52,247,214,90$561,52,247,214,90$562,52,247,214,90$565,51,247,214,90$566,52,247,214,90$567,52,247,214,90$569,52,247,214,90$569,51,247,214,90$571,51,247,214,90$572,50,247,214,90$573,49,247,214,90$574,51,247,214,90$581,52,247,214,90$581,47,247,214,90$577,47,247,214,90$573,47,247,214,90$574,44,247,214,90$577,44,247,214,90$580,44,247,214,90$577,41,247,214,90$585,41,247,214,90$586,42,247,214,90$589,41,247,214,90$589,43,247,214,90$593,43,247,214,90$593,45,247,214,90$593,46,247,214,90$583,44,247,214,90$584,51,247,214,90$583,52,247,214,90$585,52,247,214,90$586,52,247,214,90$588,52,247,214,90$590,52,247,214,90$593,52,247,214,90$595,52,247,214,90$596,51,247,214,90$597,50,247,214,90$596,42,247,214,90$603,42,247,214,90$603,50,247,214,90$604,51,247,214,90$605,52,247,214,90$605,49,247,214,90$601,50,247,214,90$600,49,247,214,90$599,47,247,214,90"),
| //2.魔法冰球
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"598,311,247,214,90$596,301,247,214,90$596,302,247,214,90$600,302,247,214,90$591,302,247,214,90$591,311,247,214,90$590,312,247,214,90$592,312,247,214,90$593,312,247,214,90$594,311,247,214,90$596,311,247,214,90$600,311,247,214,90$600,312,247,214,90$602,311,247,214,90$603,310,247,214,90$604,309,247,214,90$606,311,247,214,90$605,311,247,214,90$606,310,247,214,90$612,311,247,214,90$612,312,247,214,90$611,310,247,214,90$610,309,247,214,90$612,307,247,214,90$608,307,247,214,90$604,307,247,214,90$603,306,247,214,90$602,305,247,214,90$603,301,247,214,90$604,302,247,214,90$605,304,247,214,90$608,304,247,214,90$608,301,247,214,90$611,304,247,214,90$612,307,247,214,90$611,307,247,214,90$616,308,247,214,90$615,309,247,214,90$614,310,247,214,90$617,309,247,214,90$617,310,247,214,90$618,308,247,214,90$618,305,247,214,90$616,305,247,214,90$620,301,247,214,90$620,312,247,214,90$619,312,247,214,90$624,311,247,214,90$623,310,247,214,90$623,309,247,214,90$622,308,247,214,90$622,306,247,214,90$623,305,247,214,90$624,304,247,214,90$626,302,247,214,90$629,302,247,214,90$628,306,247,214,90$629,306,247,214,90$626,306,247,214,90$630,310,247,214,90$628,310,247,214,90$633,312,247,214,90$632,312,247,214,90$633,304,247,214,90$633,301,247,214,90$630,304,247,214,90$636,304,247,214,90"),
| //3.狂风冲刺
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"619,273,247,214,90$610,264,247,214,90$611,263,247,214,90$611,262,247,214,90$611,265,247,214,90$610,268,247,214,90$611,272,247,214,90$610,273,247,214,90$609,273,247,214,90$613,273,247,214,90$619,268,247,214,90$613,268,247,214,90$613,263,247,214,90$619,263,247,214,90$622,263,247,214,90$629,263,247,214,90$633,263,247,214,90$640,263,247,214,90$640,262,247,214,90$648,264,247,214,90$648,262,247,214,90$651,264,247,214,90$653,264,247,214,90$655,262,247,214,90$655,273,247,214,90$654,273,247,214,90$653,270,247,214,90$651,269,247,214,90$650,269,247,214,90$651,272,247,214,90$648,272,247,214,90$648,273,247,214,90$645,272,247,214,90$640,272,247,214,90$640,273,247,214,90$643,269,247,214,90$643,270,247,214,90$642,269,247,214,90"),
| //4.朔风牵引
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"644,315,247,214,90$641,314,247,214,90$642,315,247,214,90$645,314,247,214,90$647,315,247,214,90$647,316,247,214,90$648,315,247,214,90$650,315,247,214,90$653,315,247,214,90$660,315,247,214,90$660,316,247,214,90$665,315,247,214,90$669,315,247,214,90$669,314,247,214,90$673,315,247,214,90$676,315,247,214,90$680,315,247,214,90$684,315,247,214,90$684,314,247,214,90$684,325,247,214,90$684,324,247,214,90$680,324,247,214,90$679,325,247,214,90$677,325,247,214,90$674,323,247,214,90$669,323,247,214,90$669,325,247,214,90$664,323,247,214,90$665,323,247,214,90$665,322,247,214,90$662,325,247,214,90$662,324,247,214,90$661,324,247,214,90$660,323,247,214,90$658,323,247,214,90$654,323,247,214,90$653,323,247,214,90$653,324,247,214,90$652,325,247,214,90$650,325,247,214,90$649,325,247,214,90$647,324,247,214,90$646,325,247,214,90$641,325,247,214,90$642,324,247,214,90"),
| //5.流风决
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"696,302,247,214,90$683,302,247,214,90$684,303,247,214,90$686,303,247,214,90$690,303,247,214,90$690,302,247,214,90$689,301,247,214,90$693,303,247,214,90$696,303,247,214,90$703,302,247,214,90$703,303,247,214,90$709,302,247,214,90$708,301,247,214,90$711,303,247,214,90$713,303,247,214,90$713,301,247,214,90$716,303,247,214,90$716,307,247,214,90$717,307,247,214,90$713,307,247,214,90$713,308,247,214,90$714,309,247,214,90$714,310,247,214,90$715,311,247,214,90$716,312,247,214,90$717,312,247,214,90$710,312,247,214,90$711,311,247,214,90$712,310,247,214,90$712,309,247,214,90$709,310,247,214,90$708,310,247,214,90$708,311,247,214,90$705,311,247,214,90$705,309,247,214,90$705,312,247,214,90$703,310,247,214,90$701,310,247,214,90$697,310,247,214,90$691,311,247,214,90$691,308,247,214,90$693,310,247,214,90$693,312,247,214,90$689,312,247,214,90$689,308,247,214,90$687,308,247,214,90$687,310,247,214,90"),
| //6.风鸣冲击
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"723,318,247,214,90$703,315,247,214,90$706,315,247,214,90$710,315,247,214,90$714,315,247,214,90$717,315,247,214,90$719,315,247,214,90$720,315,247,214,90$720,314,247,214,90$723,315,247,214,90$722,318,247,214,90$721,317,247,214,90$719,320,247,214,90$724,320,247,214,90$724,322,247,214,90$724,324,247,214,90$723,325,247,214,90$722,325,247,214,90$722,323,247,214,90$720,323,247,214,90$717,323,247,214,90$717,322,247,214,90$714,322,247,214,90$714,323,247,214,90$714,318,247,214,90$717,318,247,214,90$727,316,247,214,90$726,315,247,214,90$730,316,247,214,90$733,316,247,214,90$733,314,247,214,90$736,316,247,214,90$736,321,247,214,90$736,322,247,214,90$733,321,247,214,90$733,325,247,214,90$739,316,247,214,90$743,316,247,214,90$743,314,247,214,90$747,316,247,214,90$747,319,247,214,90$748,319,247,214,90$747,321,247,214,90$747,324,247,214,90$747,325,247,214,90$743,324,247,214,90$739,324,247,214,90$739,321,247,214,90"),
| //7.游离之风
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"523,330,247,214,90$516,320,247,214,90$517,321,247,214,90$519,321,247,214,90$521,321,247,214,90$520,320,247,214,90$519,319,247,214,90$519,324,247,214,90$519,329,247,214,90$518,330,247,214,90$516,329,247,214,90$524,330,247,214,90$524,326,247,214,90$526,326,247,214,90$525,324,247,214,90$525,323,247,214,90$523,323,247,214,90$522,322,247,214,90$521,321,247,214,90$523,321,247,214,90$523,319,247,214,90$525,321,247,214,90$526,321,247,214,90$528,320,247,214,90$533,320,247,214,90$533,319,247,214,90$538,320,247,214,90$537,322,247,214,90$537,324,247,214,90$529,324,247,214,90$529,322,247,214,90$528,326,247,214,90$528,330,247,214,90$535,330,247,214,90$535,329,247,214,90$537,330,247,214,90$538,330,247,214,90$538,326,247,214,90$540,322,247,214,90$544,322,247,214,90$548,322,247,214,90$549,330,247,214,90$544,330,247,214,90$543,329,247,214,90$540,330,247,214,90$543,327,247,214,90$544,326,247,214,90$545,325,247,214,90$546,324,247,214,90$547,323,247,214,90$552,320,247,214,90$559,320,247,214,90$559,325,247,214,90$559,328,247,214,90$560,329,247,214,90$561,330,247,214,90$561,329,247,214,90$561,327,247,214,90$551,330,247,214,90$552,329,247,214,90$552,324,247,214,90"),
| //8.双翼风刃
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"548,364,247,214,90$547,359,247,214,90$551,359,247,214,90$551,362,247,214,90$550,363,247,214,90$550,364,247,214,90$549,365,247,214,90$549,366,247,214,90$550,367,247,214,90$550,368,247,214,90$548,368,247,214,90$548,367,247,214,90$548,363,247,214,90$547,362,247,214,90$553,361,247,214,90$553,359,247,214,90$557,359,247,214,90$557,362,247,214,90$557,369,247,214,90$552,369,247,214,90$559,358,247,214,90$563,358,247,214,90$563,360,247,214,90$563,361,247,214,90$561,361,247,214,90$561,360,247,214,90$560,359,247,214,90$565,358,247,214,90$569,358,247,214,90$569,361,247,214,90$567,360,247,214,90$566,359,247,214,90$572,359,247,214,90$579,359,247,214,90$584,359,247,214,90$588,359,247,214,90$593,359,247,214,90$593,368,247,214,90$592,369,247,214,90$590,369,247,214,90$584,369,247,214,90$583,369,247,214,90$584,365,247,214,90$585,364,247,214,90$585,362,247,214,90$579,367,247,214,90$577,367,247,214,90$573,367,247,214,90$569,367,247,214,90$566,366,247,214,90$562,366,247,214,90$561,364,247,214,90$564,364,247,214,90$567,364,247,214,90$567,362,247,214,90$564,362,247,214,90$561,362,247,214,90"),
| //9.风暴之眼
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"593,324,247,214,90$579,320,247,214,90$586,320,247,214,90$591,320,247,214,90$591,319,247,214,90$596,319,247,214,90$599,319,247,214,90$599,323,247,214,90$595,323,247,214,90$595,321,247,214,90$595,325,247,214,90$593,325,247,214,90$591,325,247,214,90$599,325,247,214,90$590,327,247,214,90$593,327,247,214,90$597,327,247,214,90$600,327,247,214,90$600,329,247,214,90$599,329,247,214,90$597,329,247,214,90$595,329,247,214,90$593,329,247,214,90$591,329,247,214,90$590,329,247,214,90$592,330,247,214,90$594,330,247,214,90$595,330,247,214,90$598,330,247,214,90$613,329,247,214,90$616,329,247,214,90$614,328,247,214,90$615,325,247,214,90$615,322,247,214,90$614,322,247,214,90$614,319,247,214,90$615,319,247,214,90$616,321,247,214,90$616,323,247,214,90$613,323,247,214,90$613,327,247,214,90$616,327,247,214,90$618,329,247,214,90$618,322,247,214,90$618,319,247,214,90$619,319,247,214,90$621,319,247,214,90$622,319,247,214,90$622,320,247,214,90"),
| //10.真空旋风破
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"618,320,247,214,90$610,320,247,214,90$611,320,247,214,90$614,320,247,214,90$614,319,247,214,90$615,320,247,214,90$616,320,247,214,90$614,321,247,214,90$611,322,247,214,90$614,322,247,214,90$617,322,247,214,90$617,324,247,214,90$615,324,247,214,90$612,324,247,214,90$611,324,247,214,90$611,325,247,214,90$617,325,247,214,90$617,326,247,214,90$615,326,247,214,90$613,326,247,214,90$611,326,247,214,90$611,327,247,214,90$617,327,247,214,90$619,328,247,214,90$617,328,247,214,90$616,328,247,214,90$613,328,247,214,90$612,328,247,214,90$610,328,247,214,90$609,328,247,214,90$611,330,247,214,90$612,329,247,214,90$616,329,247,214,90$617,330,247,214,90$621,330,247,214,90$631,330,247,214,90$640,330,247,214,90$643,330,247,214,90$645,330,247,214,90$655,330,247,214,90$658,329,247,214,90$659,328,247,214,90$660,328,247,214,90$660,324,247,214,90$658,324,247,214,90$657,325,247,214,90$657,320,247,214,90$660,320,247,214,90$662,321,247,214,90$665,321,247,214,90$665,319,247,214,90$667,321,247,214,90$667,322,247,214,90$665,322,247,214,90$665,323,247,214,90$665,324,247,214,90$666,324,247,214,90$666,327,247,214,90$665,328,247,214,90$664,329,247,214,90$663,330,247,214,90$667,330,247,214,90$666,329,247,214,90"),
| //11.风暴之拳
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"645,311,247,214,90$641,307,247,214,90$641,309,247,214,90$641,310,247,214,90$641,316,247,214,90$640,317,247,214,90$642,315,247,214,90$643,314,247,214,90$644,313,247,214,90$644,312,247,214,90$646,309,247,214,90$648,307,247,214,90$648,309,247,214,90$648,315,247,214,90$649,316,247,214,90$650,316,247,214,90$650,317,247,214,90$650,314,247,214,90$653,310,247,214,90$653,308,247,214,90$653,306,247,214,90$658,306,247,214,90$661,306,247,214,90$661,308,247,214,90$661,310,247,214,90$677,306,247,214,90$680,306,247,214,90$683,306,247,214,90$684,307,247,214,90$680,307,247,214,90$677,307,247,214,90$679,308,247,214,90$679,317,247,214,90$680,317,247,214,90$680,316,247,214,90$680,315,247,214,90$684,315,247,214,90$676,315,247,214,90$677,313,247,214,90$680,313,247,214,90$683,313,247,214,90"),
| //12.万象风龙阵
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"680,303,247,214,90$671,294,247,214,90$672,294,247,214,90$674,294,247,214,90$679,294,247,214,90$681,294,247,214,90$674,295,247,214,90$674,298,247,214,90$676,298,247,214,90$678,298,247,214,90$680,298,247,214,90$680,302,247,214,90$679,304,247,214,90$677,304,247,214,90$671,304,247,214,90$672,303,247,214,90$673,302,247,214,90$673,301,247,214,90$674,300,247,214,90$674,299,247,214,90$726,293,247,214,90$726,294,247,214,90$729,295,247,214,90$727,295,247,214,90$724,295,247,214,90$725,296,247,214,90$725,297,247,214,90$724,298,247,214,90$724,299,247,214,90$725,299,247,214,90$726,299,247,214,90$727,299,247,214,90$727,297,247,214,90$728,299,247,214,90$729,299,247,214,90$727,300,247,214,90$727,301,247,214,90$727,302,247,214,90$728,302,247,214,90$729,302,247,214,90$726,302,247,214,90$725,302,247,214,90$724,302,247,214,90$727,303,247,214,90$727,304,247,214,90"),
| //13.风卷残云
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"703,298,247,214,90$703,294,247,214,90$703,295,247,214,90$703,296,247,214,90$703,297,247,214,90$703,301,247,214,90$703,303,247,214,90$702,304,247,214,90$704,302,247,214,90$708,302,247,214,90$710,302,247,214,90$711,303,247,214,90$712,303,247,214,90$712,302,247,214,90$712,301,247,214,90$712,304,247,214,90$747,303,247,214,90$747,304,247,214,90$746,303,247,214,90$743,303,247,214,90$739,303,247,214,90$740,302,247,214,90$741,301,247,214,90$742,300,247,214,90$743,299,247,214,90$745,301,247,214,90$746,302,247,214,90$748,298,247,214,90$747,298,247,214,90$744,298,247,214,90$743,298,247,214,90$739,298,247,214,90$738,298,247,214,90$740,294,247,214,90$741,294,247,214,90$745,294,247,214,90$746,294,247,214,90$723,295,247,214,90$722,295,247,214,90$719,295,247,214,90$716,295,247,214,90$715,295,247,214,90$716,293,247,214,90$717,294,247,214,90$719,294,247,214,90$719,293,247,214,90$721,294,247,214,90$722,293,247,214,90"),
| //14.游龙惊风破
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"519,344,247,214,90$516,338,247,214,90$517,339,247,214,90$518,339,247,214,90$519,339,247,214,90$521,339,247,214,90$520,338,247,214,90$519,337,247,214,90$519,340,247,214,90$519,342,247,214,90$519,346,247,214,90$519,347,247,214,90$518,348,247,214,90$517,346,247,214,90$516,347,247,214,90$516,342,247,214,90$517,343,247,214,90$522,344,247,214,90$526,344,247,214,90$524,344,247,214,90$524,343,247,214,90$525,342,247,214,90$525,341,247,214,90$523,341,247,214,90$522,340,247,214,90$523,339,247,214,90$523,337,247,214,90$526,339,247,214,90$574,348,247,214,90$573,347,247,214,90$572,346,247,214,90$571,347,247,214,90$570,348,247,214,90$569,346,247,214,90$569,344,247,214,90$569,342,247,214,90$571,342,247,214,90$571,343,247,214,90$571,344,247,214,90$571,345,247,214,90$573,345,247,214,90$573,344,247,214,90$573,343,247,214,90$573,342,247,214,90$572,341,247,214,90$572,340,247,214,90$572,339,247,214,90$572,338,247,214,90$572,337,247,214,90$573,339,247,214,90$574,339,247,214,90$574,340,247,214,90$569,339,247,214,90$569,341,247,214,90"),
| //15.九霄风雷
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"550,340,247,214,90$550,337,247,214,90$550,338,247,214,90$550,339,247,214,90$550,340,247,214,90$547,340,247,214,90$553,340,247,214,90$554,340,247,214,90$554,341,247,214,90$554,343,247,214,90$554,345,247,214,90$554,347,247,214,90$555,348,247,214,90$556,348,247,214,90$557,348,247,214,90$557,346,247,214,90$550,344,247,214,90$549,345,247,214,90$549,346,247,214,90$548,347,247,214,90$547,348,247,214,90$584,348,247,214,90$585,348,247,214,90$588,348,247,214,90$588,347,247,214,90$588,346,247,214,90$588,345,247,214,90$588,344,247,214,90$589,344,247,214,90$592,344,247,214,90$592,345,247,214,90$592,346,247,214,90$591,346,247,214,90$590,346,247,214,90$592,348,247,214,90$592,347,247,214,90$591,348,247,214,90$584,348,247,214,90$584,347,247,214,90$585,348,247,214,90$559,339,247,214,90$559,340,247,214,90$561,340,247,214,90$561,339,247,214,90$567,339,247,214,90$567,340,247,214,90$568,339,247,214,90$569,340,247,214,90$569,339,247,214,90"),
| //16.无限风域
| ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"624,269,247,214,90$579,260,247,214,90$580,260,247,214,90$582,260,247,214,90$583,260,247,214,90$585,260,247,214,90$586,260,247,214,90$587,260,247,214,90$583,261,247,214,90$583,262,247,214,90$583,263,247,214,90$583,264,247,214,90$585,264,247,214,90$586,264,247,214,90$588,264,247,214,90$578,264,247,214,90$579,264,247,214,90$582,265,247,214,90$582,266,247,214,90$581,267,247,214,90$580,268,247,214,90$579,269,247,214,90$578,270,247,214,90$584,269,247,214,90$584,268,247,214,90$584,267,247,214,90$585,270,247,214,90$586,270,247,214,90$588,270,247,214,90$588,269,247,214,90$588,268,247,214,90$624,270,247,214,90$623,269,247,214,90$624,268,247,214,90$622,268,247,214,90$620,268,247,214,90$621,269,247,214,90$619,269,247,214,90$618,269,247,214,90$620,270,247,214,90$622,268,247,214,90$622,267,247,214,90$623,267,247,214,90$623,266,247,214,90$622,266,247,214,90$624,265,247,214,90$624,264,247,214,90$622,264,247,214,90$622,261,247,214,90$624,261,247,214,90$624,259,247,214,90$622,259,247,214,90$618,261,247,214,90")
| };
| /// <summary>
| /// 得到技能名称
| /// </summary>
| /// <param name="skillIndex"></param>
| /// <param name="limit"></param>
| /// <returns></returns>
| public static bool GetSkillName(out Int32 skillIndex, ZTRectangle limit)
| {
| skillIndex = 0;
| ZTRectangle rect = ZTRectangle.Empty;
|
| Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
| for (int i = 0; i < skillsText.Length; i++)
| {
| if (CVHelper.FindColorArray(out rect, image, skillsText[i], limit))
| {
| skillIndex = i;
| return true;
| }
| }
|
| return false;
| }
|
| private static Int32 tt = 0;
| ///// <summary>
| ///// 灰色学习按钮
| ///// </summary>
| //private static ColorArray studayGrayButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "");
|
| //private static ColorArray studayCommon1Button = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "");
| //private static ColorArray studayCommon2Button = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "");
| //public static bool GetStudayStatus(out bool canStuday,ZTRectangle gameRect)
| //{
| // Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage();
|
| // ZTRectangle rect = ZTRectangle.Empty;
| // if (CVHelper.FindColorArray(out rect, image, notiButton, gameRect))
| // {
| // return true;
| // }
| // return false;
| //}
|
| }
| }
|
|