GithubHelp home page GithubHelp logo

image-processing's Introduction

Image Processing Web App

This project was bootstrapped with Create React App.

Below you will find information on how to perform common tasks.

Table of Contents

Intro

This web app combines various image processing techniques like filtering, image segmentation, convolution and point processing methods. The app is written in JavaScript and compiled using React and Redux.

Installation

To build and compile this web app NodeJS version 8 or later is required. NodeJS can be installed from here for all platforms.

After installation issue the following command in your terminal:

npm install -g serve

This will install a NodeJs module which can serve your app. Now, naviagate to the root directory of the project and with your terminal issue the command:

serve -s build

This will create a Node server and serve the web app on localhost. Navigate to http://localhost:5000 on your favourite web browser to see the web app in action.

Folder Structure

After creation and installing the dependencies the project should look like this:

image-processing/
    README.md
    node_modules/
    package.json
    build/
    public/
        index.html
        favicon.ico
        manifest.json
        images/
            coins.png
            sea.png
            sea2.png
    src/
        Functions/
        redux/
        ui/
        App.js
        index.js
        registerServiceWorker.js

For the project to build, these files must exist with exact filenames:

  • public/index.html is the page template;
  • src/index.js is the JavaScript entry point.

You can delete or rename the other files.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

Supported Browsers

By default, the generated project uses the latest version of React.

You can refer to the React documentation for more information about supported browsers.

Using the public Folder

Note: this feature is available with [email protected] and higher.

Changing the HTML

The public folder contains the HTML file so you can tweak it, for example, to set the page title. The <script> tag with the compiled code will be added to it automatically during the build process.

Adding Assets Outside of the Module System

The public folder includes the images that are going to be processed by the web app.

Bugs

One bug that is immidiately noticable is the upload feature. For some reason, the canvas (which is the component that maipulates the image) doesn;t render properly when it's updated with a new image. To use a new image, you have to put it in the images folder located in the public folder, rename it to coins.png and restart the server.

image-processing's People

Contributors

lukeellul avatar

Watchers

 avatar  avatar

Forkers

jeromepan

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.