
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
A Python package for analyzing tree rings in cross-sectional images. Originally forked from hmarichal93/apd.
pip install tree-disk-pith
import treediskpith
# Configure the analyzer
treediskpith.configure(
input_image="input/tree-disk4.png",
model_path="models/apd_dl.h5",
save_results=True,
)
# Run the detection
(
img_in, # Original input image
img_pre, # Preprocessed image
pith, # Center of the tree disk
) = treediskpith.run()
Basic usage:
tree-disk-pith --input_image ./input/tree-disk4-seg.jpg --model_path ./models/yolo11s-det-pith.pt
Advanced usage with custom parameters:
tree-disk-pith \
--input_image input/tree-disk3.png \
--model_path ./models/yolo11s-det-pith.pt \
--output_dir custom_output/ \
--new_shape 640 \
--save_results \
--debug
Argument | Type | Required | Default | Description |
---|---|---|---|---|
--input_image | str | Yes | - | Input image file path |
--output_dir | str | Yes | ./output | Output directory path |
--model_path | str | No | - | Path to the weights file (required if using apd_dl method) |
--new_shape | int | No | 0 | New shape for resizing the input image. If 0, no resizing is done |
--debug | flag | No | False | Enable debug mode to save intermediate images and outputs |
--save_results | flag | No | False | Save intermediate images, labelme and config file |
poetry config virtualenvs.in-project true
poetry env use python
poetry install
eval $(poetry env activate)
pytest
python fetch_dataset.py
python fetch_pretrained_model.py
FAQs
A package for tree disk pith detection in images
We found that tree-disk-pith 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.