visual_analysis_tool

An open source visual analysis tool based on FER

https://github.com/hleve/visual_analysis_tool

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

emotional-analysis fer visual-analysis
Last synced: 6 months ago · JSON representation ·

Repository

An open source visual analysis tool based on FER

Basic Info
  • Host: GitHub
  • Owner: hleve
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 5.15 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Topics
emotional-analysis fer visual-analysis
Created about 1 year ago · Last pushed 8 months ago
Metadata Files
Readme License Citation

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

  1. Clone the repository: git clone https://github.com/hleve/Visual_Analysis_Tool

  2. Navigate to the cloned directory: cd Visual_Analysis_Tool

  3. Create a virtual environment: python -m venv venv

  4. Activate the virtual environment:

On Windows: venv\Scripts\activate

On macOS and Linux: source venv/bin/activate

  1. Install the required dependencies: pip install -r requirements.txt

  2. Run 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

  1. Place your images in a designated directory.
  2. Navigate to the designated directory
  3. Update the image directory path in main.py.
  4. Update the output directory path in main.py.
  5. 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

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

requirements.txt pypi
  • cv2 *
  • fer *
  • matplotlib *
  • numpy *
  • opencv-python *
  • openpyxl *
  • pandas *
  • tensorflow *