Download the PHP package ankitpokhrel/alt without Composer

On this page you can find all versions of the php package ankitpokhrel/alt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package alt

This project is now available at captionai.co

CaptionAI effortlessly generates automatic image captions (alternate text), description, tags, and helps you categorize images using the power of AI.

alt  Build Status

This project is no longer maintained.

Automatic alternative (alt) text for images using object detection with pre-trained model.

Overview

A very simple PHP library to generate alternative (alt) text for images using pre-trained tensorflow model to detect objects in an image. These texts can provide context about image to visitors who are unable to see images in their browser for whatever reasons. Alt texts can also be picked up by screen readers to convert it to speech, thus, providing additional context to visually impaired people and enhancing our user experience.

This nifty little tool is inspired by facebook alt text generation process.

Example


Image may contain: cup, potted, laptop

Image may contain: 6 person, cup, laptop

Image may contain: 5 person, car, motorcycle

Image may contain: 1 person, car, bus, truck, traffic light

Image may contain: chair, couch

Image may contain: pizza, dining table

Image may contain: dog

Image may contain: bird

Installation

Requires: PHP 7.1.3+, OpenCV, PHP OpenCV
Model used: SSDLite COCO v2

Pull the package via composer.

Usage

Threshold

The classification threshold is set to 30 by default. You can adjust it as your need.

Prefix

By default the alt is prefixed with Image may contain:. You can change this as below:

Countable

If you want to display the count of an object, you can do so by setting countable array. person is countable by default.

Default text

Default text is used if the model is not able to predict any objects within a given threshold. Default default text is No photo description available..


All versions of alt with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ankitpokhrel/alt contains the following files

Loading the files please wait ....