SlideShare a Scribd company logo
1 of 28
Download to read offline
Proprietary + Confidential
Google Cloud Vision API ile Android'de
Yüz Algılama ve Resimden Yazı Okutma
Tuğba Üstündağ
Freelance Android Developer & Web Developer
www.tugbaustundag.com
Google Cloud Vision API Nedir?
Cloud Vision API yazılım geliştiricilerinin görüntü algılamayla alakalı işlerini
kolaylaştıran Google'in bir kütüphanesidir.
Google Cloud Vision API Neler Yapar?
Face Detection(Yüz Algılama)
Face Detection(Yüz Algılama)
Context context = getApplicationContext();
FaceDetector detector = new FaceDetector.Builder(context)
.setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)
.build();
detector.setProcessor(
new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())
.build());
1- Face Detector( Yüz Algılayıcı) Tanımlama
Face Detection(Yüz Algılama)
2- Resmi Elde Etmek İçin Kamera Kodlarını Oluşturma
Daha önce tanımlamış olduğumuz detector sınıfını kullanarak kamera kodları ile,
resmi görüntülüyoruz .
CameraSource mCameraSource = new CameraSource.Builder(context, detector)
.setRequestedPreviewSize(640, 480)
.setFacing(CameraSource.CAMERA_FACING_BACK)
.setRequestedFps(30.0f)
.build();
Face Detection(Yüz Algılama)
3- Factory Sınıfı Oluşturma
Görüntüde birden fazla yüz bulunuyorsa, her birey için bir yüz izi(çerçevesi)
oluşturmak için kullanır.
private class GraphicFaceTrackerFactory implements MultiProcessor.Factory<Face>
{
@Override
public Tracker<Face> create(Face face) {
return new GraphicFaceTracker(mGraphicOverlay);
}
}
Face Detection(Yüz Algılama)
private class GraphicFaceTracker extends Tracker<Face> {
private FaceGraphic mFaceGraphic;
GraphicFaceTracker(GraphicOverlay overlay) {
mFaceGraphic = new FaceGraphic(overlay);
}
public void onNewItem(int faceId, Face face) { ... }
public void onUpdate(FaceDetector.Detections<Face> detectionResults, Face face) { ... }
//Kameraya karşılık gelen yüz görüntüsü o an algılanmadıysa grafik gizlemesini sağlar
public void onMissing(FaceDetector.Detections<Face> detectionResults) { ... }
public void onDone() { ... }
4- Face Tracker( Yüz Çerçevesi) Oluşturma
Face Detection(Yüz Algılama)
5- Face Graphic Sınıfı Oluşturma
class FaceGraphic extends GraphicOverlay.Graphic {
@Override
public void draw(Canvas canvas) {
//Algılanan yüz üzerinde yazan track ID konumunun üstüne bir daire çizer.
float x = translateX(face.getPosition().x + face.getWidth() / 2);
float y = translateY(face.getPosition().y + face.getHeight() / 2);
canvas.drawCircle(x, y, FACE_POSITION_RADIUS, mFacePositionPaint);
canvas.drawText("id: " + mFaceId, x + ID_X_OFFSET, y + ID_Y_OFFSET, mIdPaint);
canvas.drawText("Mutluluk: " + String.format("%.2f", face.getIsSmilingProbability()), x -
ID_X_OFFSET, y - ID_Y_OFFSET, mIdPaint);
canvas.drawText("Sağ göz: " + String.format("%.2f", face.getIsRightEyeOpenProbability()),
x + ID_X_OFFSET * 2, y + ID_Y_OFFSET * 2, mIdPaint);
canvas.drawText("Sol göz: " + String.format("%.2f", face.getIsLeftEyeOpenProbability()), x -
ID_X_OFFSET*2, y - ID_Y_OFFSET*2, mIdPaint);
Face Detection(Yüz Algılama)
6- Manifest ve Build.gradle Dosyasını Ayarlama
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.CAMERA" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<meta-data
android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="face" />
Dependencies {
compile 'com.google.android.gms:play-services-vision:9.4.0+'
}
Build.gradle Dosyası
Resimden Yazı Okutma(Text Recognition - OCR)
Android Mobile Vision API OCR teknolojini kullanarak, yazılı resimlerdeki metinleri
uygulama içinde açtığı kamerayla kullanıcı ilgili resmi göstererek, resimdeki tüm
yazıyı basit bir şekilde Android uygulama içine almayı sağlamaktadır.
Optik Karakter Tanıma (OCR) Nedir?
Optik Karakter Tanıma (OCR), elektronik görüntüler üzerindeki
karakterlerin ya da metin bilgilerinin okunarak ASCII koda
dönüştürülmesi işlemidir.
Resimden Yazı Okutma(Text Recognition - OCR)
Resimden Yazı Okutma(Text Recognition - OCR)
// Bir metin tanıyıcı metin bulmak için oluşturulur. İlişkili birden çok işlemci örneğin
metin tanıma sonuçlarını almak, metni izlemek ve ekranda her metin bloğu için grafik
cercevesine almak için kullanılır.
TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();
textRecognizer.setProcessor(new OcrDetectorProcessor(mGraphicOverlay));
1-Text Recognizer( Metin Tanıyıcı) Tanımlama
Resimden Yazı Okutma(Text Recognition - OCR)
//kamera oluşturur ve başlatır…
CameraSourcePreview mPreview = (CameraSourcePreview) findViewById(R.id.preview);
2-Resmi Elde Etmek İçin Kamera Kodlarını Oluşturma
CameraSource mCameraSource =
new CameraSource.Builder(getApplicationContext(), textRecognizer)
.setFacing(CameraSource.CAMERA_FACING_BACK)
.setRequestedPreviewSize(1280, 1024)
.setRequestedFps(2.0f)
.setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH :
null)
.setFocusMode(autoFocus ?
Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null).build();
Resimden Yazı Okutma(Text Recognition - OCR)
3-Metin bloklarını okuma, algılama
public class OcrDetectorProcessor implements Detector.Processor<TextBlock> {
private GraphicOverlay<OcrGraphic> mGraphicOverlay;
@Override
public void receiveDetections(Detector.Detections<TextBlock> detections) {
mGraphicOverlay.clear();
SparseArray<TextBlock> items = detections.getDetectedItems();
for (int i = 0; i < items.size(); ++i) {
TextBlock item = items.valueAt(i);
if (item != null && item.getValue() != null) {
Log.d("Text veri", "Text algılandı! " + item.getValue());
}
OcrGraphic graphic = new OcrGraphic(mGraphicOverlay, item);
mGraphicOverlay.add(graphic);
public class OcrGraphic extends GraphicOverlay.Graphic {
@Override
public void draw(Canvas canvas) {
// Metin bloklarının çevresini kutu çizimi yaparak sınırlar, belirtir
RectF rect = new RectF(mText.getBoundingBox());
rect.left = translateX(rect.left);
rect.top = translateY(rect.top);
rect.right = translateX(rect.right);
rect.bottom = translateY(rect.bottom);
canvas.drawRect(rect, sRectPaint);
List<? extends Text> textComponents = mText.getComponents();
for(Text currentText : textComponents) {
float left = translateX(currentText.getBoundingBox().left);
float bottom = translateY(currentText.getBoundingBox().bottom);
Resimden Yazı Okutma(Text Recognition - OCR)
4-Yazıların gösterilmesi ve çevresine çerçeve çizme
Resimden Yazı Okutma(Text Recognition - OCR)
5- Manifest ve Build.gradle Dosyasını Ayarlama
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.CAMERA" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<meta-data
android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="ocr" />
Dependencies {
compile 'com.google.android.gms:play-services-vision:9.4.0+'
}
Build.gradle Dosyası
Referanslar
● Dökümantasyon:
https://developers.google.com/vision/
● Android Developer Blog post Face Detection
http://android-developers.blogspot.com.tr/2015/08/face-detection-in-google-play-
services.html
● Örnek kodlar
https://github.com/googlesamples/android-vision
Proprietary + Confidential
Teşekkürler
Tuğba Üstündağ
Freelance Android Developer & Web Developer
www.tugbaustundag.com
info@tugbaustundag.com
Proprietary + Confidential
Proprietary + Confidential
Proprietary + Confidential
Proprietary + Confidential
Proprietary + Confidential
Proprietary + Confidential
Proprietary + Confidential
Proprietary + Confidential
Proprietary + Confidential

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Google Cloud Vision API ile Android'de Yüz Algılama ve Resimden Yazı Okutma

  • 1. Proprietary + Confidential Google Cloud Vision API ile Android'de Yüz Algılama ve Resimden Yazı Okutma Tuğba Üstündağ Freelance Android Developer & Web Developer www.tugbaustundag.com
  • 2. Google Cloud Vision API Nedir? Cloud Vision API yazılım geliştiricilerinin görüntü algılamayla alakalı işlerini kolaylaştıran Google'in bir kütüphanesidir.
  • 3. Google Cloud Vision API Neler Yapar?
  • 5. Face Detection(Yüz Algılama) Context context = getApplicationContext(); FaceDetector detector = new FaceDetector.Builder(context) .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS) .build(); detector.setProcessor( new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory()) .build()); 1- Face Detector( Yüz Algılayıcı) Tanımlama
  • 6. Face Detection(Yüz Algılama) 2- Resmi Elde Etmek İçin Kamera Kodlarını Oluşturma Daha önce tanımlamış olduğumuz detector sınıfını kullanarak kamera kodları ile, resmi görüntülüyoruz . CameraSource mCameraSource = new CameraSource.Builder(context, detector) .setRequestedPreviewSize(640, 480) .setFacing(CameraSource.CAMERA_FACING_BACK) .setRequestedFps(30.0f) .build();
  • 7. Face Detection(Yüz Algılama) 3- Factory Sınıfı Oluşturma Görüntüde birden fazla yüz bulunuyorsa, her birey için bir yüz izi(çerçevesi) oluşturmak için kullanır. private class GraphicFaceTrackerFactory implements MultiProcessor.Factory<Face> { @Override public Tracker<Face> create(Face face) { return new GraphicFaceTracker(mGraphicOverlay); } }
  • 8. Face Detection(Yüz Algılama) private class GraphicFaceTracker extends Tracker<Face> { private FaceGraphic mFaceGraphic; GraphicFaceTracker(GraphicOverlay overlay) { mFaceGraphic = new FaceGraphic(overlay); } public void onNewItem(int faceId, Face face) { ... } public void onUpdate(FaceDetector.Detections<Face> detectionResults, Face face) { ... } //Kameraya karşılık gelen yüz görüntüsü o an algılanmadıysa grafik gizlemesini sağlar public void onMissing(FaceDetector.Detections<Face> detectionResults) { ... } public void onDone() { ... } 4- Face Tracker( Yüz Çerçevesi) Oluşturma
  • 9. Face Detection(Yüz Algılama) 5- Face Graphic Sınıfı Oluşturma class FaceGraphic extends GraphicOverlay.Graphic { @Override public void draw(Canvas canvas) { //Algılanan yüz üzerinde yazan track ID konumunun üstüne bir daire çizer. float x = translateX(face.getPosition().x + face.getWidth() / 2); float y = translateY(face.getPosition().y + face.getHeight() / 2); canvas.drawCircle(x, y, FACE_POSITION_RADIUS, mFacePositionPaint); canvas.drawText("id: " + mFaceId, x + ID_X_OFFSET, y + ID_Y_OFFSET, mIdPaint); canvas.drawText("Mutluluk: " + String.format("%.2f", face.getIsSmilingProbability()), x - ID_X_OFFSET, y - ID_Y_OFFSET, mIdPaint); canvas.drawText("Sağ göz: " + String.format("%.2f", face.getIsRightEyeOpenProbability()), x + ID_X_OFFSET * 2, y + ID_Y_OFFSET * 2, mIdPaint); canvas.drawText("Sol göz: " + String.format("%.2f", face.getIsLeftEyeOpenProbability()), x - ID_X_OFFSET*2, y - ID_Y_OFFSET*2, mIdPaint);
  • 10. Face Detection(Yüz Algılama) 6- Manifest ve Build.gradle Dosyasını Ayarlama <uses-feature android:name="android.hardware.camera" /> <uses-permission android:name="android.permission.CAMERA" /> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> <meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="face" /> Dependencies { compile 'com.google.android.gms:play-services-vision:9.4.0+' } Build.gradle Dosyası
  • 11. Resimden Yazı Okutma(Text Recognition - OCR) Android Mobile Vision API OCR teknolojini kullanarak, yazılı resimlerdeki metinleri uygulama içinde açtığı kamerayla kullanıcı ilgili resmi göstererek, resimdeki tüm yazıyı basit bir şekilde Android uygulama içine almayı sağlamaktadır. Optik Karakter Tanıma (OCR) Nedir? Optik Karakter Tanıma (OCR), elektronik görüntüler üzerindeki karakterlerin ya da metin bilgilerinin okunarak ASCII koda dönüştürülmesi işlemidir.
  • 12. Resimden Yazı Okutma(Text Recognition - OCR)
  • 13. Resimden Yazı Okutma(Text Recognition - OCR) // Bir metin tanıyıcı metin bulmak için oluşturulur. İlişkili birden çok işlemci örneğin metin tanıma sonuçlarını almak, metni izlemek ve ekranda her metin bloğu için grafik cercevesine almak için kullanılır. TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build(); textRecognizer.setProcessor(new OcrDetectorProcessor(mGraphicOverlay)); 1-Text Recognizer( Metin Tanıyıcı) Tanımlama
  • 14. Resimden Yazı Okutma(Text Recognition - OCR) //kamera oluşturur ve başlatır… CameraSourcePreview mPreview = (CameraSourcePreview) findViewById(R.id.preview); 2-Resmi Elde Etmek İçin Kamera Kodlarını Oluşturma CameraSource mCameraSource = new CameraSource.Builder(getApplicationContext(), textRecognizer) .setFacing(CameraSource.CAMERA_FACING_BACK) .setRequestedPreviewSize(1280, 1024) .setRequestedFps(2.0f) .setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH : null) .setFocusMode(autoFocus ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null).build();
  • 15. Resimden Yazı Okutma(Text Recognition - OCR) 3-Metin bloklarını okuma, algılama public class OcrDetectorProcessor implements Detector.Processor<TextBlock> { private GraphicOverlay<OcrGraphic> mGraphicOverlay; @Override public void receiveDetections(Detector.Detections<TextBlock> detections) { mGraphicOverlay.clear(); SparseArray<TextBlock> items = detections.getDetectedItems(); for (int i = 0; i < items.size(); ++i) { TextBlock item = items.valueAt(i); if (item != null && item.getValue() != null) { Log.d("Text veri", "Text algılandı! " + item.getValue()); } OcrGraphic graphic = new OcrGraphic(mGraphicOverlay, item); mGraphicOverlay.add(graphic);
  • 16. public class OcrGraphic extends GraphicOverlay.Graphic { @Override public void draw(Canvas canvas) { // Metin bloklarının çevresini kutu çizimi yaparak sınırlar, belirtir RectF rect = new RectF(mText.getBoundingBox()); rect.left = translateX(rect.left); rect.top = translateY(rect.top); rect.right = translateX(rect.right); rect.bottom = translateY(rect.bottom); canvas.drawRect(rect, sRectPaint); List<? extends Text> textComponents = mText.getComponents(); for(Text currentText : textComponents) { float left = translateX(currentText.getBoundingBox().left); float bottom = translateY(currentText.getBoundingBox().bottom); Resimden Yazı Okutma(Text Recognition - OCR) 4-Yazıların gösterilmesi ve çevresine çerçeve çizme
  • 17. Resimden Yazı Okutma(Text Recognition - OCR) 5- Manifest ve Build.gradle Dosyasını Ayarlama <uses-feature android:name="android.hardware.camera" /> <uses-permission android:name="android.permission.CAMERA" /> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> <meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="ocr" /> Dependencies { compile 'com.google.android.gms:play-services-vision:9.4.0+' } Build.gradle Dosyası
  • 18. Referanslar ● Dökümantasyon: https://developers.google.com/vision/ ● Android Developer Blog post Face Detection http://android-developers.blogspot.com.tr/2015/08/face-detection-in-google-play- services.html ● Örnek kodlar https://github.com/googlesamples/android-vision
  • 19. Proprietary + Confidential Teşekkürler Tuğba Üstündağ Freelance Android Developer & Web Developer www.tugbaustundag.com info@tugbaustundag.com

Editor's Notes

  1. Tensorflow, Bigtable, Cloud Pubsub all use this -- everything Google has released in the last year and a half
  2. Tensorflow, Bigtable, Cloud Pubsub all use this -- everything Google has released in the last year and a half