Implement loss functions inside Keras Models
Implement loss functions inside Keras Models
I would like to show you, how I implement my loss functions inside my Keras Models which gives you more flexibility.
(more…)
View On WordPress

roma★
hello vonnie
occasionally subtle
Cosimo Galluzzi
NASA
One Nice Bug Per Day
taylor price
Three Goblin Art
d e v o n
Game of Thrones Daily
noise dept.

★
Keni

Discoholic 🪩

PR's Tumblrdome
Show & Tell

Andulka

#extradirty

祝日 / Permanent Vacation
Misplaced Lens Cap
seen from Finland
seen from United States

seen from United States
seen from United States

seen from United States
seen from Italy
seen from Canada

seen from United Kingdom

seen from United States
seen from Argentina

seen from Hungary
seen from Australia

seen from South Africa
seen from Spain
seen from United States

seen from Indonesia

seen from Germany
seen from United States

seen from Malaysia

seen from France
@gawesomebe
Implement loss functions inside Keras Models
Implement loss functions inside Keras Models
I would like to show you, how I implement my loss functions inside my Keras Models which gives you more flexibility.
(more…)
View On WordPress

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
A Tutorial about Tutorials (case study?)
A Tutorial about Tutorials (case study?) #tutorial #machinelearning #datascience #python #deeplearning
I just realized how misleading tutorials can be and I had to write down my thoughts on the topic.
(more…)
View On WordPress
YouTube Live Streaming with a Raspberry Pi and a Webcam
YouTube Live Streaming with a Raspberry Pi and a Webcam
A puppy is responsible for writing this tutorial! (more…)
View On WordPress
My First Month as a Junior Data-Scientist
My first month as a junior Data-Scientist. #datascience #work #machinelearning #data
In the middle of the summer, just surfed the web and found an interesting startup company. “Neuromarketing” was the word which grabbed my attention. Just for fun, I applied for the Data-Scientist job (because why not?). After 3 interviews (and tests) I worked my first month with them. 🙂 (more…)
View On WordPress
Python + Flask + Computer Vision + Firebase +Raspberry Pi + a pinch of HTML & CSS = Home Security System 8-)
I always wanted to create a system which can exchange an expensive security system with monthly costs and I always wanted to use my Raspberry Pi for some useful tasks. This is why I ordered the cheapest webcamera from Ebay and started my Home Security Project.
About the project:
What I wanted to achieve is a simple security system which I can turn on and off from my phone, my laptop and I can authenticate myself so nobody can shut down the system while I am away from home. If the system detects an intruder than it can take photos and notify me. And a really important thing: it not just takes photos, but it uploads the photos to a server so if the intruder would notice the camera and destroys the Pi than I still would have his/her face.
Modules I use:
Flask – As I said I wanted something simple where I can login than start or stop the system. I think the best way to do this is a html site, and Flask is a simple choice (on this level…)
Firebase – I just love it….Super easy authentication and I have a storage where I can upload my photos
OpenCV – For the computer vision tasks. We detect the motion with this library
So these are the main libraries I use for this cool project
Computer Vision
This is not magic! We can say that the theory behind it is pretty simple.
Motion detection is what I use to identify if there is somebody in my home or not. I know that there are curtains which can move, and maybe pets, but a pet is (almost) always smaller than a human so we can create an algorithm which can only detect humans and big changes on the webcam feed frames. An interesting approach would be with Deep Learning but because I did not have a big dataset I can rely only on the Classic Image Processing methods.
When the detection starts, it stores the first image that the camera captures. Than I convert it to a grayscale picture, apply Histogram Equalization and Gaussian Blur. Than the camera always captures new images and I create a difference image between the current image and the stored one. Of course I apply the same gaussian blur and grayscale conversion to the new images too.
Here you can see the steps in an example:
gray -> equalized histogram -> blurred
previously stored image
difference image -> binary image
Histogram equalization – This is useful if the image is too dark or too bright
Gaussian blur – I use it for noise reduction
Grayscale – It is easier and faster to work with 2D arrays and not 3D arrays
On the difference images I can find the contours and I can choose the largest one. With a very high probability that will be our unwanted human being. For that contour we can calculate the area and we can set a threshold value. So below that value it won’t be counted as a detection. That is only a “false”/unwanted detection. BUT….Above that value we can snap a picture and upload it to our Firebase project and notify ourselves because we just caught an intruder.
After we detected something we just store that frame, so we will have a new “background” image and we can detect new changes.
What happens if the night comes and the the light conditions change? It will detect as a change so as a movement in the pictures. That not good! :( I have excellent news! We can eliminate these kind of false alarms with refreshing the stored image. For example we can refresh it in every 5 seconds so only sudden light changes are bad for the system.
We can play with the contour area threshold value, Gaussian blur kernel size and the refresh time to create our reliable system which can eliminate the false alarms and noises and detect the real danger.
User interaction with the System
I don’t want to write a lot about the Flask + HTML + CSS part because I am a computer vision guy and I am not a big Flask master. :D
I made a simple homepage where I can see the current status of my detector and I can go to the login page where I can start/stop the whole system.
The login page is just a html form. With the data we provide on the form:
Authenticate ourselves with the Firebase project authentication – if this was successful:
Set the minimum detection area – This is the contour threshold I wrote about in the previous section
Choose to start or stop the detection
This Flask application runs on the Raspberry Pi, so if we would like to see these pages we have to be connected to our local network and we have to know the IP of our Pi. Than if we navigate to: <rapberry_pi_ip_address>:5000 (because this app runs on port 5000) we can see the homepage. (Of course you can configure this as you would like to.) If you would like ,than you can make it public and buy a domain name so you can reach it where there is internet. Or just use ngrok. Infinite possibilities. :D
I thought that a page like this is user friendly so anyone in the family can use it…even grandparents.
Code
You can find the github repo for this project here. If you have any suggestions, I would like to hear it!
Stay tuned for my the next cool project! :)
Home Security System with Computer Vision and Raspberry Pi #RaspberryPi #computervision Python + Flask + Computer Vision + Firebase +Raspberry Pi + a pinch of HTML & CSS =

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Why I use Python
This is why I use #Python
def why(language): if language.lower() == "python": print("Read Below...") why("Python") (more…)
View On WordPress
Deep Learning on Heroku tutorial (Iris classification)
Deep Learning on #Heroku (Iris Classification) Tutorial #DeepLearning #MachineLearning
It would be nice if we could use our trained models and create applications with it, don’t you think? I have good news: we can, and it is really easy, fast and free! ;) (more…)
View On WordPress
I.Graduated.
Dear Readers, I can proudly say that I graduated from the Budapest University of Technology and Economics! :) (more…)
View On WordPress
Working as a freelancer (Face Similarity project)
Working as a #freelancer. #Upwork #ComputerVision #ImageProcessing #OpenCV
Recently I’ve updated my LinkedIn profile with a new experience: Freelance work. (more…)
View On WordPress
Snake game controlled in space
#Snakegame controlled in space with #ultrasound. #BME laboratory short project
I’ve never thought that ultrasound is that fun to play with! (more…)
View On WordPress

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
OCR Library Comparison
Check out my comparison of 3 the #OCR libraries: #Tesseract #AspriseOCR #GoogleCloudVision
I tried 3 OCR libraries for Java. Guess which one wins. Tesseract, Asprise, Google Could Vision. (more…)
View On WordPress
Straighten Image with OpenCV
Straighten image with #OpenCV. #ImageProcessing #ComputerVision #OCR
Hy! I thought I’ll write a little tutorial about how we can straighten an image. This is very important because (for example) we can do more accurate OCR after the image is straight and not rotated. (more…)
View On WordPress
Working as an Intern
Working as an Intern
Hey! The magic happened…I started working at the beginning of the summer as an Intern. If you’d like to see where, here is a link to my LinkedIn profile. At my university we have to do 240 hours of work before we can get our degree. So as we did our exams we looked for a job too because we have to find the place where we would like to complete that 240 hours of work. I submitted my CV to big…
View On WordPress
Retro TRON clone in C
Retro TRON clone in C
Hello my friends! So it’s been a while… But my exams are over fortunately and I can concentrate on my side projects. Btw, I made a LinkedIn account, you can find me HERE. (more…)
View On WordPress
Me on GitHub
Hi readers! I just wanted to make a quick note that I made a GitHub account. Fortunately I found out that there is a GitHub Education Pack and I can apply to it because I’m a student at Budapest University of Technology and Economics. :) So you can follow me there too not just on Bitbucket. Here is my GitHub with all my public projects and soon to be public ones. ;)
View On WordPress

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Image Analysis - Finger detection
Finger detection with #morphology and #Matlab. #imageprocessing
I wanted to create a program which can detect the fingers on a photo. So I made one. This was my homework for my Industrial image processing class in University. This was the rock,paper,scissors problem because my Matlab app can find the fingers on the image. So it’s just a playful name for an interesting problem. (more…)
View On WordPress
Image Analysis - Coin Counting
Image Analysis – Coin Counting
Yesterday I wrote about my big discovery that how amazing is Matlab and that little project I’ve made with it. Late night I couldn’t wait for today, so I started a 2nd project called…Coin Counting. (more…)
View On WordPress