Video Analysis底层库拆分,sdk的go封装
zhangmeng
2019-11-15 4d025c4a8c81c0bfdd159586528db0af72e6a6d6
1
2
3
4
5
6
7
8
9
10
11
12
13
package gosdk
 
import "image"
 
// Rect convert CRECT to image Rect
func Rect(rect CRECT) image.Rectangle {
    return image.Rect(int(rect.Left), int(rect.Top), int(rect.Right), int(rect.Bottom))
}
 
// Pt get CPOINT to image Pt
func Pt(pt CPOINT) image.Point {
    return image.Pt(int(pt.X), int(pt.Y))
}