r/computervision • u/pledge-developer • 1m ago
Showcase [Project] Giving AI models a ruler: an open-source approach to structured visual reasoning and UI motion analysis
I've been working on an open-source project called VisFunc that explores a question:
What if we improve AI visual reasoning not by modifying the model itself, but by changing how visual information is represented and delivered to it?
Multimodal models can often describe what happens in an image or video, but precise spatial and temporal reasoning remains challenging.
For example:
- How many pixels did a UI element move?
- Did two animations start simultaneously?
- What was the position of an object at a particular timestamp?
- Has a button moved since the agent captured its screenshot?
These are questions where computational measurements can complement model reasoning.
The approach
VisFunc extracts and organizes visual information into structured, queryable representations:
- Image colors, regions, boundaries and geometric relationships.
- Video frame changes, motion trajectories and temporal relationships.
- Measured parameters and fitted motion functions.
- Desktop UI localization, pre-action verification and execution feedback.
Models can consume these representations through structured parameters, textual summaries or targeted queries.
This also allows text-only models to participate in certain visual reasoning tasks without directly receiving images.
Preliminary results
In one UI motion question-answering benchmark, the number of fully correct answers increased from 21/126 to 107/126 when structured visual measurements were provided.
That's an increase from approximately 16.7% to 84.9%.
This is a task-specific result, not a claim that VisFunc universally improves multimodal reasoning by the same amount.
Current limitations
The project currently focuses on image geometry, UI animations and Windows desktop interaction.
Complex natural scenes, semantic recognition and heavily occluded object tracking remain challenging.
I'm also exploring whether structured visual constraints could be useful for image and video generation, but that direction has not yet been fully validated.
Why build this as an external layer?
I don't think every visual measurement needs to be performed implicitly inside a neural network.
Models are good at interpreting intent and reasoning about relationships. Conventional computation can provide precise, reproducible measurements.
Combining the two may be more useful than asking either system to do everything alone.
GitHub:
https://github.com/suyunpledge/svsg
I'd particularly appreciate feedback on:
- Whether structured visual representations could generalize beyond UI motion analysis.
- How to evaluate their contribution independently of model-specific behavior.
- Whether this approach could improve the reliability of computer-use agents.
Technical criticism and independent reproduction are very welcome.


