---
# System prepended metadata

title: 專題生

---

# 專題生
## Week 2 opencv & github(base)
- [安裝opencv](https://airwaves.medium.com/opencv-%E5%9C%A8windows%E4%B8%AD%E5%AE%89%E8%A3%9D-opencv-python-295ae092ca57)
- [opencv簡易教學](https://blog.gtwang.org/programming/opencv-basic-image-read-and-write-tutorial/)
- [安裝git](https://w3c.hexschool.com/git/3f9497cd)



## 作業
#### fork[學長的github](https://github.com/wudishidove/opencv-Training)到自己的帳號，然後上傳code到你自己的github，然後傳你的github帳號和網址給我
#### 這次有2個題目，先寫1,3題，有附參考資料解答跟範例code，主要希望先熟悉基本opencv影像格式處理
ps: 參考資料都是ipynb檔，可以自己google如何打開(不要用anaconda!!)

## 詳細上傳教學
### 1. Fork the Lab 1 Repository
Go to the  [week2](https://github.com/wudishidove/opencv-Training) Repo in Git, and fork a copy by clicking the "Fork" button as shown below:
![](https://i.imgur.com/xZ7unJb.png)
 After forking, you should briefly see an image similar to the one below:
![](https://i.imgur.com/eFUB8W6.png)
And it will redirect you to a "copy" of the code in your own page. Once in your page (check that your name shows up at the top left corner), Click the green button "Code", and the clipboard button besides the lnk that pops up.
![](https://i.imgur.com/qvwnwL8.png)
### 2. Create a folder in your computer and set it up 
Open a "Command Prompt" window in Windows or a "Terminal" window in MacOS/Linux. Type the following commands followed by the Enter key:
```
cd **yourpath**
mkdir labweek2
cd labweek2
git init
git clone **linkyoucopied**
```
Replacing "yourpath" by the path where you're going to store your documents, and "linkyoucopied" with the link you copied at the end of step

Your homework will be located in the path "yourpath" (in this example, the "Downloads" folder) in a folder named "labweek2". 

You can then start to edit!

### 3. Save changes and push
Remember to save your notebooks. You will also have to "Push" the changes you've made in your computer to the internet. In order to do this, open a "Command Prompt" window in Windows or a "Terminal" window in MacOS/Linux. Type the following commands followed by the Enter key:
```
cd **yourpath**
cd opencv-Training
git add *
git commit -m "yourmessage"
git push 
```
You can replace "yourmessage" with something like "Finished Ex1 and Ex2. Added graph for Ex. 6" . You can save and commit as often as you like. 
## git gui人性化教學
- [安裝](https://progressbar.tw/posts/49)
看安裝登入的部分，剩下直接跳到clone自己fork下來的專案
- [git bash](https://gitforwindows.org/)
- [cmder](https://cmder.net/)



