Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

VisualPyIDE: Advanced Python Editor with Image Analysis

πŸ“Œ Overview

VisualPyIDE is a powerful, customizable Python script editor designed for developers who need integrated image analysis capabilities. Built with PyQt6, it combines the flexibility of a modern code editor with specialized tools for image processing, computer vision, and AI-powered analysisβ€”all within a single, cohesive environment.

VisualPyIDE Screenshot

✨ Key Features

πŸ–₯️ Core Editor

  • Syntax highlighting with support for Python and other languages
  • Intelligent code completion powered by Jedi and Claude AI
  • Tab-based editing for working with multiple files
  • File browser with integrated project management
  • Console output for running scripts directly in the editor
  • Customizable UI with theming options

🧠 Claude AI Integration

  • Smart code suggestions that understand context
  • AI-powered code analysis to identify bugs and improvements
  • Automatic docstring generation for functions and classes
  • Code explanation with adjustable detail levels
  • Intelligent refactoring suggestions

πŸ–ΌοΈ Image Analysis Toolkit

  • Interactive dashboard for real-time image processing
  • Comprehensive visualization tools including histograms and comparisons
  • Advanced image enhancement features including:
    • Noise reduction and detail enhancement
    • Color correction and white balance
    • HDR processing and tone mapping
  • Computer vision algorithms for:
    • Edge and feature detection
    • Image segmentation
    • Face and object detection
    • Optical character recognition

πŸ”§ Customizability

  • Pluggable architecture for extending functionality
  • Customizable keybindings
  • Personalized editing experience suited to your workflows
  • Template system for common tasks

πŸš€ Installation

Prerequisites

  • Python 3.7 or higher
  • Qt6 libraries
  • OpenCV (for image analysis)

Basic Installation

# Clone the repository
git clone https://github.com/gddickinson/VisualPyIDE.git
cd VisualPyIDE

# Install dependencies
pip install -r requirements.txt

# Run the application
python main.py

Optional Dependencies

For full functionality, install these optional packages:

# For AI integration
pip install anthropic

# For advanced image analysis
pip install scikit-image tensorflow torch torchvision

πŸ” Detailed Component Overview

Code Editor

The core editing component provides:

  • Efficient code navigation with function/class browser
  • Smart indentation and code formatting
  • Error checking with inline indicators
  • Autocomplete with context-aware suggestions
  • Code folding for better organization
  • Multiple selection and column editing

Image Analysis

The integrated image analysis toolkit features:

Dashboard Interface

  • Interactive controls for quick adjustments
  • Operation history with undo/redo functionality
  • Side-by-side comparison of original and processed images
  • Histogram visualization with channel toggling
  • Code generation for reproducibility

Processing Capabilities

  • Basic enhancements
    • Brightness, contrast, gamma
    • Sharpening and blur
    • Color space conversions
  • Advanced techniques
    • Noise reduction (Gaussian, median, bilateral, NLM)
    • Edge detection (Canny, Sobel, Laplacian)
    • Feature detection (corners, SIFT, ORB)
    • Segmentation (thresholding, K-means, watershed)

AI-Powered Analysis

  • Classification using popular models (ResNet, MobileNet)
  • Object detection with YOLO, SSD, and Faster R-CNN
  • Face detection and recognition
  • Optical character recognition (OCR)

Template System

Ready-to-use templates for common image processing tasks:

  • Basic Image Loading - Essential operations for getting started
  • Image Filters - Comprehensive collection of image filters
  • Edge Detection - Multiple algorithms with parameter optimization
  • Image Segmentation - Techniques for partitioning images
  • Feature Detection - Identifying interest points and descriptors
  • Face Detection - Methods for facial analysis
  • OCR - Text extraction from images
  • Image Classification - Neural network based categorization
  • Object Detection - Localization and identification of objects
  • Image Enhancement - Advanced techniques for improving image quality

πŸ”„ Workflow Integration

VisualPyIDE is designed to fit seamlessly into your development workflow:

  1. Edit Python scripts with intelligent assistance
  2. Process and analyze images directly in the editor
  3. Generate code from your image processing operations
  4. Refine code with AI-powered suggestions
  5. Export as standalone Python scripts or full projects

This integration eliminates the need to switch between different tools, making your workflow more efficient and productive.

