| | |
| | | { |
| | | InitializeComponent(); |
| | | //ConfigHelper.Save(@"D:\P066-Data\P066XML\1.xml", runparam); |
| | | runparam = ConfigHelper.Load<P066RunParam>(@"D:\P066-Data\P066XML\Jin_Mid.xml"); |
| | | runparam = ConfigHelper.Load<P066RunParam>(@"E:\P066.Data\P066XML\Jin_Mid.xml"); |
| | | |
| | | |
| | | } |
| | |
| | | GuaNum=GuaNum+1; |
| | | filenameDir = "复检中框刮白"; |
| | | filename = "复检中框刮白" + GuaNum; |
| | | judgeList = GetMidLocation(judgeList); |
| | | judgeList = GetBkLocation(judgeList); |
| | | //给镜头区分位置及角度 |
| | | list = GetMidLocation(list); |
| | | list = GetBkLocation(list); |
| | | } |
| | | else if (fileinfos1[i].Name.Contains("初检背板")) |
| | | { |
| | |
| | | if (distance < 20) |
| | | { |
| | | itemToRemove.Add(list2[j]); |
| | | //if (list1[i].PostTreatmentResults=="") |
| | | //{ |
| | | // list1[i].PostTreatmentResults = list2[j].PostTreatmentResults; |
| | | //} |
| | | //else |
| | | //{ |
| | | // list2[j].PostTreatmentResults = list1[i].PostTreatmentResults; |
| | | //} |
| | | } |
| | | } |
| | | } |
| | |
| | | list1[i].JudgmentResult = "NG"; |
| | | list2[j].JudgmentResult = "NG"; |
| | | } |
| | | //if (list1[i].PostTreatmentResults == "") |
| | | //{ |
| | | // list1[i].PostTreatmentResults = list2[j].PostTreatmentResults; |
| | | //} |
| | | //else |
| | | //{ |
| | | // list2[j].PostTreatmentResults = list1[i].PostTreatmentResults; |
| | | //} |
| | | |
| | | } |
| | | } |
| | |
| | | if (data[3]== "刮白") |
| | | { |
| | | defectType = "刮白"; |
| | | judgmentresult = "NG"; |
| | | judgmentresult =data[1]; |
| | | Ptr = "刮白"; |
| | | } |
| | | else |
| | | { |
| | | defectType = "白点"; |
| | | judgmentresult = data[1]; |
| | | |
| | | |
| | | } |
| | | |
| | | if (data[6] == "-") |