With the purpose of acquiring information for robotic systems, the image of a configuration space must be filled with grids. This information is useful for robotic systems because it provides a virtual deterministic structure to move around.
Can you provide an example of what you want? If you are needing to add literal grid lines, say a 20x20 grid of a certain color,, you can use image processing libraries to add grid lines. ImageMagick for example. Similar tools exist for video. There are also several single board computers which have an HDMI input and separate HDMI output whcih are specifically designed to be used to perform image processing on HDMI signals ( think a live view from a HDMI camera ) and decorate them with low latency. These are used primarily for augmented reality. However you could use them to apply arbitrary masks / manipulations to live video.