diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..d6f4074 --- /dev/null +++ b/public/404.html @@ -0,0 +1,287 @@ + + + + + + + + 404 Page not found · Nickiel's Static Pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+

Page Not Found 😕

+

Error 404

+
+

It seems that the page you've requested does not exist.

+
+
+
+ + + + + + + + diff --git a/public/categories/index.html b/public/categories/index.html new file mode 100644 index 0000000..7923e28 --- /dev/null +++ b/public/categories/index.html @@ -0,0 +1,298 @@ + + + + + + + + Categories · Nickiel's Static Pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+

Categories

+ +
+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..4d085ee --- /dev/null +++ b/public/index.html @@ -0,0 +1,310 @@ + + + + + + + + Nickiel's Static Pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ + + +
+
+ +
+

Nickiel's Static Pages

+
+ +
+
+
+ + +
+
+ + + +
+ + + + + + + + diff --git a/public/index.xml b/public/index.xml index ec7822d..f35770e 100644 --- a/public/index.xml +++ b/public/index.xml @@ -12,8 +12,8 @@ Mon, 01 Jan 0001 00:00:00 +0000 https://staticpages.nickiel.net/posts/chrono_track/ - Chrono Track User Manual Welcome not so weary traveler! Odds are pretty high that you had no issue finding this, because if you did find it, odds are the creator gave it to you. -Credential file The credential file for this script, looks like this: + Chrono Track User Manual # Welcome not so weary traveler! Odds are pretty high that you had no issue finding this, because if you did find it, odds are the creator gave it to you. +Credential file # The credential file for this script, looks like this: user="TheUserName" pswd="theworldsmostsecurepasswordbecauseitislong" email_addr="destination_addr@example.com" primary_note_id="id of the source note" logging_note_id="id of the output note" server_url="the base domain of the server you are using" Put your logon username (not your display name) into the first line, your logon password on the second line, and the email address you wish to recieve emails on line three. @@ -23,11 +23,10 @@ user="TheUserName" pswd="theworldsmostsecurepasswordbeca Mon, 01 Jan 0001 00:00:00 +0000 https://staticpages.nickiel.net/posts/wgu_instructions/ - Step 0: Clone the repository Before you can run this project, you will need to clone the git repository with the following command: + Step 0: Clone the repository # Before you can run this project, you will need to clone the git repository with the following command: git clone https://git.nickiel.net/Nickiel/WGU-Capstone See Project Structure for more information on the repository you just cloned. See Step 1 - Prerequisites on what is required before you can run this project. -Project Structure Below you can find the default project folder structure after cloning it: -WGU-Capstone ├.gitignore ├Main.py ├README. +Project Structure # Below you can find the default project folder structure after cloning it: diff --git a/public/logo-192.png b/public/logo-192.png new file mode 100644 index 0000000..1e3752c Binary files /dev/null and b/public/logo-192.png differ diff --git a/public/logo-512.png b/public/logo-512.png new file mode 100644 index 0000000..2ede491 Binary files /dev/null and b/public/logo-512.png differ diff --git a/public/logo.svg b/public/logo.svg new file mode 100755 index 0000000..6488b42 --- /dev/null +++ b/public/logo.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/posts/chrono_track/index.html b/public/posts/chrono_track/index.html new file mode 100644 index 0000000..0e52f46 --- /dev/null +++ b/public/posts/chrono_track/index.html @@ -0,0 +1,522 @@ + + + + + + + + Chrono-Track User manual · Nickiel's Static Pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+

Chrono-Track User manual +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + ·3 mins + + + + +
+ + +
+
+
+ +

Chrono Track User Manual

+

Welcome not so weary traveler! Odds are pretty high that you had no issue finding this, because if you did find it, odds are the creator gave it to you.

+ +

Credential file

+

The credential file for this script, looks like this:

+
user="TheUserName"
+pswd="theworldsmostsecurepasswordbecauseitislong"
+email_addr="destination_addr@example.com"
+primary_note_id="id of the source note"
+logging_note_id="id of the output note"
+server_url="the base domain of the server you are using"
+

Put your logon username (not your display name) into the first line, your logon password on the second line, and the email address you wish to recieve emails on line three.

+

For the next part, you need to create two notes in your notes nextcloud. See below for more information on actually setting it up +. This section just shows how to get the ID.

+ +

Getting a note’s ID

+

To get the ID of your notes, simply log into your nextcloud account, go to the notes tab, and navigate to the note you wish to get the id of. Then look at the URL, and grab the string of numbers at the end, and put that into the template above!

+

Simply do this for both of the notes you wish to use.

+

+ URL Example with note id circled + +
+

