Skip to main content

Posts

Showing posts from March, 2021

A first approach to IoT, connecting my 3D printer to the internet

My first approach to the IoT, connecting my 3D printer to the internet IoT is one of those fancy words that people like to talk about in conferences and in TedTalks without (apparently) having too much idea of what it is all about. Set up to manage the 3D printer through the internet This one is going to be a short entry where I don't go through code or anything, just wanted to talk about a bit about how I connected my 3D printer to the internet.  I've been in the 3D printing thing for a while now, about a year and I haven't stopped printing ever since I bought my Ender 3. Fortunately enough, I live in a big house where my room/working place is on the fourth floor and my 3D printing is on the first one. You might be thinking as well: "OK Pablo but where do you want to bring us? Go to the point" Well, as you might have noticed there are two floors in betw

Web Scraping to feed @CastroTiempo Twitter Bot

Web Scraping to feed @CastroTiempo Twitter Bot A program that crawls a webpage, grabs some weather information of my city, and then feeds a Twitter bot (@CastroTiempo) I also coded by myself. Tweets by CastroTiempo Follow @CastroTiempo This week's entry is dedicated to something I learnt some weeks ago and that I wanted to implement in any of my projects but that until now I didn't have any idea worth spending my time on (not saying that this one was). It will be tweeting for some time, I have not decided how much time yet, I have a "computer" dedicated to run the code forever, so it's basically until: I get tired of it or Don't get much feedback or  There is an error in the code that makes it stop (this one will likely happen the first one) or I pull the electric cord and the "computer" switches off (I guess this is the second most probable one) or * Follow @CastroTiempo So I

Buffing the unwrapper with a face recognition algorithm

Buffing the unwrapper with a face recognition algorithm Boosting my previous code with Machine Learning in order to obtain a more precise result of the unwrapped face, the result is not necessarily better tho. In fact, as you can see the result is quite disturbing. Just a quick note before continuing, I am learning all of this with YouTube, reading the OpenCV docs which btw are really explicative and simple to understand, and googling stuff in StackOverflow that basically someone has asked before. I will add some resources at the end of the entry. *This is a continuation of what I explained in my previous entry, so if you want a bit of background, go check that one out* (https://achefethings.blogspot.com/2021/03/unwrapping-someones-face-to-make.html) So now what I did, I was watching a YouTube video and saw that you can do face recognition, among many other features such as car plates, eyes, hands, and many other cool things, so my first idea was to do some kind of alarm that would rec

Unwrapping someone's face to make wrapping paper

Unwrapping someone's face to make wrapping paper My first step image processing with OpenCV for Python So this last weekend I was pretty bored at home with nothing to do and no one to climb with. During the last days, I made a Twitter bot and I had quite a lot of fun doing it. After some research of the most useful or popular libraries in Python I came across OpenCV, which seems to be a very powerful library for image processing and many other much more complex things. I decided to give it a try and remember watching this William Osman's video. He explained more or less the process to create his code and even made his code public in his blog, well he was using a library called PIL but I wanted to learn to use OpenCV so it served for nothing. So well here is my code and a brief explanation of what it does. Be gentle, I am a newbie, I do this to amuse myself as I find it quite entertaining and educative. import cv2 as cv import numpy as np video = cv.VideoCapture( 'C:/Users/U