噢,看文档不仔细,截取画布就好了https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/share/#%E6%88%AA%E5%8F%96%E7%94%BB%E5%B8%83
xr-frame中的xr-camera的ar相机的stream流可以暴露出来么?想同时做tf分类xr-camera像普通camera一样可以把每帧的图像暴露出来 this.cameraContext = wx.createCameraContext() const listener = this.cameraContext.onCameraFrame((frame) => { const frameData = new Uint8Array(frame.data); const clampedData = new Uint8ClampedArray(frameData); const imageData = this.canvas.createImageData(clampedData, frame.width, frame.height); ........ }); listener.start();
02-22一样……毁灭吧
Error: mkdir:fail permission denied with path?TensorFlow.js version 0.2.0 当用tfjsplugin插件缓存的时候,总是会报错 Error: Error: mkdir:fail permission denied with path "http://usr/__plugins__/wx6afed118d9e81de3/tensorflowjs_models" at u. (VM7160 appservice.js:1173) at VM7160 appservice.js:1173 at Object.next (VM7160 appservice.js:1173) at s (VM7160 appservice.js:1173)(env: macOS,mp,1.06.2308310; lib: 2.33.0) 查了下,这个错已经出现2年了,微信官方还没有修复。有什么办法可以规避吗?
2023-12-15