擅长:python、mysql、java
<p><code>tf.node</code>可以允许对位图编码图像进行解码,如本<a href="https://stackoverflow.com/questions/62148637/issue-decoding-an-image-using-jpeg-js">answer</a>中所示</p>
<pre><code>const img = fs.readFileSync("path/of/image");
const tensor = tf.node.decodeImage(img)
</code></pre>