Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyoyo-yo committed Jan 23, 2019
1 parent 181d5c7 commit 3d1c1be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
5 changes: 1 addition & 4 deletions Question_01_10/answer_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
# Dicrease color
out = img.copy()

for i in range(4):
ind = np.where(((64*i-1) <= out) & (out < (64*(i+1)-1)))
out[ind] = 32 * (2*i+1)
out = out // 64 * 64 + 32

# Save result
cv2.imwrite("out.jpg", out)
cv2.imshow("result", out)
cv2.waitKey(0)
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ English is here >> https://github.com/KuKuXia/Image_Processing_100_Questions
これはイモリと一緒に画像処理の基本的処理の知識を身に着け、アルゴリズムを理解するための100本ノックです。

ここに載っている問題はOpenCVでAPIが用意されているものが殆どですが、**あえてそれを自分の手で実装**してください。

答えも載っけてますが、それはあくまで解答です。自分で考えながら実装して下さい。

- **まだ作成中なので、随時更新していきます。なので問題の難易度の順番もめちゃくちゃです。**
- **なるべくポピュラーなものを採用していますが、ネタ切れであんまり聞かないものもあります笑**
Expand Down Expand Up @@ -66,7 +66,18 @@ $ source actiavte gasyori100
(gasyori100) :~/work_space/Gasyori100knock/ :$
```

### 2. パッケージのインストール
### 2. gitのインストール

gitをインストールします。

そして、端末を開いて、以下のコマンドを実行します。
このコマンドでこのディレクトリを丸ごと自分のパソコンにコピーできます。

```bash
$ git clone https://github.com/yoyoyo-yo/Gasyori100knock.git
```

### 3. パッケージのインストール

以下のコマンドで必要なパッケージをインストールします。

Expand All @@ -75,7 +86,7 @@ $ source actiavte gasyori100
$ pip install -r requirement.txt
```

### 3. 画像処理チュートリアル
### 4. 画像処理チュートリアル

以下のファイルを作成し sample.py という名前で保存し、実行します。

Expand Down

0 comments on commit 3d1c1be

Please sign in to comment.