-
Notifications
You must be signed in to change notification settings - Fork 0
/
ocrResults.sql
58 lines (52 loc) · 1.95 KB
/
ocrResults.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-- MySQL Script generated by MySQL Workbench
-- Mon 06 Jul 2015 10:19:42 AM EDT
-- Model: New Model Version: 1.0
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;
USE `mydb` ;
-- -----------------------------------------------------
-- Table `mydb`.`ocr`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`ocr` (
`idocr` INT NOT NULL AUTO_INCREMENT,
`imageFile` VARCHAR(200) NOT NULL,
`ocrEngine` VARCHAR(45) NOT NULL,
`langParam` VARCHAR(8) NOT NULL,
`brightness` INT NULL,
`contrast` INT NULL,
`avgWordConfidence` INT NULL,
`numWords` INT NULL,
`startOcr` DATETIME NULL,
`timeOcr` INT NULL,
`remarks` VARCHAR(45) NULL,
`imageFileSize` INT NULL,
`outputText` TEXT NULL,
`outputHocr` BLOB NULL,
PRIMARY KEY (`idocr`),
UNIQUE INDEX `index2` USING BTREE (`imageFile` ASC, `ocrEngine` ASC, `langParam` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `mydb`.`jobQueue`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`jobQueue` (
`idjobQueue` INT NOT NULL AUTO_INCREMENT,
`queuedBy` VARCHAR(25) NULL,
`priority` SMALLINT NULL,
`notify` VARCHAR(45) NULL,
`parm1` VARCHAR(128) NULL,
`Command` VARCHAR(45) NULL,
`qDateTime` VARCHAR(45) NULL,
`parm2` VARCHAR(45) NULL,
PRIMARY KEY (`idjobQueue`),
INDEX `index2` USING BTREE (`priority` ASC, `qDateTime` ASC))
ENGINE = InnoDB
COMMENT = 'queue for ocr jobs';
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;