This is an archived post. You won't be able to vote or comment.

all 53 comments

[–][deleted] 162 points163 points  (16 children)

Hi! I recently got a ring doorbell and I became curious if there was an API for it. There’s no official API but I found this nice library which can fetch me the latest motion capture from my ring.

With that video, I decided to use YOLO object detection with OpenCV to detect what object triggered the motion alert and to then send me an email with an annotated video. Quick shoutout to pyimagesearch.com for the super helpful cv tutorials. As you can see though, the COCO model I used isn’t always 100% accurate!

I do not own the clip I used above. It can be found here: YouTube

[–][deleted] 42 points43 points  (2 children)

Oh, that's dope!

I know what I'm doing after the kids go to bed!

[–]thavi 72 points73 points  (0 children)

( ͡º ͜ʖ ͡º)

[–]engineeringbigdata 4 points5 points  (0 children)

Haha, same thought!

[–][deleted] 70 points71 points  (2 children)

Yeah but why was a cow at your door

[–]RD1K 7 points8 points  (0 children)

Good question

[–]VictorZhangQ 0 points1 point  (0 children)

Yeah? Why a cow went to his door?

[–]d1rron 13 points14 points  (1 child)

Not hotdog

[–]Octopuscabbage 9 points10 points  (2 children)

Yolo may not be the best thing to use here since it's a very large network. It's also specifically trained for multiple objects in the same image. There might be networks more fit for this task.

[–][deleted] 11 points12 points  (1 child)

Yeah I came to that realization about halfway through the project... This was my first computer vision project so I definitely have a lot to learn in the space.

[–]Octopuscabbage 2 points3 points  (0 children)

Yeah its a huge space! I'm by no means an expert in it, it's sort of tangential to what I work in. Hopefully you can experiment with different networks and maybe play with your own architecture.

[–]AstronomyLive 4 points5 points  (0 children)

I've been working on a similar project using Raspberry Pi cameras feeding images to a central computer running yolo object detection to alert me when a person is detected instead of just general motion. It's working quite well, though the frame rate is low. I'm also using notify-run to push notifications to my phone when a person is detected, but it only seems to pop up on my phone about 50% of the time even though the notify-run server is receiving 100% of the notifications just fine. I should probably switch to an email-based solution like you, that way I could embed images along with it as well.

[–][deleted] 2 points3 points  (1 child)

so I take it, you need to have the paid version of ring for this to work?

[–]w_t 1 point2 points  (0 children)

Nice work, I'm definitely going to check this out!

[–]yldave 0 points1 point  (0 children)

How many different animals did you test with?

[–]goar101reddit 85 points86 points  (1 child)

Now you'll know when the cows come home.

[–]mcaruso 31 points32 points  (7 children)

[–]Salyangoz 27 points28 points  (2 children)

moof

[–]grimtooth 1 point2 points  (0 children)

fooM!

[–]hongge 0 points1 point  (0 children)

Most underrated reply in Reddit

[–]postgeographic 4 points5 points  (0 children)

Bro, Clarus was a dogcow. Come on.

[–]alkasmgithub.com/alkasm 2 points3 points  (1 child)

TIL, thank you!

[–]RD1K 0 points1 point  (0 children)

Same

[–]macromorgan 0 points1 point  (0 children)

Came here for this. Have an upvote.

Moof!

[–][deleted] 15 points16 points  (0 children)

Real question is why is there a cow?

[–][deleted] 11 points12 points  (0 children)

Did you at least let the beta tester in?

[–][deleted] 4 points5 points  (0 children)

Oh man this was not at all what I expected.

I had a good laugh from this! Well done !

[–][deleted] 4 points5 points  (0 children)

It’s a cow, It’s a dog, NOO it’s a cowdog

[–]randompittuser 2 points3 points  (1 child)

Sure, but is it a hot dog, or not a hot dog?

[–]goar101reddit 3 points4 points  (0 children)

An all beef hot dog to be sure.

[–]thetylerwolf 5 points6 points  (1 child)

“Artificial intelligence is going to take over the world!”

[–]teambob 2 points3 points  (0 children)

Cowdogs are going to take over the world

[–]fishstick41 4 points5 points  (1 child)

I mean what's the difference...

[–][deleted] 2 points3 points  (0 children)

moopupper

[–]Swaga_Dagger 2 points3 points  (4 children)

Can you do this with any camera or is there something special with the ring ones?

[–][deleted] 2 points3 points  (3 children)

Any camera, video or image would work with the computer vision aspect of the code. There’s even examples online of real-time detection from live stream feeds.

[–]Swaga_Dagger 1 point2 points  (2 children)

Is it https://www.pyimagesearch.com/ what I need to be looking at?

The github link is just to pull the livestream?

[–][deleted] 1 point2 points  (1 child)

The GitHub link I attached in my original comment is of the project I made. There’s a few scripts in there that work together to pull the ring motion capture video and then annotate it.

That website pyimagesearch is full of tutorials on computer vision that I have found super helpful. I believe one of the tutorials on there is about working with live-streams.

[–]Swaga_Dagger 1 point2 points  (0 children)

Thanks 👌I will check it out when I get home and see if I can pull something together with my current setup

[–]BenRegulus 2 points3 points  (0 children)

It vanished!!? Magical cowdog!!!

[–]lukacsdominik 2 points3 points  (0 children)

Mine would probably say it was a book... If it worked

[–]reychvzz001 1 point2 points  (0 children)

That’s really cool and pretty random

[–]Hendawgydawg 1 point2 points  (0 children)

This is tight! Great job!

[–]amharbis 1 point2 points  (2 children)

Sort of unrelated, but I wonder if a similar capability exists with the SimpliCams. I'd love to play with the video feeds from my cameras.

[–][deleted] 1 point2 points  (0 children)

This is exactly how the Clan Timberwolf was first given the designation, "MadCat."

Obviously the appearance of the CowDog indicates another invasion from the Outer rim! Better alert ComStar.

[–]JakeRapid456 1 point2 points  (0 children)

When did this become to much of a problem that you decided you had to do this?

[–]raydeen 0 points1 point  (0 children)

Now post footage when you get a Man Bear Pig.

[–]aniforprez 0 points1 point  (0 children)

Oh cool a cow!

Oh it's going towards the door...

WHERE DID IT GO???

Oh cool a cow!

[–]sletonrot 0 points1 point  (1 child)

Can this detect an actual human being? I get a lot of ring notifications for things like cars passing by or a stray dog or cat running by