일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- cudnn
- 버전 업그레이드
- 이미지 인식
- googlemp
- Android Studio
- deep learning
- CUDA
- API
- yolo mark
- Android
- 자신만의
- 지도
- YOLO
- Python
- 현재위치
- 이미지인식
- 안드로이드
- tensorflow
- #YOLO #darknet # cuda #gpu
- Google Map
- ubuntu
- virtualenv
- opencv
- bazel
- GPU
- 안드로이드 스튜디오
- Today
- Total
Be happy
안드로이드 스튜디오에서 웹서버에서 보낸 이미지 받기 본문
private void getImage() {
String id = editTextId.getText().toString().trim();
class GetImage1 extends AsyncTask<String, Void, Bitmap> {
ProgressDialog loading;
@Override
protected void onPreExecute() {
super.onPreExecute();
loading = ProgressDialog.show(Book.this, "Uploading...", null, true, true);
}
@Override
protected void onPostExecute(Bitmap b) {
super.onPostExecute(b);
loading.dismiss();
imageView3.setImageBitmap(b);
}
@Override
protected Bitmap doInBackground(String... params) {
String id = params[0];
String add1 = "url 주소";
URL url1 = null;
Bitmap image1 = null;
try {
url1 = new URL(add1);
image1 = BitmapFactory.decodeStream(url1.openConnection().getInputStream());
//image1.setWidth();
PublicValues.Book_bitmap3 = image1;
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return image1;
}
}
GetImage1 gi1 = new GetImage1();
gi1.execute(id);
}
php : http://prettymen.tistory.com/38?category=753669
'Fish in my hands (2018.3~2018.6) > 안드로이드 스튜디오' 카테고리의 다른 글
안드로이드 스튜디오로 웹서버로 전송하기 (0) | 2018.06.22 |
---|---|
Yolo mobile사용하기 (0) | 2018.06.12 |
ubuntu에 android studio 설치하기 (0) | 2018.05.28 |