Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
tree-disk-segmentation
Advanced tools
A Python package for analyzing tree rings in cross-sectional images.
pip install tree-disk-segmentation
import treedisksegmentation
# Configure the analyzer
treedisksegmentation.configure(
input_image="input/tree-disk4.png",
save_results=True,
)
# Run the analysis
(
img_in, # Original input image
img_pre, # Preprocessed image
devernay_edges, # Detected edges
devernay_curves_f, # Filtered curves
devernay_curves_s, # Smoothed curves
devernay_curves_c, # Connected curves
devernay_curves_p, # Final processed curves
) = treedisksegmentation.run()
Basic usage:
tree-disk-segmentation --input_image ./input/baumscheibe.jpg --output_dir ./output/output.jpg
Save intermediate results:
tree-disk-segmentation --input_image ./input/baumscheibe.jpg --output_dir ./output/output.jpg --model_path ./models/u2net.pth --save_results
Argument | Type | Required | Default | Description |
---|---|---|---|---|
--input_image | str | Yes | - | Path to input image |
--output_dir | str | No | ./output | Output directory path |
--model_path | str | No | ./models/u2net.pth | Path to the pre-trained model weights |
--debug | flag | No | False | Enable debug mode |
--save_results | flag | No | False | Save intermediate images, labelme and config file |
git clone https://github.com/tuke307/tree-disk-segmentation.git
cd tree-disk-segmentation
poetry install
poetry shell
FAQs
A package for tree disk segmentation in images
We found that tree-disk-segmentation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.