Skip to content

Setup custom metadata profile and event notifications for OCR and update entries accordingly

License

Notifications You must be signed in to change notification settings

kaltura/Kaltura-OCR-Service-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaltura-OCR-Service-Setup

Abstract:

Setup custom metadata profile and event notifications for OCR and update entries accordingly

  • checks if the account doesn’t have the schema yet, and then sets the schema file
  • checks if the Event Notification exists, and if not, sets up the http event notification
  • loops through all entries in the account (using categories filter if provided), and then sets the a value to all entries:
    1. Schema system name: IBMOCR
    2. Field Name: ProcessOCR
    3. Field Value: Yes

Requirements:

Setup instructions

  • Download the PHP5 client library and extract it.
  • Edit "ocr_cleanup.php" and "ocr_setup.php" and replace require_once('/opt/kaltura/web/content/clientlibs/php5/KalturaClient.php'); with - require_once('./php5/KalturaClient.php'); (or change the path to whereever you decided to extract the Kaltura PHP5 client lib to).
  • Run php ocr_setup.php to configure an account (it will add the metadata profile, configure the http event notification, and loop through all entries to submit for OCR processing), or ocr_cleanup.php to clean an account that was already configured and processed (caution it will delete all OCR caption files from that account).

About

Setup custom metadata profile and event notifications for OCR and update entries accordingly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages