Git Product home page Git Product logo

gazo_ango's Introduction

画像暗号

開発環境

macOS HighSierra version:10.13.6 Python3.7.0 openCV 4.0.0.21 opencv-contrib-python 4.1.2.30 numpy 1.17.4 Pillow 6.2.1

[ 概要 ]

画像処理のお勉強も兼ねたプログラム。 動作は画像を切り貼りしている程度なので、ごく単純なアルゴリズムである。 目標としては暗号化したファイルのサイズが現状元のファイルの二倍なので、暗号化・復号化した画像データのサイズの縮小。 また、今回sharefileという暗号化したファイルの個数が二個であるが、可変数にもしてみたい。 最後にopenCVとPillowの偉大さに感謝した。

[ 使い方 ]

※動作させる際に環境によってはnumpyとopenCVとPillowのパッケージをインストールする必要がある。

暗号化の場合 暗号化したい画像を用意し、コマンドライン引数に指定し、実行。 $python3 image_encoder.py filename 出力される"share1.png", "share2.png"が暗号化された画像。

復号化の場合 復号化したい画像を二枚用意し、コマンドライン引数に指定し、実行。 $python3 image_encoder.py filename1 filename2 出力される"DecryptImage.png"が復号化された画像。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.