File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
pipeline/AutoEcoFarm/CommonNodes Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 172172 "next" : [
173173 //找到农田就下一步,没找到再拉缩放
174174 " _AutoEcoFarmFindFarmlandCustom" ,
175+ //如果已经到最大缩放还没找到农田,那可能是没有种田,直接跳过该地区任务回主菜单
176+ " _AutoEcoFarmScaleMax" ,
175177 //通过一个自循环来做到多次识别→拉近
176178 " _AutoEcoFarmPullEcoFarmToCenter"
177179 ]
178180 },
181+ "_AutoEcoFarmScaleMax" : {
182+ "desc" : " 缩放加号为灰色则代表已经拉到最大" ,
183+ "recognition" : {
184+ "type" : " TemplateMatch" ,
185+ "param" : {
186+ "roi" : [
187+ 1225 ,
188+ 242 ,
189+ 24 ,
190+ 24
191+ ],
192+ "template" : " AutoEcoFarm/AutoEcoFarmPlusGrey.png" ,
193+ "green_mask" : true ,
194+ "method" : 5 ,
195+ "threshold" : 0.9
196+ }
197+ },
198+ "pre_delay" : 0 ,
199+ "post_delay" : 0 ,
200+ "focus" : {
201+ "Node.Recognition.Succeeded" : " 已经缩放到最大了,还没找到农田,默认当做没种田处理,换下个地区"
202+ },
203+ "next" : [
204+ " AutoEcoFarmMain"
205+ ]
206+ },
179207 "_AutoEcoFarmPullEcoFarmToCenter" : {
180208 "desc" : " 将农田拉到屏幕中间" ,
181- "max_hit" : 10 ,
209+ "max_hit" : 20 ,
182210 "pre_delay" : 0 ,
183211 "action" : {
184212 "type" : " Swipe" ,
You can’t perform that action at this time.
0 commit comments