271271 " # Bounding box with nested classification\n " ,
272272 " bbox_with_radio_subclass_annotation = lb_types.ObjectAnnotation(\n " ,
273273 " name=\" bbox_with_radio_subclass\" ,\n " ,
274- " confidence=0.5, # must match your ontology feature's name\n " ,
275274 " value=lb_types.Rectangle(\n " ,
276275 " start=lb_types.Point(x=933, y=541), # Top left\n " ,
277276 " end=lb_types.Point(x=191, y=330), # Bottom right\n " ,
278277 " ),\n " ,
279278 " classifications=[\n " ,
280279 " \t lb_types.ClassificationAnnotation(\n " ,
281280 " \t name=\" sub_radio_question\" ,\n " ,
282- " \t\t value=lb_types.Radio(answer=lb_types.ClassificationAnswer(name=\" first_sub_radio_answer\" , confidence=0.5 ))\n " ,
281+ " \t\t value=lb_types.Radio(answer=lb_types.ClassificationAnswer(name=\" first_sub_radio_answer\" ))\n " ,
283282 " )\n " ,
284283 " ]\n " ,
285284 " )\n " ,
313312 " # Python AnotationTypes \n " ,
314313 " polygon_annotation = lb_types.ObjectAnnotation(\n " ,
315314 " name = \" polygon\" , # must match your ontology feature's name \n " ,
316- " confidence = 0.5, \n " ,
317315 " value=lb_types.Polygon( # Coordinates for the verticies of your polygon\n " ,
318316 " points=[lb_types.Point(x=1489.581,y=183.934), lb_types.Point(x=2278.306,y=256.885), lb_types.Point(x=2428.197,y=200.437), lb_types.Point(x=2560.0,y=335.419),\n " ,
319317 " lb_types.Point(x=2557.386,y=503.165), lb_types.Point(x=2320.596,y=503.103), lb_types.Point(x=2156.083, y=628.943), lb_types.Point(x=2161.111,y=785.519),\n " ,
401399 " # Python Annotation\n " ,
402400 " point_annotation = lb_types.ObjectAnnotation(\n " ,
403401 " name = \" point\" , # must match your ontology feature's name\n " ,
404- " confidence=0.5,\n " ,
405402 " value = lb_types.Point(x=1166.606, y=1441.768),\n " ,
406403 " )\n " ,
407404 " \n " ,
865862 "execution_count" : null
866863 }
867864 ]
868- }
865+ }
0 commit comments