63
1 Automating Tactile Graphics Translation Computer Vision CSE 455 2010 Richard Ladner University of Washington

Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

1

Automating Tactile Graphics Translation

Computer VisionCSE 455

2010

Richard Ladner University of Washington

Page 2: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

2

Blind Scientists and Engineers

Kent Cullers, Ph.D.Physics

Cary SupaloGrad StudentChemistry

Geerat Vermeij, Ph.D.Evolutionary Biologist

Page 3: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

3

Blind Scientists and Engineers

Bill GerreyElectrical EngineeringInventor

Imke Durre, Ph.D.Atmospheric Science

William SkawinskiProfessor, Chemistry

Page 4: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

4

Blind Scientists and Engineers

TV RamanComputer ScienceGoogle

Victor WongEE Grad Student

H. David WohlersProfessor, Chemistry

Page 5: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

5

Blind Scientists and Engineers

Chieko AsakawaComputer ScientistIBM

Hideji NagaokaComputer ScientistTsukuba U. of Tech

Katsuhito YamaguchiPhysicsNihon University

Page 6: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

65

Sangyun Hahn Ph.D. StudentCSE

Zach LattinMath Major

UWStudents

Page 7: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

7

The Problem

text

math

graphics

Page 8: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

8

Outline

• Tactual Perception• Text• Math• Graphics• Problems• Thanks• Demo

Page 9: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

9

Tactile Perception

• Resolution of human fingertip: 25 dpi• Tactual field of perception is no bigger

than the size of the fingertips of two hands• Color information is replaced by texture

information• Visual bandwidth is 1,000,000 bits per

second, tactile is 100 bits per second

Page 10: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

10

Braille

• System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French blind man.

a b c z

and the with mother

th ghch

Critical fact:Fixed height and width

Z 3 Mode characters: cap and num.

Page 11: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

11

Tiger Embosser

• 20 dpi (raised dots per inch)• 7 height levels (only 3 or 4 are distinguishable)• Prints Braille text and

graphics• Prints dot patterns for

texture• Invented by a blind man,

John Gardner

Page 12: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

12

Outline

• Tactual Perception• Text• Math• Graphics• Problems• Thanks• Demo

Page 13: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

13

Text

Page 14: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

14

Text Translation

The constraints do not define a region with any points in common in Quadrant I. When the constraints of a linear programming problem cannot be satisfied simultaneously, then infeasibility is said to occur. This may mean that the constraints have been formulated incorrectly, certain requirements need to be changed, or that additional resources are required before the problem can be solved.

,! 3/ra9ts d n def9e a region ) any po9ts 9 -mon 9 ,quadrant

,i4 ,:5 ! 3/ra9ts (a l9e> programm+ pro#m _c 2 satisfi$

simultane\sly1 !n 9f1sibil;y is sd 6o3ur4 ,? may m1n t !

3/ra9ts h be5 =mulat$ 9correctly1 c]ta9 require;ts ne$ 6be

*ang$1 or t a4i;nal res\rces >e requir$ 2f ! pro#m c 2

solv$4

Text Image

Text

Braille

Optical Character Recognition (OCR)

Braille Translation (Duxbury) Speech Synthesis (Jaws)

Speech

Page 15: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

15

Outline

• Tactual Perception• Text• Math• Graphics• Problems• Thanks• Demo

Page 16: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

16

Math

Page 17: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

17

Math Translation

\begin{eqnarray*}P(0,0) = 396(0) + 270(0) = 0\\P(15,0) = 396(15) + 270(0) = 5940\\P(15,5) = 396(15) + 270(5) = 7290\\P(0,20) = 396(0) + 270(20) = 5400\end{eqnarray*}

;,p(0,0) .k #396(0) + #270(0) .k #0

;,p(15,0) .k #396(15) + #270(0) .k #5940

;,p(15,5) .k #396(15) + #270(5) .k #7290