+ +

Setting up your source note

+

The source note, is the important one that the user interacts with. If you are the user, then yes! I am talking about you.

+

To set up the source note, all you need to know, is that Chrono Track ignores all lines except for checkboxes (- [ ] in markdown). So a source note might look like this!

+

(Note: The title of the note does not matter)

+
- [ ] Item 1
+- [ ] Item 2
+This line is ignored! But quillpad will automatically convert it into a checklist item.
+

Because of the quillpad issue, I personally would advise that you only put checklist items in this file (lines starting with the checklist markdown mark - [ ]). If you don’t use quillpad, and are using something that does support checking items in non-list-only files, congratulations you lucky person! Ignore this line.

+ +

Setting up your output note

+

This file is 90% managed by Chrono Track, so you should only need to touch it once, and forget about it.

+

To start the file, please put the following:

+
*Last Updated*
+# Automatically Generated
+

And that’s it. In fact, you could go even more minimalistic, because this is all that it checks for:

+
*Last Updated 
+# <Literally Anything>
+
+

Warranty Agreement

+

Disclaimer: The Dubiously Digitized Dreamcatcher© Software Warranty Depletion Expedition

+

Congratulations on embarking on this software odyssey! We must inform you that this product, the Dubiously Digitized Dreamcatcher©, journeys through the labyrinth of warranty obfuscation. Herein, we are boldly committed to a perpetually transient warranty policy, which may challenge your very grasp of reality.

+

Initially, our warranty is as solid as a fleeting quantum particle, here and not here simultaneously. Over time, it metamorphoses into a spectral unicorn tap-dancing on the event horizon of a cosmic black hole.

+

Intriguingly, your warranty might transform into a probability cloud of wandering gnomes with abacuses, calculating the odds of a one-winged butterfly performing a symphony. Eventually, your warranty becomes a palindrome of gibberish.

+

Remember, we take pride in our commitment to the inexplicable. Use this software at your own risk, and may the warranty force be ever in your favor.

+

Thank you ChatGPT, that will do nicely

+ +
+ +
+ + + + + +
+ + + + + + + + diff --git a/public/posts/index.html b/public/posts/index.html new file mode 100644 index 0000000..57f7d0a --- /dev/null +++ b/public/posts/index.html @@ -0,0 +1,430 @@ + + + + + + + + Posts · Nickiel's Static Pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ + +
+
+ +
+

Posts

+ +
+
+ + + +

+ 0001 +

+
+ +
+ +
+

+ + WGU Capstone Setup Instructions + + + +

+ +
+ + Step 0: Clone the repository # Before you can run this project, you will need to clone the git repository with the following command: +git clone https://git.nickiel.net/Nickiel/WGU-Capstone See Project Structure for more information on the repository you just cloned. +See Step 1 - Prerequisites on what is required before you can run this project. +Project Structure # Below you can find the default project folder structure after cloning it: + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + ·10 mins + + + + +
+ + +
+
+ + +
+

+ + Chrono-Track User manual + + + +

