You are browsing as a guest. Sign up (or log in) to start making projects!

Local Plant Medic

  • 7 Devlogs
  • 5 Total hours

Local Plant Medic is an application that can run completely offline, using ONNX and Next.js to analyze images locally for plant health diagnostics. This app covers: UN Sustainable Development Goal 2: Zero Hunger. By helping farmers and home gardeners quickly identify crop diseases, this easy offline app can prevent massive food loss, promote sustainable agriculture, and improve overall food security.

Ship #2

Ship #2: Flora Diagnostics, a Local Plant Medic, is an application that can run completely offline, using ONNX and Next.js to analyze images locally for plant health diagnostics. Read README.md for more information about UN goals and the purpose of the app! Over the course from Ship #1 --> Ship #2, I have added Android build files and started to test offline access. More to come!

  • 3 devlogs
  • 1h
Try project → See source code →
Open comments for this post

18m 16s logged

Devlog 5: Fixed code logic to understand wheat inputs better and predict diseases more accurately.

The issue was the elimination of lower-probability cases, causing empty inputs for all crops except for rice basically.

0
0
3
Ship #1

Ship #1: Flora Diagnostics, a Local Plant Medic, is an application that can run completely offline, using ONNX and Next.js to analyze images locally for plant health diagnostics. This app covers: UN Sustainable Development Goal 2: Zero Hunger. By helping farmers and home gardeners quickly identify crop diseases, this easy-to-access offline app can prevent massive food loss, promote sustainable agriculture, and improve overall food security. Furthermore, the importance of this app being able to run offline is crucial especially in rural farms and communities. To be able to quickly provide crop analysis for these locations can be a crucial component in a community's ability to thrive.

  • 4 devlogs
  • 4h
  • 14.47x multiplier
  • 59 Stardust
Try project → See source code →
Open comments for this post

19m 35s logged

Devlog 4: Cleared Cache for rebuild and added new analysis features successfully

Finally, after a few more tweaking and editing in the code as well as clearing the cache while testing on the vercel deployment, the app is ready to go! It features diagnostic summaries with condition analysis and symptom checkers. Furthermore, you are allowed to filter the plant for more accurate results. Below is a segment of the code featuring report diagnostics:

                  <div key={idx} className="p-4 border border-stone-200 rounded-xl bg-stone-50 space-y-2">
                    <div className="flex justify-between items-center">
                      <span className="text-lg font-bold text-stone-900 capitalize">{cleanLabel}</span>
                      <span className="text-xs font-bold text-emerald-800 bg-emerald-100 px-3 py-1 rounded-full">
                        {typeof p.score === 'number' ? `${(p.score * 100).toFixed(1)}%` : 'N/A'}
                      </span>
                    </div>
                    <p className="text-sm text-stone-600 italic">{info.desc}</p>
                    <p className="text-sm font-semibold text-stone-800">
                      Recommended Treatment: <span className="font-normal text-stone-600">{info.treat}</span>
                    </p>
                  </div>
                );```
0
0
4
Open comments for this post

18m 37s logged

Devlog 3: Refined the new ONNX and setup for new analysis features

After rollbacking a few broken commits, I made sure the code was ready to be setup for new analysis features such as giving advice for treating certain types of conditions. In addition, a future setup will be to allow users to narrow down the scope of analysis by stating the exact type of plant first.

0
0
1
Open comments for this post

2h 32m 47s logged

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.

0
0
4
Open comments for this post

52m 37s logged

Devlog 1: Initial setup

Built the first demo UI and connected the ONNX setup along with camera system. Much work to be done still as plant analysis needs to be properly trained locally!! As you can see values and analysis are a bit off since the local model isn’t trained very well yet.

0
0
5

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…