visual_analysis_tool
An open source visual analysis tool based on FER
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.7%) to scientific vocabulary
Keywords
Repository
An open source visual analysis tool based on FER
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 3
Topics
Metadata Files
README.md
Visual Analysis Tool
This repository provides a framework for analysis based on visual data. The current implementation is set up for sentiment analysis from a sequence of images of a face, assigning a sentiment score (percentages for Angry, Disgust, Fear, Happy, Sad, Surprise, and Neutral) using the fer library by Justin Shenk. The tool outputs an Excel file with the image name, emotion percentages, and the dominant emotion.
This tool is designed to be used with data collected from the RPi Data Collection repository, also available on GitHub.
Project Structure
Visual_Analysis_Tool
├── main.py # Entry point of the application
├── requirements.txt # Project dependencies
├── .gitignore # Files and directories to ignore in Git
├── example_images # Folder with example images
├── example_results.xlsx # Example results from running the example images
└── README.md # Project documentation
Installation
Clone the repository:
git clone https://github.com/hleve/Visual_Analysis_ToolNavigate to the cloned directory:
cd Visual_Analysis_ToolCreate a virtual environment:
python -m venv venvActivate the virtual environment:
On Windows:
venv\Scripts\activate
On macOS and Linux:
source venv/bin/activate
Install the required dependencies:
pip install -r requirements.txtRun the python file:
python main.py
Configuration
You can specify the image folder and output file path using either command-line arguments or a configuration file (config.yaml).
Using config.yaml (recommended for general users)
Edit the config.yaml file in the project root:
```yaml
config.yaml example
imagefolder: ./exampleimages outputfile: ./exampleresults.xlsx ```
Then simply run:
python main.py
Using command-line arguments (overrides config.yaml)
You can also specify options directly:
python main.py --image_folder ./my_images --output_file ./results.xlsx
If the output file already exists, the script will automatically create a new file with an incremented name (e.g., results_1.xlsx).
Output
The application will generate an Excel file containing the image names and their corresponding sentiment scores. The output file name will not overwrite previous results.
Usage
- Place your images in a designated directory.
- Navigate to the designated directory
- Update the image directory path in
main.py. - Update the output directory path in
main.py. - Run the application:
python main.py
Output
The application will generate an Excel file containing the image names and their corresponding sentiment scores.
Contributing
Feel free to submit issues or pull requests for improvements or bug fixes.
License
This project is licensed under the MIT License. Details can be found in the LICENSE file.
Owner
- Login: hleve
- Kind: user
- Repositories: 1
- Profile: https://github.com/hleve
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Levesque" given-names: "Henry" orcid: "https://orcid.org/0009-0008-5636-1143" title: "Visual_Analysis_Tool" version: 1.2.0 doi: 10.5281/zenodo.14607087 date-released: 2025-01-06 url: "https://github.com/hleve/Visual_Analysis_Tool"
GitHub Events
Total
- Release event: 2
- Public event: 1
- Push event: 18
- Create event: 2
Last Year
- Release event: 2
- Public event: 1
- Push event: 18
- Create event: 2
Dependencies
- cv2 *
- fer *
- matplotlib *
- numpy *
- opencv-python *
- openpyxl *
- pandas *
- tensorflow *