Merge pull request #2974 from knight-of-ni/create_analysis_images
remove global config item CREATE_ANALYSIS_IMAGESpull/2975/head
commit
516255b85e
|
@ -32,12 +32,10 @@ BULK_FRAME_INTERVAL - Traditionally ZoneMinder writes an entry into the Frames d
|
|||
|
||||
EVENT_CLOSE_MODE - When a monitor is running in a continuous recording mode (Record or Mocord) events are usually closed after a fixed period of time (the section length). However in Mocord mode it is possible that motion detection may occur near the end of a section. This option controls what happens when an alarm occurs in Mocord mode. The 'time' setting means that the event will be closed at the end of the section regardless of alarm activity. The 'idle' setting means that the event will be closed at the end of the section if there is no alarm activity occurring at the time otherwise it will be closed once the alarm is over meaning the event may end up being longer than the normal section length. The 'alarm' setting means that if an alarm occurs during the event, the event will be closed once the alarm is over regardless of when this occurs. This has the effect of limiting the number of alarms to one per event and the events will be shorter than the section length if an alarm has occurred.
|
||||
|
||||
CREATE_ANALYSIS_IMAGES - By default during an alarm ZoneMinder records both the raw captured image and one that has been analysed and had areas where motion was detected outlined. This can be very useful during zone configuration or in analysing why events occurred. However it also incurs some overhead and in a stable system may no longer be necessary. This parameter allows you to switch the generation of these images off.
|
||||
|
||||
WEIGHTED_ALARM_CENTRES - ZoneMinder will always calculate the centre point of an alarm in a zone to give some indication of where on the screen it is. This can be used by the experimental motion tracking feature or your own custom extensions. In the alarmed or filtered pixels mode this is a simple midpoint between the extents of the detected pxiesl. However in the blob method this can instead be calculated using weighted pixel locations to give more accurate positioning for irregularly shaped blobs. This method, while more precise is also slower and so is turned off by default.
|
||||
|
||||
EVENT_IMAGE_DIGITS - As event images are captured they are stored to the filesystem with a numerical index. By default this index has three digits so the numbers start 001, 002 etc. This works works for most scenarios as events with more than 999 frames are rarely captured. However if you have extremely long events and use external applications then you may wish to increase this to ensure correct sorting of images in listings etc. Warning, increasing this value on a live system may render existing events unviewable as the event will have been saved with the previous scheme. Decreasing this value should have no ill effects.
|
||||
|
||||
DEFAULT_ASPECT_RATIO - When specifying the dimensions of monitors you can click a checkbox to ensure that the width stays in the correct ratio to the height, or vice versa. This setting allows you to indicate what the ratio of these settings should be. This should be specified in the format <width value>:<height value> and the default of 4:3 normally be acceptable but 11:9 is another common setting. If the checkbox is not clicked when specifying monitor dimensions this setting has no effect.
|
||||
|
||||
USER_SELF_EDIT - Ordinarily only users with system edit privilege are able to change users details. Switching this option on allows ordinary users to change their passwords and their language settings
|
||||
USER_SELF_EDIT - Ordinarily only users with system edit privilege are able to change users details. Switching this option on allows ordinary users to change their passwords and their language settings
|
||||
|
|
|
@ -2635,22 +2635,6 @@ our @options = (
|
|||
type => $types{boolean},
|
||||
category => 'hidden',
|
||||
},
|
||||
{
|
||||
name => 'ZM_CREATE_ANALYSIS_IMAGES',
|
||||
default => 'yes',
|
||||
description => 'Create analysed alarm images with motion outlined',
|
||||
help => q`
|
||||
By default during an alarm ZoneMinder records both the raw
|
||||
captured image and one that has been analysed and had areas
|
||||
where motion was detected outlined. This can be very useful
|
||||
during zone configuration or in analysing why events occurred.
|
||||
However it also incurs some overhead and in a stable system may
|
||||
no longer be necessary. This parameter allows you to switch the
|
||||
generation of these images off.
|
||||
`,
|
||||
type => $types{boolean},
|
||||
category => 'config',
|
||||
},
|
||||
{
|
||||
name => 'ZM_WEIGHTED_ALARM_CENTRES',
|
||||
default => 'no',
|
||||
|
|
|
@ -345,7 +345,7 @@ sub createEvent {
|
|||
." to ".$frame->{capturePath}.": $!"
|
||||
);
|
||||
setFileOwner( $frame->{capturePath} );
|
||||
if ( 0 && $Config{ZM_CREATE_ANALYSIS_IMAGES} ) {
|
||||
if ( $event->{SaveJPEGs} > 1 ) {
|
||||
$frame->{analysePath} = sprintf(
|
||||
"%s/%0".$Config{ZM_EVENT_IMAGE_DIGITS}
|
||||
."d-analyse.jpg"
|
||||
|
|
|
@ -1680,7 +1680,7 @@ bool Monitor::Analyse() {
|
|||
|
||||
if ( state != IDLE ) {
|
||||
if ( state == PREALARM || state == ALARM ) {
|
||||
if ( config.create_analysis_images ) {
|
||||
if ( savejpegs > 1 ) {
|
||||
bool got_anal_image = false;
|
||||
alarm_image.Assign(*snap_image);
|
||||
for ( int i = 0; i < n_zones; i++ ) {
|
||||
|
@ -1718,7 +1718,7 @@ bool Monitor::Analyse() {
|
|||
}
|
||||
} // end if config.record_event_stats
|
||||
}
|
||||
} // end if config.create_analysis_images
|
||||
} // end if savejpegs > 1
|
||||
|
||||
if ( event ) {
|
||||
if ( noteSetMap.size() > 0 )
|
||||
|
|
|
@ -505,7 +505,7 @@ bool Zone::CheckAlarms(const Image *delta_image) {
|
|||
||
|
||||
(max_blob_pixels && bs->count > max_blob_pixels)
|
||||
) {
|
||||
if ( config.create_analysis_images || config.record_diag_images ) {
|
||||
if ( ( monitor->GetOptSaveJPEGs() > 1 ) || config.record_diag_images ) {
|
||||
for ( int sy = bs->lo_y; sy <= bs->hi_y; sy++ ) {
|
||||
spdiff = diff_buff + ((diff_width * sy) + bs->lo_x);
|
||||
for ( int sx = bs->lo_x; sx <= bs->hi_x; sx++, spdiff++ ) {
|
||||
|
@ -574,7 +574,7 @@ bool Zone::CheckAlarms(const Image *delta_image) {
|
|||
BlobStats *bs = &blob_stats[i];
|
||||
if ( bs->count ) {
|
||||
if ( (min_blob_pixels && bs->count < min_blob_pixels) || (max_blob_pixels && bs->count > max_blob_pixels) ) {
|
||||
if ( config.create_analysis_images || config.record_diag_images ) {
|
||||
if ( ( monitor->GetOptSaveJPEGs() > 1 ) || config.record_diag_images ) {
|
||||
for ( int sy = bs->lo_y; sy <= bs->hi_y; sy++ ) {
|
||||
spdiff = diff_buff + ((diff_width * sy) + bs->lo_x);
|
||||
for ( int sx = bs->lo_x; sx <= bs->hi_x; sx++, spdiff++ ) {
|
||||
|
@ -702,7 +702,7 @@ bool Zone::CheckAlarms(const Image *delta_image) {
|
|||
alarm_centre = alarm_box.Centre();
|
||||
}
|
||||
|
||||
if ( (type < PRECLUSIVE) && (check_method >= BLOBS) && config.create_analysis_images ) {
|
||||
if ( (type < PRECLUSIVE) && (check_method >= BLOBS) && (monitor->GetOptSaveJPEGs() > 1) ) {
|
||||
|
||||
// First mask out anything we don't want
|
||||
for ( unsigned int y = lo_y; y <= hi_y; y++ ) {
|
||||
|
|
|
@ -864,10 +864,6 @@ $OLANG = array(
|
|||
'Prompt' => "Înregistrare imagini intermediare de diagnosticare, foarte lent",
|
||||
'Help' => "Pe lângă faptul că se pot înregistra statisticile evenimentelor se pot deasemenea înregistra imagini intermediare de diagnosticare care afişează rezultatele diferitelor verificări care au loc când se încearcă determinarea unei posibile alarme. Aceste imagini sunt generate pentru fiecare cadru, zonă şi alarmă, deci impactul asupra performanţei va fi foarte mare. Activaţi această opţiune doar pentru depanare sau analiză şi nu uitaţi să o dezactivaţi."
|
||||
),
|
||||
'CREATE_ANALYSIS_IMAGES' => array(
|
||||
'Prompt' => "Crează imagini analizate cu marcaje ale mişcării",
|
||||
'Help' => "Implicit, în cazul unei alarme, ZoneMinder înregistrează atât imaginile neprelucrate cât şi cele ce au fost analizate şi au zone marcate unde a fost detectată mişcare. Acest lucru poate fi foarte folositor la configurarea zonelor sau în analiza evenimentelor. Acest parametru permite oprirea înregistrării imaginilor cu zone de mişcare marcate."
|
||||
),
|
||||
'OPT_CONTROL' => array(
|
||||
'Prompt' => "Suport camere controlabile (rotire/înclinare/zoom)",
|
||||
'Help' => "ZoneMinder include suport limitat pentru camere controlabile. Sunt incluse câteva protocoale mostră şi pot fi adăugate cu uşurinţă şi altele. Dacă vreţi să controlaţi camerele prin intermediul ZoneMinder selectaţi această opţiune."
|
||||
|
|
Loading…
Reference in New Issue