Skip to main content

Posts

Showing posts from March, 2016

Upgrading your LAMP Stack to PHP 7 plus PHPMyAdmin Installation

First install python-software-properties package on your system which provides add-apt-repository command then use the following set of commands to add PPA for PHP 7 in your Ubuntu system and install it. sudo apt-get install python-software-properties sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php Then, remove PHP 5 and install PHP 7. sudo apt-get update sudo apt-get purge php5-common -y sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y sudo apt-get --purge autoremove -y You may also need to install modules like PHP7-MySQL, libapache2-mod-php7.0 etc based on your application requirements. Use the following command to find our available php 7 modules. sudo apt-cache search php7-* Above command will list all available PHP7 modules for installation, Let’s begin installation of modules. sudo apt-get install libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-gd *Installing  PHPMyAdmin Change directory to /usr/sha

Evaluating Google Tesseract

Tesseract is an optical character recognition engine. It is a free software, released under the Apache License, Version 2.0, and development has been sponsored by Google since 2006. It is considered one of the most accurate open source OCR engines currently available. The problem is very hard. Font variations, image noise and alignment problems make it extremely difficult to design an algorithm that can translate the image of text into actual text reliably. I conducted a series of tests with Machine-printed documents and Hand-written documents. Machine-printed documents  Font: Serif and Sans Serif (3 each) Font: One decorative style and one script type style Layout: Left-aligned text (3 serif, 3 sans serif) and justified text (3 serif and 3 sans serif) With figures (one serif, one sans serif) Hand-written documents One-paragraph description of yourself One-paragraph description of two other persons I used Dejavu Serif, Times New Roman, and Cambria for the Serif T

Changing the Brand of AsgardCMS in your own STYLE

First of all, you can edit the Admin's Theme color to your own accord. Just simply edit the skin's value in the  config/asgard.core.core.php.  This are the available skins: skin-blue, skin-green, skin-black, skin-purple, skin-red, skin-yellow. Next you can set the title of your site in the settings page of the admin and it will directly affect and put the name of the site in the upper left corner of the website. Lastly, you can freely takeover the css of the available themes or make your own theme. Take note, that you must publish first the theme so that it will take effect on the site. T o publish the assets to the public directory and make the accessible to the webserver, you have to use a publish command: php artisan asgard : publish : theme References: https://asgardcms.com/docs/core-module/configuration https://asgardcms.com/docs/themes/usage

Installing AsgardCMS for your Web Application

AsgardCMS is a full-featured modular and multilingual CMS on top of the Laravel Framework. Here are the steps for installing the aforementioned CMS. You can get the code using this command: composer create-project asgardcms/platform your-project-name If the terminal ask you for a token. Just follow the steps of generating a new token here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/  After that, the installation must be smooth-sailing. Go t the directory of your project php artisan asgard:install Then, you will now set-up the database connection and admin creation. Finally, you can run  php artisan serve or php artisan serve --port=your-port Access the application: Application : localhost:your-port/en Admin: localhost:your-port/en/backend References:  https://asgardcms.com/install https://www.youtube.com/watch?v=MeX_D-aql6g http://asgardcms.blogspot.in/2015/12/asgardcms-installation.html

Installing Laravel in Linux Operating System

To install Laravel in your Linux Operating System you need to follow these steps: First you need to install composer. https://getcomposer.org/download/  php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === '41e71d86b40f28e771d4bb662b997f79625196afcca95a5abf44391188c695c6c1456e16154c75a211d238cc3bc5cb47') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" Download the Laravel installer using Composer: composer global require "laravel/installer" The setup PATH: export PATH="~/.composer/vendor/bin:$PATH" Once installed, the  laravel new  command will create a fresh Laravel installation in the directory you specify. For insta

Document Layout Analysis

Document Layout Analysis is our second exercise. Using the three images above our program needs to do the following: Individual characters are boxed Individual words are boxed Lines are boxed Paragraphs are boxed The paragraphs with margins I used a bottom-up approach for this exercise. It means that I started detecting and boxing the letters to words to line to paragraph and lastly to the paragraph with margin. I created a function for each of the objectives. I used a trial and error approach for determining the appropriate kernel size for the specific function. I have a very simple step for every objectives: Load the images. Assigning of output images Convert images to grayscale Cleaning the images using Otsu's Thresholding method. (with the inversed binarized image) Assigning kernel size (1 or 2 kernels depending in the objective) Morphological Operations (Dilation, Erosion, Closing and Opening) Find the Contours Box the contours (I added some offs