Frontend Connected
Shelf-fish devlog # 7
In the last devlog, I had finished creating the detection logic using gemini api, after that I have done a lot of things and suffered a lot of headaches too
What have I done??
- Created api endpoints for detections at
/detectionsand added it to the fastapi app. - Added authentication dependency to the detection api so that only authenticated users can upload images and we can know who detects which item.
- Created the Camera and Upload image logic, I have used
expo-cameraandexpo-imagepickerfor that, it was pretty easy, expo’s docs are straight forward and I have used them before - Created the uploading function that will send a post request containing the image to the backend.
- I also added storage fn to upload the captured/picked image to cloud using cloudinary.
What’s next?
- Now I will work on the ui and create login and register screens cuz manually typing the authentication token to the uploading fn is really frustrating
- I also have an idea for this project which would make it very unique cuz at this point it just looks like just any other inventory management systems.
The images-
- console log of the item after it was detected by gemini and saved to database,
- the image being displayed after clicking the url,
- the images in cloudinary, the other one is stock image and was there automatically.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.