Package Exports
- base64-to-tensor
- base64-to-tensor/dist/convert.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base64-to-tensor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base64-to-tensor
convert a base64 image to a tensor object
Installation
npm i base64-to-tensor --saveGetting Started
You need to have @tensorflow/tfjs-core installed in order to use the package.
import { convert } from "base64-to-tensor";
const tensor = convert(mybase64);