Skip to content

Commit 6d8bc35

Browse files
Merge branch 'ai_server' of github.com:connortechnology/ZoneMinder into ai_server
2 parents 68936cb + 4692edc commit 6d8bc35

48 files changed

Lines changed: 1591 additions & 146 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-deb-packages-aarch64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
libmosquittopp-dev
6666
6767
- name: Checkout
68-
uses: actions/checkout@v6
68+
uses: actions/checkout@v7
6969
with:
7070
fetch-depth: 0
7171

.github/workflows/build-deb-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
libmosquittopp-dev
6262
6363
- name: Checkout
64-
uses: actions/checkout@v6
64+
uses: actions/checkout@v7
6565
with:
6666
fetch-depth: 0
6767

.github/workflows/build-rpm-packages-aarch64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
rpmdev-setuptree
9090
9191
- name: Checkout
92-
uses: actions/checkout@v6
92+
uses: actions/checkout@v7
9393
with:
9494
fetch-depth: 0
9595

.github/workflows/build-rpm-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
rpmdev-setuptree
8888
8989
- name: Checkout
90-
uses: actions/checkout@v6
90+
uses: actions/checkout@v7
9191
with:
9292
fetch-depth: 0
9393

.github/workflows/ci-eslint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@v7
1919
with:
2020
submodules: recursive
2121
- name: Install ESLint

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
steps:
6161
- name: Checkout repository
62-
uses: actions/checkout@v6
62+
uses: actions/checkout@v7
6363
with:
6464
# We must fetch at least the immediate parents so that if this is
6565
# a pull request then we can checkout the head.

.github/workflows/depsreview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: 'Checkout Repository'
12-
uses: actions/checkout@v6
12+
uses: actions/checkout@v7
1313
- name: 'Dependency Review'
1414
uses: actions/dependency-review-action@v5

.github/workflows/release-source-tarball.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
echo "tag=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
3535
fi
3636
37-
- uses: actions/checkout@v6
37+
- uses: actions/checkout@v7
3838
with:
3939
ref: ${{ steps.tag.outputs.tag }}
4040
submodules: recursive

CMakeLists.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,20 @@ if((ZM_TARGET_DISTRO MATCHES "^el") OR (ZM_TARGET_DISTRO MATCHES "^fc"))
300300
set(ZM_CGIDIR "/usr/libexec/zoneminder/cgi-bin")
301301
set(ZM_DIR_EVENTS "/var/lib/zoneminder/events")
302302
set(ZM_PATH_ZMS "/cgi-bin-zm/nph-zms")
303+
elseif((ZM_TARGET_DISTRO MATCHES "debian") OR (ZM_TARGET_DISTRO MATCHES "ubuntu"))
304+
set(ZM_RUNDIR "/run/zm")
305+
set(ZM_SOCKDIR "/run/zm")
306+
set(ZM_TMPDIR "/var/tmp/zm")
307+
set(ZM_LOGDIR "/var/log/zm")
308+
set(ZM_CONFIG_DIR "/etc/zm")
309+
set(ZM_CONFIG_SUBDIR "/etc/zm/conf.d")
310+
set(ZM_WEBDIR "/usr/share/zoneminder/www")
311+
set(ZM_CGIDIR "/usr/lib/zoneminder/cgi-bin")
312+
set(ZM_CACHEDIR "/var/cache/zoneminder/cache")
313+
set(ZM_DIR_EVENTS "/var/lib/zoneminder/events")
314+
set(ZM_PATH_ZMS "/zm/cgi-bin/nph-zms")
315+
set(ZM_WEB_USER "www-data")
316+
set(ZM_WEB_GROUP "www-data")
303317
elseif(ZM_TARGET_DISTRO STREQUAL "OS13")
304318
set(ZM_RUNDIR "/var/run/zoneminder")
305319
set(ZM_TMPDIR "/var/run/zoneminder")
@@ -436,6 +450,34 @@ else()
436450
message(STATUS "NETINT Quadra (xcoder) support: No")
437451
endif()
438452

453+
# Intel OpenVINO inference runtime (CPU/GPU/NPU). Archive installs are not in
454+
# CMake's default search path; pass -DOpenVINO_DIR=... or source the toolkit's
455+
# setupvars.sh before configuring.
456+
find_package(OpenVINO QUIET COMPONENTS Runtime)
457+
if(OpenVINO_FOUND)
458+
set(HAVE_OPENVINO 1)
459+
list(APPEND ZM_BIN_LIBS openvino::runtime)
460+
set(optlibsfound "${optlibsfound} OpenVINO")
461+
message(STATUS "Intel OpenVINO support: Yes (${OpenVINO_VERSION})")
462+
463+
# OpenVINO archive installs (the typical case for non-distro versions) live
464+
# outside the linker's default search path. Add the runtime lib directory to
465+
# the build RPATH so binaries can locate libopenvino.so without requiring
466+
# the user to source setupvars.sh just to run them.
467+
get_target_property(_ov_loc openvino::runtime LOCATION)
468+
if(_ov_loc)
469+
get_filename_component(OPENVINO_LIB_DIR "${_ov_loc}" DIRECTORY)
470+
# Cache the path so add_subdirectory()'d CMakeLists.txt files can reach it
471+
# to set BUILD_RPATH on their own targets without each one re-deriving it.
472+
set(OPENVINO_LIB_DIR "${OPENVINO_LIB_DIR}" CACHE INTERNAL "OpenVINO runtime lib directory")
473+
message(STATUS "OpenVINO runtime libs: ${OPENVINO_LIB_DIR}")
474+
endif()
475+
else()
476+
set(HAVE_OPENVINO 0)
477+
set(optlibsnotfound "${optlibsnotfound} OpenVINO")
478+
message(STATUS "Intel OpenVINO support: No")
479+
endif()
480+
439481
# jpeg
440482
find_package(JPEG)
441483
if(JPEG_FOUND)

db/zm_create.sql.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ CREATE TABLE `Monitors` (
611611
`AnalysisSource` enum('Primary','Secondary') NOT NULL DEFAULT 'Primary',
612612
`AnalysisImage` enum('FullColour','YChannel') NOT NULL DEFAULT 'FullColour',
613613
`AnalysisImageOpacity` TINYINT UNSIGNED NOT NULL DEFAULT '128',
614-
`ObjectDetection` VARCHAR(8) NOT NULL DEFAULT 'none',
614+
`ObjectDetection` VARCHAR(16) NOT NULL DEFAULT 'none',
615615
`ObjectDetectionModel` VARCHAR(255) NOT NULL DEFAULT '',
616616
`ObjectDetectionObjectThreshold` FLOAT NOT NULL default 0.4,
617617
`ObjectDetectionNMSThreshold` FLOAT NOT NULL default 0.25,

0 commit comments

Comments
 (0)