focuscc
Python-Based Computer Vision tools for Cloud Chamber Events Detection
Science Score: 67.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
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.8%) to scientific vocabulary
Repository
Python-Based Computer Vision tools for Cloud Chamber Events Detection
Basic Info
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 2
Metadata Files
README.md
FocusCC: Python-Based Computer Vision for Cloud Chamber Events
Author: Nicolò Bagnasco
Contact: nicolo.bagnasco@edu.unito.it
Overview
FocusCC is a Python-based application designed for detecting and analyzing events in a cloud chamber using computer vision techniques. It processes a live video feed, applies edge detection, and identifies particle tracks in real time. The software also supports saving detected events, managing multiple webcams, and customizing various detection parameters.
Features
Main Features:
- Live Video Feed: Displays both raw and processed video feeds in real time.
- Event Detection: Detects particle tracks based on edge detection and threshold parameters.
- Webcam Selection: Choose from multiple connected webcams via a dropdown menu.
- Cooldown Feature: Avoid redundant detections by setting a cooldown time between events.
- Customizable Parameters:
- Event detection threshold
- Low and high thresholds for Canny edge detection
- Event Logging: Logs all system messages and detected events in a console-like interface.
- Save Events: Toggle between saving detected events as image files or viewing them live.
System Requirements
- Python 3.8 or newer
- Supported Operating Systems:
- macOS
- Linux
- Windows (partial webcam detection support)
- Required Python libraries:
opencv-pythonnumpyPillowtkinter(pre-installed with Python)
Installation
Steps to Install:
Clone the Repository:
bash git clone https://github.com/bagnasconicolo/Focuscc cd FocusCCInstall Dependencies:
bash pip install -r requirements.txtRun the Application:
bash python Focuscc.py
Usage
GUI Overview
Live Feed:
- Displays the original and processed video feeds side by side.
- Detected events are highlighted in the processed feed.
Controls:
- Start Webcam: Activates the video feed for the selected camera.
- Stop Webcam: Deactivates the video feed.
- Save Events: Toggles saving detected events as
.jpgfiles.
Webcam Selector:
- Use the dropdown menu to select from available webcams.
Event Log:
- Displays system messages and detected events in a console-like interface.
Filename Prefix:
- Customize the prefix for saved event files.
Cooldown:
- Avoid redundant detections by enabling a cooldown period (in seconds) between events.
Workflow
Start the Webcam:
- Select a camera from the dropdown menu.
- Click Start Webcam to begin the live feed.
Adjust Parameters:
- Use sliders to customize the detection threshold and Canny edge detection parameters.
Monitor Events:
- Detected events will be logged in the Event Log and highlighted in the processed feed.
Save Events:
- Enable Save Events to save images of detected events.
Stop or Exit:
- Use Stop Webcam to deactivate the feed or Exit to close the application.
Customization
Parameters:
- Event Threshold: Adjusts sensitivity for detecting events.
- Canny Edge Detection:
- Low Threshold: Lower bound for detecting edges.
- High Threshold: Upper bound for detecting edges.
- Filename Prefix: Set a custom prefix for saved event images.
- Cooldown: Set a time delay (in seconds) between consecutive detections.
File Customization:
- Icon: Replace
ccicon.pngwith your desired icon file in the project directory.
Troubleshooting
Common Issues:
Webcam Not Detected:
- Ensure the webcam is connected and properly recognized by your operating system.
- On Linux, ensure
v4l2-ctlis installed. - On macOS, ensure camera permissions are enabled.
No Events Detected:
- Lower the Event Threshold slider.
- Adjust Canny Edge Detection parameters for better sensitivity.
Application Crash:
- Ensure all required libraries are installed.
- Verify that the correct camera index is selected.
Icon Not Displaying:
- Ensure the icon file
ccicon.pngis in the correct directory and properly named.
- Ensure the icon file
Future Improvements
- Support for advanced particle track visualization.
- Automated analysis of saved event data.
- Cross-platform webcam detection enhancements for Windows.
- Extended cooldown customization (e.g., per event type).
License
This software is open-source and distributed under the MIT License.
Contact
For support, feedback or contributions, contact Nicolò Bagnasco:
📧 nicolo.bagnasco@edu.unito.it
Owner
- Name: Nicolò Bagnasco
- Login: bagnasconicolo
- Kind: user
- Twitter: nbagnasco
- Repositories: 1
- Profile: https://github.com/bagnasconicolo
Citation (CITATION.cff)
cff-version: 1.3.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Bagnasco
given-names: Nicolò
orcid: https://orcid.org/0000-0001-6747-3329
title: "FocusCC"
version: 2.0.4
identifiers:
- type: doi
value: 10.5072/zenodo.143471
date-released: 2024-12-17
GitHub Events
Total
- Release event: 1
- Watch event: 2
- Push event: 15
- Create event: 1
Last Year
- Release event: 1
- Watch event: 2
- Push event: 15
- Create event: 1