Thanks to visit codestin.com
Credit goes to github.com

Skip to content

🔳 Pure Go bounding boxes generation with labeling

CorentinB/gobbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

forthebadgeforthebadge

Build Status Go Report Card GoDoc

GoBBox

🔳 Pure Go bounding boxes generation with labeling

Install

go get -u github.com/CorentinB/gobbox

Examples

Simple example of applying a bounding box and a label to an image.

// Colors declarations
red := color.RGBA{255, 0, 0, 255}
white := color.RGBA{255, 255, 255, 255}

// Create a 300x300 image initialized to all-blue
img := image.NewRGBA(image.Rect(0, 0, 640, 480))
blue := color.RGBA{0, 0, 255, 255}
draw.Draw(img, img.Bounds(), &image.Uniform{blue}, image.ZP, draw.Src)

// Write a red bounding box with the "gobbox" label with white font
// at coordinates 100, 250, 238, 68
gobbox.DrawBoundingBox(img, "gobbox", 100, 250, 238, 68, red, white)

About

🔳 Pure Go bounding boxes generation with labeling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages