func (c *Motion) Init() {
	if c.Width == 0 || c.Height == 0 {
		c.Width = 1280
		c.Height = 960
	}

	if c.NumInspectFrames < 2 {
		c.NumInspectFrames = 2
	}

	if c.SenseThreshold == 0 {
		c.SenseThreshold = 4
	}

	if c.Protocol == "" || c.ListenPort == "" {
		c.Protocol = "tcp"
		c.ListenPort = ":9000"
	}

	c.getMaxBlockWidth()
}
// Init initializes configuration variables for Motion
Init initializes configuration variables for Motion
// Init initializes configuration variables for Motion
func (c *Motion) Init() {
	if c.Width == 0 || c.Height == 0 {
		c.Width = 1280
		c.Height = 960
	}
	if c.NumInspectFrames < 2 {
		c.NumInspectFrames = 2
	}
	if c.SenseThreshold == 0 {
		c.SenseThreshold = 4
	}
	if c.Protocol == "" || c.ListenPort == "" {
		c.Protocol = "tcp"
		c.ListenPort = ":9000"
	}
	c.getMaxBlockWidth()
}
func ( c * Motion ) Init ( ) { if c . Width == 0 || c . Height == 0 { c . Width = 1280 c . Height = 960 } if c . NumInspectFrames < 2 { c . NumInspectFrames = 2 } if c . SenseThreshold == 0 { c . SenseThreshold = 4 } if c . Protocol == " " || c . ListenPort == " " { c . Protocol = " " c . ListenPort = " " } c . getMaxBlockWidth ( ) }
Init initializes configuration variables for Motion
Init initializes configuration variables for Motion