No way to get precise current from the output transistor ... with such optos

BUT ... it exists LINEAR optocouplers

just have a look to HCNR 200/201 or HCPL 7520 ... i.e.
or you can try to make your own clone to those couplers ...

or simpler ... use two outputs with two classic optos wired as current generators !


Alain