Example #1
0
 public string InputsImageForPerseptronFromAnswer(Bitmap bit)
 {
     Bitmap bmp = bit;
     SensorList = new List<Sensors>();
     SensorList = convertimageToListSensors.GetSensorList(bmp);
     addressable = new Addressable(SensorList, ArrayPerceprton);
     addressable.SumAndElelments();
     var asd = addressable.AddressableResult.ToList();
     addressableList = asd;
     return GetClassManeImageFromAnswer();
 }
Example #2
0
 public void LearningPerseptronFromAnswer(string filePath, string name, Bitmap bit = null)
 {
     ImagePath = filePath;
     Bitmap bmp;
     if (filePath != "")
     {
         bmp = new Bitmap(filePath);
     }
     else
     {
         bmp = bit;
     }
     SensorList = new List<Sensors>();
     SensorList = convertimageToListSensors.GetSensorList(bmp);
     addressable = new Addressable(SensorList, ArrayPerceprton);
     addressable.SumAndElelments();
     var adList = addressable.AddressableResult.ToList();
     if (filePath.Contains("null") || name.Contains("Null"))
     {
         NullLabdaArrayFromAnswer = LearArrayElemntSolve(NullLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("one") || name.Contains("One"))
     {
         OneLabdaArrayFromAnswer = LearArrayElemntSolve(OneLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("two") || name.Contains("Two"))
     {
         TwoLabdaArrayFromAnswer = LearArrayElemntSolve(TwoLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("three") || name.Contains("Three"))
     {
         ThreeLabdaArrayFromAnswer = LearArrayElemntSolve(ThreeLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("four") || name.Contains("Four"))
     {
         FourLabdaArrayFromAnswer = LearArrayElemntSolve(FourLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("five") || name.Contains("Five"))
     {
         FiveLabdaArrayFromAnswer = LearArrayElemntSolve(FiveLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("six") || name.Contains("Six"))
     {
         SixLabdaArrayFromAnswer = LearArrayElemntSolve(SixLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("seven") || name.Contains("Seven"))
     {
         SevenLabdaArrayFromAnswer = LearArrayElemntSolve(SevenLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("eight") || name.Contains("Eight"))
     {
         EightLabdaArrayFromAnswer = LearArrayElemntSolve(EightLabdaArrayFromAnswer, adList);
     }
     if (filePath.Contains("nine") || name.Contains("Nine"))
     {
         NineLabdaArrayFromAnswer = LearArrayElemntSolve(NineLabdaArrayFromAnswer, adList);
     }
 }
Example #3
0
 //get name class image
 public string InputsImageForPerseptron(string filePath)
 {
     ImagePath = filePath;
     Bitmap bmp = new Bitmap(filePath);
     SensorList = new List<Sensors>();
     SensorList = convertimageToListSensors.GetSensorList(bmp);
     addressable = new Addressable(SensorList, ArrayPerceprton);
     addressable.SumAndElelments();
     var asd = addressable.AddressableResult.ToList();
     addressableList = asd;
     return GetClassManeImage();
 }