Development of the ocr part of AOI
Samo Penic
2018-11-17 c1968cec9332f11aa25c723884f7a9b407e3bdb0
Fixed setup.py
3 files modified
25 ■■■■■ changed files
.idea/sonarIssues.xml 20 ●●●●● patch | view | raw | blame | history
aoi_ocr/sid_process.py 2 ●●● patch | view | raw | blame | history
setup.py 3 ●●●● patch | view | raw | blame | history
.idea/sonarIssues.xml
@@ -48,6 +48,11 @@
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/../../django/sizif-web/aoi/scan.py">
          <value>
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/../../django/sizif-web/aoi/studentpages/static/studentpages/ux/basic-widgets-sl.js">
          <value>
            <set />
@@ -73,6 +78,11 @@
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/MANIFEST.in.py">
          <value>
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/Ocr.py">
          <value>
            <set />
@@ -88,6 +98,16 @@
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/aoi_ocr/MANIFEST.in.py">
          <value>
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/aoi_ocr/sid_process.py">
          <value>
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/scan2db.py">
          <value>
            <set />
aoi_ocr/sid_process.py
@@ -64,7 +64,7 @@
    sid_no = ""
    image=find_biggest_blob(image,original_image,sid_mask)
    cv2.imwrite("sid_contour1.png",image)
    cv2.imwrite("/tmp/sid_contour1.png",image)
    im2, ctrs, hier = cv2.findContours(
        image.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE
    )
setup.py
@@ -1,6 +1,5 @@
#!/usr/bin/python3
from distutils.core import setup
setup(
    name="aoi_ocr",
    version="0.1a",
@@ -9,4 +8,6 @@
    author_email="samo.penic@gmail.com",
    url="",
    packages=["aoi_ocr"],
    include_package_data=True,
    package_data={'aoi_ocr': ['*.png','filename.joblib']},
)