Please select Into the mobile phone version | Continue to access the computer ver.
ImageInfo class.
890 1 2019-11-29
Uploading and Loding Picture ...(0/1)
o(^-^)o
BGA
lvl.4
United States
Offline

I managed to figure out what this class is about (remember, it is passed as a parameter to the vision detection callbacks but is not documented and as introspection is disabled, there was no way to try to infer its methods/fields). Now here it is, in all its glory!
    class ImageInfo(object):
        class Pos(object):
            def __init__(self):
                self.x = 0
                self.y = 0
        class Size(object):
            def __init__(self):
                self.w = 0
                self.h = 0
        def __init__(self):
            self.type = 0
            self.info = 0
            self.distance = 0
            self.pos = self.Pos()
            self.size = self.Size()

It is pretty simple, but it allows you do get informationm about the detected object (dunno what it does in case of multiple objects detected). It also seems to include the distance to an object (most likelly only when detecting the vision markers) without needing an extra call to get the desiderd information. Might speed things uip a bit.






2019-11-29
Use props
DJI Stephen
DJI team
Offline

Hello and good day BGA. Thank you for reaching out and for sharing this information with us. Thank you for your support.
2019-11-29
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules