Skip to content

Instantly share code, notes, and snippets.

View sciunto's full-sized avatar

François Boulogne sciunto

View GitHub Profile
@sciunto
sciunto / wood.py
Created September 18, 2023 15:33
Wood humidity
#!/usr/bin/env python
# coding: utf-8
import numpy as np
from scipy import constants, optimize
import matplotlib.pyplot as plt
plt.rcParams.update({'figure.autolayout': True})
import numpy as np
import dash
from dash.dependencies import Input, Output, State
import dash_html_components as html
import dash_core_components as dcc
from skimage import io, transform, filters, segmentation
from skimage import img_as_ubyte
from scipy import ndimage
import plotly.express as px
@sciunto
sciunto / skimage_weekly_update.py
Created April 17, 2020 13:40 — forked from emmanuelle/skimage_weekly_update.py
Use github API to print weekly updates for a given project (here scikit-image)
#!/usr/bin/env python
from github import Github
import datetime
def print_list(l, title=None):
"""From list of PullRequest of Issue objects,
print their number and title.
"""
print(f'## {title}\n')
if not l:
def canny(image, sigma=1., low_threshold=None, high_threshold=None, mask=None,
use_quantiles=False):
"""Edge filter an image using the Canny algorithm.
Parameters
-----------
image : 2D array
Grayscale input image to detect edges on; can be of any dtype.
sigma : float, optional
Standard deviation of the Gaussian filter.
#!/usr/bin/env python
import imageio
print('imageio version ', imageio.__version__)
import cv2
print('cv2 version ', cv2.__version__)
import skimage
print('skimage version ', skimage.__version__)
#!/usr/bin/env python
import imageio
print('imageio version ', imageio.__version__)
import cv2
print('cv2 version ', cv2.__version__)
import skimage
print('skimage version ', skimage.__version__)
from skimage import data
This file has been truncated, but you can view the full file.
$ pip install scipy --no-cache-dir -vv
You are using pip version 7.0.0, however version 8.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting scipy
Getting page https://pypi.python.org/simple/scipy/
$ pew mktmpenv
Using base prefix '/usr'
New python executable in /home/fr/.local/share/virtualenvs/ae24edb11eebdba/bin/python3
Also creating executable in /home/fr/.local/share/virtualenvs/ae24edb11eebdba/bin/python
Installing setuptools, pip, wheel...pip install pip==7.done.
This is a temporary environment. It will be deleted when you exit
0.0Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
[fr:~] % pew mktmpenv
Using base prefix '/usr'
New python executable in /home/fr/.local/share/virtualenvs/576dc9ecac1d233/bin/python3
Also creating executable in /home/fr/.local/share/virtualenvs/576dc9ecac1d233/bin/python
Installing setuptools, pip, wheel...done.
This is a temporary environment. It will be deleted when you exit
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
[fr:~] [576dc9ecac1d233] % pip install numpy==1.10.2 --no-cache-dir -v
Collecting numpy==1.10.2