πŸ€– Claude AI Integration Details

The Claude AI integration enhances your coding experience:

Smart Completion

The editor uses a hybrid approach combining:

  • Jedi for local code understanding
  • Claude AI for context-aware suggestions

Code Analysis

  • Bug detection with explanation and fix suggestions
  • Performance optimization recommendations
  • Style improvements inline with PEP 8

Documentation

  • Automatic docstring generation following Google style
  • Function and class explanations at different detail levels
  • Usage examples created based on function signatures

πŸ“ Usage Examples

Basic Image Processing

# Load an image
img = cv2.imread('sample.jpg')
img_rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)

# Apply Gaussian blur
blurred = cv2.GaussianBlur(img_rgb, (5, 5), 0)

# Convert to grayscale
gray = cv2.cvtColor(blurred, cv2.COLOR_RGB2GRAY)

# Apply Canny edge detection
edges = cv2.Canny(gray, 100, 200)

# Display the result
plt.imshow(edges, cmap='gray')
plt.show()

Using the Template System

# From the terminal
python main.py --template edge_detection --image path/to/your/image.jpg

# From within the editor
from image_analysis.templates import edge_detection

# Load and process an image
image = edge_detection.load_image('path/to/your/image.jpg')
edges = edge_detection.apply_canny(image, threshold1=100, threshold2=200)
edge_detection.display_image(edges, title="Detected Edges")

AI-Assisted Code Generation

  1. Use the Image Analysis Dashboard to process your image
  2. Switch to the "Python Code" tab
  3. Click "Copy to Clipboard" or "Create Script"
  4. Paste the generated code into your project
  5. Customize as needed

πŸ”§ Customization

Editor Preferences

Customize the editor through:

  • Settings > Editor Preferences
  • Custom keybindings.json
  • themes/ directory for UI customization

Image Analysis Configuration

Configure image analysis tools:

  • Settings > Image Analysis
  • models/ directory for custom ML models
  • templates/ directory for custom processing templates

Extending Functionality

Add your own plugins:

  1. Create a new Python file in the plugins/ directory
  2. Implement the PluginInterface class
  3. Register the plugin in plugin_registry.py

πŸ”„ Project Structure

VisualPyIDE/
β”œβ”€β”€ core/               # Core editor functionality
β”‚   β”œβ”€β”€ editor.py       # Main editor component
β”‚   β”œβ”€β”€ syntax.py       # Syntax highlighting
β”‚   β”œβ”€β”€ autocomplete.py # Code completion
β”‚   └── ai_integration.py # Claude AI integration
β”œβ”€β”€ ui/                 # User interface components
β”œβ”€β”€ plugins/            # Plugin system
β”œβ”€β”€ image_analysis/     # Image analysis tools
β”‚   β”œβ”€β”€ dashboard.py      # Interactive dashboard
β”‚   β”œβ”€β”€ image_viewer.py   # Enhanced viewer
β”‚   β”œβ”€β”€ processing.py     # Processing algorithms
β”‚   └── templates/        # Ready-to-use templates
β”œβ”€β”€ customization/      # Customization framework
β”œβ”€β”€ models/             # Pre-trained ML models
└── main.py             # Application entry point

πŸ“‹ Requirements

  • Python 3.7+
  • PyQt6
  • OpenCV (cv2) 4.5+
  • NumPy 1.19+
  • Matplotlib 3.3+
  • Jedi 0.18+

Optional requirements:

  • Anthropic Python SDK (for Claude AI integration)
  • scikit-image (for advanced image processing)
  • TensorFlow or PyTorch (for ML-based image analysis)
  • pytesseract or easyocr (for OCR functionality)

πŸ›£οΈ Roadmap

Future enhancements planned:

  • GPU acceleration for image processing operations
  • Cloud integration for remote processing of large images
  • Batch processing for multiple image operations
  • Additional AI models for specialized image analysis
  • Collaborative editing features
  • Version control integration

πŸ’‘ Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Add your changes
  4. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


🀝 Support

If you encounter any issues or have questions, please:

  • Check the FAQ
  • Open an issue on GitHub
  • Join our community Discord server

VisualPyIDE: Where coding meets image analysis in perfect harmony.

About

Python Editor with Image Analysis

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages