max-viz-utils
Advanced tools
Comparing version 0.0.20 to 0.0.21
{ | ||
"name": "max-viz-utils", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Visualization utilities for deep learning models.", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
@@ -98,3 +98,4 @@ // MAX Image Segmenter ColorMap | ||
console.log('start font load') | ||
const font = await Jimp.loadFont('https://raw.githubusercontent.com/kastentx/max-viz-utils/master/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt'); | ||
// const font = await Jimp.loadFont('https://raw.githubusercontent.com/kastentx/max-viz-utils/master/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt'); | ||
const font = await Jimp.loadFont(fontType); | ||
console.log('end font load') | ||
@@ -114,2 +115,3 @@ // const padSize = getPadSize(width); | ||
const yTagMin = yMin - textHeight > 0 ? yMin - textHeight : yMin; | ||
// need to add something here to switch colors between boxes? | ||
rectFill(canvas, xMin, yTagMin, xTagMax, textHeight + yTagMin, padSize, 'cyan'); | ||
@@ -124,2 +126,3 @@ canvas.print(font, xMin + padSize, yTagMin, text); | ||
blob, | ||
objects: modelData.map(obj => obj.label), | ||
width: canvas.bitmap.width, | ||
@@ -131,5 +134,7 @@ height: canvas.bitmap.height | ||
// Label Generation | ||
// Basic Draw Methods | ||
@@ -136,0 +141,0 @@ const drawLine = (img, xMin, yMin, xMax, yMax, padSize, color) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
761762
382