<jupyter_start><jupyter_text>https://scikit-image.org/docs/dev/api/skimage.measure.htmlskimage.measure.regionprops<jupyter_code>%timeit props = regionprops(label(c))
%timeit retval, labels = cv.connectedComponents(c, connectivity=8, ltype=cv.CV_16U)
%timeit retval, labels, stats, centroids = cv.connectedComponentsWithStats(c, connectivity=4, ltype=None)
%timeit retval, labels, stats, centroids = cv.connectedComponentsWithStats(c, connectivity=8, ltype=None)
%timeit retval, labels, stats, centroids = cv.connectedComponentsWithStats(c, connectivity=8, ltype=cv.CV_16U)
%timeit retval, labels, stats, centroids = cv.connectedComponentsWithStats(c, connectivity=8, ltype=cv.CV_32S)<jupyter_output>53.5 µs ± 1.33 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
3.35 µs ± 8.31 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
45.3 µs ± 1.45 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
43.4 µs ± 1.48 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
7.92 µs ± 33.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
44.9 µs ± 2.03 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
{'fraction_non_alphanumeric': 0.12412587412587413, 'fraction_numerical': 0.0743006993006993, 'mean_word_length': 4.963541666666667, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '482069', 'license': 'MIT', 'n_tokens_mistral': 480, 'n_tokens_neox': 414, 'n_words': 142, 'path': 'references/matching/ops_connected.ipynb', 'repo_name': 'flystarhe/cvtk', 'size': '1144'}