How To Capture Picture From Webcam JavaScript | Store In MySQL & Folder | HTML, JS, PHP, MySQL

  Рет қаралды 32,637

David G Tech

David G Tech

Күн бұрын

Пікірлер: 117
@kriziacarissepangan1590
@kriziacarissepangan1590 2 жыл бұрын
Waaaahh! Saved our capstone!! Thank You so much! New subs here.
@DavidGTech
@DavidGTech 2 жыл бұрын
You're welcome! Thank you for watching and subscribe...
@alexkurnia3127
@alexkurnia3127 3 жыл бұрын
makin keren aja nh yg ditutorialin
@DavidGTech
@DavidGTech 3 жыл бұрын
Iya wkwkwk, ty udah nonton
@malwarevirus3002
@malwarevirus3002 2 ай бұрын
Bro, will it also work on mobile camera? Tyia
@hudiyasukma6008
@hudiyasukma6008 2 жыл бұрын
Nice tutor! Tapi mau nanya kalo webcam diganti dengan modul esp32-cam apakah bisa?
@radhasingh3549
@radhasingh3549 2 жыл бұрын
Thank you sooo much. I really needed this :)
@DavidGTech
@DavidGTech 2 жыл бұрын
You're welcome...
@incognito7840
@incognito7840 Жыл бұрын
where u from, are u in the field of web development?
@jabinilazhar8911
@jabinilazhar8911 2 жыл бұрын
Mantab bang.. ini yg aq cari
@DavidGTech
@DavidGTech 2 жыл бұрын
Thank you for watching!
@chouaibechouaib10
@chouaibechouaib10 7 ай бұрын
Bro do i have to make the localhot secured (https) for the camera to work or i let it http
@DavidGTech
@DavidGTech 6 ай бұрын
@chouaibechouaib10 Yes, you need to make localhost secured (https) for the camera to work because browsers require HTTPS for accessing the camera. You can use a self-signed certificate for local development.
@gihon_z3r0dxd84
@gihon_z3r0dxd84 2 жыл бұрын
Hey I wanna ask, if I hosted this code let's say using Heroku so everyone with the url using his/her own internet can capture picture but the pictures are saved to my local computer. So its like face registration hosted website and my local computer is the database, how's the code?
@gihon_z3r0dxd84
@gihon_z3r0dxd84 2 жыл бұрын
Oh ya pakai indonesia aja kali yak wkwk ku kira orang luar 😂, ya gitu lah pokonya kalau aku pengen hosting jdi website gtu trs orang lain yg akses website bisa capture fotonya tapi ke savenya tetep ke komputerku sebagai database tu gimana ya source code nya?
@DavidGTech
@DavidGTech 2 жыл бұрын
Wkwkkw Savenya ke folder img di tempat hostingnya sih. Kalau mau kaya gitu, itu ada aturannya lagi tentang hosting server gitu. Thank you for watching
@diantech4215
@diantech4215 2 жыл бұрын
klw ambilnya dalam bentuk video bisa juga gak? jadi yang tersimpan di database nya itu video..
@DavidGTech
@DavidGTech 2 жыл бұрын
Bisanya dalam bentuk foto doank
@suzerain3880
@suzerain3880 2 жыл бұрын
Hi Mr. David, is there a specific camera to use?
@DavidGTech
@DavidGTech Жыл бұрын
Hello, thank you for your question! In the video, we demonstrate how to capture pictures from a webcam using JavaScript, and the good news is that you can use almost any webcam with your project. If you have any more questions or need additional help, feel free to ask. Enjoy capturing pictures from your webcam using JavaScript!
@imposteralchemist4521
@imposteralchemist4521 2 жыл бұрын
how did you saved image into mysql database???pls explain ?
@DavidGTech
@DavidGTech 2 жыл бұрын
When you click the button, it sends the image to function.php. The function.php will save the image to database and img directory
@hamadmohammed5957
@hamadmohammed5957 2 жыл бұрын
Thank you dear that's very helpful
@DavidGTech
@DavidGTech 2 жыл бұрын
You're welcome
@annagrace1316
@annagrace1316 2 жыл бұрын
Very helpful video!
@DavidGTech
@DavidGTech 2 жыл бұрын
Thank you...
@ashwinchavan6391
@ashwinchavan6391 2 жыл бұрын
how should i do this using flask
@DavidGTech
@DavidGTech Жыл бұрын
Thank you for your comment and interest in using Flask with webcam capture! While my original video focuses on JavaScript-based webcam capture, I'd be happy to guide you on how to integrate Flask. To use Flask for this task, you can follow these steps: - Set up a Flask project: If you haven't already, create a new Flask project and set up your app.py file. - Create an endpoint: Define a new route in app.py to handle image uploads from the webcam. - Use JavaScript: In your existing JavaScript code for webcam capture, modify the navigator.mediaDevices.getUserMedia() function to send the captured image to the Flask endpoint via AJAX. - Handle the image in Flask: In your new endpoint, handle the incoming image data, and you can then save it to the server or process it as needed. Keep in mind that this is a high-level overview, and you may need to adjust the implementation based on your specific requirements. If you want more in-depth guidance on Flask integration, there are plenty of excellent Flask tutorials available online. I hope this helps you get started! Feel free to experiment and learn more about Flask and JavaScript integration. If you're interested, you can subscribe to my channel for future tutorials and updates.
@LikardV
@LikardV 2 жыл бұрын
i get error: webcam is not defined in index.php at webcam.set
@DavidGTech
@DavidGTech 2 жыл бұрын
Probably because there are some codes that missing in your code
@Gringos271
@Gringos271 2 жыл бұрын
hello here in mine when I call the configure function in the body it says that it does not exist would you be able to tell me why I have already checked each word is the same
@DavidGTech
@DavidGTech Жыл бұрын
I'm sorry to hear that you're encountering an issue with the configure function not being recognized in the body of your code. Please double-check that the configure function is defined and accessible in your JavaScript code. Ensure that it is defined before you attempt to call it in the body of your HTML document.
@wenndyaprialdo.7141
@wenndyaprialdo.7141 2 жыл бұрын
mantap betul nih abang
@DavidGTech
@DavidGTech 2 жыл бұрын
Thank you...
@jorgedanielvillafane7049
@jorgedanielvillafane7049 2 жыл бұрын
Excelente video. una pregunta: como usaría Webcam.upload en laravel? que tendría que poner como segundo argumento en esa función?
@DavidGTech
@DavidGTech 2 жыл бұрын
Speak English please...
@foxgamingkda1722
@foxgamingkda1722 Жыл бұрын
oye bro podrias ayudarme ?
@rodriguezfelipe8900
@rodriguezfelipe8900 2 жыл бұрын
Hi David, keep up the good work and thank you for your help
@DavidGTech
@DavidGTech 2 жыл бұрын
Thank you...
@foxgamingkda1722
@foxgamingkda1722 Жыл бұрын
ey bro you can help me plss
@ZEKRA_ZG
@ZEKRA_ZG Жыл бұрын
My friend, I want to make inserts for another value, like the name. I tried a lot, but I didn't know.
@DavidGTech
@DavidGTech Жыл бұрын
Hey there! I'm glad you found the video useful! Adding inserts for other values, like a name, is a great idea to customize your project. To do this, you can modify the JavaScript code we covered in the video. First, create an input field in your HTML where the user can enter their name, like this: . In your JavaScript code, you can capture the value entered by the user in the nameInput element by using document.getElementById('nameInput').value. Then, you can insert this value into your captured picture, perhaps as a caption. For example: context.fillText(document.getElementById('nameInput').value, x, y);, where x and y are the coordinates where you want to place the name. Remember to style and format the inserted name as needed to make it visually appealing. If you encounter any issues, feel free to ask for further help. Good luck with your project, and keep experimenting!
@nikhithas8519
@nikhithas8519 2 жыл бұрын
great vedio this is really helpfull for me
@nikhithas8519
@nikhithas8519 2 жыл бұрын
please send the source code
@DavidGTech
@DavidGTech 2 жыл бұрын
Done
@A__DamarAdzaniSusanto
@A__DamarAdzaniSusanto 10 ай бұрын
Halo kak, mau nanya. Saya kan udh ngikutin sesuai video..semuanya bisa kak. Cmn kenapa kamera webcam nya gk bisa muncul ya di localhost nya ? Mohon infonya kak 🙏
@DavidGTech
@DavidGTech 8 ай бұрын
Hi @A__DamarAdzaniSusanto, Halo! 😊 Jika kamera webcam tidak muncul di localhost, pastikan Anda sudah memberikan izin akses kamera pada browser. Juga, cek apakah ada pesan error di konsol browser. Semoga membantu! 🙏
@amofaedmund5985
@amofaedmund5985 2 жыл бұрын
Nice work
@DavidGTech
@DavidGTech 2 жыл бұрын
Thanks
@jalusomala4326
@jalusomala4326 Жыл бұрын
Hallo kak cara edit jamnya gimana ya?
@DavidGTech
@DavidGTech Жыл бұрын
Jamnya itu sudah sesuai waktu yah
@jalusomala4326
@jalusomala4326 Жыл бұрын
@@DavidGTech punya ku jam yg disave sama di laptop beda kak.
@serba_otodidak
@serba_otodidak 3 жыл бұрын
Saya ko ga muncul kamera nya yah mas di layar
@DavidGTech
@DavidGTech 3 жыл бұрын
Kalau kodenya udah bener sih harusnya itu dikarenakan browsernya yang kurang support, nanti kalau masih ragu sama kodenya email saya aja yah, nanti saya kasih source code php dan sqlnya 🙏🏼
@serba_otodidak
@serba_otodidak 3 жыл бұрын
@@DavidGTech baik mas terimakasih banyak, nanti saya email, Chanel nya saya suscribe, like, coment terus, lonceng juga ga ketinggalan Terimakasih terimakasih 🙏🙏🙏🙏🙏
@DavidGTech
@DavidGTech 3 жыл бұрын
Sipp
@saileshtuladhar3787
@saileshtuladhar3787 Жыл бұрын
how to access back camera? please help
@DavidGTech
@DavidGTech Жыл бұрын
To access the back camera and capture pictures using JavaScript in a web application, you can use the MediaDevices API and the getUserMedia() method. Request camera access permission: Use navigator.mediaDevices.getUserMedia({ video: { facingMode: 'environment' } }) to request permission to access the camera, specifically the back camera. Handle the stream: Once permission is granted, handle the stream object returned by the getUserMedia() method. Display the camera stream in a video element and capture pictures using a canvas element. Process the captured picture: After capturing the picture, you can process it as needed, such as saving it locally or sending it to a server. Remember to handle any errors that may occur during the camera access process or picture capture.
@jalusomala4326
@jalusomala4326 Жыл бұрын
Hallo kak mau nanya, kok yang saya pas klik button save gak jalan ya, yg jalan Webcam.reset(); doang? Mohon penjelasannya kak🙏
@DavidGTech
@DavidGTech Жыл бұрын
coba cek lebih teliti lagi kodenya supaya tidak ada yang error.
@RanggaBayu
@RanggaBayu 2 жыл бұрын
kenapa ya udah sesuai dengan code di video anda tetap tidak muncul kameranya ?
@DavidGTech
@DavidGTech 2 жыл бұрын
Coba hubungi gmail saya davidgarciasaragih7@gmail.com Nanti saya bakal kasih source codenya
@RanggaBayu
@RanggaBayu 2 жыл бұрын
@@DavidGTech cek email mas
@DavidGTech
@DavidGTech 2 жыл бұрын
Woke sip
@DominicNweze
@DominicNweze 2 жыл бұрын
Very good thanks
@DavidGTech
@DavidGTech 2 жыл бұрын
You're welcome! Thanks for watching
@tashigichin7960
@tashigichin7960 10 ай бұрын
thank you so much
@DavidGTech
@DavidGTech 8 ай бұрын
You're welcome!
@CodeForgePro
@CodeForgePro 2 жыл бұрын
Your code is awesome can you provide me souce code Pls
@DavidGTech
@DavidGTech 2 жыл бұрын
Contact my gmail
@akbartan
@akbartan Жыл бұрын
Punya saya video ditampip padahl koding udah sama. Minta source code nya bang
@DavidGTech
@DavidGTech 7 ай бұрын
Hi @akbartan! Jika video tidak tampil meskipun koding sudah sama, mungkin ada kesalahan kecil atau konfigurasi yang berbeda. Untuk source code lengkap, cek di deskripsi video atau di repositori GitHub yang terkait dengan tutorial ini. Jika masih ada masalah, beri tahu saya, dan saya akan mencoba membantu!
@ashutoshpatel5030
@ashutoshpatel5030 2 жыл бұрын
Thank you could you provide complete source code!!
@DavidGTech
@DavidGTech 2 жыл бұрын
You're welcome... Actually same as in the video, but if you don't want to fully watch the video, just contact my gmail davidgarciasaragih7@gmail.com to get the source code.
@hamidahwulandari8364
@hamidahwulandari8364 2 жыл бұрын
kak aku udah gmail kakak, boleh izin minta source code nya kak? soalnya aku error dibagian foto nya ga kesimpan di folder img, makasih kak
@DavidGTech
@DavidGTech 2 жыл бұрын
Sudah yah...
@habibbillah630
@habibbillah630 2 жыл бұрын
terima kasih, tapi pelik, saya punya tidak keluar gambar pada Image Database walau sudah save successfully, 3 jam mencari solusi, susah betul ye java script + php.
@DavidGTech
@DavidGTech Жыл бұрын
Sama-sama, coba pastikan kodingan kamu benar sesuai yang ada di video, supaya sistemnya dapat berjalan dengan baik.
@meryretnoarianti5048
@meryretnoarianti5048 9 ай бұрын
Terimakasih bang, tapi gimana caranya ngambil 3 gambar dan di save dalam 1 nama.
@DavidGTech
@DavidGTech 8 ай бұрын
Hi @meryretnoarianti5048, Terima kasih! 😊 Untuk mengambil 3 gambar dan menyimpannya dengan satu nama, Anda bisa menyimpan ketiga path gambar tersebut dalam satu field di database atau membuat relasi antar tabel untuk menyimpan nama dengan beberapa gambar. Semoga membantu!
@shariftaj9278
@shariftaj9278 2 жыл бұрын
Very Helpful can you provide the source code
@DavidGTech
@DavidGTech 2 жыл бұрын
Contact my gmail
@tashigichin7960
@tashigichin7960 10 ай бұрын
can i get the source code please?
@DavidGTech
@DavidGTech 8 ай бұрын
Hi @tashigichin7960, You're welcome! 😊 For the source code, you can find it in the video description or on my GitHub page. Let me know if you need any further assistance! 👍
@imamihsani3946
@imamihsani3946 2 жыл бұрын
Hello Mr. david, i have a problem, the webcam isn't appear in my localhost and it just showing " . " , can u help me? i've been sent you by email. Please check it. Thanks, sir
@DavidGTech
@DavidGTech Жыл бұрын
Hello! I'm sorry to hear that you're having trouble with the webcam on your localhost. Here are a few things that you can try to resolve the issue: Check if the webcam is properly connected and working on your device. You can try testing the webcam with other applications to ensure that it is functioning correctly. Ensure that your web browser has permission to access your webcam. Depending on the browser you're using, you may need to check your browser settings to grant permission. Check if the webcam is supported by the browser you're using. Not all webcams are compatible with all web browsers, so you may need to try a different browser if your current one doesn't work. Verify that your webcam is correctly specified in your code. Double-check that you have specified the correct device ID and make sure that there are no typos or other errors in your code. I hope this helps! Let me know if you have any further questions or concerns.
@imamihsani3946
@imamihsani3946 Жыл бұрын
@@DavidGTech okay, thanks
@norbertgebanga8934
@norbertgebanga8934 2 жыл бұрын
Thanks you so match. Help me by the source code please
@DavidGTech
@DavidGTech 2 жыл бұрын
Please contact my gmail and I will send the source code
@DavidGTech
@DavidGTech 2 жыл бұрын
my gmail : davidgarciasaragih7@gmail.com i will reply to you as soon as possible
@jalusomala4326
@jalusomala4326 Жыл бұрын
Hallo kak atletnya gak jalan kenapa ya?
@DavidGTech
@DavidGTech Жыл бұрын
Harusnya jalan @jalusomala4326, coba cek lebih teliti lagi kodenya dan database
@nysazaharim3445
@nysazaharim3445 2 жыл бұрын
Hi can i get the source code. I already emailed you. Thanks!
@DavidGTech
@DavidGTech 2 жыл бұрын
Done! Thank you for watching...
@horsemanOfApocalypse
@horsemanOfApocalypse 2 жыл бұрын
The code is not working
@DavidGTech
@DavidGTech 2 жыл бұрын
I'm sure that there are some missing codes in your code
@horsemanOfApocalypse
@horsemanOfApocalypse 2 жыл бұрын
@@DavidGTech can I see the whole source code because I followed the one in this video line by line
@DavidGTech
@DavidGTech 2 жыл бұрын
Contact my gmail to get the source code
@lqyj
@lqyj 2 жыл бұрын
halo gan saya sudah beli source code nya di paypal
@DavidGTech
@DavidGTech 2 жыл бұрын
Iya
@joshuaelsonhonu4634
@joshuaelsonhonu4634 Жыл бұрын
Please can i have the source code
@DavidGTech
@DavidGTech Жыл бұрын
Contact me through my email please
@henrydwiseptian4312
@henrydwiseptian4312 2 жыл бұрын
Terimakasih banyak gan tutorialnya.. Ane izin minta sourcecodenya yaa 🙏
@DavidGTech
@DavidGTech Жыл бұрын
Sama-sama
@fatmadwianisa813
@fatmadwianisa813 2 жыл бұрын
Kok gak bisa ya. Udah aku email bang. Boleh di cek?
@DavidGTech
@DavidGTech Жыл бұрын
Halo, coba cek kembali kodenya, pastikan sesuai kode yang ada di video, supaya bisa berjalan dengan baik
@snakezy1988
@snakezy1988 2 жыл бұрын
video yang aku cari makasih bro btw boleh minta source codenya makasih
@DavidGTech
@DavidGTech Жыл бұрын
Sama-sama
@tioadjie5361
@tioadjie5361 2 жыл бұрын
Terima kasih mas videonya, membantu sekali. Semoga lancar rezekinya karena sudah membantu. Amiin...
@DavidGTech
@DavidGTech Жыл бұрын
Sama-sama!!! Aminnnn, thank you!!!
@joshuaelsonhonu4634
@joshuaelsonhonu4634 Жыл бұрын
Boss
@lqyj
@lqyj 2 жыл бұрын
Check gmail gan
@KuroBapak
@KuroBapak 2 жыл бұрын
minta src nya dong broo udh gw contact
@DavidGTech
@DavidGTech 2 жыл бұрын
Udah yah...
How To Access Webcam In HTML Using JavaScript
6:43
Yako the Developer
Рет қаралды 32 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Interacting With A Web Camera Using JavaScript
10:48
Conor Bailey
Рет қаралды 26 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
Accessing Your Webcam in HTML
12:36
KIRUPA
Рет қаралды 23 М.
Capturing Media from HTML on Mobile Devices
9:41
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 41 М.
How to Upload Image into Database and Display it using PHP
10:50
Code With Yousaf
Рет қаралды 70 М.
Access Location, Camera  & Mic of any Device 🌎🎤📍📷
15:48
zSecurity
Рет қаралды 2,8 МЛН