Skip to main content

Class Vc0706

Class that represents a VC0706 serial VGA camera

Assembly: Vc0706.dll​
View Source​
Declaration
public class Vc0706 : ICamera, IDisposable

Implements:
Meadow.Peripherals.Sensors.Cameras.ICamera, System.IDisposable

Properties​

SerialNumber​

The camera serial number

View Source​
Declaration
public byte SerialNumber { get; }

BytesAvailable​

Number of bytes available in the camera buffer

View Source​
Declaration
public byte BytesAvailable { get; }

IsDisposed​

Is the object disposed

View Source​
Declaration
public bool IsDisposed { get; }

Methods​

IsMotionDetected()​

Check if camera has detected recent motion

View Source​
Declaration
public bool IsMotionDetected()
Returns​

System.Boolean

SetMotionStatus(byte, byte, byte)​

Set the motion detection mode

View Source​
Declaration
public bool SetMotionStatus(byte x, byte d1, byte d2)
Returns​

System.Boolean

Parameters​
TypeName
System.Bytex
System.Byted1
System.Byted2

GetMotionStatus(byte)​

Get the motion detection mode

View Source​
Declaration
public bool GetMotionStatus(byte x)
Returns​

System.Boolean

Parameters​
TypeName
System.Bytex

SetMotionDetect(bool)​

Enable or disable motion detection

View Source​
Declaration
public bool SetMotionDetect(bool enable)
Returns​

System.Boolean: true if successful

Parameters​
TypeNameDescription
System.Booleanenabletrue to enable

GetMotionDetectMode()​

Get the motion detection mode

View Source​
Declaration
public bool GetMotionDetectMode()
Returns​

System.Boolean: true if enabled, false if not enabled or command failed### GetCaptureResolution() Get the current image capture resolution

View Source​
Declaration
public Vc0706.ImageResolution GetCaptureResolution()
Returns​

Meadow.Foundation.Sensors.Camera.Vc0706.ImageResolution: the image resolution as an ImageResolution enum### SetCaptureResolution(ImageResolution) Set the image resolution

View Source​
Declaration
public bool SetCaptureResolution(Vc0706.ImageResolution resolution)
Returns​

System.Boolean: true if successful

Parameters​
TypeNameDescription
Meadow.Foundation.Sensors.Camera.Vc0706.ImageResolutionresolutionthe new image capture resolution

GetDownsize()​

Get the downsize value

View Source​
Declaration
public byte GetDownsize()
Returns​

System.Byte

SetDownsize(byte)​

Set downsize

View Source​
Declaration
public bool SetDownsize(byte downsize)
Returns​

System.Boolean

Parameters​
TypeName
System.Bytedownsize

GetVersion()​

Get the camera version

View Source​
Declaration
public string GetVersion()
Returns​

System.String: the version as a string### SetOnScreenDisplay(byte, byte, string) Enable onscreen display for composite output (may not work)

View Source​
Declaration
public void SetOnScreenDisplay(byte x, byte y, string message)
Parameters​
TypeNameDescription
System.Bytexx location of display in pixels
System.Byteyy location of display in pixels
System.Stringmessagetext to display

SetCompression(byte)​

Set compression (0-255)

View Source​
Declaration
public bool SetCompression(byte compression)
Returns​

System.Boolean: true if successful

Parameters​
TypeName
System.Bytecompression

GetCompression()​

Get compression (0-255)

View Source​
Declaration
public byte GetCompression()
Returns​

System.Byte: compression value### SetPanTiltZoom(ushort, ushort, ushort, ushort) Set Pan, tilt and zoom

View Source​
Declaration
public bool SetPanTiltZoom(ushort horizontalZoom, ushort verticalZoom, ushort pan, ushort tilt)
Returns​

System.Boolean

Parameters​
TypeName
System.UInt16horizontalZoom
System.UInt16verticalZoom
System.UInt16pan
System.UInt16tilt

GetPanTiltZoom()​

Get Pan, Tilt and Zoom values

View Source​
Declaration
public (ushort width, ushort height, ushort horizonalZoom, ushort verticalZoom, ushort pan, ushort tilt) GetPanTiltZoom()
Returns​

System.ValueTuple<System.UInt16,System.UInt16,System.UInt16,System.UInt16,System.UInt16,System.UInt16>

CapturePhoto()​

Capture a new image

View Source​
Declaration
public bool CapturePhoto()
Returns​

System.Boolean: true if successful### IsPhotoAvailable() Check if there is picture data on the camera

View Source​
Declaration
public bool IsPhotoAvailable()
Returns​

System.Boolean: true is data is available### GetPhotoStream() Retrieve the image data from the camera

View Source​
Declaration
public Task<MemoryStream?> GetPhotoStream()
Returns​

System.Threading.Tasks.Task<System.IO.MemoryStream>: The image data as a jpeg in a MemoryStream### GetPhotoData() Retrieve the image data from the camera

View Source​
Declaration
public Task<byte[]> GetPhotoData()
Returns​

System.Threading.Tasks.Task<System.Byte[]>: The image data as a jpeg in a byte array### ResumeVideo() Resume live video over composite

View Source​
Declaration
public bool ResumeVideo()
Returns​

System.Boolean

TvOn()​

Enable TV output over composite

View Source​
Declaration
public bool TvOn()
Returns​

System.Boolean

TvOff()​

Disable TV output over composite

View Source​
Declaration
public bool TvOff()
Returns​

System.Boolean

GetColorMode()​

Get the current camera color mode (Color, Black and White, automatic)

View Source​
Declaration
public Vc0706.ColorMode GetColorMode()
Returns​

Meadow.Foundation.Sensors.Camera.Vc0706.ColorMode

SetColorMode(ColorMode)​

Set the camera color mode (Color, Black and White, automatic)

View Source​
Declaration
public void SetColorMode(Vc0706.ColorMode colorControl)
Parameters​
TypeName
Meadow.Foundation.Sensors.Camera.Vc0706.ColorModecolorControl

GetFrameLength()​

Get the length of the current frame

View Source​
Declaration
public uint GetFrameLength()
Returns​

System.UInt32

ReadPicture(byte)​

Read bytes from the camera buffer

View Source​
Declaration
public byte[] ReadPicture(byte length)
Returns​

System.Byte[]

Parameters​
TypeName
System.Bytelength

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source​
Declaration
public void Dispose()

Dispose(bool)​

Dispose of the object

View Source​
Declaration
protected virtual void Dispose(bool disposing)
Parameters​
TypeNameDescription
System.BooleandisposingIs disposing

Implements​

  • Meadow.Peripherals.Sensors.Cameras.ICamera
  • System.IDisposable