Blog Medium Imagegodstale2012-08-08T02:54:23+09:00

Android Jetpack – DataStore

안드로이드 초기부터 사용해오던 SharedPreference 에는 단점이 존재 UI thread 에서 호출하기에는 thread safe 하지 않음 - disk I/O operations 을 포함하기 때문. (Async API 를 제공하기는 하지만...)parsing error 를 던지는 runtime exception 에서 안전하지 않음Cannot signal errors저장되는 데이터의 Type-safety 를 제공하지 않음Data storage 의 consistency 를 위한 transactional API 를 제공하지 않음 JetPack 에서는 이런 단점을 보완하기 위하여 Preference 대체용 DataStore [...]

By godstale|7월 26th, 2021|Categories: Android|1 Comment

Joda time, ThreeTenABP 기본 코드 비교

Comparing Jodatime  (2.9.2) and ThreeTenABP (1.0.3) , the latter has a significantly lower method count. Jodatime has 4713 methods and ThreeTenABP has 2827 methods (debug apk). Joda time DateTime dt = DateTime.now(); int jd = dt.getDayOfMonth(); int jm = dt.getMonthOfYear(); int jy = dt.getYear(); Log.d(TAG,"Joda : "+ dt.toString()); Log.d(TAG,"Joda : [day: "+jd+"] [month: "+jm+"] [year: "+jy+"]"); Log.d(TAG,"Joda : [day: "+dt.dayOfWeek().getAsText()+"] [...]

By godstale|7월 13th, 2021|Categories: Tip&Tech (SW)|0 Comments

OpenCV – 카툰 필터 및 스케치 필터

OpenCV latest release https://github.com/opencv/opencv/releases Android NDK + OpenCV 카메라 예제 및 프로젝트 생성방법 https://webnautes.tistory.com/923https://brunch.co.kr/@mystoryg/76 [안드로이드로 배우는 OpenCV] 카툰 필터 및 스케치 필터 https://www.charlezz.com/?p=45040 Image Effects for Android using OpenCV: Cartoon Effect https://heartbeat.fritz.ai/image-effects-for-android-using-opencv-cartoon-effect-9d1c8c257b2aexample : https://github.com/ahmedfgad/AndroidOpenCVImageEffects CameraX https://developer.android.com/jetpack/androidx/releases/camera?hl=ko#1.0.0 convert Bitmap to Mat after capture image using android camera https://stackoverflow.com/questions/17390289/convert-bitmap-to-mat-after-capture-image-using-android-camerahttps://stackoverflow.com/questions/30879190/how-to-convert-an-image-to-mat-android Android Image Processing Library https://androiddvlpr.com/android-image-processing-library/ GPUImage for Android (Java & Kotlin) 소개 : [...]

By godstale|6월 24th, 2021|Categories: Tip&Tech (SW)|0 Comments

Android Studio 4.2 – gradle 윈도우에서 task 메뉴가 보이지 않을 때

기존에 사용하던 안드로이드 스튜디오 - gradle 윈도우에서는 task 메뉴가 보였는데 4.2 이상으로 업데이트 하면 task 메뉴가 보이지 않습니다. 이때는 아래와 같이 조치하면 됩니다. 안드로이드 스튜디오 메뉴 : File -> Settings -> Experimental[Do not build Gradle task list during Gradle sync] 체크 해제 프로젝트 sync : File -> sync Project with Gradle Files여전히 문제가 있으면 Android Studio 재실행

By godstale|6월 24th, 2021|Categories: Tip&Tech (SW)|0 Comments

머신러닝 학습&소스 참고 사이트

머신러닝 강의 머신러닝 책/강의 총정리 (추천)https://www.philgineer.com/2020/10/awesome-machine-learning.html 모두를 위한 머신러닝/딥러닝 강의 시즌 1 (홍콩 과기대 김성훈 교수) https://hunkim.github.io/ml/Youtube 재생목록 모두를 위한 머신러닝/딥러닝 강의 시즌 2 https://deeplearningzerotoall.github.io/season2/ 코세라 머신러닝 강의 (Andrew Ng) https://www.coursera.org/learn/machine-learning강의 노트 Stanford_CS231n: Convolutional Neural Networks for Visual Recognition Course Notes Lecture Videos (Youtube) Detailed Syllabus Project Reports 텐서플로 강의 (chanwoo lee, 이찬우 님) TensorFlow Tutorial (Hvass Laboratories)  github: https://github.com/Hvass-Labs/TensorFlow-Tutorials [강의] Neural [...]

By godstale|6월 22nd, 2021|Categories: Tip&Tech (SW)|0 Comments

포토레지스터(Photoresistor, CDS 센서, 광센서)

빛의 밝기를 측정하고 싶을 때 사용할 수 있는  포토레지스터(Photoresistor, CDS 센서, 광센서) 입니다. 광센서(조도센서)를 이용해 주변 밝기를 측정해서 동작하게 하고 싶다면 10K옴 저항을 추가해서 광센서를 아래처럼 연결하면 됩니다. 광센서를 사용할 때는 주변의 밝기 값을 아날로그 핀으로 측정합니다.(밝기에 따라 광센서의 저항이 변하고 출력되는 전압이 변하기 때문) 그래서 A0 아날로그 핀을 사용했습니다. 아래 스케치로 밝기에 따라 아날로그 핀으로 입력되는 값의 변화를 살펴보면 [...]

By godstale|6월 17th, 2021|Categories: 센서, 모터, 회로 부품|0 Comments
Go to Top