[PYTHON] I made a peeping prevention product for telework.

サムネ.jpg I think that the recent coronavirus has forced us to carry out teleworking, but there are many people who want to do teleworking but cannot guarantee information leakage and the company does not give permission for teleworking. I'm wondering if there is one.

This time, I thought that I could contribute to such issues as much as possible, so I created a demo product focusing on "preventing PC peeping" even in the event of information leakage.

Overview

When someone other than yourself tries to look into your PC, a black screen is displayed on the entire screen to hide the information. It also records the person who tried to look into it as an image.

Source code

We decided to publish the source in a form that anyone can see, hoping that we will be released from the threat of coronavirus as soon as possible. https://github.com/kimuson/PeepBlocker

Demo demo.gif

Recommended environment

It has been confirmed to work below, Windows should probably work. .. .. ・ Mac OS Catalina ・ Python 3.6.5

how to use

Save the source to any location.

$ git clone https://github.com/kimuson/PeepBlocker.git

Please install the module required for execution.

$ cd PeepBlocker
$ pip install -r requirements.txt

Please run the script

$ python PeepBlocker.py

Postscript

The language is python. Image recognition uses OpenCV. Also, I didn't have time to draw the GUI this time, so I drew it easily with tkinter.

As for the accuracy of image recognition, it reacts rather severely. In rare cases, when used in a dim place, an alert may occur even if you are alone.

The accuracy is relatively good in bright places. Also, the case where there are two people but they are not detected was not as far as I tested. It rarely happens that you are detected even though you are alone, but I personally think that you haven't done anything about the strict detection level.

I sincerely hope that this coronavirus will bring the situation to an end as soon as possible.

Recommended Posts

I made a peeping prevention product for telework.
I made a dash docset for Holoviews
I made a library for actuarial science
I made a python dictionary file for Neocomplete
〇✕ I made a game
I made a spare2 cheaper algorithm for uWSGI
I made a downloader for word distributed expression
I made a user management tool for Let's Chat
I made a window for Log output with Tkinter
I made a cleaning tool for Google Container Registry
I made a VM that runs OpenCV for Python
[Python] I made a classifier for irises [Machine learning]
I made a python text
Made a command for FizzBuzz
I made a discord bot
[VSCode] I made a user snippet for Python print f-string
I made a resource monitor for Raspberry Pi with a spreadsheet
I made a learning kit for word2vec / doc2vec / GloVe / fastText
I made a face diagnosis AI for a female professional golfer ③
I made a C ++ learning site
I made a Line-bot using Python!
I made a CUI-based translation script (2)
I made a wikipedia gacha bot
I made a fortune with Python.
I made a CUI-based translation script
I made a daemon with Python
Python> I made a test code for my own external file
I made a client / server CLI tool for WebSocket (like Netcat for WebSocket)
I made a lot of files for RDP connection with Python
I made a scaffolding tool for the Python web framework Bottle
I made a Python wrapper library for docomo image recognition API.
I made a Docker container to use JUMAN ++, KNP, python (for pyKNP).
I made a new AWS S3 bucket
I made a payroll program in Python!
I touched "Orator" so I made a note
I made a character counter with Python
I made an alternative module for japandas.DataReader
Beginner: I made a launcher using dictionary
I created a visualization site for GDP (Gross Domestic Product) using DASH!
I made a conversation partner like Siri
I made a script to display emoji
I made a Hex map with Python
I made a life game with Numpy
I made a stamp generator with GAN
I made a browser automatic stamping tool.
After studying Python3, I made a Slackbot
I made a roguelike game with Python
I made a simple blackjack with Python
I made a configuration file with Python
I made a WEB application with Django
A textbook for beginners made by Python beginners
I made a neuron simulator with Python
[For beginners] I made a motion sensor with Raspberry Pi and notified LINE!
I made a stamp substitute bot with line
I made a competitive programming glossary with Python
I made a weather forecast bot-like with Python.
I made a GUI application with Python + PyQt5
I made a Twitter fujoshi blocker with Python ①
Procedure for creating a LineBot made with Python
I made a crazy thing called typed tuple
[Python] I made a Youtube Downloader with Tkinter.