VideoColor PHP Search Client

Overview

VideoColor PHP Search Client

This library is designed to find information about a movie and get the frame position using a screenshot from a video.

You can use this library to place a search form on your site to upload a screenshot and search for the video title and other information.

The number of free calls is limited. To remove restrictions, contact the site owner.

About Video Color

Web-site screenshot

Search for information

All of us are faced with the task of finding information every day. You want to find text, images, audio or video information. Most often, text is used for a search query. Less commonly, images. There are services like "Shazam" that search for music using sound recording. We focused on building a search engine that searches for videos. We use images as parameters for the request.

What is our advantage?

In short, our technology allows us to find the name of the film and the exact position in one frame with a sufficiently high accuracy. This first requires an analysis of the indexed file. Then the results are entered into the database. At the same time, the amount of stored data is relatively small, and the data storage structure allows searching very efficiently. So, for example, according to our calculations, a server with a fast PCI Express SSD disk with a capacity of about 15 TB will be able to store information about 1,000,000 hours of video and carry out tens (possibly hundreds) of search queries per second.

Site

www.videocolor.aapsoftware.ru

How to search for videos?

Windows application screenshot Android application screenshot

Test

  • Open terminal
  • Go to the library folder with scripts, to where the sample.php file is located
  • Type command

php sample.php test.jpg

You will see text like this

Title:  Round Midnight
Frame:  84155
Position:       0:58:29 (3509.97 sec)
Duration:       2:11:20 (7880.881 sec)
Producer:       Bertrand Tavernier
Country:
Creation year:  1986
Genre:  Drama, Music
Actors: Dexter Gordon, François Cluzet, Gabrielle Haker, Sandra Reaves-Phillips, Lonette McKee, Christine Pascal, Herbie Hancock, Bobby Hutcherson, Pierre Trabaud, Frédérique Meininger, Hart Leroy Bibbs, Liliane Rovère, Ged Marlon, Benoît Régent, Victoria Gabrielle Platt, Arthur French, John Berry, Martin Scorsese
IMDB:   http://www.imdb.com/title/tt0090557/
Kinopoisk:
Description:    In 'Round Midnight, real-life jazz legend Dexter Gordon brilliantly portrays the fictional tenor sax player Dale Turner, a musician slowly losing the battle with alcoholism, estranged from his family, and hanging on by a thread in the 1950's New York jazz world. Dale gets an offer to play in Paris, where, like many other black American musicians at the time, he enjoys a respect for his humanity that is not based upon the color of his skin. A Parisian man who is obsessed with Turner's music befriends him and attempts to save Turner from himself. Although for Dale the damage is already done, his poignant relationship with the man and his young daughter re-kindles his spirit and his music as the end draws near.

Supported languages

  • English
  • Russian

Usage example

result) { echo "Not found\n"; } else { echo "Title:\t" . $obj->title . "\n"; echo "Frame:\t" . $obj->frame."\n"; echo "Position:\t" . $obj->position . "\n"; echo "Duration:\t" . $obj->duration . "\n"; echo "Producer:\t".$obj->producer."\n"; echo "Country:\t".$obj->country."\n"; echo "Creation year:\t".$obj->creation_year."\n"; echo "Genre:\t".$obj->genre."\n"; echo "Actors:\t".$obj->actors."\n"; echo "IMDB:\t".$obj->imdb."\n"; echo "Kinopoisk:\t".$obj->kinopoisk."\n"; echo "Description:\t".$obj->description."\n"; }">
use AapSoftware\VideoColor\SearchClient;

...

$img = imagecreatefromjpeg($fname);
$search = new AapSoftware\VideoColor\SearchClient();
$obj = $search->get($img);
imagedestroy($img);

if ($obj === null) {
    echo "Server not connected!\n";
    return;
} elseif (!$obj->result) {
	echo "Not found\n";
} else {
	echo "Title:\t" . $obj->title . "\n";
	echo "Frame:\t" . $obj->frame."\n";
	echo "Position:\t" . $obj->position . "\n";
	echo "Duration:\t" . $obj->duration . "\n";
	echo "Producer:\t".$obj->producer."\n";
	echo "Country:\t".$obj->country."\n";
	echo "Creation year:\t".$obj->creation_year."\n";
	echo "Genre:\t".$obj->genre."\n";
	echo "Actors:\t".$obj->actors."\n";
	echo "IMDB:\t".$obj->imdb."\n";
	echo "Kinopoisk:\t".$obj->kinopoisk."\n";
	echo "Description:\t".$obj->description."\n";
}

English

If you want to get information about the video in English.

$obj = $search->get($img);

or

$obj = $search->get($img,"en");

Russian

If you want to get information about the video in Russian.

$obj = $search->get($img,"ru");

Publications in Russian

You might also like...
PHP client for Microsoft Azure Face API.

Microsoft Azure Face API PHP client A PHP library that utilizes Azure Face REST API. Requirements PHP = 7.4 Installation composer require darmen/php-

Google PHP API Client Services

Google PHP API Client Services

AltiriaSmsPhpClient, the official PHP client of Altiria
AltiriaSmsPhpClient, the official PHP client of Altiria

Altiria, cliente SMS PHP Altiria SMS PHP es un cliente que simplifica al máximo la integración de nuestro API para PHP. Por el momento, esta librería

PHP Client for the GoFlink API

GoFlink PHP API Client This project is an unofficial library to communicate with the GoFlink API from your PHP project. Documentation about the API is

A PHP client for the official Kizeo Forms API V3+. 📌

Kizeo Forms API V3+ - PHP This is a Swagger generated doc for Kizeo REST API 3. You can find additionnal documentation here : Online documentation. Th

Client for the Tenant Security Proxy in PHP

Tenant Security Client PHP Library A PHP client for implementing CMK within a vendor's infrastructure. Makes requests through an IronCore Tenant Secur

Shopee Open API v2 Client build with php

Shopee PHP Client This is a Shopee PHP Client, currently supported for API V2 in ShopeeOpenPlatform Composer Install composer require haistar/shopee-p

The official Previewify.app PHP Client
The official Previewify.app PHP Client

Previewify for PHP This is the official Previewify client for PHP. Support us Like our work? You can support us by purchasing one of our products. Ins

Production-ready, stable Kafka client for PHP

PHP Kafka client - php-rdkafka PHP-rdkafka is a stable, production-ready, long term support, and fast Kafka client for PHP based on librdkafka. It sup

Comments
  • Production ready

    Production ready

    Что было сделано:

    • Рефакторинг, код разнесён на разные классы
      • ImageEncoder - класс отвечающий за кодирование изображения в формат нужный для API
      • ApiClient - API клиент для отправки http запросов
      • SearchClient - непосредственно клиент для работы с сервисом поиска видео, он абстрагирует от ImageEncoder и ApiClient
    • Добавлено бросание исключения ApiException если http запрос не прошёл
    • Поддерживаемые языки вынесены в enum LanguageEnum
    • Добавлены тесты (папка /tests)
    • Добавлена сборка docker образа что бы можно было запускать код без локальной установки php и зависимостей
    • Добавил версионирование библиотеки в composer.json
    • Изменил версию PHP на 7.4 т.к. версии ниже уже официально не поддерживаются (https://www.php.net/supported-versions.php)

    изображение

    opened by VitalyArt 0
Releases(v1.0)
Owner
null
PHP JSON-RPC 2.0 Server/Client Implementation with Automatic Client Class Generation via SMD

PHP JSON-RPC 2.0 Server/Client Implementation with Automatic Client Class Generation via SMD

Sergey Bykov 63 Feb 14, 2022
OpenAI API Client is a component-oriented, extensible client library for the OpenAI API. It's designed to be faster and more memory efficient than traditional PHP libraries.

OpenAI API Client in PHP (community-maintained) This library is a component-oriented, extensible client library for the OpenAI API. It's designed to b

Mounir R'Quiba 6 Jun 14, 2023
Search music with voice

Configuration: Open the index.php file and paste the bot token: define('API_KEY', 'TOKEN'); Login to Ahangify and create an account Open the login.php

#[A]ref 1 Jul 21, 2022
Silverstripe-solr-search - Advanced searching with SilverStripe, Solarium and Solr

Master is no longer the main branch. If you are using dev-master, switch to dev-primary Modern SilverStripe Solr Search Full documentation or see the

Simon Erkelens 10 Feb 12, 2022
⚡️ Web3 PHP is a supercharged PHP API client that allows you to interact with a generic Ethereum RPC.

Web3 PHP is a supercharged PHP API client that allows you to interact with a generic Ethereum RPC. This project is a work-in-progress. Code and docume

Web3 PHP 665 Dec 23, 2022
A simple PHP GitHub API client, Object Oriented, tested and documented.

PHP GitHub API A simple Object Oriented wrapper for GitHub API, written with PHP. Uses GitHub API v3 & supports GitHub API v4. The object API (v3) is

KNP Labs 2k Jan 7, 2023
A simple Object Oriented PHP Client for Termii SMS API

Termii Client A simple Object Oriented PHP Client for Termii SMS API. Uses Termii API. Requirements PHP >= 7.2 Guzzlehttp ~6|~7 Installation Via Compo

Ilesanmi Olawale Adedotun 5 Feb 24, 2022
Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services

Xendit 96 Jan 6, 2023
PHP client for Kafka

A library to allow people to communicate to Kafka using plain PHP, compatible with Kafka v0.11+ (due to the way the protocol works).

Luís Cobucci 52 Dec 23, 2022
php 8 client for the lemon.markets api

lemon.markets php client This repository contains a php 8+ compatible client for the https://lemon.markets API. The documentation of the API can be fo

Daniel Freudenberger 4 Nov 17, 2022