Only compatible for macOS 12+.
In order to run this app, you must run in sudo
on Terminal.
NOTE: in [] should be changed to your config
brew install libpcap
. If you don't havehomebrew
installed, you can install with:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
link
- You will need permissions to screen capture from Terminal.
- Go to Settings > Privacy & Security > Screen Recording.
- Add Terminal to allowed applications.
- NOTE: May be a security issue. Remove terminal from allowed apps when done using
Open up Terminal App. All the following commands will be run in Terminal.
- Once you unzip the file,
cd /path/to/mac_arm_macos_13
orcd /path/to/mac_x86_64_macos_12
s - In
config.json
file,- REQUIRED: "OutputDirectory": absolute filepath of directory to store data
- REQUIRED: "FrameRate": the screen capture at an initial frame capture rate (frames per second). The default frame capture rate may be too high for your laptop, in which case the frame rate will be reduced.
- REQUIRED: "VideoFrameMetricsUsed": The default metrics shows all metrics available. You may remove metrics as you like. Note: the most intensive computation to least is NIQE, PIQE, and LAPLACIAN. You may want to start with LAPLACIAN first.
- NO CHANGE "IPAddress": IP address of the centralized server.
sudo sezma.app/Contents/MacOS/sezma
. If a pop-up starting with " "sezma" can't be opened because Apple cannot check it for malicious software" opens, click OK.- You will need to give permissions to run the app. Open Privacy & Security in Settings and scroll down until you see " "sezma" was blocked from use because it is not from an identified developer". Click Open Anyway.
- If the pop-up of " "sezma" can't be opened because Apple cannot check it for malicious software" opens again, click Open. The app will pop up, run, and then close.
cp config.json sezma.app/Contents/MacOS/config.json
- Run
sudo sezma.app/Contents/MacOS/sezma
again. It should work now.
- If you want to update your
config.json
, update as described in Set Up 2.1 and/or 2.2 cp config.json sezma.app/Contents/MacOS/config.json
- Requires Python >= 3.8 and <= 3.10
- Once you unzip file,
cd /path/to/SEZMA
- Run
./install.sh
Open up Terminal App. All the following commands will be run in Terminal.
- Edit
config.json
file to save- REQUIRED: "OutputDirectory": absolute filepath of directory to store data
- REQUIRED: "FrameRate": the screen capture at an initial frame capture rate (frames per second). The default frame capture rate may be too high for your laptop, in which case the frame rate will be reduced.
- NO CHANGE "IPAddress": IP address of the centralized server.
cd /path/to/SEZMA
sudo ./run.sh
- If you want to check usage, you can use
sudo ./monitor.sh
- Activate your virtual environment.
source venv/bin/activate
. - If nuitka not installed, run
python3 -m pip install -U nuitka
- Mac command:
python3 -m nuitka --onefile --include-plugin-directory=app --include-data-files=/path/to/SEZMA/app/video/metrics/niqe_image_params.mat=app/video/metrics/niqe_image_params.mat --macos-create-app-bundle sezma.py
--> python used homebrew python3.9 (did not work with installed python in M1 due to recursion import error)
scapy.error.Scapy_Exception: Can't attach the BPF filter !
:libpcap
may not have been installed. Run the following commands in terminal:brew update
brew install libpcap
scapy
: to open scapy in terminal- Once in the scapy terminal, run
conf.use_pcap = True
- When trying to binarize the package, I ran into
cv2
recursion import error. This is due to python3 Apple version. Try usinghomebrew
's python version instead.