longcongduoi / piCamera

Capture the stream of Images for a Raspberry Pi Camera in GoLang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

piCamera GoDoc

This package is a wrapper for the raspivid command on the Raspberry Pi. To make development easier on a PC, there is are different Start() methods depending on what is compiled. One is for the Raspberry Pi and the other is for everything else.

Installation

Since this package depends on a Raspberry Pi only command there is an extra flag needed to build this package for the Raspberry Pi.

env GOOS=linux GOARCH=arm GOARM=7 go build -tags pi -a .

Make note of the -tags pi on build. Any main package that has any dependency to this package should have that flag so that this package is built correctly for the Raspberry Pi.

About

Capture the stream of Images for a Raspberry Pi Camera in GoLang

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%