質問編集履歴

5

修正

2016/11/20 11:24

投稿

recode
recode

スコア31

test CHANGED
File without changes
test CHANGED
@@ -162,7 +162,7 @@
162
162
 
163
163
  ##追記2
164
164
 
165
- **64Bitに対応しているバージョンを入れて見ましたが、エラー起きていましました。**
165
+ **64Bitに対応しているバージョン(opencv: 2.4.10-np110py27_1)を入れて見ましたが、エラー起きていましました。**
166
166
 
167
167
 
168
168
 

4

バージョンを64に対応させた

2016/11/20 11:23

投稿

recode
recode

スコア31

test CHANGED
File without changes
test CHANGED
@@ -138,7 +138,7 @@
138
138
 
139
139
 
140
140
 
141
- ##追記
141
+ ##追記1
142
142
 
143
143
  **インストール先のopencvfileがおそらく対応していないosx-64のものしかなく、そこでのエラーかもしれませんでした。**
144
144
 
@@ -155,3 +155,103 @@
155
155
 
156
156
 
157
157
  ![イメージ説明](b2fd86849d39f13870c6efad32659a86.png)
158
+
159
+
160
+
161
+
162
+
163
+ ##追記2
164
+
165
+ **64Bitに対応しているバージョンを入れて見ましたが、エラー起きていましました。**
166
+
167
+
168
+
169
+ ```ここに言語を入力
170
+
171
+ The following NEW packages will be INSTALLED:
172
+
173
+ opencv: 2.4.10-np110py27_1
174
+
175
+ ```
176
+
177
+
178
+
179
+ ```
180
+
181
+ opencv 2.4.10 np110py27_1
182
+
183
+ -------------------------
184
+
185
+ file name : opencv-2.4.10-np110py27_1.tar.bz2
186
+
187
+ name : opencv
188
+
189
+ version : 2.4.10
190
+
191
+ build number: 1
192
+
193
+ build string: np110py27_1
194
+
195
+ channel : defaults
196
+
197
+ size : 9.2 MB
198
+
199
+ date : 2015-10-06
200
+
201
+ fn : opencv-2.4.10-np110py27_1.tar.bz2
202
+
203
+ license : BSD
204
+
205
+ md5 : 6b4bb1b8a55a735d68c554aebf0d9970
206
+
207
+ priority : 0
208
+
209
+ schannel : defaults
210
+
211
+ url : https://repo.continuum.io/pkgs/free/linux-64/opencv-2.4.10-np110py27_1.tar.bz2
212
+
213
+ dependencies:
214
+
215
+ jpeg 8d
216
+
217
+ libpng 1.6.17
218
+
219
+ numpy 1.10*
220
+
221
+ python 2.7*
222
+
223
+ zlib 1.2*
224
+
225
+ ```
226
+
227
+
228
+
229
+ **コマンドからpythonを実行**
230
+
231
+ ```
232
+
233
+ >>> import cv2
234
+
235
+ >>> img = cv2.imread('ts.jpg')
236
+
237
+ >>> cv2.imshow('img',img)
238
+
239
+ ```
240
+
241
+
242
+
243
+ **エラー内容**
244
+
245
+ ```
246
+
247
+ OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file -------src-dir-------/opencv-2.4.10/modules/highgui/src/window.cpp, line 501
248
+
249
+ Traceback (most recent call last):
250
+
251
+ File "<stdin>", line 1, in <module>
252
+
253
+ cv2.error: -------src-dir-------/opencv-2.4.10/modules/highgui/src/window.cpp:501: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage
254
+
255
+
256
+
257
+ ```

3

追記の修正

2016/11/20 11:22

投稿

recode
recode

スコア31

test CHANGED
File without changes
test CHANGED
@@ -138,11 +138,13 @@
138
138
 
139
139
 
140
140
 
141
- **追記**
141
+ ##追記
142
142
 
143
143
  **インストール先のopencvfileがおそらく対応していないosx-64のものしかなく、そこでのエラーかもしれませんでした。**
144
144
 
145
145
  **condaでOpenCV('2.4.10')をインストール**
146
+
147
+ [https://anaconda.org/jjhelmus/opencv](https://anaconda.org/jjhelmus/opencv)
146
148
 
147
149
  ```
148
150
 

2

追記

2016/11/20 11:10

投稿

recode
recode

スコア31

test CHANGED
File without changes
test CHANGED
@@ -14,6 +14,8 @@
14
14
 
15
15
  Python 2.7.12 :: Anaconda custom (64-bit)
16
16
 
17
+
18
+
17
19
  ```
18
20
 
19
21
 
@@ -22,13 +24,17 @@
22
24
 
23
25
  ##実行方法
24
26
 
25
- **condaでOpenCVをインストール**
27
+ **condaでOpenCV('2.4.10')をインストール**
26
28
 
27
29
  ```
28
30
 
29
- # conda install -c https://conda.binstar.org/jjhelmus opencv
31
+ conda install -c https://conda.binstar.org/jjhelmus opencv
30
32
 
31
33
  ```
34
+
35
+ [https://anaconda.org/jjhelmus/opencv](https://anaconda.org/jjhelmus/opencv)
36
+
37
+
32
38
 
33
39
  **コマンドからpythonを実行**
34
40
 
@@ -78,7 +84,7 @@
78
84
 
79
85
 
80
86
 
81
- **condaでOpenCVをインストール**
87
+ **condaでOpenCV(2.4.11)をインストール**
82
88
 
83
89
  ```
84
90
 
@@ -129,3 +135,21 @@
129
135
  [http://qiita.com/massaru129/items/8a1a75cdf713d4fa6bc8](http://qiita.com/massaru129/items/8a1a75cdf713d4fa6bc8)
130
136
 
131
137
  [http://qiita.com/SE96UoC5AfUt7uY/items/ea5ad55736e3e9470b6a](http://qiita.com/SE96UoC5AfUt7uY/items/ea5ad55736e3e9470b6a)
138
+
139
+
140
+
141
+ **追記**
142
+
143
+ **インストール先のopencvfileがおそらく対応していないosx-64のものしかなく、そこでのエラーかもしれませんでした。**
144
+
145
+ **condaでOpenCV('2.4.10')をインストール**
146
+
147
+ ```
148
+
149
+ conda install -c https://conda.binstar.org/jjhelmus opencv
150
+
151
+ ```
152
+
153
+
154
+
155
+ ![イメージ説明](b2fd86849d39f13870c6efad32659a86.png)

1

わかりやすく修正

2016/11/20 11:09

投稿

recode
recode

スコア31

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ##実行環境
8
8
 
9
- ```ここに言語を入力
9
+ ```
10
10
 
11
11
  さくらVPS
12
12
 
@@ -64,6 +64,12 @@
64
64
 
65
65
 
66
66
 
67
+
68
+
69
+
70
+
71
+
72
+
67
73
  ##違う方法でもうまくいきませんでした
68
74
 
69
75
  anacondaの公式ページには下記のようにインストールするように書いてあったため、こちらの方法でも実行して見ました。
@@ -71,6 +77,8 @@
71
77
  OpenCVのインスールは以下のように実行しましたがうまくいきませんでした。
72
78
 
73
79
 
80
+
81
+ **condaでOpenCVをインストール**
74
82
 
75
83
  ```
76
84
 
@@ -83,8 +91,6 @@
83
91
  **コマンドからpythonを実行**
84
92
 
85
93
  ```
86
-
87
- python
88
94
 
89
95
  >>>import cv
90
96