Browse Source

3.4.6 20250613 湖南师范大学扫描识别数据更新Test

xiaofei 1 week ago
parent
commit
a854050fc2

File diff suppressed because it is too large
+ 115 - 5
distributed-print/src/test/java/com/qmth/distributed/print/UpdateObjectiveOmrResultTest.java


+ 71 - 0
distributed-print/src/test/java/com/qmth/distributed/print/updateObjectiveOmrResult/FillResult.java

@@ -0,0 +1,71 @@
+package com.qmth.distributed.print.updateObjectiveOmrResult;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class FillResult implements Serializable {
+
+    private int main_number;
+    private int sub_number;
+    private int single;
+    private List<Integer> fill_option;
+    private int suspect_flag;
+    private List<String> fill_position;
+    private List<Integer> fill_size;
+
+    public int getMain_number() {
+        return main_number;
+    }
+
+    public void setMain_number(int main_number) {
+        this.main_number = main_number;
+    }
+
+    public int getSub_number() {
+        return sub_number;
+    }
+
+    public void setSub_number(int sub_number) {
+        this.sub_number = sub_number;
+    }
+
+    public int getSingle() {
+        return single;
+    }
+
+    public void setSingle(int single) {
+        this.single = single;
+    }
+
+    public List<Integer> getFill_option() {
+        return fill_option;
+    }
+
+    public void setFill_option(List<Integer> fill_option) {
+        this.fill_option = fill_option;
+    }
+
+    public int getSuspect_flag() {
+        return suspect_flag;
+    }
+
+    public void setSuspect_flag(int suspect_flag) {
+        this.suspect_flag = suspect_flag;
+    }
+
+    public List<String> getFill_position() {
+        return fill_position;
+    }
+
+    public void setFill_position(List<String> fill_position) {
+        this.fill_position = fill_position;
+    }
+
+    public List<Integer> getFill_size() {
+        return fill_size;
+    }
+
+    public void setFill_size(List<Integer> fill_size) {
+        this.fill_size = fill_size;
+    }
+}

+ 62 - 0
distributed-print/src/test/java/com/qmth/distributed/print/updateObjectiveOmrResult/Question.java

@@ -0,0 +1,62 @@
+package com.qmth.distributed.print.updateObjectiveOmrResult;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class Question implements Serializable {
+    private String field;
+    private int index;
+    private String content;
+    private int wrong_flag;
+    private List<FillResult> fill_result = new ArrayList<>();
+    private String type;
+
+    public String getField() {
+        return field;
+    }
+
+    public void setField(String field) {
+        this.field = field;
+    }
+
+    public int getIndex() {
+        return index;
+    }
+
+    public void setIndex(int index) {
+        this.index = index;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public int getWrong_flag() {
+        return wrong_flag;
+    }
+
+    public void setWrong_flag(int wrong_flag) {
+        this.wrong_flag = wrong_flag;
+    }
+
+    public List<FillResult> getFill_result() {
+        return fill_result;
+    }
+
+    public void setFill_result(List<FillResult> fill_result) {
+        this.fill_result = fill_result;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+}

+ 70 - 0
distributed-print/src/test/java/com/qmth/distributed/print/updateObjectiveOmrResult/QuestionRect.java

@@ -0,0 +1,70 @@
+package com.qmth.distributed.print.updateObjectiveOmrResult;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class QuestionRect implements Serializable {
+    private String field;
+    private int index;
+    private String content;
+    private int wrong_flag;
+    private List<FillResult> fill_result;
+    private String type;
+    private List<Double> rect;
+
+    public String getField() {
+        return field;
+    }
+
+    public void setField(String field) {
+        this.field = field;
+    }
+
+    public int getIndex() {
+        return index;
+    }
+
+    public void setIndex(int index) {
+        this.index = index;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public int getWrong_flag() {
+        return wrong_flag;
+    }
+
+    public void setWrong_flag(int wrong_flag) {
+        this.wrong_flag = wrong_flag;
+    }
+
+    public List<FillResult> getFill_result() {
+        return fill_result;
+    }
+
+    public void setFill_result(List<FillResult> fill_result) {
+        this.fill_result = fill_result;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public List<Double> getRect() {
+        return rect;
+    }
+
+    public void setRect(List<Double> rect) {
+        this.rect = rect;
+    }
+}

+ 125 - 0
distributed-print/src/test/java/com/qmth/distributed/print/updateObjectiveOmrResult/RecogData.java

@@ -0,0 +1,125 @@
+package com.qmth.distributed.print.updateObjectiveOmrResult;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class RecogData implements Serializable {
+    private int algorithm;
+    private int page_index;
+    private int error_flag;
+    private int blank_flag;
+    private int angle;
+    private Question examNumber;
+    private Question absent;
+    private QuestionRect breach;
+    private QuestionRect pageNumber;
+    private Question paperType;
+    private List<Question> question;
+    private List<Integer> block_struct;
+    private List<String> extension = new ArrayList<>();
+
+    public int getAlgorithm() {
+        return algorithm;
+    }
+
+    public void setAlgorithm(int algorithm) {
+        this.algorithm = algorithm;
+    }
+
+    public int getPage_index() {
+        return page_index;
+    }
+
+    public void setPage_index(int page_index) {
+        this.page_index = page_index;
+    }
+
+    public int getError_flag() {
+        return error_flag;
+    }
+
+    public void setError_flag(int error_flag) {
+        this.error_flag = error_flag;
+    }
+
+    public int getBlank_flag() {
+        return blank_flag;
+    }
+
+    public void setBlank_flag(int blank_flag) {
+        this.blank_flag = blank_flag;
+    }
+
+    public int getAngle() {
+        return angle;
+    }
+
+    public void setAngle(int angle) {
+        this.angle = angle;
+    }
+
+    public Question getExamNumber() {
+        return examNumber;
+    }
+
+    public void setExamNumber(Question examNumber) {
+        this.examNumber = examNumber;
+    }
+
+    public Question getAbsent() {
+        return absent;
+    }
+
+    public void setAbsent(Question absent) {
+        this.absent = absent;
+    }
+
+    public QuestionRect getBreach() {
+        return breach;
+    }
+
+    public void setBreach(QuestionRect breach) {
+        this.breach = breach;
+    }
+
+    public QuestionRect getPageNumber() {
+        return pageNumber;
+    }
+
+    public void setPageNumber(QuestionRect pageNumber) {
+        this.pageNumber = pageNumber;
+    }
+
+    public Question getPaperType() {
+        return paperType;
+    }
+
+    public void setPaperType(Question paperType) {
+        this.paperType = paperType;
+    }
+
+    public List<Question> getQuestion() {
+        return question;
+    }
+
+    public void setQuestion(List<Question> question) {
+        this.question = question;
+    }
+
+    public List<Integer> getBlock_struct() {
+        return block_struct;
+    }
+
+    public void setBlock_struct(List<Integer> block_struct) {
+        this.block_struct = block_struct;
+    }
+
+    public List<String> getExtension() {
+        return extension;
+    }
+
+    public void setExtension(List<String> extension) {
+        this.extension = extension;
+    }
+}

Some files were not shown because too many files changed in this diff