Coder Social home page Coder Social logo

lebyanelm / mf_code Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.02 MB

A Morse-Code message generator. The message will then be written on an input image. This can then be decoded (manually, digital decoding is under development). This is the original source code for the Facecode.io MF generator.

License: Apache License 2.0

mf_code's Introduction

MFCode (Morse Facecode) - python-mfcode

Created and Designed by @lebyanelm Written in pure Python.

Uses morse and binary language to encode string messages onto an image file, similar to QR Codes but with morse code.

This project is intended to be used in the Facecode software base, but has been released as open source software under the MIT License, meaning it can be used by anyone to generate MFCodes.

Although the idea of generating MFCodes to be scanned to find a certain user biography has been patented by Nextify Technologies (PTY) LTD it is allowed to generate your own MFCodes.

Installation

Software source code has been released here in GitHub and PyPi.org. So you can clone the repository or install this into your own project with pip, pipenv or any python package manager tool you use.

Using PIP

pip install python-mfcode

Using PIPENV

pipenv install python-mfcode

Usage

Encoding

# Dependencies
import mfcode
import cv2

# The path of the image you want to write the MF encodings on
image_path = 'path/to/your-image.png'
string = 'string_to_encode'

# Encode the MF Code - Returns an array of Pixels of the encoded image
image = mfcode.encode(image_path=image_path, data=string)

# Show the encoded image
cv2.imshow('Encoded Image', image)

Decoding

# Dependencies
import mfcode

encoded_image_path = 'path/to/an_encoded_image.png'

# Decode the encoded image
data = mfcode.decode(encoded_image_path)
print(data) => 'string_encoded'

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading

License

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

mf_code's People

Watchers

James Cloos avatar Libby Lebyane avatar

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.