Automating My Life with Python | Using Computer Vision to Detect How Often I Drink Coffee

  Рет қаралды 20,523

Tiff In Tech

Tiff In Tech

Күн бұрын

Пікірлер: 84
@edson_winner
@edson_winner 4 ай бұрын
Thank you. You just gave a glimpse of how object detection works. Kinda thinking of doing something similar in mining industry to detect different kind of rocks and sizes.
@lkgpuanimho0349
@lkgpuanimho0349 4 ай бұрын
Someone in Indonesia did something like this, using OpenCv to detect sex, age and emotions. Then the door behinds him opened and OpenCv detected a 500-year old angry female ghost. True story.
@redx001-xxx
@redx001-xxx 4 ай бұрын
👀
@KakashiHatake-jl9gx
@KakashiHatake-jl9gx 4 ай бұрын
i got interest in tech cause of you...and i'm loving the process learing new things !!
@TiffInTech
@TiffInTech 4 ай бұрын
that made my day! Thank you so much :)
@KakashiHatake-jl9gx
@KakashiHatake-jl9gx 4 ай бұрын
😄
@theophilus494
@theophilus494 4 ай бұрын
one thing i like about you is your sincerity on how you get things done.. awesome..
@kumardigvijaymishra5945
@kumardigvijaymishra5945 4 ай бұрын
Perhaps adding a piece of code that could train the machine to detect different kinds of cup would do the trick. But the cup needs to be detected with open mouth. Cool project Tiff.
@Flat0Line1
@Flat0Line1 4 ай бұрын
For this kind of stuff - it's like jump from medieval age to the landing on the moon, sadly. Here was just used default classifier for face detection, and actually doesn't really solve the task of "coffee drink detection" and any other custom detection thing. But as first time with openCV it's ok..
@kumardigvijaymishra5945
@kumardigvijaymishra5945 4 ай бұрын
@@Flat0Line1 instead of face detection, the code needs to detect the cup, any cup. 'Coffee drink detection' will require a pressure sensor on the coffee mug, NFC device that could send signal to the code, ... that would be landing on moon 🌝
@ozono27
@ozono27 4 ай бұрын
@@kumardigvijaymishra5945 or detecting the cup AND that the cup has been tilted while the mouth disappears, kinda? without any doubt... the sensor on the mug is much better... for sure.
@shaunweinberg2463
@shaunweinberg2463 4 ай бұрын
Full stack dev moving to Data science (again) and doing honorus in Physics maths. I drank up to 20 cups of coffee at a time. I had to change my diet due to the caffeine causing stomach issues. Keep the coffee and sugar down...
@Flat0Line1
@Flat0Line1 4 ай бұрын
Interesting idea for a project!)) You have a problem with testing on video because your white_pixels are not normalized by the size of the face in the camera view (essentially, it doesn’t check the distance between the face and the camera). So, if you are a little further from the camera, white_pixels will be around 8000-9000 or even 5000, if you are a little closer, it can be more than 80,000.
@ozono27
@ozono27 4 ай бұрын
might be a good idea to create the threshold not on the amount of pixels in the "region of interest" but the ratio between the pixels of the ROI and the pixels of the face, right? that way, distance would top being an issue? Of course,... looking sideways will create a problem always.
@espnmk
@espnmk 4 ай бұрын
Pretty Cool Tiffany thanks for Sharing, definitely will be playing around with this. Your such a wealth of knowledge.
@Nitin-wo5xp
@Nitin-wo5xp 4 ай бұрын
Keep going 🎉
@TiffInTech
@TiffInTech 4 ай бұрын
Thank you!!
@pandipatipavan3804
@pandipatipavan3804 4 ай бұрын
​@@TiffInTechPlease do provide the code files and the links in the description as soon as possible for free 🙏 thank you so much ❤️ All the Best 👍
@UberGeek
@UberGeek 4 ай бұрын
Cool idea, but it is clear the program is detecting the "white" from the lettering on the coffee mug instead of your teeth, as you have explained. Especially since you are NOT opening your mouth before you lift the mug to... your mouth.😜 How does the code distinguish the difference when you are talking? A better solution might be to have the code identify the "Mug raising" to your mouth. ☕
@HeyItsJonSchwartz
@HeyItsJonSchwartz 4 ай бұрын
code review (and maybe video review) suggestion: If you are trying to explain and/or remember what an acronym means and it's in code you are unfamiliar with, write it out. mouth_roi should be mouth_region_of_interest. It may be tricky to put up on screen, but we're not paying by the character in python, so it's better to make it dead stupid to remember what it meant later. Side effect is you don't need to waste video time explaining that to us. Also, github link?
@TiffInTech
@TiffInTech 4 ай бұрын
Thanks for sharing!!
@HeyItsJonSchwartz
@HeyItsJonSchwartz 4 ай бұрын
@@TiffInTech I just reread what I wrote and I hope you take that comment the way I intended which is to say trying to be helpful but happy to have you tell me to kick rocks if you disagree. I really liked the video and I hope you share more like this.
@Flat0Line1
@Flat0Line1 4 ай бұрын
Yep, it's very good approach in general - at work especially)
@moisesespiritosanto2195
@moisesespiritosanto2195 4 ай бұрын
Hi, I'm from São Paulo! Yeah excellent! ABRAÇO FORTE DE URSO!
@TiffInTech
@TiffInTech 4 ай бұрын
Yay!! Hope you have an amazing weekend!
@moisesespiritosanto2195
@moisesespiritosanto2195 4 ай бұрын
​@@TiffInTechHey, you too!!!
@oooooohmylisa
@oooooohmylisa 24 күн бұрын
你很好看,好喜欢你哈哈哈,视频不错
@aresaurelian
@aresaurelian 4 ай бұрын
Well done, Tiff! We love when you explore the unknown (to most of us) of AI. This is so exciting and interesting. What a fantastical world we are in. And together is more fun.
@Sumandass_1
@Sumandass_1 4 ай бұрын
Lots of love from India
@TiffInTech
@TiffInTech 4 ай бұрын
Wishing you all the best!
@PointEndClick
@PointEndClick 4 ай бұрын
This video is awesome.
@TiffInTech
@TiffInTech 4 ай бұрын
Thank you!💗
@TheMetalMag
@TheMetalMag 4 ай бұрын
excellent thank you! you give different view on creating project
@Jibril_Abdulkadir
@Jibril_Abdulkadir 4 ай бұрын
This is why I code to do funny projects 😂😂
@TiffInTech
@TiffInTech 4 ай бұрын
Hahah totally
@rudyvaldez
@rudyvaldez 4 ай бұрын
Bad ass!
@TiffInTech
@TiffInTech 4 ай бұрын
Cheers!!
@othmanaljbory3649
@othmanaljbory3649 4 ай бұрын
I'm love you thank you so much
@TiffInTech
@TiffInTech 4 ай бұрын
Cheers!
@DavidTheWiseOne
@DavidTheWiseOne 4 ай бұрын
@@TiffInTech Lucky lucky chair 🪑 😍😍
@G_a_n_d_u
@G_a_n_d_u 4 ай бұрын
oye oye balle balle
@AvinashSingh-vj3rk
@AvinashSingh-vj3rk 4 ай бұрын
@TiffInTech
@TiffInTech 4 ай бұрын
💗💗💗
@WilsonMar1
@WilsonMar1 4 ай бұрын
You have a github repo of code for what you're showing?
@thgorobets
@thgorobets 4 ай бұрын
Oh, well, I need a cup of Coffee right now!
@chukwuemekailozor9105
@chukwuemekailozor9105 4 ай бұрын
Did the code confirm that it was coffee in the cup? What if you were drinking whiskey?
@DrJ_Endoking93
@DrJ_Endoking93 4 ай бұрын
Lovryou babe❤
@chiluone
@chiluone 4 ай бұрын
Nice Background Music :D :D
@Ilovecookingtheinternetbums
@Ilovecookingtheinternetbums 4 ай бұрын
Hi Tiffany, please what exactly do you? What's a day life in Tiffany's like?🤣. I think ppl would be very interested. Thanks.
@TiffInTech
@TiffInTech 4 ай бұрын
Forsure!!
@davidmckee533
@davidmckee533 4 ай бұрын
Baddd tiff tooo much coffee!!! the next level should be a warning you have entered "kidney stone level". something to that effect. Thanks Tiff you are great
@TiffInTech
@TiffInTech 4 ай бұрын
Haha! Promise it’s not actually that much 🫣😆 thank you!!
@LinuxForLife
@LinuxForLife 4 ай бұрын
I think you are wrong when trying to detect your "open mouth"... 😉 I think it will be more accurate to focus on the cup (of coffee) detection.
@MyExRebirth
@MyExRebirth 4 ай бұрын
If you need AI vision to control and remind you of your cofee drinking habit, you might wanna use a catheter during work as well
@kriscatz2298
@kriscatz2298 4 ай бұрын
Wondering if it is possible to make a mobile app that does this? 🤔
@Civernet00
@Civernet00 4 ай бұрын
I confirmed she's pretty good
@B_knows_A_R_D-xh5lo
@B_knows_A_R_D-xh5lo 4 ай бұрын
try hot chocolate! 🎉❤😊
@TiffInTech
@TiffInTech 4 ай бұрын
Yessss! I love chocolate so I should
@steveheyden9219
@steveheyden9219 4 ай бұрын
How many cups at a time?
@TiffInTech
@TiffInTech 4 ай бұрын
always too many cups!!!
@aryansahare1145
@aryansahare1145 3 ай бұрын
I usually count myself
@MTMixTV
@MTMixTV 4 ай бұрын
From India 🇮🇳🪷
@TiffInTech
@TiffInTech 4 ай бұрын
Wishing you a great day!!
@MTMixTV
@MTMixTV 4 ай бұрын
@@TiffInTech Here It's Night 😂
@JustinMacri007
@JustinMacri007 4 ай бұрын
I wish tiff was my friend
@ronnie-codes
@ronnie-codes 4 ай бұрын
I envy how healthy you look.
@JimDooley
@JimDooley 4 ай бұрын
haha. say "th" 10 times fast.
@TiffInTech
@TiffInTech 4 ай бұрын
😆😆
@romulomanrique6765
@romulomanrique6765 4 ай бұрын
eres demasiado hermosa
@kennethshupe8946
@kennethshupe8946 4 ай бұрын
I want to see this combined with Pavlok, that way instead of a notification, you would get shocked. Perhaps if someone is trying to quit vaping.
@TiffInTech
@TiffInTech 4 ай бұрын
Haha ohhhh!! I mean maybe that would help people
@KonstantinKovalenko-d3b
@KonstantinKovalenko-d3b 4 ай бұрын
How often I drink coffee🤦‍♂can't you count?
@mrbane2000
@mrbane2000 3 ай бұрын
This video made me little annoyed, because its not working well. And i'm not even Python i ditched it in 2016 when i started learning it because i though it will be popular. But i found my self fixing indentions when copying code annoying. Although there is Bython now. So i made my own version how i think this code would work better....
@mrbane2000
@mrbane2000 3 ай бұрын
Just put face detection also and if face is gone and circle is near face condition to improve it. Quite easy, every cup has a circle... import cv2 import time as time import numpy as np cap=cv2.VideoCapture(0) inicialCircles=0; sip = 0 inicialTime=int(time.time()) timeSinceSip=0 while True: _,frame=cap.read() actualTime=int(time.time()) timeSinceSip=actualTime-inicialTime image = frame.copy() gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(gray, cv2.HOUGH_GRADIENT, 1.2, 100) if circles is not None: circles = np.round(circles[0, :]).astype("int") for (x, y, r) in circles: if r
@tony9146
@tony9146 4 ай бұрын
😂 going full CCP on yourself This is great though. You could supplement this with a scale that measures the weight of the cup so that you can measure rate of consumption, and you could even place a QR code or barcode on your cup.
@shaun.august
@shaun.august 4 ай бұрын
Python is great for automating things and managing data, but you don't need Python or computer vision just to figure out how many times you drink coffee. We can drink coffee up to 5 times at most, no need to count it. That doesn’t make sense. computer vision should be used for things like tracking how many times you toss and turn at night while sleeping. that makes a complete sense.
@zainabbas6167
@zainabbas6167 4 ай бұрын
tiff the best in tech 🫶 Thanks for sharing these kind of videos 😊
@TiffInTech
@TiffInTech 4 ай бұрын
Thank you!! That means a lot!
@zainabbas6167
@zainabbas6167 4 ай бұрын
​@@TiffInTech you are welcome 🫶
Why Computer Vision Is a Hard Problem for AI
8:39
Quanta Magazine
Рет қаралды 135 М.
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 5 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Algorithms Explained for Beginners - How I Wish I Was Taught
17:38
Internet Made Coder
Рет қаралды 360 М.
Automate Your Life Easily With THESE 3 Python Tips!
11:29
Tiff In Tech
Рет қаралды 29 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 205 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 586 М.
Want to Build Apps in MINUTES?  Coding with Cursor AI and Python
13:57
This Single Rule Underpins All Of Physics
32:44
Veritasium
Рет қаралды 3,3 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 197 М.
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 5 МЛН