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
{{ message }}
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
I am trying to save the image to the file and save in the photo library, but the result from ImageUtil.toFile is null. Here is the output from the ImageUtil.toFile:{"_U": 0, "_V": 0, "_W": null, "_X": null}.
Version
0.0.0-04292022-1206-56d9e1d56
Problem Area
react-native-pytorch-core (core package)
Steps to Reproduce
I am trying to save the image to the file and save in the photo library, but the result from ImageUtil.toFile is null. Here is the output from the ImageUtil.toFile:{"_U": 0, "_V": 0, "_W": null, "_X": null}.
Expected Results
No response
Code example, screenshot, or link to repository
const handleImage = async(image) =>{
try{
if(distanceTravelled >= 1 && isStart){
const results = await detectObjects(model, image);
let frame = [];
console.log("Frame " + count + ":");
for(let i=0;i<results.length;i++){
const result = results[i];
const left = Math.round(result.bounding_box[0]/2.5);
const top = Math.round(result.bounding_box[1]/2.5);
const right = Math.round(result.bounding_box[2]/2.5);
const bottom = Math.round(result.bounding_box[3]/2.5);
console.log(left+"----"+top+"----"+right+"----"+bottom);
const boundingbox = [left, top, right, bottom];
frame.push(boundingbox);
}
boundingbox_array.push(frame);
let path = ImageUtil.toFile(image);
console.log(path);
frame_array.push(path._W);
count+=1;
SetDistanceTravelled(0.0);
}
image.release();
}catch(e){
console.log(e);
}
The text was updated successfully, but these errors were encountered: