Skip to content

Instantly share code, notes, and snippets.

@mcdlee
Created April 18, 2022 02:31
Show Gist options
  • Save mcdlee/82352f7c20832203c5f26d19895304c2 to your computer and use it in GitHub Desktop.
Save mcdlee/82352f7c20832203c5f26d19895304c2 to your computer and use it in GitHub Desktop.
Sobel and Hough
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "eb3f964e",
"metadata": {},
"outputs": [],
"source": [
"from matplotlib import pyplot as plt\n",
"%matplotlib inline\n",
"plt.rcParams[\"figure.figsize\"] = (20,20)\n",
"import cv2\n",
"\n",
"import numpy as np\n",
"import math\n",
"import pandas as pd\n",
"import random"
]
},
{
"cell_type": "markdown",
"id": "e00b31a4",
"metadata": {},
"source": [
"# Image processing"
]
},
{
"cell_type": "markdown",
"id": "c89c29dd",
"metadata": {},
"source": [
"step 1. Read image"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "9b7fa6b2",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(4032, 3024, 3)"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment