Realtime Object Detection Android App | Kotlin | Camera2 api | tflite
Vložit
- čas přidán 30. 12. 2022
- Hi in this video you will learn to build an android app which can detect object and draw rectangle around it in real time.
We will use Camera2 api to read frames from camera and will use tflite tensor flow lite to detect for objects in the frame and finally canvas to draw the rectangle on the frame.
Hope you will learn something new today.
After this video you will know:
1 - How to use Camera2 api
2 - How to preview the processed frame
3 - How to deploy tensor flow lite model
4 - How to setup TextureView
This is a computer vision android app which is built by using kotlin.
model link : www.tensorflow.org/lite/examp...
labels.txt : gist.github.com/Pawandeep-pro...
code: github.com/Pawandeep-prog/rea...
contact me :
facebook : / proogramminghub
twitter : / programming_hut
github : github.com/Pawandeep-prog
discord : / discord
linkedin : / programminghut
youtube : / programminghutofficial
android studio,kotlin,computer vision,tensor flow lite,object detection,realtime,camera2 api,texture view,surface texture,bitmap,canvas,draw rect,mobile net,tflite
Thank a lot brother. The project absolutely works!
I have been trying to work with flutter packages for quite a while now with no success, I tried modifying my code on kotlin side following your video and it worked, thanks a lot!
thanks for the video. it really helped me ❤️❤️
Thanks sir successfully completed this course and add it to protfolio
Can you send your project?
THANK YOU SOO MUCH BRO ,THIS HELPED ME A LOT, LOVE YEW LOTS.......
is it work for you? cause in my app it cannot detected the object
Het brother that a really nice turtorial but i want to know which model you have used for object detection.
Bro can you make a seperate video on object detection with java full video step by step
"Nice video! Could you please guide me on how to save images to the gallery and perform predictions on real-time camera input and still images?"
super thanks...
can you give an example for the yolov8 model?
can you make tutorial for object recognization or detection for image using cloud api like google vision or any other api
thank you sir
I have a question about YAMNet TensorFlow lite model (Android app). I want to use it with an audio clip as input, Not a live recording. Can you help in that? Thank you for your help
Can you do it on Java am new to your channel love your videos really good understanding
Great video, also can you let me know how can we generate the tot number of detections as an output from the model (generating results for predictions of different classes)
Hey did you find a way?
nice, can we detect objects and record them in video?
Is it possible for you to modify the code of this app to use voice output to speak the object the cam sees? Could you show us how we would go about doing that using tts (text to speech)
thanks sir
great video, but how to fix the textureview aspect ratio deform problem?
Great i think this is the one video that you suggest me to want for deploying yolov5 in android.❤
do you have a java version of this code? so that it will be compatible with the yolov5 model I have deploy earlier from your other video
Process will be similar you can try working out using chatgpt, maybe you can ask it to convert the code to java
i love you 😍
Hi, I use Android API 34 for the sdk platform,these 3, SDK build tools, Android Emulator and sdk platform tools for the sdk tools. and yet, when i try to run the code (the code has no error), it says "please select android SDK". Do i need a specific sdk tools to run the code?
this is giving me error when I am using my own custom tflite model...I have also changed the labels but its still throwing error..please help
I am getting blackscreen after introducting of model section what should ido
The video is great. Many thanks. 👍👍
I follow your video to deploy my Gundam Recognition tfile to android app. 👍👍
But i got a problem, when i rotate my phone to landscape, the detection position will not correct. I had already written a rotation function but i got problem as i can't get textureView and camera bitmap in aligned rotation (only at portrait is aligned). Can you teach me how to solve? Many thanks.
Can you please send the code
I am getting blackscreen on emulator (Pixel Xl Android 12) and Redmi Note 9 pro. It was working fine till camera feed display. Please check. Error Log: E/CameraManagerGlobal: Camera 61 is not available. Ignore physical camera status change.
how can i delay the result without affecting the camera?
can you please make a video tutorial about this but add a voice speak that says what is the camera detecting like for example apple then the apps will say "apple" please
Can we add a currency dataset to tflite model? To make object and currency detector both together?
Bhai aapne bnaya ka yeh please bataye
great, how if i use .ptl ? can I ?
Why don't have ready app for download?
hello, great video. what is your font in Android Studio?
It’s chalkboard
@@programming_hut Apple Chalkboard or something else? Do you know how to get it on windows or linux?
I’ve never done that but I think this might help
stackoverflow.com/questions/31681167/using-custom-font-for-android-studio-editor
You can probably download chalkboard if possible or try any other alternative
@@programming_hut alright thanks👍
@@programming_hut can you provide full code I am getting penty of error
My model output shape is [1,6,8400] , so how can I get coordinates class labels and confidence score from output= Outputs.outputAsCategoryList?? Please Help me on this Brother , I looked online and could'nt find anything.
Unable to instantiate activity ComponentINfo Getting this error at 10:24
Rather than using a physical cameras device... Does anyone have experience using this with a FFMPEG YUV feed? Or some other grabbing of an existing video stream and feeding it into this code?
hi sir, what macbook system are you using?
Macbook air m1
sir i have a problem related to emulator.. pixels problem sir.. emulator screen is blurry
meko labels.txt ni milri bhai
Unresolved reference: Builder
Hi sir I am facing this issue. Can you please help me out
Can you make this, but with YOLOv8 TFLite?
hello, did you find any with yolov8 tflite?
val inputFeature0 = TensorBuffer.createFixedSize(intArrayOf(1, 224, 224, 3), DataType.FLOAT32)
inputFeature0.loadBuffer(byteBuffer)
sir what should i put in byteBuffer? or change]
same here
val model = Yolov5s.newInstance(context)
// Creates inputs for reference.
val inputFeature0 = TensorBuffer.createFixedSize(intArrayOf(1, 416, 416, 3), DataType.FLOAT32)
inputFeature0.loadBuffer(byteBuffer)
// Runs model inference and gets result.
val outputs = model.process(inputFeature0)
val outputFeature0 = outputs.outputFeature0AsTensorBuffer
// Releases model resources if no longer used.
model.close()
It works for me but i am asking how i can add voice output feature to output the detected object??!!
Did you do that?
does this work for our own model as well?
You can follow steps accordingly
@@programming_hut sir i want the output in voive format... so where I put TTS code plz help
Please, do this: *Ctrl + A, Ctrl + L*
Plzz make video of this project in Java language
This is similar
tensorflow android | Deploy deep learning model android studio | Java | ml
czcams.com/video/tySgZ1rEbW4/video.html
i can't find the code
10.1
bro can you give me this source code download link
Sir plzzz I have to submit my project in 2 days can you help me..... Make video in java language
I have already uploaded that
Deploy Ml model on android | android project java | android studio | cat dog app
czcams.com/video/aOYtdkzYmAY/video.html
How to create a tflite file with metadata if i am going to use my own model?
You tried official documentation ?
www.tensorflow.org/lite/models/convert/metadata#model_information
Please can any one provide entire code
I am getting errors
did you have the code
?
very fast explained...disappointing