SlideShare a Scribd company logo
1 of 14
Mobile Programing
숫자 필기 인식 프로그램
한국산업기술대학교
정낙현
jnh3586@naver.com
목차
 1. 필기 인식 알고리즘 흐름도
 2. 필기 인식 알고리즘 설명
 2.1 글씨로 설명
 2.2 그림을 이용한 설명
 2.3 예외처리
 3. 시연영상
2
시작 기울기
종료 기울기
숫자 판단
결과산출
1. 필기 인식 알고리즘 흐름도
터치
If 4or5
If 4or5
3
2.1 필기 인식 알고리즘 1
 1. 터치를 입력 밭아 좌표를 기억한다.
Save (fx1, fy1)
 2. 입력 받은 좌표를 중심으로 크기 j의 사각형을 만든다
Rect (fx1-j, fy1-j, fx1+j, fy1+j)
 3. 드래그를 할 때 터치 좌표가 상자를 벗어나면 그 지점을 fx2, fy2로 기록한다
Save (fx2, fy2)
 4.fx2, fy2를 중심으로 크기 j의 사각형을 좌표를 lx1,ly1에 기록한다
Rect (fx2-j, fy2-j, fx2+j, fy2+j), Save(lx1, ly1)
 5. fx1,fy1 과 fx2, fy2 두 점의 기울기를 계산하여 r1에 기록한다
r1=기울기(fx1,fy1,fx2,fy2)
4
2.1 필기 인식 알고리즘 2
 6. 상자를 벗어나면 lx2, ly2에 기록한다
Save(lx2, ly2)
 7. lx1,ly1 lx2,ly2의 기울기를 r2에 기록한다
r2= 기울기 (lx1,ly1 lx2,ly2)
 8. lx1, ly1을 기록한다
Save(lx1, ly1)
 9. 6,7,8 과정을 반복하며 기울기를 r2에 덮어쓰기 한다
While(!Touch){6->7->8}
 10. r1과 r2의 값으로 입력한 값을 알아낸다
FindNum(r1,r2)
5
2.2 필기 인식 알고리즘
1. 터치를 입력 밭아 좌표를 기억한다.
Save (fx1, fy1)
2. 입력 받은 좌표를 중심으로 크기 j의 사각형을 만든다
Rect (fx1-j, fy1-j, fx1+j, fy1+j)
fx1, fy1
6
2.2 필기 인식 알고리즘
3. 드래그를 할 때 터치 좌표가 상자를 벗어나면
그 지점을 fx2, fy2로 기록한다
Save (fx2, fy2)
fx1, fy1
fx2, fy2
7
2.2 필기 인식 알고리즘
4.fx2, fy2를 중심으로 크기 j의 사각형을
좌표를 lx1,ly1에 기록한다
Rect (fx2-j, fy2-j, fx2+j, fy2+j), Save(lx1, ly1)
5. fx1,fy1 과 fx2, fy2 두 점의 기울기를
계산하여 r1에 기록한다
r1=기울기(fx1,fy1,fx2,fy2)
r1=기울기
fx2, fy2 lx1, ly1
8
2.2 필기 인식 알고리즘
6. 상자를 벗어나면 lx2, ly2에 기록한다
Save(lx2, ly2)
7. lx1,ly1 lx2,ly2의 기울기를 r2에 기록한다
r2= 기울기 (lx1,ly1 lx2,ly2)
lx1, ly1
lx2, ly2
r2=기울기
9
2.2 필기 인식 알고리즘
8. lx1, ly1을 기록한다
Save(lx1, ly1)
9. 6,7,8 과정을 반복하며 기울기를 r2에 덮어쓰기 한다
While(!Touch){6->7->8}
lx1, ly1
10
2.2 필기 인식 알고리즘
8. lx1, ly1을 기록한다
Save(lx1, ly1)
9. 6,7,8 과정을 반복하며 기울기를 r2에 덮어쓰기 한다
While(!Touch){6->7->8}
11
2.2 필기 인식 알고리즘
10. r1과 r2의 값으로 입력한 값을 알아낸다
FindNum(r1,r2)
1
2
3
4
5
6
7
8
r1 = 5
r2 = 5
FindNum(5,5) = 1
12
2.3 예외처리
알고리즘이 시작 기울기와 끝 기울기가 같을 때 구분하지 못하기 때문에 필요
 0또는 6
 If 시작좌표와 끝좌표의 y축의 좌표가 비슷하면 0
 else 6
 6또는 8
 6or8 flag를 만들어둔다
 드래그를 할 때 시작좌표 y축 위를 지나면 flag를 8 else 6
 flag가 6 이면 6 8 이면 8
13
3. 시연영상
14

More Related Content

Recently uploaded

Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Wonjun Hwang
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionKim Daeun
 
Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Wonjun Hwang
 
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스
 
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Kim Daeun
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)Tae Young Lee
 

