Devlog 2: Fixing build errors and correct ONNX
I fixed the build errors by cleaning up the next.config.ts file and removing the curl commands that were causing the server to crash. I also updated the code in page.tsx so the image data would be sent as a Uint8Array instead of just an object. Finally, I fixed the worker.js file to wrap that data in a RawImage object, which let the AI model finally understand the images I was sending it. With these fixes, I have finally made the first version of the application that detects properly! However, much more work needs to be done when it comes to expanding analysis and the range of plants in context of agriculture.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.