Skip to content

Commit

Permalink
update cards (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanechilah committed Apr 18, 2024
1 parent 7bd27b8 commit 1fae1b6
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags: [en, licensed]
task: Document Visual Question Answering
language: en
nav_key: models
edition: Visual NLP 5.2.0
edition: Visual NLP 5.1.0
spark_version: 3.2.1
supported: true
article_header:
Expand Down Expand Up @@ -118,8 +118,6 @@ Image:
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|{[What's the estimated population in poverty of Lawrence? , What's the population of Stoddard? , What is the page number of the document? , What is the date number of the document? ], [ 55,730, 26,800, 6, 1/28/70], [0.030239912, 0.9217337, 0.9979782, 0.09267823]}|
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
CPU times: user 10.5 ms, sys: 1.85 ms, total: 12.3 ms
Wall time: 43.6 s
```


Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: model
title: Handwritten Text Detection
title: Handwritten Text and Signature Detection
author: John Snow Labs
name: image_handwritten_detector_jsl
date: 2024-03-15
tags: [en, licensed]
task: Handwritten Text Detection
task: Handwritten Text and Signature Detection
language: en
nav_key: models
edition: Visual NLP 5.2.0
edition: Visual NLP 5.1.2
spark_version: 3.2.1
supported: true
article_header:
Expand Down Expand Up @@ -93,22 +93,22 @@ val result = pipeline.transform(image_df)

## Example

{%- capture input -%}
{%- capture input_image -%}
![Screenshot](/assets/images/examples_ocr/hw_detection_input.png)
{%- endcapture -%}

{%- capture output -%}
{%- capture output_image -%}
![Screenshot](/assets/images/examples_ocr/hw_detection_output.png)
{%- endcapture -%}


{% include templates/input_output_image.md
input=input
output=output
input_image=input_image
output_image=output_image
%}


{:.model-param}

## Model Information

{:.table-model}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: model
title: Оcr large for handwritten text
title: Оcr large for handwritten text v2
author: John Snow Labs
name: ocr_large_handwritten_v2
date: 2024-03-15
tags: [en, licensed]
task: OCR Text Detection & Recognition
language: en
nav_key: models
edition: Visual NLP 5.2.0
edition: Visual NLP 5.1.2
spark_version: 3.2.1
supported: true
article_header:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: model
title: Оcr large for handwritten text
title: Оcr large for handwritten text v2 optimized
author: John Snow Labs
name: ocr_large_handwritten_v2_opt
date: 2024-03-15
tags: [en, licensed]
task: OCR Text Detection & Recognition
language: en
nav_key: models
edition: Visual NLP 5.2.0
edition: Visual NLP 5.1.2
spark_version: 3.2.1
supported: true
article_header:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: model
title: Оcr large for printed text
title: Оcr large for printed text v2
author: John Snow Labs
name: ocr_large_printed_v2
date: 2024-03-15
tags: [en, licensed]
task: OCR Text Detection & Recognition
language: en
nav_key: models
edition: Visual NLP 5.2.0
edition: Visual NLP 5.1.2
spark_version: 3.2.1
supported: true
article_header:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: model
title: Оcr large for printed text
title: Оcr large for printed text v2 optimized
author: John Snow Labs
name: ocr_large_printed_v2_opt
date: 2024-03-15
tags: [en, licensed]
task: OCR Text Detection & Recognition
task: OCR Text Detection & Recognition
language: en
nav_key: models
edition: Visual NLP 5.2.0
edition: Visual NLP 5.1.2
spark_version: 3.2.1
supported: true
article_header:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,24 +121,14 @@ val result = pipeline.transform(image_df)
### Input:
![Screenshot](/assets/images/examples_ocr/table_celldetector_input.png)

### Output:
{%- capture cell_detection -%}
### Cell Detection:
![Screenshot](/assets/images/examples_ocr/table_celldetector_v1_cells.png)
{%- endcapture -%}

{%- capture table_structure_recognition -%}
### Table Structure Recognition:
![Screenshot](/assets/images/examples_ocr/table_celldetector_v1_tsr.png)
{%- endcapture -%}


{% include templates/input_output_image.md
cell_detection=cell_detection
table_structure_recognition=table_structure_recognition
%}



{:.model-param}
## Model Information

{:.table-model}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: Table Cell Detection
title: Table Cell Detection v2
author: John Snow Labs
name: region_cell_detection_v2
date: 2024-03-15
Expand Down Expand Up @@ -122,24 +122,14 @@ val result = pipeline.transform(image_df)
### Input:
![Screenshot](/assets/images/examples_ocr/table_celldetector_input.png)

### Output:
{%- capture cell_detection -%}
### Cell Detection:
![Screenshot](/assets/images/examples_ocr/table_celldetector_v2_cells.png)
{%- endcapture -%}

{%- capture table_structure_recognition -%}
### Table Structure Recognition:
![Screenshot](/assets/images/examples_ocr/table_celldetector_v2_tsr.png)
{%- endcapture -%}


{% include templates/input_output_image.md
cell_detection=cell_detection
table_structure_recognition=table_structure_recognition
%}



{:.model-param}
## Model Information

{:.table-model}
Expand Down
16 changes: 3 additions & 13 deletions docs/_posts/aymanechilah/2024-03-15-table_detection_v3_en_3_2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: model
title: Table Detection
title: Table Detection v3
author: John Snow Labs
name: table_detection_v3
date: 2024-03-15
Expand Down Expand Up @@ -91,23 +91,13 @@ val result = pipeline.transform(image_df)

## Example

{%- capture input -%}
### Input:
![Screenshot](/assets/images/examples_ocr/image5.png)
{%- endcapture -%}

{%- capture output -%}
### Output:
![Screenshot](/assets/images/examples_ocr/image5_tdv3.png)
{%- endcapture -%}


{% include templates/input_output_image.md
input=input
output=output
%}



{:.model-param}
## Model Information

{:.table-model}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags: [en, licensed]
task: Chart to Text
language: en
nav_key: models
edition: Visual NLP 5.2.0
edition: Visual NLP 5.3.0
spark_version: 3.2.1
supported: true
article_header:
Expand Down
17 changes: 3 additions & 14 deletions docs/_posts/aymanechilah/2024-04-15-checkbox_detector_v1_en_3_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags: [en, licensed]
task: Checkbox Detection & Recognition
language: en
nav_key: models
edition: Visual NLP 5.1.2
edition: Visual NLP 5.3.1
spark_version: 3.2.1
supported: true
article_header:
Expand Down Expand Up @@ -103,24 +103,13 @@ val result = pipeline.transform(image_df)
### Input:
![Screenshot](/assets/images/examples_ocr/cboxes.png)

### Output:
{%- capture checkbox_detection -%}
### Checkbox Detection:
![Screenshot](/assets/images/examples_ocr/cboxes_out.png)
{%- endcapture -%}

{%- capture checkbox_to_ocr -%}
### Checkbox to text:
![Screenshot](/assets/images/examples_ocr/cboxes_out_process.png)
{%- endcapture -%}


{% include templates/input_output_image.md
checkbox_detection=checkbox_detection
checkbox_to_ocr=checkbox_to_ocr
%}



{:.model-param}
## Model Information

{:.table-model}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,20 @@ val results = pipeline.transform(image_and_questions).cache()
### Input:

Questions:

```bash
- What percentage of Suicides are caused by Motorcycle accidents?
- What percentage of Suicides are caused by pedestrian accidents?
- What is fifth warning sign listed here?
```

Image:


![Screenshot](/assets/images/examples_ocr/infographics_image.png)

### Output:
```bash
CPU times: user 302 ms, sys: 36.2 ms, total: 338 ms
Wall time: 1min 9s
[{'image': ImageOutput(path: 3f878eba5bf5d66635a3f2312ca2819c.jpg, exception: None),
'answers': AnswersOutput(questions_and_answers: [{'score': 0.9581562, 'question': 'What percentage of Suicides are caused by Motorcycle accidents? ', 'answer': ' 4.2%'}, {'score': 0.98590666, 'question': 'What percentage of Suicides are caused by pedestrian accidents? ', 'answer': ' 2.9%'}, {'score': 0.89071125, 'question': 'What is fifth warning sign listed here? ', 'answer': ' self-harming'}])}]
```
Expand Down

0 comments on commit 1fae1b6

Please sign in to comment.