+ +
+ + Chrono Track User Manual # Welcome not so weary traveler! Odds are pretty high that you had no issue finding this, because if you did find it, odds are the creator gave it to you. +Credential file # The credential file for this script, looks like this: +user="TheUserName" pswd="theworldsmostsecurepasswordbecauseitislong" email_addr="destination_addr@example.com" primary_note_id="id of the source note" logging_note_id="id of the output note" server_url="the base domain of the server you are using" Put your logon username (not your display name) into the first line, your logon password on the second line, and the email address you wish to recieve emails on line three. + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + ·3 mins + + + + +
+ + +
+
+ + +
+ + +
+ + + + +
+ + + + + + + + diff --git a/public/posts/index.xml b/public/posts/index.xml index 831957f..f91fdce 100644 --- a/public/posts/index.xml +++ b/public/posts/index.xml @@ -12,8 +12,8 @@ Mon, 01 Jan 0001 00:00:00 +0000 https://staticpages.nickiel.net/posts/chrono_track/ - Chrono Track User Manual Welcome not so weary traveler! Odds are pretty high that you had no issue finding this, because if you did find it, odds are the creator gave it to you. -Credential file The credential file for this script, looks like this: + Chrono Track User Manual # Welcome not so weary traveler! Odds are pretty high that you had no issue finding this, because if you did find it, odds are the creator gave it to you. +Credential file # The credential file for this script, looks like this: user=&#34;TheUserName&#34; pswd=&#34;theworldsmostsecurepasswordbecauseitislong&#34; email_addr=&#34;destination_addr@example.com&#34; primary_note_id=&#34;id of the source note&#34; logging_note_id=&#34;id of the output note&#34; server_url=&#34;the base domain of the server you are using&#34; Put your logon username (not your display name) into the first line, your logon password on the second line, and the email address you wish to recieve emails on line three. @@ -23,11 +23,10 @@ user=&#34;TheUserName&#34; pswd=&#34;theworldsmostsecurepasswordbeca Mon, 01 Jan 0001 00:00:00 +0000 https://staticpages.nickiel.net/posts/wgu_instructions/ - Step 0: Clone the repository Before you can run this project, you will need to clone the git repository with the following command: + Step 0: Clone the repository # Before you can run this project, you will need to clone the git repository with the following command: git clone https://git.nickiel.net/Nickiel/WGU-Capstone See Project Structure for more information on the repository you just cloned. See Step 1 - Prerequisites on what is required before you can run this project. -Project Structure Below you can find the default project folder structure after cloning it: -WGU-Capstone ├.gitignore ├Main.py ├README. +Project Structure # Below you can find the default project folder structure after cloning it: diff --git a/public/posts/page/1/index.html b/public/posts/page/1/index.html new file mode 100644 index 0000000..b8a86f8 --- /dev/null +++ b/public/posts/page/1/index.html @@ -0,0 +1,10 @@ + + + + https://staticpages.nickiel.net/posts/ + + + + + + diff --git a/public/posts/wgu_instructions/index.html b/public/posts/wgu_instructions/index.html new file mode 100644 index 0000000..0b3d9b3 --- /dev/null +++ b/public/posts/wgu_instructions/index.html @@ -0,0 +1,767 @@ + + + + + + + + WGU Capstone Setup Instructions · Nickiel's Static Pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+

WGU Capstone Setup Instructions +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + ·10 mins + + + + +
+ + +
+
+
+ +

Step 0: Clone the repository

+

Before you can run this project, you will need to clone the git repository with the following command:

+
git clone https://git.nickiel.net/Nickiel/WGU-Capstone
+

See Project Structure + for more information on the repository you just cloned.

+

See Step 1 - Prerequisites + on what is required before you can run this project.

+ +

Project Structure

+

Below you can find the default project folder structure after cloning it:

+
WGU-Capstone
+├.gitignore
+├Main.py
+├README.md
+├WGU-Capstone-User-Guide.html
+├requirements.txt
+├shell.nix
+├cascades
+│ ├ cascade_1.xml
+│ ├ cascade_2.xml
+│ ├ cascade_5.xml
+│ └ cascade_10.xml
+├training_data
+│ ├ positives
+│ └ training_data_setup.py
+â””validation
+  ├ TestVideo.mp4
+  ├ compare_to_gt.py
+  ├ create_ground_truth.py
+  â”” ground_truth.txt
+

Click here to skip the detailed file structure explaination +

+ +

Top Level

+

In the top-level of the cloned repository, you will find most of the files required for the core-fuctionality.

+ +

.gitignore

+

This file excludes files we don’t want to check into git - such as the training data. +These files continue to exist on machine, but they are not uploaded to the remote git repository. This is very helpful to keep the clone sizes down, and upload/download speeds up.

+ +

Main.py

+

The main file of interest for this project. This file contains all of the code for the finished product. +As long as this file is in the same folder as the ./cascades folder, it can be copied and run anywhere with the prerequisites installed.

+ +

README.md

+

The file you are reading in a format that most git hosting servers automatically render as the home-page.

+ +

WGU-Capstone-User-Guide.html

+

The html version of the README.md file that was bundled with CSS and hyper-links.

+ +

requirements.txt

+

The file that contains all of the python pip requiremnts to run. This packages in this file can either be installed by hand (e.g. pip install opencv-python), or can all be installed at once with pip install -r requirements.txt which will install all of the modules needed to run this project that are not included in the standard library.

+ +

shell.nix

+

A file that can be used on Nix and NixOS + systems to create a reproducable environement with all of the requirements to run the Main.py file.

+ +

./Cascades

+

This folder contains the final trained models created by this project in the model training step. +For more information on how they were created, see Training your own Haar file + below.

+

This folder needs to be in the same directory as the Main.py file for the Main.py file to be able to run.

+ +

./Traning_data

+

This folder contains all of the requirements for creating a new model from a few un-catagorized positive images, and a large dataset of negatives.

+

NOTE: Before anything in this folder can be run, please see the section on training the haar files + for several prerequisites.

+ +

./Training_data_setup.py

+

This python file takes a large data-set of negative images from the ./training_data/negatives folder and creates .vec files that can be passed as an arguement to the utility that trains the final Haar file.

