Coder Social home page Coder Social logo

sketchx-sst's Introduction

SketchX-SST Server-End Code

Description:

This is a server-side code that servers client-end code found here.

  • It sends an image URL to the client (or user) which it recognize.
  • The image is downloaded by the user from this URL.
  • The user then draws a sketch and write a caption and sends it back to the server.
  • The server verifies the client (or user) and saves the sketch and caption in a JSON file.
  • Assumption: size of the data collection is small like 1GB. There is no database linked to it. A large-scale data collection needs a separate database (like MongoDB etc.)

author: pinakinathc

Instruction:

  • Install NodeJS and NPM. You can check this link to know how to install NodeJS and NPM.
  • git clone https://github.com/pinakinathc/SketchX-SST.git
  • cd SketchX-SST
  • npm init
  • python create_all_data_json.py (this creates a dummy all_data.json file. Modify it for your own future use.)
  • node --max-old-space-size=7168 index.js
  • If you are using your personal computer, your web server is now running at 127.0.0.1:8000. Go to http://127.0.0.1:8000.
  • If you are using something like AWS, GCP or Linode or have a Public IP then, Go to http://<Your Public IP>:8000.

Render collected data from all_data.json

  • Install Numpy, OpenCV, pip install bresenham
  • python renderer.py
  • Rendered Sketches are generated inside output/ folder.

If you got stuck or need my assistance:

sketchx-sst's People

Contributors

pinakinathc avatar yrlin-12 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.