Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Amir Orbe
LectorOCR
Commits
1e5c50cc
Commit
1e5c50cc
authored
3 years ago
by
Amir Orbe
Browse files
Options
Download
Email Patches
Plain Diff
se mapearon las lineas del string
parent
5f67e43e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/lectorocr.ex
lib/lectorocr.ex
+6
-4
No files found.
lib/lectorocr.ex
View file @
1e5c50cc
...
...
@@ -10,7 +10,7 @@ defmodule Lectorocr do
def
extraerString
(
contenidoArchivo
)
do
contenidoArchivo
|>
filtrar
#
|>
|>
Enum
.
map
(
fn
s
->
mapearString
(
s
)
end
)
end
def
filtrar
(
contenidoArchivo
)
do
...
...
@@ -20,9 +20,11 @@ defmodule Lectorocr do
|>
Enum
.
chunk_every
(
3
)
end
#def mapearString() do
#end
def
mapearString
(
s
)
do
s
|>
Enum
.
map
(
fn
(
s
)
->
String
.
to_char_list
(
s
)
end
)
|>
Enum
.
map
(
fn
(
s
)
->
Enum
.
chunk_every
(
s
,
3
)
end
)
end
end
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment