How text recognition google vision api scans full screen for text scanning. I want a small rectangle to detect text and display recognized text below in the text box
You can control the size of the preview widget. Change this line https://github.com/googlesamples/android-vision/blob/master/visionSamples/ocr-reader/app/src/main/res/layout/ocr_capture.xml#L12 to whatever you want.
Android , layout_width layout_height https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html
layout_width
layout_height
Source: https://habr.com/ru/post/1654286/More articles:Prevent UWP application interruption on reboot - uwpGMail API Users.threads.list Отсутствует поле "Сообщения" - javascriptCustom web component methods - javascriptДобавление метода расширения к записи с единицей измерения - units-of-measurementCompact Image Picker from iMessage - iosAngular 2 change onClick button style - angularHow to apply shadow on a triangle in CSS? - htmlng-if should show only one object - javascriptVue Resource Post Request Content-Type - phpКак вернуть строку из pandas.DataFrame.info() - pythonAll Articles