기본 콘텐츠로 건너뛰기

TextRecognitionAPP 성공한 xml

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">
    <ImageView
        android:id="@+id/image_view"
        android:layout_width="match_parent"
        android:layout_height="400dp"
        />
    <TextView
        android:id="@+id/text_display"
        android:layout_width="401dp"
        android:layout_height="202dp"
        android:layout_below="@+id/image_view"
        android:layout_marginStart="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="10dp"
        android:layout_marginRight="10dp"
        android:layout_marginBottom="10dp"
        android:gravity="center"
        android:maxLines="5"
        android:text="Display Detected Text from image"
        android:textSize="26dp" />
    <Button
        android:id="@+id/caputure_image"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/detect_text_image"
        android:layout_marginBottom="5dp"
        android:background="@color/Orange"
        android:text="이미지 캡쳐"
        android:textAllCaps="false"
        android:textColor="@android:color/white"
        android:textSize="17dp" />
    <Button
        android:id="@+id/detect_text_image"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@color/Blue"
        android:text="금자 변환하기"
        android:textAllCaps="false"
        android:textColor="@android:color/white"
        android:textSize="17dp" />
</RelativeLayout>
cs

댓글

이 블로그의 인기 게시물

win32 액세스 거부가 나타날때!, USB 시스템 메모리 지우기

1. USB에 가상디스크가 있는지 확인한다. 2. 만약 있다면 cmd - diskpart을 실행한다 3. lisk disk 을 치고, usb 드라이드를 select disk 1(USB 해당번호 적는다) 4. 그리고 clean 친다. 5. 제어판에 디스크 포맷에 들어가서 드라이브를 잡는다. 6. win 32을 실행 후 작동한다.

TextRecognitionAPP 성공한 MainActivity

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 package  com.bear.textrecognitionapp; import  androidx.annotation.NonNull; import  androidx.appcompat.app.AppCompatActivity; import  android.content.Intent; import  android.graphics.Bitmap; import  android.os.Bundle; import  android.provider.MediaStore; import  android.util.Log; import  android.view.View; import  android.widget.Button; i...