This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def detect_fractures(self, image, depth_top, depth_bottom): | |
| """Detect fractures in the image using specified method""" | |
| # ... existing edge detection code ... | |
| # For each detected line, calculate fracture parameters | |
| fractures = [] | |
| for line in lines: | |
| x1, y1, x2, y2 = line[0] | |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 2, | |
| "id": "d7b3a924-e561-45eb-8c33-693610c0d147", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "name": "stdout", |