Ejemplo n.º 1
0
def joint_classify(view):
    plant_img = view.GetImage()
    plant_img2 = view.GetImage()
    dtree1 = dt.cur_plant_nutritious(view, plant_img)
    nn1 = nnp.cur_plant_nutritious(view, plant_img)
    dtree2 = dt.cur_plant_nutritious(view, plant_img2)
    nn2 = nnp.cur_plant_nutritious(view, plant_img2)
    p = dtree1 + nn1 + dtree2 + nn2
    return p >= 2
Ejemplo n.º 2
0
def joint_classify(view):
  plant_img = view.GetImage()
  plant_img2 = view.GetImage()
  dtree1 = dt.cur_plant_nutritious(view, plant_img)
  nn1 = nnp.cur_plant_nutritious(view, plant_img)  
  dtree2 = dt.cur_plant_nutritious(view, plant_img2)
  nn2 = nnp.cur_plant_nutritious(view, plant_img2)
  p = dtree1 + nn1 + dtree2 + nn2
  return p >= 2
Ejemplo n.º 3
0
def joint_classify(view):
  image = view.GetImage()
  view.cur_dtree_class = dt.cur_plant_nutritious(view, image)
  view.cur_nn_class = nnp.cur_plant_nutritious(view, image)  
  p = view.cur_dtree_class + view.cur_nn_class
  view.prev_eat = (p >= 1)
  return view.prev_eat
Ejemplo n.º 4
0
def joint_classify(view):
    image = view.GetImage()
    view.cur_dtree_class = dt.cur_plant_nutritious(view, image)
    view.cur_nn_class = nnp.cur_plant_nutritious(view, image)
    p = view.cur_dtree_class + view.cur_nn_class
    view.prev_eat = (p >= 1)
    return view.prev_eat