Coder Social home page Coder Social logo

darksuei / imagevision Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 760 KB

:octocat:๐Ÿ’ป An image recognition REST API created using theTensorflow mobile-net computer vision model and Fastify(_dev)

Home Page: https://image-vision-api.onrender.com

JavaScript 3.47% TypeScript 96.53%

imagevision's Introduction

Image Vision - API for Image Recognition

Image vision is a restful API that utilizes the tensorflow mobile-net computer vision model to identify objects and patterns in images. Make requests to this API with image(s) and get a response with the identified objects with their respective confidence scores [in plain terms, how confident the model is of success].

Checkout the fastify-dev branch to see the implementation with the fastify framework.

Wanna try it out? >> https://image-vision-api.onrender.com/ <<

Minimalistic sample usage of the API >> HERE <<

Response caching and response time enhancement coming soon!

  • Image recognition using TensorFlow.js and MobileNet model.
  • Confidence threshold customization for object detection result fine-tuning.

Installation

  1. Clone the repository:
git clone https://github.com/darksuei/imagevision.git

cd imagevision
  1. Install the dependencies:
npm install
  1. Start the server in development mode:
npm run dev

Usage

  1. Grab an API KEY, make a GET request to https://image-vision-api.onrender.com/api/auth for specific details.

  2. Make API requests:

Send a POST request to the /api/image-recognition endpoint with an image in the request body. You can also customize the API by setting the confidence threshold in the request body.

Example:

curl -X POST -F "image=@path/to/your/image.jpg" -F "confidenceThreshold=0.5" -F https://image-vision-api.onrender.com/api/image-recognition

Available Endpoints

  • GET * : Welcome message/ Health Check ๐Ÿ‘.

  • GET /api/auth : Get more information on how to acquire an API KEY.

  • POST /api/auth : Grab your API KEY by making a request with your email and preferred password.

  • GET /api/image-recognition : Get more information on how to use the image recognition endpoint.

  • POST /api/image-recognition : Perform image recognition on the provided image with optional customization parameters.

    • Request body:
      • image: The image file to be recognized.
      • confidenceThreshold (optional): The confidence threshold for object detection, between 0 and 1 (default: 0.1).
  • GET /api/save : Get more information on how to use this endpoint to temporarily store images and files.

  • POST /api/save : Temporarily save your files and images.

  • This readme would be updated with the latest features!!

Contributing

Contributions from the community are welcome! If you find any bugs or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT license.

imagevision's People

Contributors

darksuei avatar

Stargazers

 avatar Raphael Folarin avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

imagevision's Issues

v2.0

  • Functional tests for all features
  • Temporary Image storage
  • Response Caching
  • Request rate limiting per user
  • Improved error handling

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.