Skip to main content

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

  1. 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.

  2. dis_inicial (float): Initial distance between the two horizontal reference lines (in millimeters).

  3. numero_frames (int): Total number of frames in the tensile test.

  4. 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:

  1. dis_conocida: Intial distance between the two vertical lines (in millimetres)

  2. 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.

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pla_displacement_analysis-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pla_displacement_analysis-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pla_displacement_analysis-0.1.1.tar.gz.

File metadata

File hashes

Hashes for pla_displacement_analysis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 08ddda212c68b54e1bb9a6b12c3242158b558b6191c10819b985a45ca6c9b2b4
MD5 1b2653c173e51e6534485e113e12072f
BLAKE2b-256 d3cf83b11acaf476fad2e92bb495aa757b7cabe6046ae417244c031fcac768f2

See more details on using hashes here.

File details

Details for the file pla_displacement_analysis-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pla_displacement_analysis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66e464614ebc1de291703fab0f1245566ea79c5bffffa9a1910f4e25dc914b03
MD5 7d066f7cfc367cea48b41466589af463
BLAKE2b-256 44a4c0833eb70d76d063e0c71f8fb6a5e53ce96cf97e87c2779d23adb89d9e86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page