As Banno noted, this exact thing - wearing inverted glasses over a prolonged period of time - has been a well known scientific experiment, and there's been alot written about the results. The first most striking result is that after a while, one simply gets used to it - your perception of the world -
after interacting with it (this is important) - simply rights itself eventually, and you see just like you did without the glasses. Moreover, once you take the glasses off, your vision has to once again readjust - it has to 'correct' itself once again.
The second striking result is the phenomenology of it: wearing the inverted glasses doesn't simply flip the world up-side down, at first. Rather, it
disrupts sight altogether - it leads to a kind of initial experiential blindness. Quoting one of the studies: "During visual fixations, every movement of my head gives rise to the most unexpected and peculiar transformations of objects in the visual field. The most familiar forms dissolve and reintegrate in ways never before seen. At time, parts of figures run together the spaces disappearing from view: at other times, they run apart, as if intent on deceiving the viewer." Or as Alva Noe puts it, the result is not (initially) simply seeing
differently, but
failing to see.
This eventually changes, as the glasses wearer interacts with the world around themselves, and quite literally
learns to see again. As Noe reports, there are three stages to this: the first stage is a confusing one: things on the left
look as though they are on the right, even though things feel as though they are on the left. Next, things on the left still look as thought they are on the right, but now they also feel that they are on the right. Last, everything aligns: what's on the left both looks like it's on the left, and feels like it's on the left. 'Normal' vision is restored. Importantly all this happens only if one interacts with the world around themselves, moving, holding, touching, reaching out, etc.
The biggest takeway from all this is that visual perception is bodily and interactive in the extreme: sight is not just a question of 'images' but of literally interacting with a world which gives rise to sight. Perception is a 'complex', a conjunction between what is seen, what is felt,
how one interacts with the world, and not just 'what' one sees. In short - anti-realism is a bunch of bullshit, and any elementary study of perception will confirm this.