AI for industry
Project description
Camsense AI
Better Version of Surveillance System
Run
-
Run Command
genx listen -
Run Command (As Daemon)
nohup genx listen & -
Help Command
genx -h -
Debug Specific Stream
genx debug --cam-id "65ca5e5bd6a2678b6e030bd4" -
Print Object List Of Model
genx debug --print-model-classes ./models/ppe.pt
Virtual Env
sudo python -m venv /opt/venvsudo nano /opt/venv/bin/activate- Add env vars
source /opt/venv/bin/activatesudo -E /opt/venv/bin/pip install genx_ai-1.x.x-py3-none-any.whlsudo -E /opt/venv/bin/genx install
Media Streaming Server (Nginx) (RTMP) (Optional)
-
sudo apt-get update -
sudo apt-get install nginx -
sudo apt-get install libnginx-mod-rtmp -
sudo mkdir -p /var/www/html/stream/hls -
sudo mkdir -p /var/www/html/rtmp -
sudo cp /usr/share/doc/libnginx-mod-rtmp/examples/stat.xsl /var/www/html/rtmp/stat.xsl -
sudo nano /etc/nginx/nginx.confrtmp { server { listen 1935; chunk_size 4096; allow publish 127.0.0.1; deny publish all; application live { live on; record off; hls on; hls_path /var/www/html/stream/hls; hls_fragment 3; hls_playlist_length 10; dash on; dash_path /var/www/html/stream/dash; } } } -
sudo nano /etc/nginx/sites-available/camsenseai.comserver { listen 8088 ssl; server_name camsenseai.com; ssl_certificate /etc/letsencrypt/live/camsenseai.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/camsenseai.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot # To play via browser using video-js location / { add_header Access-Control-Allow-Origin *; root /var/www/html/stream; # Disable cache add_header Cache-Control no-cache; # CORS setup #add_header 'Access-Control-Allow-Origin' '*' always; add_header 'Access-Control-Expose-Headers' 'Content-Length'; # allow CORS preflight requests if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Max-Age' 1728000; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; return 204; } types { application/dash+xml mpd; application/vnd.apple.mpegurl m3u8; video/mp2t ts; } } # rtmp stat location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root /var/www/html/rtmp; } # rtmp control location /control { rtmp_control all; } } types { application/dash+xml mpd; }
FFMPEG Commands (optional)
-
MP4 to RTMP
ffmpeg -stream_loop -1 -i Videos/test.mp4 -preset ultrafast -vcodec libx264 -f flv rtmp://camsenseai.com/live/stream -
WebM to RTMP
ffmpeg -stream_loop -1 -i Videos/test.webm -f flv rtmp://camsenseai.com/live/stream -
Watch Stream
ffplay rtmp://camsenseai.com/live/stream
Env set env variable
sudo -E /opt/venv/bin/genx env -s GENX_AI_API_ENDPOINT="https://api.camsenseai.com" sudo -E /opt/venv/bin/genx env -s GENX_AI_API_USERNAME="api@example.com" sudo -E /opt/venv/bin/genx env -s GENX_AI_API_PASSWORD="YourPassword" sudo -E /opt/venv/bin/genx env -s GENX_AI_PUSHER_HOST="socket.camsenseai.com" sudo -E /opt/venv/bin/genx env -s GENX_AI_PUSHER_APP_ID="" sudo -E /opt/venv/bin/genx env -s GENX_AI_PUSHER_KEY="" sudo -E /opt/venv/bin/genx env -s GENX_AI_PUSHER_SECRET=""
Env encrypt variable
sudo -E /opt/venv/bin/genx env -e "https://api.camsenseai.com" sudo -E /opt/venv/bin/genx env -e "api@example.com" sudo -E /opt/venv/bin/genx env -e "YourPassword" sudo -E /opt/venv/bin/genx env -e "socket.camsenseai.com" sudo -E /opt/venv/bin/genx env -e "" sudo -E /opt/venv/bin/genx env -e "" sudo -E /opt/venv/bin/genx env -e ""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genx_ai-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
248faee7cb65ceab88dc7ac36f0a5190a17113e5f52b13c67892cd04585ede49
|
|
| MD5 |
276f204c6c347a8bc1147338de7d90c3
|
|
| BLAKE2b-256 |
758ad7455c23d48a313274bb9f44b91b2ae2418455e392fcdc3767f85a4510ea
|
File details
Details for the file genx_ai-2.9.0-cp313-cp313-musllinux_1_2_i686.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp313-cp313-musllinux_1_2_i686.whl
- Upload date:
- Size: 6.9 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdb6de92e590a44c23f0087d5051a30ad31d0730e650212e18e3144d680c6f9e
|
|
| MD5 |
bc79b615f91caa838befe411def9feed
|
|
| BLAKE2b-256 |
b5d49a8ac8b246d89be4dca3a5d7bd2ec464e1e59a0df80bd8b420b6e4af25f0
|
File details
Details for the file genx_ai-2.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d40bd6fcfd9cb11758c654b536c02235ece8e7944a0e9a94d59ec3f50ad5206
|
|
| MD5 |
a24fa5763fb166a19509fa932fc80aac
|
|
| BLAKE2b-256 |
c354a4d31ff34913bfbe276ef0dfe45cbf2a2daa008abcad56dca68fbb77f696
|
File details
Details for the file genx_ai-2.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e22e93fc58c46c6fab7ebec0b2aa882185afa56595b7fd62bcbc523f14a2456b
|
|
| MD5 |
8845858c157f018f9b22f530193fc9f3
|
|
| BLAKE2b-256 |
43df89a89469729f3350ac92fd6f07d14c1863d87b55444072226ee616493a74
|
File details
Details for the file genx_ai-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 7.2 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31cade03880d59d3704a53f7148e3c0a405b4a006ae09bbbf3e557fb6484dfc6
|
|
| MD5 |
6abb31e9164dbe68aeb70a16bbd9fce8
|
|
| BLAKE2b-256 |
79cb1e00a464aee88b9c9124c6419be65423023f432e49853e11a3c0beff7d8a
|
File details
Details for the file genx_ai-2.9.0-cp312-cp312-musllinux_1_2_i686.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp312-cp312-musllinux_1_2_i686.whl
- Upload date:
- Size: 7.0 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96ca973f20bea511318e7036e1da6a0f1a5c75b5fadd761a1f0ae0dfb5bb5d80
|
|
| MD5 |
ed60f6d6a08abed7bd551580d92087ca
|
|
| BLAKE2b-256 |
d93df5a67de9d5788e9a90d01094722ded3388405039b0e5b1b1f828dd96d46a
|
File details
Details for the file genx_ai-2.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a60bfa1ae5968692250ff6e62d8caa2141ac319468e6f02fce55af9a099ceebe
|
|
| MD5 |
1d77b1f109e923f56871583d9526a4d0
|
|
| BLAKE2b-256 |
35a3b3a55202a7cea7746901e8ab6853fbeedf0941f656163e2c82a3940c0c3e
|
File details
Details for the file genx_ai-2.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c4be1d60febc1f40e715ea1cc350210b38c87f6f87aaf6620eb2b26f6ed942
|
|
| MD5 |
540f5a7be29b5cef5092d18f997f2c47
|
|
| BLAKE2b-256 |
4662e3255c0c0b9ffcd6e6d53b29eb5ba9d2bf71750bb9a7a082cc83a312cfee
|
File details
Details for the file genx_ai-2.9.0-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 7.2 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45f5b4f31e8f6e43a31f2e7f93ce5badc1e0ce721ae06d99cc82e8ca52c0ca7c
|
|
| MD5 |
66025dd4a84d826822eaec3a1b7d9a53
|
|
| BLAKE2b-256 |
7f6ce973f51afbd3c64cf59c1bdf42615b202caa1ebd4fb3d8c893767ab77b97
|
File details
Details for the file genx_ai-2.9.0-cp311-cp311-musllinux_1_2_i686.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp311-cp311-musllinux_1_2_i686.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f3f9b68d81e40680b250d886795d0ce79e3070f5fa82e25bd55f26a95028bfb
|
|
| MD5 |
fcbaf7e2093b8ac28937d5905c4f9023
|
|
| BLAKE2b-256 |
80129ff7fa40427109c867f2e1dfcff7043039f06cb14331403cd8f8f772cb8e
|
File details
Details for the file genx_ai-2.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67e29d0282c9d7285d839ef1bed61ffbf683e9abef1eb6587277d00d9f82fc5c
|
|
| MD5 |
5cb1b2c9de8ade976b75c1e584848211
|
|
| BLAKE2b-256 |
1f1c052f56100f55947bd721b491d65b975fb1542a7060b838ca076f9453c877
|
File details
Details for the file genx_ai-2.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: genx_ai-2.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
501afc0c82e0a5f75ec7aa823d0cbf06de9b5d6decda584d0c3d4a38e14ef15a
|
|
| MD5 |
e817e8fdcc62144a2c3d862887edb371
|
|
| BLAKE2b-256 |
03305ba6fbb6c445a880936ba6856b636986bbd9ffcb0da2e2c4fe4d497c4c1a
|