OpenCVProcess: Add getSharedPtr function

Change-Id: I5838f268baea1350077bd3c937a707636a317e57