Get single image from the SVS board.
Namespace:
AForge.Robotics.SurveyorAssembly: AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.3.0 (2.2.3.0)
Syntax
| C# |
|---|
public Bitmap GetImage( SVS..::.Camera camera ) |
Parameters
- camera
- Type: AForge.Robotics.Surveyor..::.SVS..::.Camera
Camera to get image from.
Return Value
Returns image received from the specified camera of the SVS board or nullNothingnullptra null reference (Nothing in Visual Basic) if failed decoding provided response.
Remarks
The method provides single video frame retrieved from the specified SVS's camera. However in many cases it is required to receive video frames one after another, so the GetCamera(SVS..::.Camera) method is more preferred for continuous video frames.
Exceptions
| Exception | Condition |
|---|---|
| AForge..::.NotConnectedException | Not connected to SRV-1. Connect to SRV-1 before using this method. |
| AForge..::.ConnectionLostException | Connection lost or communicaton failure. Try to reconnect. |