;,p(0,20) .k #396(0) + #270(20) .k #5400

Math Image

Latex

Nemeth Code

Math OCR (Infty Reader)

Braille Translation (Duxbury, Braille2000)

Page 18: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

18

Math Translation Examples

xx

i

i

−=∑

= 1

1

0

\sum_{i=0}^\infty x^i = \frac{1}{1-x}

.,s;i ;.k #0^,="x^i .k ?1/1-x#

\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

a

acbb

2

42 −±−

?-b+->b^2"-4ac]/2a#

Page 19: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

19

Outline

• Tactual Perception• Text• Math• Graphics• Problems• Thanks• Demo

Page 20: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

20

Graphics

Page 21: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

21

Graphic Translation<LocationInformation>

<NumLabels>16</NumLabels><Resolution>100.000000</Resolution><ScaleX>1.923077</ScaleX><ScaleY>1.953125</ScaleY>-

<Label><x1>121</x1><y1>45</y1><x2>140</x2><y2>69</y2><Alignment>0</Alignment><Angle>3.141593</Angle></Label>

preprocesstext extract

cleanimage

originalscannedimage

puregraphic

textimage

locationfile

Page 22: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

22

Graphic Translation<LocationInformation>

<NumLabels>16</NumLabels><Resolution>100.000000</Resolution><ScaleX>1.923077</ScaleX><ScaleY>1.953125</ScaleY>-

<Label><x1>121</x1><y1>45</y1><x2>140</x2><y2>69</y2><Alignment>0</Alignment><Angle>3.141593</Angle></Label>

puregraphic

textimage

locationfile

y(0,20)x=1515105Ox510152020x+y=20(15,0)(15,5)

y

(#0,#20)

x.k#15

#15

#10

#5

O

x

#5

#10

#15

#20

#20

x+y.k#20

(#15,#0)

(#15,#5)

text Braille

Page 23: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

23

Finding Text

• Why not just use standard optical character recognition (OCR)?– OCR is not effective for graphical images.

ABBYY FineReader 7.0Professional Edition

Page 24: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

24

More OCR

ScanSoft OmniPage Pro 14.0

Page 25: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

25

Find Text Letters

• Uses the following principles– Text in an image is usually in one font– Fonts are designed to have a uniform density

at a distance.– In the absence of noise an individual letter

tends to be connected component of one color. Exceptions are i and j.

• Use machine learning to determine which connected components are letters.

Page 26: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

26

Features

Century Gothic

W = width of bounding boxH = height of bounding boxA = area of bounding boxRi = i-th radial slice density

W

H A = W • H

Ri = number of blackpixels in i-th slice wherea slice is an angle of360/n. The total numberof slices is n.

0

1

3

2Center is center ofmass of blackpixels4

5 6

7

Page 27: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

27

Machine Learning

• Training: – Sample the connected components and

compute their features.– Use these features to train a Support Vector

Machine (SVM).

• Finding:– For a new connected component compute its

features.– Feed these features into the SVM.

Page 28: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

28

Example

Trained on a different images from the same book.About 200 letters in the training set.

Page 29: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

29

Find Text Blocks

Page 30: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

30

Group characters logically

• Extracting a set of isolated characters from an image is insufficient– Need groups of Braille characters for easier

placement

• Challenges– Text can be at many angles– Individual characters may be aligned along

multiple axes

Page 31: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

31

Our approach

• Step 1: User provides training set– Software examines defining features

• Step 2: Automatically find similar groups in remaining images

A. Minimum spanning treeB. Discard useless edgesC. Discard inconsistent edgesD. Create merged groups

Page 32: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

32

Minimum spanning tree (1)

Treat the centroid of each connected component as a node

Page 33: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

33

Discard useless edges (2)

Page 34: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

34

Discard inconsistent edges (3)

Page 35: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

35

Final merge step (4)

Merge only if the resultant group is consistent

Page 36: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

36

Image oftext boxes

OCR

Text

14.012.010.08.0 6.0 4.0 2.0 0Performancerelative to AMDElan SC520AutomotiveOfficeTelecomm© 2003 Elsevier Science (USA). All rights reserved. AMD EIanSC520AMD K6-2E+IBM PowerPC 750CXNEC VR 5432NEC VR 4122

OCR on Text Image

Page 37: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

37

Braille Placement

• Text boxes of Braille will be of different size than the original text boxes– Mode characters– Contractions– Braille is fixed width

Example

,example

Example

,example

Example

,example

Left justified Centered Right justified

Page 38: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

38

Example Plane Sweep

3L

Page 39: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

39

Example Plane Sweep

3L

Page 40: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

40

Example Plane Sweep

4L

Page 41: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

41

Example Plane Sweep

8R

Page 42: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

42

Page 43: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

43

Available Books

• Computer Architecture: A Quantitative Approach, 3rd

Edition25 minutes per figure (230 figures)

• Advanced Mathematical Concepts, Precalculus with Applications6.3 minutes per figure (1,080 figures)

• An Intoduction to Modern Astrophysics10.2 minutes per figure (467 figures)

• Discrete Mathematical Structures8.8 minutes per figure (598 figures)

• Introduction to the Theory of Computation, 2nd Edition13.3 minutes per figure (180 figures)

Page 44: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

44

Work Balance

0.00%

5.00%

10.00%

15.00%

20.00%

25.00%

SetUp

Class

ificatio

n

TGA

Omnip

age

Photo

shop

Duxbury

Illustr

ator

Workf

low

Page 45: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

45

TGA Workflow

• Advantages– Much faster production– Batch processing instead of one figure at a

time– Much tedious work is avoided

• Disadvantages– May be of lower quality than custom

translation– A lot of technology needs to be mastered

Page 46: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

46

One-offs vs. Mass Production

1916 WoodsDual Power

Model T1906 Reo

Page 47: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

47

Outline

• Text• Math• Graphics• Workflow• Problems• Thanks• Demo

Page 48: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

48

Problem solving

• Each book present a set of unique problems.

• We consider a few today– Classification of figures– Legends and colors– Text at an angle– Math in figures– Grids

Page 49: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

49

Clean area 83

Clean lines 648

Complex62

Grid clean15

Grid overlap113

No text41 Overlapped text

94Radial

53

Classes

Page 50: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

50

Legends and Colors

• Legends may have to be enlarged. • Colors may have to be replaced with textures.

Page 51: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

51

Angled Text

• Braille should be printed horizontally.

Page 52: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

52

Math – Infty Reader

Extracted Math Image

Page 53: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

53

Grids

• Grids may not work well in tactile form.

Page 54: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

54

TGA Technology

• Tactile Graphic Assistant– C++– Machine Learning (Support Vector Machine)

• Learns features of text from positive and negative examples.

– Computational Geometry• Text justification

– Free executable– Licensable source code

Page 55: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

55

New Direction: Digital Pen Tactile Graphic

Digital PenTactile Graphic

Page 56: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

56

Technology of the Future

• Electro-rheological fluid displays

Page 57: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

57

Outline

• Text• Math• Graphics• Workflow• Problems• Thanks• Demo

Page 58: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

58

20052005200420042004

CSE Undergraduate Students

2004

20082005 2005 2006 20082007

Page 59: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

59

Current Undergraduate Student

Josh Scotland

Page 60: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

60

CSE Graduate Students

Page 61: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

61

Thanks To

• Dan Comden• Sheryl Burgstahler• Raj Rao• Melody Ivory• Ethan Katz-Basset• Zach Lattin• Stuart Olsen• Many others

Page 62: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

62

Thanks To

Page 63: Automating Tactile Graphics Translation...10 Braille • System to read text by feeling raised dots on paper (or on electronic displays). Invented in 1820s by Louis Braille, a French

63

DEMO