Tutorials
Golang : Merge video(OpenCV) and audio(PortAudio) into a mp4 file
The previous Golang tutorials cover on how to capture image frames from a web camera with OpenCV and….... read more
Golang : Detect sample rate, channels or latency with PortAudio
Problem:
You want to detect the sample rate, channels or latency of the input and output devices attached to your….... read more
Golang : Record voice(audio) from microphone to .WAV file
Problem:
You need to activate your microphone, record your voice and save the data into a .wav
file from command….... read more
Golang : Surveillance with web camera and OpenCV
Times are bad and the economy in Malaysia is not doing well. People in my neighborhood are worried about the….... read more
Javascript : Access JSON data example
Problem:
You have a JSON string such as below and you want to access the data individually via Javascript. How….... read more
Golang : Command line ticker to show work in progress
Problem:
Your command line application is crunching data and you want your program to show the user that it is….... read more
Golang : Activate web camera and broadcast out base64 encoded images
For this tutorial, we will learn how to activate web camera with Golang + OpenCV and stream out base64 encoded….... read more
Golang : Save webcamera frames to video file
This tutorial will show you how to save image frames captured by a web camera and store the images into….... read more
Golang : Check if one string(rune) is permutation of another string(rune)
Problem:
You need to check if a given input string or rune is actually a permutation of another string(rune). For….... read more
Golang : Simple image viewer with Go-GTK
This is a really simple command line image viewer program written in Golang. Instead of viewing images with Photoshop or….... read more
Golang : Integer is between a range
Problem:
You need to check if a given integer is in between a range of integer. How to do that?
….... read moreGolang : Sieve of Eratosthenes algorithm
For this tutorial, we will learn about sieve of Eratosthenes algorithm. Sieve of Eratosthenes is an algorithm for generating all….... read more
Golang : Edge detection with Sobel method
Ability to detect edges and lines in a picture is the foundation for computer vision or better known in computer….... read more
Golang : Find relative luminance or color brightness
Problem:
You need to find the relative luminance (brightness or perceived brightness) of a color to another color. You also….... read more
Golang : Create new color from command line parameters
Problem:
You want to create a new color base on given RGBA parameters/arguments from command line. How to do that?
….... read moreGolang : Underscore string example
Problem:
Your program needs to process data with whitespaces and quotes. You need a quick way to remove underscore characters….... read more
Golang : Temperatures conversion example
Writing this down for my own future reference. Need these temperature conversions for developing an agriculture IoT application. This simple….... read more
Golang : Measure execution time for a function
Ok, this is another way to measure execution time of a Golang function. This method uses defer
and produce a….... read more