diff --git a/README.md b/README.md index 0913ba5..cc3b164 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ This project is a combination of facial emotion recognition (FER), sentiment ana ## Installation: 1. Clone the repository: `git clone https://github.com/Ashthetik/Polarity-.git` -2. run **BOTH** the installers in `installers/` (linux only) +2. run **BOTH** the installers in `installers/` 3. create a `build/` directory and run `cmake ..` -4. now `make -j $nproc` or `ninja` +4. now `make -j $nproc` or `ninja` (note for windows do `cmake --build . --target install`) > [!IMPORTANT] > Please note, this won't actually run yet, so please don't open an issue regarding it not running. @@ -35,4 +35,4 @@ This project is a combination of facial emotion recognition (FER), sentiment ana - Georgi Gerganov for Whisper.cpp: [ggerganov/whisper.cpp](https://github.com/ggerganov/whisper.cpp) ## License: -This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details. \ No newline at end of file +This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details. diff --git a/installers/armadillo.ps1 b/installers/armadillo.ps1 new file mode 100644 index 0000000..6663f0d --- /dev/null +++ b/installers/armadillo.ps1 @@ -0,0 +1,19 @@ +#winget install Microsoft.VisualStudio.2022.BuildTools Kitware.CMake Git.Git + +git clone https://gitlab.com/conradsnicta/armadillo-code.git + +cd ../ + +$P_REPO_LOCATION = Get-Location + +cd ./installers + +cd armadillo-code + +New-Item -ItemType Directory -Path ./build +cd ./build + +$CMAKE_GENERATOR_OPTIONS = '-G Visual Studio 17 2022' + +cmake "$CMAKE_GENERATOR_OPTIONS" -DCMAKE_INSTALL_PREFIX="$P_REPO_LOCATION/armadillo-code" .. +cmake --build . --target install --config release diff --git a/installers/opencv.ps1 b/installers/opencv.ps1 new file mode 100644 index 0000000..a5b3ce1 --- /dev/null +++ b/installers/opencv.ps1 @@ -0,0 +1,27 @@ +# Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.3.2691/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle +winget install Microsoft.VisualStudio.2022.BuildTools Kitware.CMake #make sure to also select desktop developement with C++ +# uncomment the first line if you dont have winget installed for some reason + +wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.x.zip +wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip +Expand-Archive -Path ./opencv.zip +Expand-Archive -Path ./opencv_contrib.zip +downloading required stuff and extracting it +cd ../ + +$P_REPO_LOCATION = Get-Location + +New-Item -ItemType Directory -Path ./installers/build +cd ./installers/build + + +$CMAKE_OPTIONS = '-DBUILD_PERF_TESTS:BOOL=OFF -DBUILD_TESTS:BOOL=OFF -DBUILD_DOCS:BOOL=OFF -DWITH_CUDA:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DINSTALL_CREATE_DISTRIB=ON' +$CMAKE_GENERATOR_OPTIONS = '-G Visual Studio 17 2022' + + +Write-host "$CMAKE_OPTIONS" +Write-host "$CMAKE_GENERATOR_OPTIONS" +Write-host "$P_REPO_LOCATION" #for verification purposes + +cmake "$CMAKE_GENERATOR_OPTIONS" "$CMAKE_OPTIONS" -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/opencv_contrib-4.x/modules -DCMAKE_INSTALL_PREFIX="$P_REPO_LOCATION/opencv" "../opencv/opencv-4.x" +cmake --build . --target install --config release