Skip to content

Instantly share code, notes, and snippets.

View berti92's full-sized avatar

Andreas Treubert berti92

View GitHub Profile
@berti92
berti92 / OCR.php
Last active November 25, 2025 09:50
Automatic OCR text extraction within images in mediawiki
<?php
# - SNIP - INSERT HERE THE MYSQL CONFIGURATION FROM THE LocalSettings.php
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "mediawiki";
$wgDBuser = "root";
$wgDBpassword = "topsecret";
# - SNAP - INSERT HERE THE MYSQL CONFIGURATION FROM THE LocalSettings.php