RapidAPI logo

新規登録

ログイン

Video OCR

FREEMIUM
開発者 SemaMediaData
更新日 3ヶ月前
データ
-/10
人気度
-
レイテンシ
-
正常稼働率

Video OCR API Documentation

video OCR is an analysis cascade which includes video segmentation (hard-cut), video text detection/recognition, and named entity recognition from video text (NER is a free add-on feature). The analysis result of this method enables automatic video retrieval and indexing as well as content-based video search in video archives. A detailed example can be found in our demo website: https://www.semamediadata.com/demo/video-ocr/

全文を表示する
POSTVideo OCR
POSTVideo OCR

video OCR is an analysis cascade which includes video segmentation (hard-cut), video text detection/recognition, and named entity recognition from video text (NER is a free add-on feature). The analysis result of this method enables automatic video retrieval and indexing as well as content-based video search in video archives. A detailed example can be found in our demo website.

ヘッダーパラメータ
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Content-TypeSTRING
REQUIRED
必須パラメータ
fileBINARY
REQUIREDabsolute path to your video file
langSTRING
REQUIRED[language code, the supported language codes for this method include: en: English de: German spa: Spanish fr: French ita: Italian rus: Russian zh: Chinese Simplified zh_t: Chinese Traditional
callbackSTRING
REQUIREDis a url provided by client, after the analysis a POST request will be sent using this url and the client can obtain a download link of the analysis result by reading the POST-parameter 'Download_Link'.
パラメータ(Option)
ucSTRING
OPTIONALTrue or False, default is True. When uc=False, then the classifier-based text verification process will be deactivated, which will increase the recall but lower the precision of the result.
spSTRING
OPTIONALTrue or False, default is False. When sp=True then a spell correction process will be performed. Note that the supported languages are English, German, Spanish, French, Russian, Italian.
mhSTRING
OPTIONALTrue or False, default is False. When mh=True then a multi-hypothesis analysis will be performed. This will increase the accuracy but also the execution time. Note that the supported languages are English, German, Spanish, French, Russian, Italian.
dfSTRING
OPTIONALTrue or False, default is False. When df=True then the dictionary-based word-filtering process will be performed. Note that the supported languages are English, German, Spanish, French, Russian, Italian.
nerSTRING
OPTIONALTrue or False, default is False. When ner=True then the named entity recognition will be performed on OCR results. Note that this is a free add-on feature. NER supported Languages are English, German, Chinese Simplified.
itypeSTRING
OPTIONALSpecify a image type, a proper configuration will be used for this type. The available types are:'overlay' for overlay text images; 'digital' for born-digital images; 'hd' for overlay text images with HD or larger resolution; 'other' a more general configuration. By default (without type specification) an adaptive algorithm will be used to select the configuration dynamically.
nocutSTRING
OPTIONALTrue or False, default is False. nocut=True means that the submitted video is raw video material without any post-production. Therefore no hard or soft camera transition can be found in this video. For this case a specific method will be used for video segmentation task.
コードスニペット
unirest.post("https://semamediadata-video-ocr-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "semamediadata-video-ocr-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.header("Content-Type", "multipart/form-data")
.send("uc=True")
.send("sp=False")
.send("mh=False")
.send("df=False")
.send("ner=False")
.send("nocut=False")
.send("lang=en")
.send("callback=[put your callback url here]")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
サンプルレスポンス
ログイン新規登録

SDKをインストール(NodeJS)

インストール

Node.jsでUnirestを使用するには、NPMモジュールをインストールしてください。

$ npm install unirest

インストール完了後は、簡単にリクエストを行うことができるようになります。

var unirest = require('unirest');

リクエスト

unirest.post("https://semamediadata-video-ocr-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "semamediadata-video-ocr-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.header("Content-Type", "multipart/form-data")
.send("uc=True")
.send("sp=False")
.send("mh=False")
.send("df=False")
.send("ner=False")
.send("nocut=False")
.send("lang=en")
.send("callback=[put your callback url here]")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2認証
クライアントID
クライアントシークレット
OAuth2認証