Up | CameraCalibration | Release Notes

 

  

 
CameraCalibration
The Camera class

Use the function GetCameraCalibraton(name) to retrieve an instance of the class.
The name may be replaced by the cameraindex as string, calibrator=GetCameraCalibrator('0') 

The Calibrator class

This class is returned by the camera.calibrator property. It contains access to the camera calibration and its properties.

Attribute Access Type Description
camera R string name of the camera the calibrator is attached
active R/W bool state of the calibration
Calibrator R tool returns the builtin Calibrator tool (note the capital letters)
ExternalReference R tool returns the builtin ExternalReference tool (note the capital letters)
Resampler R tool returns the builtin ImageResampler tool (note the capital letters)

Script Examples:

#set ROI of calibration resampler
cam=GetCameras().getCamera(0)       #get first camera
c=GetCameraCalibrator(cam.name)     #get the calibrator object
resampler=c.Resampler                       #get the calibrators resampler
resampler.setConfigValue('Center.X',x) #move center.x
resampler.setConfigValue('Center.Y',y) #move center.y
 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.