displacement of a tensile test and a 3D block
Project description
pla-displacement-analysis
Package includes:
- Tensile test: measurement of the distance between two horizontal lines
- Experimental caja: measurement of the displacement of the horizontal point
Instalation
pip install PLA_displacement_analysis
Use
tensile-test --umbral 50 --dis-inicial 35 --numero-frames 300 --tiempo-ensayo 10
NOTE: For the code to work properly, the specimen needs to be of a light color, and the horizontal line black.
To compute the displacement during a tensile test, the user must provide the following parameters:
Parameters
-
umbral (int): Threshold value for image binarization. Pixel values range from 0 (black) to 255 (white). Values above this threshold are considered white, and values below are considered black. This value depends on the image quality and illumination conditions. A value around 50 is recommended.
-
dis_inicial (float): Initial distance between the two horizontal reference lines (in millimeters).
-
numero_frames (int): Total number of frames in the tensile test.
-
tiempo_ensayo (float): Total duration of the tensile test in seconds.
The folder in which the code is used needs to have the following files:
- A folder called "pics" that contains the frames of the tensile test. In this folder, the names of the images need to be of the following format: image-000000.tif where the number goes up as the frames do.
experimental-caja --dis-conocida 34 --umbral 50 --bideoa video.mov
NOTE:For the code to work properly, the specimen must be light-colored, both vertical reference lines must be dark, and the background of the video must be white to avoid confusion with the specimen edges.
The function asks for the next parametres:
-
dis_conocida: Intial distance between the two vertical lines (in millimetres)
-
umbral (int): Threshold value for image binarization. Pixel values range from 0 (black) to 255 (white). Values above this threshold are considered white, and values below are considered black. This value depends on the image quality, illumination conditions and the darkness of the vertical lines.
-
bideoa (str): The name of the video of the experiment, exactly as it is.
The folder in which the code is being used needs to have the following:
- A video of the experiment
Use (Python)
from PLA_displacement_analysis import tensile_test, experimental
tensile_test("pics/image-000000.tif", 50, 35, 300, 10)
experimental(34, 50, "bideoa2_prueba.mov")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pla_displacement_analysis-0.1.1.tar.gz.
File metadata
- Download URL: pla_displacement_analysis-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08ddda212c68b54e1bb9a6b12c3242158b558b6191c10819b985a45ca6c9b2b4
|
|
| MD5 |
1b2653c173e51e6534485e113e12072f
|
|
| BLAKE2b-256 |
d3cf83b11acaf476fad2e92bb495aa757b7cabe6046ae417244c031fcac768f2
|
File details
Details for the file pla_displacement_analysis-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pla_displacement_analysis-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e464614ebc1de291703fab0f1245566ea79c5bffffa9a1910f4e25dc914b03
|
|
| MD5 |
7d066f7cfc367cea48b41466589af463
|
|
| BLAKE2b-256 |
44a4c0833eb70d76d063e0c71f8fb6a5e53ce96cf97e87c2779d23adb89d9e86
|