| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
12年前发布

Go 语言版的 OpenCV 封装 - GoOpenCV

Go 语言版的 OpenCV 封装 - GoOpenCV

Go-OpenCV 是 Go 语言版的 OpenCV 封装。

示例代码:

// Copyright 2011 . All rights reserved.  // Use of this source code is governed by a BSD-style  // license that can be found in the LICENSE file.    package main    import (          "fmt"          "opencv"          "os"  )    func main() {          filename := "./samples/lena.jpg"          if len(os.Args) == 2 {                  filename = os.Args[1]          }            image := opencv.LoadImage(filename)          if image == nil {                  panic("LoadImage fail")          }          defer image.Release()            win := opencv.NewWindow("Go-OpenCV")          defer win.Destroy()            win.SetMouseCallback(func(event, x, y, flags int) {                  fmt.Printf("event = %d, x = %d, y = %d, flags = %d\n",                          event, x, y, flags,                  )          })          win.CreateTrackbar("Thresh", 1, 100, func(pos int) {                  fmt.Printf("pos = %d\n", pos)          })            win.ShowImage(image)            opencv.WaitKey(0)  }

项目主页:http://www.open-open.com/lib/view/home/1341845443166

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1341845443166.html
OpenCV Google Go/Golang开发