Hi @anon30633082, are you aware that Microscan already have a URCap that does precisely what you describe? Is there another reason why you’re looking to develop your own?
https://www.universal-robots.com/plus/vision/microscan-guidance/
I can’t seem to find a link to download the URCap but if you contact whoever you bought the camera from they should be able to provide it.