Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

yotta / pictogram

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 60
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Closed
Open
Issue #127 opened Apr 03, 2017 by Sebastián Collado Montañez@scollado 
  • New issue
New issue

Symbolstix en blanco y negro

Generar colección en blanco y negro

  • Sebastián Collado Montañez @scollado commented Apr 04, 2017
    Developer
    import numpy as np
    import cv2 , sys
    import os
    
    base_dir = "symbolstx"
    
    for root, dirs, files in os.walk(base_dir):
        for file in files:
            if file.endswith('.png'):
                im_gray = cv2.imread(root+file, cv2.IMREAD_GRAYSCALE)
                thresh,im_bw = cv2.threshold(im_gray, 127, 255, cv2.THRESH_BINARY)
                cv2.imwrite(root+file, im_bw)
    ``` import numpy as np import cv2 , sys import os base_dir = "symbolstx" for root, dirs, files in os.walk(base_dir): for file in files: if file.endswith('.png'): im_gray = cv2.imread(root+file, cv2.IMREAD_GRAYSCALE) thresh,im_bw = cv2.threshold(im_gray, 127, 255, cv2.THRESH_BINARY) cv2.imwrite(root+file, im_bw) ```
  • Sebastián Collado Montañez @scollado commented Apr 04, 2017
    Developer

    @jalr0005

    @jalr0005
  • Sebastián Collado Montañez @scollado commented Apr 10, 2017
    Developer

    Queda pendiente de solicitar la colección completa en blanco y negro.

    Queda pendiente de solicitar la colección completa en blanco y negro.
  • Sebastián Collado Montañez @scollado

    closed

    Apr 10, 2017

    closed

    closed
    Toggle commit list
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View labels
1
1 participant
Reference: yotta/pictogram#127