def get_json_from_response_microdata(self, response): print("microdata") raw_json = json.loads( self.microdata.rdf_from_source(response.body, 'json-ld').decode('utf8')) #print(raw_json) result = parse_json(raw_json) return result
def test_image(image_path): sudoku_config = parse_json("config/sudoku.json") image_processor_config = parse_json("config/image_processor.json") sudoku = Sudoku(sudoku_config=sudoku_config,preprocess_config=image_processor_config) image = load_image(image_path) sudoku.run_pipeline(image)