+ +

./Positives

+

This folder contains the 10 images that were used to create the cascade files included in this project. These files were included because the 10 images are a very small dataset in comparison to the required negatives.

+ +

./Validation

+

The folder contains all of the scripts and files used to measure the performance and accuracy of the generated models.

+ +

TestVideo.mp4

+

This minute-long video was used to test the trained models.

+ +

Compare_to_gt.py

+

This file compares the output of a --validate output file generated by Main.py of a run with the provided ground_truth.txt file. +The output of this file is a .csv file that describes the average deviation from the boxes described by the ground_truth.txt file. See Validation and Testing + for more information on this process.

+ +

Create_ground_truth.py

+

This is the file used to create the ground_truth.txt file from the provided TestVideo.mp4.

+ +

Step 1 - Prerequisites

+

Before you can run this project, you need a python environment with the required packages installed.

+

If you are using Nix or NixOS, simply run nix shell in the WGU-Capstone folder, and all of the packages required to run Main.py will be installed for that shell session.

+

However, if you are not on a Nix system, continue reading.

+

The steps below detail how to set up a virtual environment that can be used to run this project, but a system-wide install of python with the packages detailed in requirements.txt installed will also suffice.

+ +

Set up virtual environment

+

This project was created with python 3.11, and other versions are not garunteed to work. So to ensure the project works as designed, install python 3.11 from the official python download page.

+

Once you have python 3.11 installed on your system, navigate to the cloned repository’s root directory, and run the following command to create a new virtual environement:

+
python -m venv ./venv
+

You can now run the following commands to enter the virtual environment, and any python commands will be run inside the virtual environment instead of your system-wide installation.

+

On windows run the following if you are using a cmd prompt:

+
.\venv\Scripts\activate.bat
+

On windows in powershell:

+
.\venv\Scripts\Activate.ps1
+

If you are on a linux based operating system, enter the virtual environment with:

+
.\venv\Scripts\activate
+
+

Install requirements

+

Now that you have activated the virtual environment, install the non-standard library requirements with the below command:

+
pip install -r ./requirements.txt
+
+

Step 2 - Running the project

+

Now that the pre-requisites have been installed, you can run the project. For a full list of command-line arguements, run python Main.py --help.

+

Run the project with the dashboard enabled with the following command from the root of the project directory:

+
python Main.py -d
+

You should see the web-cam of your computer turn on, and a window appear showing the view of the webcam, with boxes around any detected faces.

+

To display the calculated adjustment amounts generated by this project, enable the print-to-stoud feature with the -o flag:

+
python Main.py -d -o
+

This command will output the calculated output commands for every detected face, and also show the summary statistics.

+ +

Additional flags

+

This section will describe, in greater depth, the available feature flags shown by the --help screen.

+ +

Help

+

-h or --help

+

Displays all of the available parameters and a quick description

+ +

Version

+

-v or --version

+

Prints the version of the program and exits

+ +

Show Dashboard

+

-d or --dasbboard

+

Display the run-summary statistics, these are off by default.

+ +

Output Adjustment Instructions

+

-o or --output

+

Print the calculated adjustment instructions generated by the program. This output demonstrates the generated values that will be sent to the motorized camera platform.

+ +

Use Video File

+

-f <file_path> or --file <file_path>

+

Use a video file (such as ./validation/TestVideo.mp4) instead of the computer’s webcam. Useful for generating validation files and on machines without a working webcam.

+ +

Headless Mode

+

-s or --no-screen

+

Run the program without the window displaying processed video frames.

+ +

Save Frames for Training Data

+

-t or --training-data

+

Save frames where faces were found to ./output as .jpg files, and save the located face’s location to a .csv file. +This feature will be used to generate positive images automatically for training future models.

+ +

Generate Validation File

+

--validate

+

Outputs all discovered boxes, the frame they were found on, and the box coordinates so the model can be validated against the ground truth. See validation and testing + for more information on this process.

+ +

Training Your Own Haar File

+

This project contains the scripts required to train your own Haar cascade files, but it does not contain several of the dependencies.

+

NOTE: These steps only apply to Windows devices.

+ +

Prerequisites

+

The first requirement needed before you can train your own Haar file, is a large number of negative images. For this project, I used this Kaggle dataset of landscape images + as my negatives datasource. After downloading this file, unzip it and deposit all of the raw images into the ./training_data/negatives folder - create it if needed.

+

Next we need to download the windows OpenCV binary distributable and put it in our training_data folder.

+

You can download the 3.4.15 binary executable here +. (You can also go here + and find the 3.4.15 release and choose “windows” to get to the same page).

