We need to install Facedetection, OpenCV PHPextensions to use these functions to find the coordinates of the faces. Go through the following resouces for more information.
http://corpocrat.com/2009/08/18/automatic-face-detection-with-php-in-linux/
https://github.com/infusion/PHP-Facedetect/
http://www.xarg.org/project/php-facedetect/
You can detect face without any PHP extension using below Script:
http://devlup.com/programming/php/face-detection-using-php/1140/
http://www.emanueleferonato.com/2010/07/06/php-face-detection-class/
http://www.codediesel.com/algorithms/face-detection-in-images-using-php/
http://svay.com/blog/face-detection-in-pure-php-without-opencv/
Research and Development work on PHP, MYSQ,JQuery,Angular Js,React Native,Laravel,Wordpress,Magento,Joomla
Friday, April 19, 2013
Frequently used Putty commands
Database Dump:
mysqldump -u username -h localhost -p dbname > filename.sql
Import Database Dump:
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql
Tar a folder:
tar -cv foldername > foldername.tar
GZip the tar file:
gzip foldername.tar
Extract tar.gz file:
tar -zxvf yourfile.tar.gz
Extract .bz2 file:
bunzip2 yourfile.bz2
Extract tar.bz2file:
tar jxf backup.tar.bz2
Copy files from source to destination: scp local.xml username@hostnameORipaddress:FullFolderTargetPath
mysqldump -u username -h localhost -p dbname > filename.sql
Import Database Dump:
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql
Tar a folder:
tar -cv foldername > foldername.tar
GZip the tar file:
gzip foldername.tar
Extract tar.gz file:
tar -zxvf yourfile.tar.gz
Extract .bz2 file:
bunzip2 yourfile.bz2
Extract tar.bz2file:
tar jxf backup.tar.bz2
Copy files from source to destination: scp local.xml username@hostnameORipaddress:FullFolderTargetPath
Save Core Config data prgramatically
$coreConfig = new Mage_Core_Model_Config();
$coreConfig ->saveConfig($path, $value, $scope = 'default', $scopeId = 0);
Mage::app()->getConfig()->reinit();
Mage::app()->reinitStores();
Get and Set Config data
$lastUpdatedDate = Mage::getStoreConfig('test/newarrivals/updateddate');
Mage::getModel('core/config')->saveConfig('test/newarrivals/updateddate', $lastUpdatedDate );
Required Extensions for new Magento instance
Banner Slider:
·
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/16048/s/banner-slider-8871/
Order Eraser:
Featured Products:
Display date in specified format in Magento
Display date in specified format in Magento
Mage::helper('core')->formatDate($date, $format, $showTime=false)
Argument 1: Date that you want change the format (This may be database driven or manual)
Argument 2: Date format: short, long, medium, full
Argument 3: Show Time: True to display time and false to not display time
Tuesday, April 16, 2013
Saturday, April 13, 2013
Thursday, April 11, 2013
Monday, November 26, 2012
Friday, November 23, 2012
Thursday, November 22, 2012
Subscribe to:
Posts (Atom)