uci-uav-forge / uavf_2024

MIT License
2 stars 0 forks source link

Make image processor log JSON for classification probabilities #196

Open EricPedley opened 1 month ago

EricPedley commented 1 month ago

Description

Rn the logs for are in a format that is a pain in the ass to process with a computer. IDK why I thought this would be a good idea instead of just logging JSON. Also while we're at it, implement methods in ProbabilisticTargetDescriptor to serialize to and deserialize from a JSON object.

        TargetDescription(
            Shapes:
                circle: 0.000
                semicircle: 0.040
                quartercircle: 0.000
                triangle: 0.010
                rectangle: 0.000
                pentagon: 0.000
                star: 0.000
                cross: 0.960
                person: 0.030
            Letters:
                0: 0.002
                1: 0.046
                A: 0.017
                B: 0.001
                C: 0.003
                D: 0.001
                E: 0.012
                F: 0.098
                G: 0.000
                H: 0.004
                I: 0.015
                J: 0.113
                2: 0.006
                K: 0.007
                L: 0.002
                M: 0.003
                N: 0.002
                O: 0.001
                P: 0.078
                Q: 0.001
                R: 0.006
                S: 0.031
                T: 0.201
                3: 0.049
                U: 0.017
                V: 0.061
                W: 0.000
                X: 0.005
                Y: 0.068
                Z: 0.003
                4: 0.089
                5: 0.019
                6: 0.007
                7: 0.013
                8: 0.007
                9: 0.013
            Shape Colors:
                red: 0.000
                orange: 0.000
                green: 0.000
                blue: 0.000
                purple: 0.000
                white: 1.000
                black: 0.000
                brown: 0.000
            Letter Colors:
                red: 0.000
                orange: 0.000
                green: 0.000
                blue: 0.000
                purple: 1.000
                white: 0.000
                black: 0.000
                brown: 0.000
        )