Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ronruizG committed May 13, 2023
1 parent 69c0526 commit 7f0304d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ Hi! I made this tool so I can have some nice reports for my dailies. I hope you

## Overview

The tool generates a report for a whole folder (the one that has all the video files, usually the copied video folder from camera) as a HTML file and if you want it can also do a PDF from the HTML, this is optional but I'll clarify that bellow. The script uses "gradio" as an UI so you'll have to copy and paste the IP address shown in terminal to your explorer, this is done locally so don't worry.
The tool generates a report for a whole folder (the one that has all the video files, usually the copied video folder from camera) as a HTML file and if you want it can also do a PDF from the HTML, this is optional but I'll clarify that bellow. The script uses `gradio` as an UI so you'll have to copy and paste the IP address shown in terminal to your explorer, this is done locally so don't worry.

## How to use

The script asks for an **Input path** and the number of folders it has to go up so it can create a "Reports" folder there, the default value is 2 and minimum is 1, this is useful for me because normally I create a "Footage" folder in my project. The script will keep the original video folder name by creating a subfolder with the same name inside "Reports".
The script asks for an `Input path` and the number of folders it has to go up so it can create a "Reports" folder there, the default value is 2 and minimum is 1, this is useful for me because normally I create a "Footage" folder in my project. The script will keep the original video folder name by creating a subfolder with the same name inside "Reports".

After a successful **Do HTML** run you can copy the **HTML Path** text from the webui and paste it to a new tab for review, then you could create a PDF with the **Do PDF** button if everything is correctly installed.
After a successful **Do HTML** run you can copy the `HTML Path` text from the webui and paste it to a new tab for review, then you could create a PDF with the **Do PDF** button if everything is correctly installed.

## Dependencies

before you use this script you'll need to install:
before anything you'll need to install:
- **ffmpeg** as an environment variable if you are on windows (you should be able to use it on terminal)
- **ghostscript** for the PDF feature. You can download it [here](https://www.ghostscript.com/)

Expand All @@ -27,7 +27,7 @@ You'll need Python 3.10, probably earlier versions should work too.
If you are on **windows** and don't care about "virtual environments" just run flickSnap.bat
If you want to have a "virtual environment" for this script for some reason just edit the bat file and delete the SKIP_VENV value, in this way it will create a VENV and activate it for the script.

Finally I you are on a **mac** or **linux** system just run "launch.py" from your terminal. If for some reason it gives you any problem try installing all the requirements from "requirements.txt" via "pip install ..." and then run "main.py".
Finally I you are on a **mac** or **linux** system just run `launch.py` from your terminal. If for some reason it gives you any problem try installing all the requirements from **requirements.txt** via `pip install` and then run `main.py`.

## Why gradio UI

Expand Down

0 comments on commit 7f0304d

Please sign in to comment.