Skip to content
Permalink
Browse files

Update camshoter.class.php

  • Loading branch information...
directman66 committed Dec 15, 2018
1 parent 43a10ad commit a8b44b1357383cbf1fc172f87e81ad86e0ca272e
Showing with 13 additions and 1 deletion.
  1. +13 −1 modules/camshoter/camshoter.class.php
@@ -190,6 +190,17 @@ function admin(&$out) {
}
if ($this->tab=='preview') {
$gfolder=ROOT."cms/cached/nvr/last/";
$files=$this->getusers($gfolder);
//print_r($files);
//jpeg
$out['FILES']=$files;
}
if ($this->view_mode=='indata_edit') {
$this->editdevices($out, $this->id);
@@ -611,9 +622,10 @@ function propertySetHandle($object, $property, $value) {
if (($savenamethumbdir)&&($savenamethumbdir<>"")&& (is_dir($savenamethumbdir))){
foreach (scandir($savenamethumbdir) as $v)
{
debmes('Проверяем фото '.$savenamethumbdir.$v.' на наличие лиц','camshoter');
if ($face_detect->face_detect($savenamethumbdir.$v))
{$face=1;
debmes('В кадре лицо!! '.$savenamethumbdir.$v,'camshoter');
$face_detect->cropsave($savenameface);
//$face_detect->cropFace2('new.jpg');
} else $face=0;

0 comments on commit a8b44b1

Please sign in to comment.
You can’t perform that action at this time.