 Awesome. Hello. Hi everyone. So I'm gonna give my talk on building a wearable camera just to manage expectations. This isn't like a product or startup or anything. This is just a Raspberry Pi strapped to my back. So a couple months ago I got a narrative clip, which I've wanted for a very long time but they're pretty pricey and things like that and basically what it is is just a clip that you wear on a shirt or something and every 30 seconds it takes a picture and it's a way of effectively life-logging your life. I took it on a very short holiday and it looked really nice. It was still like it gave me enough information to know that there's obviously like a lot of potential in doing something cool like this. However, every single picture was wonky, which was interesting. Also all my pictures were hidden behind this really badly designed web app that would like Ajaxi load things and I couldn't download all the images at the same time and stuff like that. So I thought well, there really isn't anything out there that kind of solves this problem. There's nothing that really... There's not really enough out there that solves this problem. And I was planning on getting another holiday and we were gonna do but I think it was like four countries in five days so I wanted to make sure I remembered as much as possible. So what I did is I started off thinking well, that kind of sucks because we've gone so far with computers. We surely must be able to solve a problem like this, especially because so many people have it effectively tried. So the Raspberry Pi is pretty awesome and it's really cheap and like all of us we have about ten of them sitting at home. And it also comes with a camera module, which works perfectly fine. It's all open source and yeah, it's great. So I thought well, what if I could get the same kind of experience that I had with the narrative clip but also fix the whole wonky issue and build it myself. So I thought well, what if we put it on the strap of a backpack? So that's exactly what I tried doing. So I got the Raspberry Pi with the camera module and I stabbed a hole in the lower chest part and I added the camera module there and then I just ran a strap all the way back up my shoulder and back into a backpack and then just clamped it there just to test things. And it effectively worked. It worked really well actually. So that's what it ended up looking like. So it's nice and discreet. It is just a raw like ugly electronics board sewed to a backpack. And it was amazingly like waterproof. It did its job. I managed to sew straight through it like twice and nothing happened. So so that's a thing. And at this stage I was like, okay, that's cool. So I've solved a problem and that's pretty awesome. But it was also pretty easy because I was just doing it in my spare time every now and then. So I thought, well, how can I fix this whole ugly issue of the fact the way the way the camera's work is you want to take a time lapse but 90% of those images are going to be pretty awful because you're doing either mundane stuff or you're jumping around You're moving too fast and you're not going to get the pictures that you want. I mean a great example was the narrative clip. So this is 11 30 on Tuesday. I was at work and it just took a time lapse of my bedroom like nothing happened at all. So I thought well the Raspberry Pi has a Raspberry Pi 3 has a Wi-Fi chip in it now and Wi-Fi chips you can use as AP mode. So access point mode. So what I did was I hosted a Wi-Fi network on the device and then it would show me the pictures that it was taking and then I just get made a really simple dumb like flashcap that did this for me and I can hit the little X button on my phone and that way I can delete images as I'm walking around on holiday. A nice part of this also was that I knew RTCs were a thing so real-time clocks and they're basically the little things inside the little battery thing inside computers I'm sure you guys know but I didn't know about the Raspberry Pi so the Raspberry Pi doesn't have an RTC which means it has no real concept of what time is. So what I did was I knew it'd be a problem so I had a server time which is what the Raspberry Pi thought the time was and then I had a JavaScript timestamp which was what my phone like generated and figured out and I thought as a holiday progress is I'll probably see those numbers very slightly but that wasn't the case at all. It was completely off. So at this stage I was kind of jumping around and I thought like what else can I do? So I thought well Google Maps has my location of where I go like all the time and I thought well if I could somehow fit it in with this project I could have a time-lapse video of me on holiday as well as the GPS coordinates of that as well and that would be really cool. And I have this thing lying around which is a fantastic piece of kit. I don't know why this isn't advertised. So it's a Linkit one. It's made by MediaTac. It's about 60 pounds and it's effectively Arduino Uno but it's got GPS, GSM, SD, everything. And Wi-Fi and Bluetooth. Yeah. And I taped it all together put it in a little carry case and thought alright I'll be great for going on holiday. At that point I had way too many things going on. So I had the web app, I had the hardware thing going on as well as the GPS stuff. And the issue with the GPS as well is it's either 100% absolutely perfect or just completely wrong and puts you nowhere. So that was a pretty hard thing to do. Especially when trying to figure out well do I use Python to take a picture and have it blocking code until it finds GPS and what happens if it doesn't find GPS in certain places. I wasn't really sure. So I ended up leaving the thing out because I thought I'm just building a universal box of nothing. I ended up just having the Raspberry Pi on its own with the camera module connected and that's it. No craziness. And this is the final result. So this is four days of us going around. It still has the same kind of numbers so it's still about 90% of the images are pretty awful like that on the floor and pictures of people's arms and things. So it's enough to actually remember so much. You can remember exactly what we did, where we ate, where we went and all that kind of stuff. So it was like definitely worth a shot. And it took a bunch of great pictures. Of course some were wonky, plenty of blood and things like that. I did look into doing some funky open CV stuff so there's like histogram equalization which is amazing. I didn't even know this stuff existed. I didn't bother putting this into the time lapse but it would definitely improve things. And before I play the video, YouTube said, hey, do you want to optimize it? So I thought, yeah, sure. And this is what I ended up with. And that's about it. Thanks. I can take questions. Do you have any? He says, do you want to optimize the lighting? Who was that? Oh, do I want to optimize the lighting using the histogram stuff? Yeah. I would have. The only thing is also the histogram equalization is more for black and white images. So it's fantastic for that. But when you have color, it gets a bit ugly. So you have to do all kinds of different things of trying to figure out is a color black and white enough for me to try and optimize and things like that. Oh, this thing. That's YouTube. So that's YouTube saying, hey, let's optimize your video because it's a time lapse. And yeah, it's really freaky. Thanks. What was the resolution of the images and like what memory card did you use and how much space did it take up over the time? It was a surprisingly small amount. I think it was only a couple of hundred megabytes because of the, yeah. It was just a couple of hundred megabytes because I use the old camera module. About two weeks after I went on holiday, a new camera module came out and it's amazing. It's 1080p. It does video by default. So I'm going to definitely rebuild it into doing some sort of video time lapse of some sort. Yeah, it's just more of a suggestion. So for about under a tenor, you can get these GPS modules that are serial and that would give you time and GPS. So you could just hack it straight into the... Yeah, I mean, actually, I didn't actually explain the main problem I had with the RTC. So the issue with the RTC is because it didn't understand what time it was, when it would turn off, then the next morning when I turn it back on, it will think that it was a morning of the day before, which meant it would start overwriting images from the day before that because I named all the images, image one, image two, image three, so it thought it was a fine. So the way I fixed that is by running around internet cafes for the whole holiday, which was interesting. Yeah. Okay, here we go. Hi, thanks for the talk. Did you at all look into live streaming from the Raspberry Pi, the camera? I could have. I'm not sure how you would do that because you'd need a pretty decent internet connection as well, especially if you're traveling. I mean, the purpose of this was to be traveling because I think having like a wearable camera day to day, it's pretty repetitive and mundane, but if you're going on holiday, it's definitely worth checking out. So I haven't actually looked into live streaming at all. I'm not sure how you do that. What did airport security make a backpack with wires running from it? I dismantled it into several different pieces and I have a camera bag, so I put the Raspberry Pi in there and it was fine. I mean, the only iffy thing was just having a strap that was sewed into a backpack going around it and no one seemed to care. So that was fine. I also shaved the day before. What size of battery were you carrying? It was nothing fancy, just a regular anchor power charger. I think it was like 1600 milliamps, just perfectly standard. And it lasted about two days, but I was charging it overnight anyway, so there was no issue. Anything else? There's one at the back. Quick question. Did any of your friends have like privacy concerns or were they all... I don't know. I haven't asked them yet. I'm pretty sure it's all unlisted. I can't remember. Hello. How the GPS worked out? What was your plan for mapping out your coordinates and syncing that with what you produce here? I was hoping to have a very long vertical thing where... I wasn't sure because obviously it didn't happen, but as a minimum thing I did get working was get the Raspberry Pi to take a picture and then in the ex of data to save the location. And that was good enough because that's future me's problem to figure out what to do with it. But what I was hoping to do is maybe one of those long timelines. So as you scroll down, you could see yourself moving around and maybe cluster on different places as well. But it would be like a fantastic way of remembering a holiday, especially because I haven't done this much of holiday in terms of doing four countries in five days and it all becomes one big blur, but going back to this, you can kind of remember every single moment, which is like personally really... I'm really personally surprised it works this way. The question was what countries? Budapest, Vienna... I was going to say Budapest, Slovakia, Vienna. Those four countries. It's in the Google Maps thing somewhere. There's a picture somewhere. Oh, wait. There we are. Those places. So Prague, Vienna, Slovakia, Budapest. Cool. Anything else? Are you considering labeling the pictures at all or the video so it could say the precise place where it was or which building it was or something? That's exactly what I was looking to do with GPS. So I could have used GPS and then it wouldn't be too hard to kind of cluster on where was I in one location for half an hour and the man you need to go on Google, as in use the GPS, go on Google Maps and say, well, I was at that restaurant and exactly where I went. And that would have been fantastic, but obviously I didn't get around to doing that. Okay. Right. Thank you very much. Awesome. Thanks.