The SEM Image Crop tool is a web-based application designed to process Scanning Electron Microscope (SEM) images of periodic silicon 2D structures. This tool allows users to upload TIFF images, select specific regions of interest, apply transformations, and extract exact boundaries of structures within the image.
- Upload and process SEM images
- Interactive image transformation based on user-selected points
- Precise boundary marking with polygon drawing tools
- Image processing to extract and highlight specific structures
- Download processed images in PNG format
- Python 3.7 or higher
- pip (Python package manager)
-
Clone the repository:
git clone https://github.com/yourusername/sem-image-processor.git cd sem-image-processor -
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` -
Install the required packages:
pip install -r requirements.txt
-
Start the Flask application:
python app.py -
Open a web browser and navigate to
http://localhost:5000 -
Upload an SEM image
-
Select four points on the image to define the region of interest
-
Click "Apply Transform" to process the selected region
-
Use the drawing tools to mark the boundaries of structures in the image
-
Click "Process Image" to extract the marked structures
-
Download the processed image using the "Download Result" button
Contributions to improve the SEM Image Processor are welcome. Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE file for more information.
Tianxiang Dai - txdai@stanford.edu
Project Link: https://github.com/txdai/SEM-Crop-Tool


