Skip to content

yuriyzubov/pixel_coordinate_finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixel_coordinate_finder

This web service calculates pixel coordinate values for an image given the dimensions of the image and the corner points of the image as it is to be displayed.

To run the web service locally, please install docker, build and run the docker container.

  1. Install docker: https://docs.docker.com/get-docker/

  2. In a terminal, switch to the pixel_coordinate_finder directory:

    cd PATH_TO_DIRECTORY/pixel_coordinate_finder
    
  3. Build docker file:

    docker build -t pixel-finder . 
    
  4. Run docker container:

    docker run -p 5000:5000 pixel-finder
    
  5. Open http://127.0.0.1:5000/input, in your web browser, enter dimensions and corner coordinates, and submit form data

  6. The pixel grid array should be displayed on http://127.0.0.1:5000/calculate

    1. If dimensions were not entered correctly the result message would be:
    Rectangle dimensions are incorrect
    
    1. If entered list of coordinates does not form a rectangle:
    Points do not form a rectangle
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published