This commit is contained in:
programmer10110 2020-09-10 17:31:53 +03:00
parent cbd9258b8f
commit ca0b531c63
2 changed files with 7 additions and 0 deletions

View File

@ -7,9 +7,14 @@ import (
"github.com/depools/dc4bc/airgapped"
"log"
"os"
"runtime"
"strings"
)
func init() {
runtime.LockOSThread()
}
type terminalCommand struct {
commandHandler func() error
description string

View File

@ -48,6 +48,8 @@ func (p *CameraProcessor) ReadQR() ([]byte, error) {
}()
img := gocv.NewMat()
defer img.Close()
tk := time.NewTimer(timeToScan)
// This loop reads an image from the webcam every millisecond