https://github.com/nomadsdev/edge-vision-cam
EdgeVisionCam is a real-time edge detection tool using Python and Pygame. It processes live webcam video to highlight edges and contours, offering a clear view of your environment's features. With an easy-to-use interface and adjustable settings, EdgeVisionCam is ideal for dynamic visual analysis.
https://github.com/nomadsdev/edge-vision-cam
computer-vision edge-detection gaussian-filter image-process-numpy modules pygame python real-time-processing sobel-filters thresholding user-interface video-capture
Last synced: 10 days ago
JSON representation
EdgeVisionCam is a real-time edge detection tool using Python and Pygame. It processes live webcam video to highlight edges and contours, offering a clear view of your environment's features. With an easy-to-use interface and adjustable settings, EdgeVisionCam is ideal for dynamic visual analysis.
- Host: GitHub
- URL: https://github.com/nomadsdev/edge-vision-cam
- Owner: nomadsdev
- Created: 2024-08-27T07:38:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-27T07:49:32.000Z (over 1 year ago)
- Last Synced: 2025-09-06T23:43:27.128Z (5 months ago)
- Topics: computer-vision, edge-detection, gaussian-filter, image-process-numpy, modules, pygame, python, real-time-processing, sobel-filters, thresholding, user-interface, video-capture
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EdgeVisionCam
EdgeVisionCam is a real-time edge detection camera application built with Python and Pygame. It captures live video from your webcam, processes the frames with an enhanced edge detection algorithm, and displays the result on your screen.
## Features
- **Real-Time Edge Detection:** Captures live video from your webcam and applies an edge detection algorithm in real-time.
- **Customizable Parameters:** Easily adjust the Gaussian blur sigma, low and high threshold values for edge detection.
- **Simple and Intuitive UI:** Display the processed video feed with a straightforward Pygame-based interface.
## Requirements
- Python 3.x
- Pygame
- NumPy
- SciPy
## Installation
1. Clone the repository:
```bash
git clone https://github.com/nomadsdev/edge-vision-cam.git
cd EdgeVisionCam
```
2. Install the required Python packages:
```bash
pip install pygame numpy scipy
```
3. Run the application:
```bash
python main.py
```
## Project Structure
- `main.py`: The main entry point of the application, handling the camera feed and displaying the processed images.
- `camera_handler.py`: Handles the webcam input using Pygame's camera module.
- `display_handler.py`: Manages the display of images on the Pygame window.
- `edge_detection.py`: Contains the edge detection algorithm that processes each frame.
## Usage
1. Start the application by running `main.py`.
2. The camera feed will open, and the edges of objects in the frame will be highlighted.
3. To stop the application, close the window or press `Ctrl+C` in the terminal.
## Customization
You can adjust the parameters for edge detection directly in the `main.py` file:
```python
ed = detect_edges(img, sigma=1.5, low_threshold=50, high_threshold=150)
```
* sigma: Controls the Gaussian blur. Higher values lead to more blur.
* low_threshold and high_threshold: Determine the thresholds for edge detection. Adjust these to control which edges are detected.
## License
This project is licensed under the MIT License
## Contributions
Contributions are welcome! If you have any improvements or suggestions, feel free to create a pull request or open an issue.