Recently uploaded (6)

Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
 
Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)
 
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
 
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
 

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
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

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...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

모바일 필기인식 알고리즘

  • 1. Mobile Programing 숫자 필기 인식 프로그램 한국산업기술대학교 정낙현 jnh3586@naver.com
  • 2. 목차  1. 필기 인식 알고리즘 흐름도  2. 필기 인식 알고리즘 설명  2.1 글씨로 설명  2.2 그림을 이용한 설명  2.3 예외처리  3. 시연영상 2
  • 3. 시작 기울기 종료 기울기 숫자 판단 결과산출 1. 필기 인식 알고리즘 흐름도 터치 If 4or5 If 4or5 3
  • 4. 2.1 필기 인식 알고리즘 1  1. 터치를 입력 밭아 좌표를 기억한다. Save (fx1, fy1)  2. 입력 받은 좌표를 중심으로 크기 j의 사각형을 만든다 Rect (fx1-j, fy1-j, fx1+j, fy1+j)  3. 드래그를 할 때 터치 좌표가 상자를 벗어나면 그 지점을 fx2, fy2로 기록한다 Save (fx2, fy2)  4.fx2, fy2를 중심으로 크기 j의 사각형을 좌표를 lx1,ly1에 기록한다 Rect (fx2-j, fy2-j, fx2+j, fy2+j), Save(lx1, ly1)  5. fx1,fy1 과 fx2, fy2 두 점의 기울기를 계산하여 r1에 기록한다 r1=기울기(fx1,fy1,fx2,fy2) 4
  • 5. 2.1 필기 인식 알고리즘 2  6. 상자를 벗어나면 lx2, ly2에 기록한다 Save(lx2, ly2)  7. lx1,ly1 lx2,ly2의 기울기를 r2에 기록한다 r2= 기울기 (lx1,ly1 lx2,ly2)  8. lx1, ly1을 기록한다 Save(lx1, ly1)  9. 6,7,8 과정을 반복하며 기울기를 r2에 덮어쓰기 한다 While(!Touch){6->7->8}  10. r1과 r2의 값으로 입력한 값을 알아낸다 FindNum(r1,r2) 5
  • 6. 2.2 필기 인식 알고리즘 1. 터치를 입력 밭아 좌표를 기억한다. Save (fx1, fy1) 2. 입력 받은 좌표를 중심으로 크기 j의 사각형을 만든다 Rect (fx1-j, fy1-j, fx1+j, fy1+j) fx1, fy1 6
  • 7. 2.2 필기 인식 알고리즘 3. 드래그를 할 때 터치 좌표가 상자를 벗어나면 그 지점을 fx2, fy2로 기록한다 Save (fx2, fy2) fx1, fy1 fx2, fy2 7
  • 8. 2.2 필기 인식 알고리즘 4.fx2, fy2를 중심으로 크기 j의 사각형을 좌표를 lx1,ly1에 기록한다 Rect (fx2-j, fy2-j, fx2+j, fy2+j), Save(lx1, ly1) 5. fx1,fy1 과 fx2, fy2 두 점의 기울기를 계산하여 r1에 기록한다 r1=기울기(fx1,fy1,fx2,fy2) r1=기울기 fx2, fy2 lx1, ly1 8
  • 9. 2.2 필기 인식 알고리즘 6. 상자를 벗어나면 lx2, ly2에 기록한다 Save(lx2, ly2) 7. lx1,ly1 lx2,ly2의 기울기를 r2에 기록한다 r2= 기울기 (lx1,ly1 lx2,ly2) lx1, ly1 lx2, ly2 r2=기울기 9
  • 10. 2.2 필기 인식 알고리즘 8. lx1, ly1을 기록한다 Save(lx1, ly1) 9. 6,7,8 과정을 반복하며 기울기를 r2에 덮어쓰기 한다 While(!Touch){6->7->8} lx1, ly1 10
  • 11. 2.2 필기 인식 알고리즘 8. lx1, ly1을 기록한다 Save(lx1, ly1) 9. 6,7,8 과정을 반복하며 기울기를 r2에 덮어쓰기 한다 While(!Touch){6->7->8} 11
  • 12. 2.2 필기 인식 알고리즘 10. r1과 r2의 값으로 입력한 값을 알아낸다 FindNum(r1,r2) 1 2 3 4 5 6 7 8 r1 = 5 r2 = 5 FindNum(5,5) = 1 12
  • 13. 2.3 예외처리 알고리즘이 시작 기울기와 끝 기울기가 같을 때 구분하지 못하기 때문에 필요  0또는 6  If 시작좌표와 끝좌표의 y축의 좌표가 비슷하면 0  else 6  6또는 8  6or8 flag를 만들어둔다  드래그를 할 때 시작좌표 y축 위를 지나면 flag를 8 else 6  flag가 6 이면 6 8 이면 8 13