Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

max-viz-utils

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

max-viz-utils - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

2

package.json
{
"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) => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc