You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Send the frame to the backend when captured
sendFrameToBackend(frame)
})
**errors are**
ERROR Error sending frame to backend: [Error: Exception in HostObject::getPropertyNames: com.mrousavy.camera.core.FrameInvalidError: [capture/frame-invalid] Trying to access an already closed Frame! Are you trying to access the Image data outside of a Frame Processor's lifetime?
If you want to use console.log(frame), use console.log(frame.toString()) instead.
If you want to do async processing, use runAsync(...) instead.
If you want to use runOnJS, increment it's ref-count: frame.incrementRefCount()]
What Platforms whould this feature/enhancement affect?
What feature or enhancement are you suggesting?
const sendFrameToBackend = Worklets.createRunInJsFn(async (frame) => {
console.log(
Running inference on ${frame}
);try {
})
const frameProcessor = useFrameProcessor((frame) => {
'worklet'
// console.log(
Frame: ${frame.width}x${frame.height} (${frame.pixelFormat})
)// console.log(
Running inference on ${frame}
);console.log(frame)
, useconsole.log(frame.toString())
instead.runAsync(...)
instead.frame.incrementRefCount()
]What Platforms whould this feature/enhancement affect?
Android
Alternatives/Workarounds
no alternative way
Additional information
The text was updated successfully, but these errors were encountered: