How to Build a Camera App With CameraX - Taking Photos

  Рет қаралды 41,604

Philipp Lackner

Philipp Lackner

Күн бұрын

In this video you'll learn how you can integrate a camera feed directly into your app with the CameraX library. This allows you full control over the camera.
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/...
⭐ Courses with real-life practices
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/...
Get my FREE PDF about 20 things you should never do in Jetpack Compose:
pl-coding.com/...
Follow me on Instagram for insights into my live as an Android developer:
/ _philipplackner_
Get the source code for this video on GitHub:
github.com/phi...

Пікірлер: 75
@simpleelegant9269
@simpleelegant9269 Жыл бұрын
Finally granted my request.. More playlist for Hardware please!! Cross platforms can't do shiits with these.
@AhmedAli-qm1td
@AhmedAli-qm1td Жыл бұрын
I thought I'm the only one who think like that 😂😂 But now I'm fine 😂
@ChrisAthanas
@ChrisAthanas Жыл бұрын
KMP is closing the gap very quickly
@AndrewDChristie
@AndrewDChristie Жыл бұрын
Some people are not that excited about programming, love the energy you bring to these videos, makes me realize with the number of your views are plenty of others interested in this work
@malva9
@malva9 25 күн бұрын
For those struggling with getting the camera to show, they must've done some changes to the default values because I couldn't get the cameraFeed to actually show from just the tutorial. You also need to provide the `layoutParams` to get the feed to show. Not very clear since the logs themselves just mention that the controller and previewView aren't connected to the controller. In hindsight though it does make sense but I would've thought that it just grabs the parent of the composable (which is probably what it did before when it's implemented in the video.) Hope this helps!
@Otabek001uz
@Otabek001uz Жыл бұрын
You're the best developer in the world!!!⚡
@EveWaltz
@EveWaltz Жыл бұрын
I had to figure it out how to use the cameraX library by my own. Now I can check what I did wrong, thanks Phillip for this new content
@roshkaalex
@roshkaalex Жыл бұрын
Cool! Thank you Philipp. I tried to find camerax video in your playlist today morning )))
@mubaraknative
@mubaraknative Жыл бұрын
What a crazy yesterday i throught our friend Phillip does not upload any Video about cameraX camera 2 libaray and it is also very popular library for integrating Camera Really i am Impressed!! ♥ and Waiting new other Hardware sensor Video's We are from your back to full support
@jarvis2913
@jarvis2913 Жыл бұрын
Best video for learning android development.
@aaravbansal6193
@aaravbansal6193 Жыл бұрын
Hi philipp, I have been following you for quite a while now and genuinely love your content. I had a small request if you could make a tutorial for media3 Audio Player!! that would be a great help
@timepasi
@timepasi 3 ай бұрын
Intresting we need more of these videos ❤
@fazalulabid8483
@fazalulabid8483 Жыл бұрын
Been waiting for this content. Thanks for delivering what we've all been craving!
@surendramaran
@surendramaran Жыл бұрын
I waited for this video 🎉🎉
@HenokWehibe
@HenokWehibe 7 ай бұрын
Great work Sir, Thanks so much.
@itzlvm1268
@itzlvm1268 Жыл бұрын
Amazing, finally can use text recognition
@LEGENDX22
@LEGENDX22 Жыл бұрын
Excited for Part 3
@fascialrufaie
@fascialrufaie Ай бұрын
This cameraeggs thing is kinda useful
@achmadichzan
@achmadichzan Жыл бұрын
I'll practice your videos, thank you very much
@aaronperron
@aaronperron 4 ай бұрын
can you make a tut about setting up camerax with the new camera-viewfinder-compose ? thanks! you rock
@santri.awon1
@santri.awon1 11 ай бұрын
great content as always
@김영훈-q9z
@김영훈-q9z 2 ай бұрын
could you upload recording both camerax and customview?
@Noor_alden
@Noor_alden Жыл бұрын
u r amazing , thanks alot for this content🙏🙏
@technicalayushpro81
@technicalayushpro81 Ай бұрын
can you tell me how to use camera X in Sketchware,please
@Window2015
@Window2015 Жыл бұрын
Hy Philipp why not do some basic game development in kotlin like snake game tic tac toe game etc with javafx or tornadofx
@JavohirJumayev-pn1vn
@JavohirJumayev-pn1vn 11 ай бұрын
Thank you so much
@omarredani5580
@omarredani5580 11 ай бұрын
We need a complete project is going to be perfect
@XblueNitroxNT
@XblueNitroxNT Жыл бұрын
Hi, could you make a video about creating and publishing libraries in compose Multiplatform ? Btw thx for all videos
@John-qt6qk
@John-qt6qk Жыл бұрын
Awesome 💪🏾
@felipesousa7816
@felipesousa7816 8 ай бұрын
Make a camerax tutorial for a thermal camera, I want to integrate this into my project
@devanshraj5619
@devanshraj5619 Жыл бұрын
Hi, can you make a document scanner app... main use of camera is for that.
@chrispoet3885
@chrispoet3885 5 ай бұрын
7 issues were found when checking AAR metadata: 1. Dependency 'androidx.camera:camera-extensions:1.3.0-rc01' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs.
@KeringKirwa
@KeringKirwa Жыл бұрын
hey Philip ? first , thanks for this sir . what if someone wants to focus on a section of an image just like in Google lens , how is that possible ?
@ahadul360
@ahadul360 Жыл бұрын
Make a video on Qr Scanner App using latest tech..
@muhammadsarimmehdi
@muhammadsarimmehdi Жыл бұрын
Can you make a bluetooth LE tutorial?
@SahilTheExplorer
@SahilTheExplorer 11 ай бұрын
Hey Philip, i think there’s something wrong while you’re initialising camerax because i am getting camerainfo as null if i do the same initialisation.
@divid3d806
@divid3d806 Жыл бұрын
Imo you shouldn't hold bitmaps directly in ViewModel. Bitmaps should be saved somewhere and uris should be used to access them to optimize memory usage.
@Daaboo
@Daaboo 4 ай бұрын
But i want to use the camera app on the phone but no package work. I tried both Vue with Iconic, React native and its wont work at all. This is my last chance to ever be able to finish my app.... but if you have any other suggestions im open ....?
@RiteshVishwakarma-jg3px
@RiteshVishwakarma-jg3px 3 ай бұрын
bro how to add asceptRatio on this
@MrDhruba13
@MrDhruba13 Жыл бұрын
You are the best teacher for android, Thanks a lot. Do you have any courses paid/free on android testing
@PhilippLackner
@PhilippLackner Жыл бұрын
Yes, released just a month ago :) pl-coding.com/testing
@omkarsatam003
@omkarsatam003 Жыл бұрын
Can you please also guide on how to handle to take picture only when it's a human?
@MüminKayaaslan-t9b
@MüminKayaaslan-t9b 9 ай бұрын
Hello, I added it to my project as you did, but when I gave the NavController, java.lang.IllegalStateException: The offset was read before being initialized. Did you access the offset in a phase before layout, like effects or composition? I am encountering the error
@frankyjunior6005
@frankyjunior6005 Жыл бұрын
How to make the icon sticky in the right when landscape? So it like other camera app
@roshkaalex
@roshkaalex Жыл бұрын
How to set photo size? and jpeg quality?
@footballCartoon91
@footballCartoon91 Жыл бұрын
man, I want to ask you one question, what is buildScript block in the gradle build file that you use in the project root directory. why buildScript block is used in the project root build file but not in the "app" folder or "app" module ? Does this mean gradlew need to use extra buildscript or what ?
@seethalakshmi4670
@seethalakshmi4670 Жыл бұрын
How can I switch between lenses here? I have observed that CameraX doesn't automatically switches the lenses in Samsung devices.
@neirno
@neirno Жыл бұрын
Please create video guide with AR
@JeffreyLiu8
@JeffreyLiu8 Жыл бұрын
can you please open class for openGL es?
@Hatsworthful
@Hatsworthful 11 ай бұрын
Is there a way to use this to take the photos and add them to a digital form to generate a pdf?
@VrhoAirlines
@VrhoAirlines 10 ай бұрын
Do you have any idea how to access usb camera on android in an app
@RaghulS-nl6wx
@RaghulS-nl6wx 11 ай бұрын
I get error on creating bottomsheet scaffold did anyone
@abdulrahamanolatunde6548
@abdulrahamanolatunde6548 10 ай бұрын
Same here. Fixed it yet??
@nameayeIIowfruit
@nameayeIIowfruit 10 ай бұрын
Change implementation("androidx.compose.material3:material3") to implementation("androidx.compose.material3:material3:1.1.2") in the build.gradle.kts to get the latest Version of material3
@anmac6910
@anmac6910 9 ай бұрын
Hey how do I set a greater precision for date timestamp when taking a photo so that the fileame such as : YYYYMMDD_hhmmss.jpg and the date taken and date modified seconds are very close to being the exact same? in other words, the date taken and date modified is assigned at the exact instant the photo is saved to file ?
@awaisahmad5908
@awaisahmad5908 7 ай бұрын
you have used kotlin damn where is java functional APIs.
@farhodakramov8158
@farhodakramov8158 11 ай бұрын
Something wrong here.Camera take picture only 4 times.How can do more?
@homiegangbro8533
@homiegangbro8533 3 ай бұрын
add image.close() at the bottom in fun onCaptureSuccess
@thanakornsrisuwan2498
@thanakornsrisuwan2498 Жыл бұрын
rememberBottomSheetScaffoldState not found help me please :(
@thanakornsrisuwan2498
@thanakornsrisuwan2498 11 ай бұрын
I can solve the problem, update latest version of material 3
@abdulrahamanolatunde6548
@abdulrahamanolatunde6548 10 ай бұрын
@@thanakornsrisuwan2498 I'm facing same issue. What version did you use to solve yours? This is what I have implementation("androidx.compose.material3:material3")
@FabricioMTL
@FabricioMTL 11 ай бұрын
A real photo simple app will be cool
@ikerluqup5661
@ikerluqup5661 3 ай бұрын
god
@RajuYadav-qm4ic
@RajuYadav-qm4ic Жыл бұрын
😊
@jesseholliday3480
@jesseholliday3480 5 ай бұрын
1:40 dependencies
@jesseholliday3480
@jesseholliday3480 5 ай бұрын
4:00 permission runtime audio etc
@jesseholliday3480
@jesseholliday3480 5 ай бұрын
5:30 check if we have permission
@jesseholliday3480
@jesseholliday3480 5 ай бұрын
7:00 bottom sheet scaffold
@jesseholliday3480
@jesseholliday3480 5 ай бұрын
9:15 camera preview controller
@jin4ok
@jin4ok Ай бұрын
* BottomSheetScaffold not found implementation("androidx.compose.material3:material3:1.2.1") // State the version above 1.1.0. Unstated implementation might be somehow importing 1.0.0 version. * CameraSwitch Icon not found implementation("androidx.compose.material:material-icons-extended:1.5.1") // Implement this too.
Android. Работаем с камерой через CameraX.
26:55
Sergey Arkhipov Java Tutorials
Рет қаралды 9 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 121 М.
когда не обедаешь в школе // EVA mash
00:57
EVA mash
Рет қаралды 3,8 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 14 МЛН
AI Landmark Recognition With Tensorflow Lite and CameraX on Android
34:28
How to run Kotlin Multiplatform app on Android and iOS - Getting Started and Configuration
8:28
Jakub Neukirch - Stonks Mobile Development
Рет қаралды 99
95% Don't Understand THIS About Coroutines (Main-Safety)
9:38
Philipp Lackner
Рет қаралды 29 М.
Android Camera API. Умная камера Яндекса
47:42
Android Broadcast. Все об Андроид разработке
Рет қаралды 4,7 М.
How to Build a Video Recorder With CameraX in Android
11:38
Philipp Lackner
Рет қаралды 10 М.
Работа с камерой устройства. Библиотека CameraX
1:15:16
IT Школа | Samsung Innovation Campus Russia
Рет қаралды 2,1 М.
CameraX concepts
4:22
Android Developers
Рет қаралды 25 М.