Beispiel #1
0
def create3d(name):
    # log.info(f"Test {name}")
    data = dataset(name)
    data.load_anatations()
    data.error_calulation(0.3)
    # a = {'user':'******','label':'Rshoulder'}
    # b = {'user':'******','label':'Rshoulder'}
    # data.t_test()
    a = {'filename':'093614.jpg','label':'Rshoulder','user':'******'}
    data.plot3dstats(a)
    a = {'filename':'093450.jpg','label':'Rshoulder','user':'******'}
    data.plot3dstats(a, outputfp="../results/093450_H_Rshoulder.png")
    a = {'filename':'093450.jpg','label':'Rshoulder','user':'******'}
    data.plot3dstats(a, outputfp="../results/093450_O_Rshoulder.png")
Beispiel #2
0
def input_analysis(name: str, test: list):
    """
        This function calulaces the input mean/variance
        from both the provided human input and the
        open pose input.

        :param str name: Is the name of the set in dataset diretory.
        :param list test: Test method if several is avaible.
    """
    dataobj = dataset(name)
    atlasobj = Atlas(dataobj.setconf)
    dataobj.set_atlas(atlasobj)
    print(f"Created dataset object {name} {dataobj} size = {dataobj.count}")
    dataobj.create_views()
Beispiel #3
0
def report(name):
    """
        Tests a set in the dataset directory.
        :param str name: is the name of the dataset that is loaded with this function
    """
    # conf = None
    # with open('./readset.yaml','r') as f:
    #     conf = yaml.load(f,Loader=yaml.FullLoader)
    print("start")
    data = dataset(name)
    data.load_anatations()
    data.error_calulation(0.3)
    data.error_t_test()
    data.create_latex_img_table(3)
    print("end")
Beispiel #4
0
def data_points():
    """data_points fitts a dataset image to a set of anotations.

    @raise e:  Description
    """
    data = dataset("P2")
    data.load_anatations()
    f = features(data)
    i = imgs_set(data)
    w = window(i, window_scale=0.3)
    w.connect_featuers(f)
    w.angle = -30
    w.pos = [20, 20]
    w.shape_scale = 0.29
    w.marker_scale = 3.5
    w.start()
Beispiel #5
0
def test_set(name):
    """
        Tests a set in the dataset directory.
        :param str name: is the name of the dataset that is loaded with this function
    """
    # conf = None
    # with open('./readset.yaml','r') as f:
    #     conf = yaml.load(f,Loader=yaml.FullLoader)
    print("test")
    datap1 = dataset(name)
    myatlas = Atlas(datap1.setconf)
    datap1.set_atlas(myatlas)
    print(f"Created dataset object {name} {datap1} size = {datap1.count}")
    datap1.create_views()
    print("Done. Loaded all images")
    datap1.show_atlas()
    print("builds the atlas")
    datap1.build_atlas()
    print('Sovle geometry')
    # datap1.geometry_solver()
    datap1.create_latex_img_table(4)
    print("end")
def test_stats(name, sample_cut=0.3):
    data = dataset(name)
    data.load_anatations()
    data.error_calulation(sample_cut)
    data.error_t_test()