Camera2 API | Previewing and Capturing image | Kotlin | android studio

  Рет қаралды 18,287

ProgrammingHut

ProgrammingHut

Күн бұрын

Hey everyone in this video you will learn to use camera2 api using Kotlin language.
After this you will be able to:
1 - Preview the camera frames
2 - Capture the image
3 - Save image using image reader
This is very helpful video who want to do computer vision or create a camera application. Since after this you can preprocess each frame before previewing it to the user.
We will use TextureView to preview the frames. CameraManager is used for opening the camera as well as creating capture request as well as session.
Thanks for watching the video :)
contact me :
facebook : / proogramminghub
twitter : / programming_hut
github : github.com/Paw...
discord : / discord
linkedin : / programminghut
youtube : / programminghutofficial
camera2api,kotlin,camera2,api,java,create capture request,surface texture,texture view,camera api,preview camera,android app,android studio

Пікірлер: 33
@user-rz1xn2pn4w
@user-rz1xn2pn4w Жыл бұрын
I am a student majoring in computer science. Your lecture has been very helpful to me. thank you
@sknoman3949
@sknoman3949 Жыл бұрын
I watched the full video and implemented which works fine. Thanks for the tutorial.
@Roger-e4t
@Roger-e4t Жыл бұрын
Nice video, very clear and in a nice sequence. It would be very good for your audience and followers, if you can attach the code. With your code will be easier to reproduce, test and debug increasing the impact of your video. That´s my humble suggestion
@lekhwar
@lekhwar Жыл бұрын
Awesome concept
@adityashigwan3394
@adityashigwan3394 4 ай бұрын
Hi your video was useful for me but I got this as assessment and I have to pass captured photo to previous activity into the list with name, (so it should happened within app no need to access internal storage), I tried to do large bitmap with use of viewmodel and livedata but don't got luck, will u please help?
@kdzmuzo
@kdzmuzo Жыл бұрын
Thanks so much for your videos. They are clear and very helpful. Can you please make a camera permission video for Java. Also can you make a video for tflite pose-estimation in Java? Thanks again so much for your help. it means a lot
@RK-lv9qc
@RK-lv9qc 7 ай бұрын
Can you please share the code of this project?\
@shraddhakhatri6747
@shraddhakhatri6747 Жыл бұрын
Hii I recently watched your video and trying to learn But my app is crashing after I run it Can you please provide a solution for it?
@tabindanoreen4667
@tabindanoreen4667 Жыл бұрын
same with me. i write all code as it shown but my app crashed .
@DimiHycks
@DimiHycks 6 ай бұрын
1 - How do I save photos with timestamp? 2 - How do I put a frame on the photo, both in the preview and in the final photo?
@李浩南-q6e
@李浩南-q6e Жыл бұрын
Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers How can I deal with this?
@zachbohac5170
@zachbohac5170 Жыл бұрын
I am also having an issue with this. I increased the number of max images to 2 which solved this issue but I am getting nothing to in terms of a picture in my files.
@johnlamsdan
@johnlamsdan Жыл бұрын
how do i add a border to the camera view so that the image is cropped to the size of the border?
@AbhishekVaish-i2q
@AbhishekVaish-i2q Жыл бұрын
why captured image gets rotated????
@talksai
@talksai Жыл бұрын
how to turn the flash on/off during capture Please respond.
@vijaygarg8034
@vijaygarg8034 Жыл бұрын
"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?"
@tabindanoreen4667
@tabindanoreen4667 Жыл бұрын
do you get answer .?
@vijaygarg8034
@vijaygarg8034 Жыл бұрын
@@tabindanoreen4667 I have done some changes in the code but I want to use yolov8 model on android and IOS.
@freesources6872
@freesources6872 Жыл бұрын
can i used surface view instead of textureview
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 11 ай бұрын
bhai, how to do for both camera at the same time,
@spectrum8200
@spectrum8200 Жыл бұрын
Why can't the imageReader get the TensorBuffer updated in the textureView?
@programming_hut
@programming_hut Жыл бұрын
Which tensorbuffer you talking of? Are we using it ?
@spectrum8200
@spectrum8200 Жыл бұрын
I watched your other videos and imported the tf model I want to capture textureView that reflects the tf model, but the imageReader doesn't seem to work. How can I capture and save the camera screen to which the tf model is applied?
@programming_hut
@programming_hut Жыл бұрын
You can directly save the mutable bitmap on which we drawn results
@spectrum8200
@spectrum8200 Жыл бұрын
@@programming_hut thanks your comment! but i didn't make it. i wanna connect capture button and tfmodel When I take a picture, a preview appears and when I press the capture button, I want to save the picture through setOnClickListener.
@programming_hut
@programming_hut Жыл бұрын
So what the problem add button and when button pressed sabe that mutable bitmap
@manikandanr2770
@manikandanr2770 10 ай бұрын
Hi, How to use wide angle camera capture useing Camera2 API or any other API.
@lakhanivlogs
@lakhanivlogs 8 ай бұрын
Apko kuch wide angle file mili? Mjy b need hai plz help.
@khanhduy4273
@khanhduy4273 Жыл бұрын
can you guide me how to zoom the camera ?
@vijaygarg8034
@vijaygarg8034 Жыл бұрын
I am not able to find saved image
@sanketbhangale5788
@sanketbhangale5788 Жыл бұрын
Could you please share the codebase for this app?
@gmarenzi
@gmarenzi Жыл бұрын
Hola, no lo tenes en Java?
@lglf77
@lglf77 Жыл бұрын
How really to make print in image Camera with actual date day month and year in print screen.???? Begging
How to Build a Camera App With CameraX - Taking Photos
29:35
Philipp Lackner
Рет қаралды 40 М.
Android Camera2 API by Huyen Tue Dao
47:29
GDG Boulder
Рет қаралды 27 М.
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
Sample App for android with opencv-sdk-4.9
8:24
kenmaro's prototyping
Рет қаралды 441
How to Build a Video Recorder With CameraX in Android
11:38
Philipp Lackner
Рет қаралды 10 М.
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54
Nick Chapsas
Рет қаралды 57 М.
DHH - Ruby on Rails, 37signals, and the future of web development
1:09:57
NSURLProtocol: How I Stole an App For My Wedding
56:25
Bryce Bostwick
Рет қаралды 20 М.