Hi Guys, Maybe you all are expert in terms of using RecyclerView in android. This blog is simple example for using filter option with RecyclerView adapter. As for now you will instantiate RecyclerView and set the adapter to RecyclerView as following way. RecyclerView list = (RecyclerView) findViewById(R.id.list); list.setLayoutManager(new LinearLayoutManager(this)); list.setHasFixedSize(true); ArrayList<Number> numbers = new ArrayList<>(); String ONEs[] = {"ZERO", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE", "TEN"}; String TENs[] = {"ZERO", "TEN", "TWENTY", "THIRTY", "FOURTY", "FIFTY", "SIXTY", "SEVENTY", "EIGHTY", "NINETY", "HUNDRED"}; String HUNDREDS[] = {"ZERO", "HUNDRED", "TWO HUND...
Hi Friends, Maybe you all heard/used text scanning using camera feature or extracting text from Image. But this sample made it very easy for you. You can made it in very simple line of code.
You can download the source code from OCRSample and import the library as a module into your project.
Example usage : MainActivity.java
Here is the video output of this source code
If you are really interested in this code, then please share this post with your friends, also share your feedback as comment here.
Thank You
You can download the source code from OCRSample and import the library as a module into your project.
Example usage : MainActivity.java
public class MainActivity extends AppCompatActivity { private TextView textView; private final int CAMERA_SCAN_TEXT = 0; private final int LOAD_IMAGE_RESULTS = 1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView = findViewById(R.id.textView); } @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu_main, menu); return super.onCreateOptionsMenu(menu); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.actionCamera: //Scan text from camera. OCRCapture.Builder(this) .setUseFlash(true) .setAutoFocus(true) .buildWithRequestCode(CAMERA_SCAN_TEXT); break; case R.id.actionPhoto: Intent intentGallery = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(intentGallery, LOAD_IMAGE_RESULTS); break; } return super.onOptionsItemSelected(item); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (data != null) { if (requestCode == CAMERA_SCAN_TEXT) { if (resultCode == CommonStatusCodes.SUCCESS) { textView.setText(data.getStringExtra(TextBlockObject)); } } else if (requestCode == LOAD_IMAGE_RESULTS) { Uri pickedImage = data.getData(); try { //Extract text from image. String text = OCRCapture.Builder(this).getTextFromUri(pickedImage); //You can also use getTextFromBitmap(Bitmap bitmap) or getTextFromImage(String imagePath) buplic APIs from ibrary. textView.setText(text); } catch (IOException e) { e.printStackTrace(); } } } } }
Here is the video output of this source code
Interesting right?
If you are really interested in this code, then please share this post with your friends, also share your feedback as comment here.
Source code on GitHub
Thank You
Hi, It can detect chinese language
ReplyDelete惊人的
ReplyDeleteKayseri
ReplyDeleteAnkara
Kilis
Sakarya
Bursa
YCİ
Ankara
ReplyDeleteAntalya
istanbul
Ordu
izmir
GQ1
https://titandijital.com.tr/
ReplyDeletenevşehir parça eşya taşıma
bolu parça eşya taşıma
batman parça eşya taşıma
bayburt parça eşya taşıma
S3AZ2L
6DCAA
ReplyDeleteSiirt Evden Eve Nakliyat
İzmir Parça Eşya Taşıma
Muş Evden Eve Nakliyat
Bartın Parça Eşya Taşıma
Konya Lojistik
E1824
ReplyDeleteUşak Parça Eşya Taşıma
Karapürçek Parke Ustası
Tekirdağ Fayans Ustası
Ankara Şehir İçi Nakliyat
Uşak Şehir İçi Nakliyat
Çankırı Şehirler Arası Nakliyat
Elazığ Lojistik
Ünye Evden Eve Nakliyat
Çanakkale Evden Eve Nakliyat
8DC05
ReplyDeleteBatıkent Fayans Ustası
Zonguldak Şehir İçi Nakliyat
Konya Lojistik
Mamak Parke Ustası
Batman Şehirler Arası Nakliyat
Ünye Petek Temizleme
Ünye Mutfak Dolabı
Adıyaman Parça Eşya Taşıma
Siirt Lojistik
8B84D
ReplyDeleteQlc Coin Hangi Borsada
Erzurum Evden Eve Nakliyat
Big Wolf Coin Hangi Borsada
Burdur Evden Eve Nakliyat
Kayseri Lojistik
Altındağ Fayans Ustası
Bitcoin Kazanma
Antalya Lojistik
Osmaniye Parça Eşya Taşıma
B62B8
ReplyDeletebinance referans
3C91E
ReplyDeleteardahan görüntülü sohbet uygulamaları ücretsiz
adıyaman görüntülü sohbet
Adıyaman Canli Sohbet
Tokat Rastgele Görüntülü Sohbet Uygulamaları
Bartın Mobil Sohbet
Bartın En İyi Görüntülü Sohbet Uygulaması
Eskişehir Sohbet Odaları
Nevşehir Canli Sohbet Bedava
maraş random görüntülü sohbet
040E2
ReplyDeleteKwai Beğeni Hilesi
Facebook Sayfa Beğeni Satın Al
Parasız Görüntülü Sohbet
Coin Çıkarma Siteleri
Spotify Dinlenme Satın Al
Twitch İzlenme Satın Al
Floki Coin Hangi Borsada
Azero Coin Hangi Borsada
Osmo Coin Hangi Borsada
2E84E
ReplyDeletesolflare
shiba
ledger wallet
defillama
ledger desktop
roninchain
poocoin
eigenlayer
uniswap
شركة تسليك مجاري بالدمام
ReplyDelete8Fp0Cjxid
شركة تسليك مجاري بالقطيف
X47tJikiWk
شركة تسليك مجاري بالاحساء
mUyHnBtSisT8vle
شركة تسليك مجاري بالجبيل
wg9qUB1a7
شركة مكافحة الصراصير بالدمام pxUtQ5W1Wb
ReplyDeleteشركة صيانة خزانات EaI0PFXRvy
ReplyDeleteشركة عزل اسطح بالجبيل jjQ8Uwm8F5
ReplyDeleteشركة عزل اسطح UxfKFQx8TY
ReplyDeleteشركة تسليك مجاري بالاحساء VQerUPzaaD
ReplyDeleteشركة مكافحة الصراصير بالدمام JyOtQBM2EQ
ReplyDelete