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.0.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.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pla_displacement_analysis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 01a30fde914f7dd9a898b6ec96945250b1be49f386400ef965368f838df85c39
MD5 9a4b7798f2a52514c30933e4acc2bbae
BLAKE2b-256 3f72e2b6d9e913694ad3f25063721e7c67d64e54af94f50272c55785e60cccc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pla_displacement_analysis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73179c473d52285e0e68d3b45aac5c812cde8b9f22be44d6132d1073cf1298d4
MD5 5a8a493b9646fb238886a04b46fba0d7
BLAKE2b-256 f8ce9c55fc4b7044ec8efbffda67836a65fa32c38f4a00a26de9ccfe929ed472

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