Skip to content

Commit

Permalink
Update writeup-chinese.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1688899 authored Nov 9, 2017
1 parent 63cb99a commit f2a401c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions writeup-chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ It seems that it lose track of the lane line where the road color and the line c
Then I use the magnitude threshholds to see how well it does to capture the lane line:
```
def mag_thresh(img, sobel_kernel=3, mag_thresh=(0, 255)):
# Convert to grayscale
gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
   # 转换为灰度图
   gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
# Take both Sobel x and y gradients
sobelx = cv2.Sobel(gray, cv2.CV_64F, 1, 0, ksize=sobel_kernel)
sobely = cv2.Sobel(gray, cv2.CV_64F, 0, 1, ksize=sobel_kernel)
Expand Down

0 comments on commit f2a401c

Please sign in to comment.