CVscope is an experimental CLI tool for visually exploring video image filters and algorithms that are part of OpenCV (

CVscope itself is written in the Go programming language using GoCV (

You can find the code here:

How to install

In order to use CVscope you must first have installed OpenCV and GoCV. Please follow the instructions located at for your operating system.

You can then install CVscope by running:

go get -u

How to run

Running the main program without any parameters:


will display a list of the various valid CVscope commands:

CVscope is a command line tool for OpenCV that lets you visually explore various 
filters and algorithms for computer vision.

It can also generate Go code that them implements the needed commands using the GoCV
programming library. CVscope is itself written using GoCV.

cvscope [command]

Available Commands:
bilateral   Apply bilateral filter to video images
blur        Blur video images
dilate      Dilate video images

Here is a CVscope command that opens a window using the default camera, and then displays the video using the Blur filter:

cvscope blur


While the CVscope program is running you can change the values for ksize X and ksize Y by adjusting the sliders, and the video will display the current image filter settings in real-time.

You can also generate the Go code that matches the current image filter settings. By pressing the g key, the code is output to the command line window where you started CVscope running. For example, when running the cvscope blur command, pressing g outputs the following:

Go code for current filter:
gocv.Blur(src, &dest, image.Pt(12, 12))

You can obtain a list of all the supported keyboard commands and other details for a particular filter by using the cvscope help command. For example this displays help for the blur command:

cvscope help blur