def get_kpts( ibs, aid_list, in_image=False, config2_=None, ensure=True, kpts_subset=None, kpts=None, ): if kpts is not None: return [kpts] if in_image: kpts_list = get_annot_kpts_in_imgspace(ibs, aid_list, ensure=ensure, config2_=config2_) else: kpts_list = ibs.get_annot_kpts(aid_list, ensure=ensure, config2_=config2_) if kpts_subset is not None: kpts_list = [ ut.spaced_items(kpts_, kpts_subset, trunc=True) for kpts_ in kpts_list ] return kpts_list
def get_kpts(ibs, aid_list, in_image=False, config2_=None, ensure=True, kpts_subset=None, kpts=None): if kpts is not None: return [kpts] if in_image: kpts_list = get_annot_kpts_in_imgspace(ibs, aid_list, ensure=ensure, config2_=config2_) else: kpts_list = ibs.get_annot_kpts(aid_list, ensure=ensure, config2_=config2_) if kpts_subset is not None: kpts_list = [ut.spaced_items(kpts_, kpts_subset, trunc=True) for kpts_ in kpts_list] return kpts_list
def get_kpts(ibs, aid_list, in_image=False, **kwargs): #if 'kpts' in kwargs: #return kwargs['kpts'] kpts_subset = kwargs.get('kpts_subset', None) ensure = kwargs.get('ensure', True) if in_image: kpts_list = get_annot_kpts_in_imgspace(ibs, aid_list, **kwargs) else: kpts_list = ibs.get_annot_kpts(aid_list, ensure=ensure) if kpts_subset is not None: kpts_list = [utool.spaced_items(kpts, kpts_subset, trunc=True) for kpts in kpts_list] return kpts_list
def get_test_kpts(ibs, n=11): aid = ibs.get_valid_aids()[0] kpts = ibs.get_annot_kpts(aid) kpts_samp = utool.spaced_items(kpts, n=n) return kpts_samp