Skip to content

Server-side script for data collection of Scene Sketches.

Notifications You must be signed in to change notification settings

YRlin-12/SketchX-SST

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Server-side script for data collection of Scene Sketches.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.7%
  • JavaScript 39.3%