Giter Site home page Giter Site logo

findmarkerapi's Introduction

findMarkerAPI

마커인식용 웹앱 API - Django

Description

openCV 를 이용해 도형인식과 OCR을 도입한 애플리케이션의 API 배포를 위한 코드입니다.

Environment

개발환경 : macOS

사용언어 : Python3 (Django)

배포환경 : www.pythonanywhere.com

Prerequisite

Pillow

pip install pillow

APIs

Post Image


post image to server

  • URL

    /api/image

  • Method:

    POST

  • URL Params

    None

  • Data Params

    { image : ImageFILE }

  • Success Response:

    • Code: 200
      Content: { message : "SUCCESS" }
  • Sample Call:

      axios.post('/api/image/', { image : ImageFILE })
      .then(function (response) {
        console.log(response);
      })
      .catch(function (error) {
        console.log(error);
      });

Get Image


get last image on server

  • URL

    /api/image

  • Method:

    GET

  • URL Params

    None

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: { images : { id : 1, document : 'images/image.jpg', uploaded_at: '2021-07-13T02:30:53.34OZ' }
  • Sample Call:

      axios.get('/api/image/')
      .then(function (response) {
        console.log(response);
      })
      .catch(function (error) {
        console.log(error);
      });

Find Marker


find marker Shape and OCR and return address

  • URL

    /api/address

  • Method:

    POST

  • URL Params

    None

  • Data Params

    { path : imagePATH }

  • Success Response:

    • Code: 200
      Content: { message : "SUCCESS" }
  • Sample Call:

      axios.post('/api/address/', { path : ImagePATH })
      .then(function (response) {
        console.log(response);
      })
      .catch(function (error) {
        console.log(error);
      });

Get Address


get last address info

  • URL

    /api/address

  • Method:

    GET

  • URL Params

    None

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: { address : { id : 1, document : 'images/image.jpg', address: '서울특별시 성북구 성북동 13길 3층 사무실' }
  • Sample Call:

      axios.get('/api/address/')
      .then(function (response) {
        console.log(response);
      })
      .catch(function (error) {
        console.log(error);
      });

findmarkerapi's People

Contributors

sowish23 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.