+

After the .exe file has downloaded, open it and go through the steps to unzip it. After it has been unzipped, copy the folder to ./training_data/opencv. So you should be able to run this from the training_data directory:

+
.\opencv\build\x64\vc15\bin\opencv_createsamples.exe
+

If you do not get an error running the above command, then it was installed correctly.

+ +

Generating positive images

+

Now that we have the create_samples utility provided by OpenCV (they stopped distributing executables of it after 3.4.15) and the negatives folder full of negative images, we can use the training_data_setup.py file to create several different sized datasets ready for training Haar cascade files on.

+

The python file will run the create_samples tool for every positive image in ./positives, creating many positive images. +The script will do all of the steps up through creating the .vec files that the train_cascade exectuable requires.

+

Before exiting, training_data_setup outputs the commands that need to be run to train the models. Run these commands from the training_data folder, and after they have finished training, you can use the generated Haar cascades instead of the ones provided.

+ +

Validation and Testing

+

The following describes the process I used to test the precision and accuracy of the generated cascade files.

+ +

Generate the Ground Truth file

+

I have included a generated ground_truth.txt file, so you don’t need to do this step. But if you would like to generate the ground truth file from the provided test video, navigate to root of the project, and run the create ground truth script:

+
python create_ground_truth.py
+

A window will open and display the process as it creates the file. This script does not utilize Haar files, but the MIL tracking algorithm, which results in much more accurate results, but a slower processing speed for the video.

+

All of these settings have been hard-coded so it will always output the same ground truth file.

+ +

Getting the model validation file

+

Now that we have the ground truth for our Test Video, we need to generate the same file with our trained model.

+

To do this, edit the Main.py file so that it uses the new cascade, then run the python file with the --validate option set, and the test video passed to the -f flag. The command used to generate the statistics with the test video provided is this:

+
python ./Main.py -d -f ./validation/TestVideo.mp4 --validate
+

(Notice that we can still display the dashboard while it outputs validation info)

+

This will create a new file in the ./validation folder describing the faces and locations found in each frame.

+ +

Comparing it to the ground truth

+

I have created a script to automatically compare a validation file with a ground truth file, and output the average absolute deviation in adjustment instructions. +It requires two arguements, and has one optional output. You can see the options with the --help flag, but I will demonstrate all of the options below.

+

You can use ./validation/compare_to_gt.py like this:

+
cd ./validation
+python compare_to_gt ./ground_truth.txt ./20231012-081235.txt ./output.csv --faces_count_file ./faces_count_output.csv
+

This script will then take the generated test validation file, and get what the generated adjustment output would be, and gets the absolute difference between it and the ground truth, then it adds together all results for each frame - this last part penalizes false positives. We can then take the generated output file, and open it in Excel. We can take the average of it to see what the average deviation from the ground truth would be. The generated faces_count_output file contains the number of faces found in each frame, and can be used to measure the number of false positives.

+ +
+ +
+ + + + + +
+
+
+
+

+ © + 2023 +

+ +

+ + Powered by Hugo & Compost +

+ +
+
+ +
+
+
+ + + + + + + diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100644 index 0000000..279070c --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1,12 @@ +{ + "name": "Hugo Compost", + "short_name": "Compost", + "start_url": "/", + "icons": [ + { "src": "/logo-192.png", "sizes": "192x192", "type": "image/png" }, + { "src": "/logo-512.png", "sizes": "512x512", "type": "image/png" } + ], + "theme_color": "#fff", + "background_color": "#fff", + "display": "standalone" +} diff --git a/public/sitemap.xml b/public/sitemap.xml index 005579d..5596f26 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -1,17 +1,33 @@ - - https://staticpages.nickiel.net/categories/ - - https://staticpages.nickiel.net/posts/chrono_track/ - - https://staticpages.nickiel.net/ - - https://staticpages.nickiel.net/posts/ - - https://staticpages.nickiel.net/tags/ - - https://staticpages.nickiel.net/posts/wgu_instructions/ - + + + + + + https://staticpages.nickiel.net/posts/chrono_track/ + + + + + + https://staticpages.nickiel.net/ + + + + + + https://staticpages.nickiel.net/posts/ + + + + + + + + https://staticpages.nickiel.net/posts/wgu_instructions/ + + + diff --git a/public/tags/index.html b/public/tags/index.html new file mode 100644 index 0000000..2d4dbb0 --- /dev/null +++ b/public/tags/index.html @@ -0,0 +1,298 @@ + + + + + + + + Tags · Nickiel's Static Pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+

Tags

+ +
+
+ +
+ +
+
+ +
+ + + + + + + +