Development of the ocr part of AOI
Samo Penic
2019-01-24 8dad6520729d26d90ebee48939d7f2a1fd73dd38
Fix in pages that don't have qr code
2 files modified
7 ■■■■■ changed files
.idea/sonarIssues.xml 5 ●●●●● patch | view | raw | blame | history
aoi_ocr/Ocr.py 2 ●●●●● patch | view | raw | blame | history
.idea/sonarIssues.xml
@@ -98,6 +98,11 @@
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/../../django/sizif-web/aoi/exam/static/exam/functionality.js">
          <value>
            <set />
          </value>
        </entry>
        <entry key="$PROJECT_DIR$/../../django/sizif-web/aoi/exam/templates/exam/exam_detail.html">
          <value>
            <set />
aoi_ocr/Ocr.py
@@ -290,6 +290,8 @@
    def get_paper_ocr_data(self):
        data = self.get_code_data()
        if self.QRData is None:
            return None
        data["qr"] = bytes.decode(self.QRData, 'utf8')
        data["errors"] = self.errors
        data["warnings"] = self.warnings