appliedchemlabwork_tayra.D3 package#

Module contents#

The D3 experiment analysis.

Module Functions#

find_boxes(filepath, save_to[, fsave])

Find bands as bounding boxes.

SuperWindow(parent, flags)

The main window of the GUI tools.

class appliedchemlabwork_tayra.D3.SuperWindow(parent: QWidget | None = None, flags: WindowType = <WindowType.Window: 1>)[source]#

Bases: QMainWindow

The main window of the GUI tools.

Parameters:
parentQWidget | None

The parent widget.

flagsWindowType | None

The flags.

Attributes:
file_sourceQLineEdit

The text box for the file path to the source image.

result_locationstr | None

The result output location.

pick_source_btnQPushButton

The file picking button to open the source image.

start_btnQPushButton

The button to start detection process.

imgQImage

The image on the window.

Methods

__init__(parent=None,flags=…)

Initializes the class.

createWindowContents()

Creates the window main contents.

pick_file()

Picks the file.

createWindowContents()[source]#

Creates the window’s main contents.

This method defines the window’s CentralWidget contents.

file_source: QLineEdit#
img: QImage#
pick_file()[source]#
pick_source_btn: QPushButton#
result_location: str | None#
start_btn: QPushButton#
appliedchemlabwork_tayra.D3.find_boxes(filepath: str, save_to: str, fsave: str = './runs/detect/predict')[source]#

Find bands as bounding boxes.

Parameters:
filepathstr

The path to the image file containing the DNA electrophoresis bands.

save_tostr

The directory to save the data.

fsavestr, optional

The directory to save the result.

Returns:
dataList of Results

The list of the results.

Raises:
FileNotFoundError

The image file was not found.