Coder Social home page Coder Social logo

textstream's Introduction

TextStream

Overview

TextStream is a project designed to encode textual data into a visual representation within a video file and decode it back to its original form. This project aims to demonstrate a method of embedding text data visually into a video stream using pixel blocks.

Features

  • Text-to-Video Encoding: Convert text data into a visual representation embedded in a video file.
  • Video-to-Text Decoding: Extract text data from the encoded video back to its original form.
  • Visual Representation: Binary data represented through pixel block patterns.

Installation

Requirements

  • Python
  • OpenCV library
  • Numpy

Setup Instructions

  1. Clone this repository.
  2. Install the required dependencies using pip install -r requirements.txt.

Encoding Text into Video

To encode text into a video:

  1. Place the text in the input/input_text or replace txt doc with same directory.
  2. Run the encoding script: python encode.py
  3. you will find encoded video in output/decoded_video.mp4 directory.

Decoding Video to Text

To decode a video back to text:

  1. Place the video file in the input_video/encoded_video.mp4 directory, replace with same name or change in code.
  2. Run the decoding script: python decode.py input_video.mp4

Example

Provide a brief example demonstrating the encoding and decoding process using a sample text file and video. Screenshot 2023-11-19 at 1 53 06 PM

File Structure

  • input/input_text.txt
  • input_video/encoded_video.mp4
  • output/decoded_text.txt
  • encode.py
  • decode.py
  • README.md

Credits

Acknowledge any external libraries, resources, or inspirations used in the project.

Contributing

Specify guidelines for contributors and how they can contribute to the project.

License

This project is licensed under the MIT License.

textstream's People

Contributors

scopophobic avatar

Watchers

 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.