This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from 41349c5 CAMEL-14850 - Camel-AWS2-*: Improve the verifiers to check if
a particular service works on a specified region, Fixed CS
new 1bde2ed CAMEL-14808. Initial component version
new 62e83cf CAMEL-14808. Fixed stylecheck errors
new 5995619 CAMEL-14808. Fixes for PR review
new 51d860e CAMEL-14808. Fixes for PR review
new 23912aa7 Fix exception handling
new 21ef287 Fixed CS
new 53900aa Camel-djl: Set to 3.3.0-SNAPSHOT
new 42a0d2c Camel-djl: Cleanup pom.xml a bit
new 823a4f4 Camel-djl: Regen and add components markers for docs
new e6b82ec Camel-djl: Regen
The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
apache-camel/src/main/descriptors/common-bin.xml | 1 +
bom/camel-bom/pom.xml | 5 +
components/camel-djl/pom.xml | 91 +++++++++
.../component/djl/DJLComponentConfigurer.java | 50 +++++
.../camel/component/djl/DJLEndpointConfigurer.java | 64 ++++++
.../services/org/apache/camel/component.properties | 7 +
.../services/org/apache/camel/component/djl | 2 +
.../org/apache/camel/configurer/djl-component | 2 +
.../org/apache/camel/configurer/djl-endpoint | 2 +
.../org/apache/camel/component/djl/djl.json | 35 ++++
.../camel-djl/src/main/docs/djl-component.adoc | 213 ++++++++++++++++++++
.../apache/camel/component/djl/DJLComponent.java | 42 ++++
.../apache/camel/component/djl/DJLEndpoint.java | 94 +++++++++
.../apache/camel/component/djl/DJLProducer.java | 46 +++++
.../component/djl/model/AbstractPredictor.java | 26 +++
.../model/CustomImageClassificationPredictor.java | 99 ++++++++++
.../djl/model/CustomObjectDetectionPredictor.java | 96 +++++++++
.../djl/model/ModelPredictorProducer.java | 48 +++++
.../djl/model/ZooImageClassificationPredictor.java | 104 ++++++++++
.../djl/model/ZooObjectDetectionPredictor.java | 100 ++++++++++
.../services/org/apache/camel/component/djl | 1 +
.../djl/ImageClassificationLocalTest.java | 97 +++++++++
.../component/djl/ImageClassificationTest.java | 47 +++++
.../camel/component/djl/ObjectDetectionTest.java | 47 +++++
.../component/djl/training/MnistTraining.java | 114 +++++++++++
.../src/test/resources/data/detect/dog-cat.jpg | Bin 0 -> 229963 bytes
.../test/resources/data/detect/dog_bike_car.jpg | Bin 0 -> 163759 bytes
.../src/test/resources/data/detect/kitten.jpg | Bin 0 -> 16016 bytes
.../src/test/resources/data/mnist/0/10.png | Bin 0 -> 272 bytes
.../src/test/resources/data/mnist/0/13.png | Bin 0 -> 288 bytes
.../src/test/resources/data/mnist/0/25.png | Bin 0 -> 297 bytes
.../src/test/resources/data/mnist/0/28.png | Bin 0 -> 261 bytes
.../src/test/resources/data/mnist/0/3.png | Bin 0 -> 266 bytes
.../src/test/resources/data/mnist/0/55.png | Bin 0 -> 267 bytes
.../src/test/resources/data/mnist/0/69.png | Bin 0 -> 291 bytes
.../src/test/resources/data/mnist/0/71.png | Bin 0 -> 289 bytes
.../src/test/resources/data/mnist/1/14.png | Bin 0 -> 121 bytes
.../src/test/resources/data/mnist/1/2.png | Bin 0 -> 181 bytes
.../src/test/resources/data/mnist/1/29.png | Bin 0 -> 154 bytes
.../src/test/resources/data/mnist/1/31.png | Bin 0 -> 163 bytes
.../src/test/resources/data/mnist/1/37.png | Bin 0 -> 145 bytes
.../src/test/resources/data/mnist/1/39.png | Bin 0 -> 176 bytes
.../src/test/resources/data/mnist/1/5.png | Bin 0 -> 199 bytes
.../src/test/resources/data/mnist/2/1.png | Bin 0 -> 255 bytes
.../src/test/resources/data/mnist/2/35.png | Bin 0 -> 285 bytes
.../src/test/resources/data/mnist/2/43.png | Bin 0 -> 204 bytes
.../src/test/resources/data/mnist/2/47.png | Bin 0 -> 255 bytes
.../src/test/resources/data/mnist/2/72.png | Bin 0 -> 282 bytes
.../src/test/resources/data/mnist/2/77.png | Bin 0 -> 239 bytes
.../src/test/resources/data/mnist/2/82.png | Bin 0 -> 256 bytes
.../src/test/resources/data/mnist/3/18.png | Bin 0 -> 318 bytes
.../src/test/resources/data/mnist/3/30.png | Bin 0 -> 242 bytes
.../src/test/resources/data/mnist/3/32.png | Bin 0 -> 254 bytes
.../src/test/resources/data/mnist/3/44.png | Bin 0 -> 224 bytes
.../src/test/resources/data/mnist/3/51.png | Bin 0 -> 272 bytes
.../src/test/resources/data/mnist/3/63.png | Bin 0 -> 248 bytes
.../src/test/resources/data/mnist/3/68.png | Bin 0 -> 166 bytes
.../src/test/resources/data/mnist/3/76.png | Bin 0 -> 250 bytes
.../src/test/resources/data/mnist/3/87.png | Bin 0 -> 269 bytes
.../src/test/resources/data/mnist/3/90.png | Bin 0 -> 294 bytes
.../src/test/resources/data/mnist/3/93.png | Bin 0 -> 238 bytes
.../src/test/resources/data/mnist/4/19.png | Bin 0 -> 232 bytes
.../src/test/resources/data/mnist/4/24.png | Bin 0 -> 238 bytes
.../src/test/resources/data/mnist/4/27.png | Bin 0 -> 254 bytes
.../src/test/resources/data/mnist/4/33.png | Bin 0 -> 279 bytes
.../src/test/resources/data/mnist/4/4.png | Bin 0 -> 251 bytes
.../src/test/resources/data/mnist/4/42.png | Bin 0 -> 254 bytes
.../src/test/resources/data/mnist/4/48.png | Bin 0 -> 257 bytes
.../src/test/resources/data/mnist/4/49.png | Bin 0 -> 228 bytes
.../src/test/resources/data/mnist/4/56.png | Bin 0 -> 264 bytes
.../src/test/resources/data/mnist/4/6.png | Bin 0 -> 260 bytes
.../src/test/resources/data/mnist/4/65.png | Bin 0 -> 187 bytes
.../src/test/resources/data/mnist/4/67.png | Bin 0 -> 269 bytes
.../src/test/resources/data/mnist/4/85.png | Bin 0 -> 272 bytes
.../src/test/resources/data/mnist/4/95.png | Bin 0 -> 297 bytes
.../src/test/resources/data/mnist/5/15.png | Bin 0 -> 252 bytes
.../src/test/resources/data/mnist/5/23.png | Bin 0 -> 258 bytes
.../src/test/resources/data/mnist/5/45.png | Bin 0 -> 243 bytes
.../src/test/resources/data/mnist/5/52.png | Bin 0 -> 284 bytes
.../src/test/resources/data/mnist/5/53.png | Bin 0 -> 253 bytes
.../src/test/resources/data/mnist/5/59.png | Bin 0 -> 218 bytes
.../src/test/resources/data/mnist/5/8.png | Bin 0 -> 263 bytes
.../src/test/resources/data/mnist/6/11.png | Bin 0 -> 305 bytes
.../src/test/resources/data/mnist/6/21.png | Bin 0 -> 252 bytes
.../src/test/resources/data/mnist/6/22.png | Bin 0 -> 198 bytes
.../src/test/resources/data/mnist/6/50.png | Bin 0 -> 251 bytes
.../src/test/resources/data/mnist/6/54.png | Bin 0 -> 293 bytes
.../src/test/resources/data/mnist/6/66.png | Bin 0 -> 297 bytes
.../src/test/resources/data/mnist/6/81.png | Bin 0 -> 262 bytes
.../src/test/resources/data/mnist/6/88.png | Bin 0 -> 278 bytes
.../src/test/resources/data/mnist/6/91.png | Bin 0 -> 261 bytes
.../src/test/resources/data/mnist/6/98.png | Bin 0 -> 271 bytes
.../src/test/resources/data/mnist/7/0.png | Bin 0 -> 223 bytes
.../src/test/resources/data/mnist/7/17.png | Bin 0 -> 245 bytes
.../src/test/resources/data/mnist/7/26.png | Bin 0 -> 208 bytes
.../src/test/resources/data/mnist/7/34.png | Bin 0 -> 244 bytes
.../src/test/resources/data/mnist/7/36.png | Bin 0 -> 248 bytes
.../src/test/resources/data/mnist/7/41.png | Bin 0 -> 233 bytes
.../src/test/resources/data/mnist/7/60.png | Bin 0 -> 146 bytes
.../src/test/resources/data/mnist/7/64.png | Bin 0 -> 268 bytes
.../src/test/resources/data/mnist/7/70.png | Bin 0 -> 236 bytes
.../src/test/resources/data/mnist/7/75.png | Bin 0 -> 233 bytes
.../src/test/resources/data/mnist/7/79.png | Bin 0 -> 246 bytes
.../src/test/resources/data/mnist/7/80.png | Bin 0 -> 179 bytes
.../src/test/resources/data/mnist/7/83.png | Bin 0 -> 210 bytes
.../src/test/resources/data/mnist/7/86.png | Bin 0 -> 225 bytes
.../src/test/resources/data/mnist/7/97.png | Bin 0 -> 223 bytes
.../src/test/resources/data/mnist/8/110.png | Bin 0 -> 304 bytes
.../src/test/resources/data/mnist/8/128.png | Bin 0 -> 309 bytes
.../src/test/resources/data/mnist/8/134.png | Bin 0 -> 298 bytes
.../src/test/resources/data/mnist/8/146.png | Bin 0 -> 310 bytes
.../src/test/resources/data/mnist/8/177.png | Bin 0 -> 251 bytes
.../src/test/resources/data/mnist/8/179.png | Bin 0 -> 301 bytes
.../src/test/resources/data/mnist/8/61.png | Bin 0 -> 287 bytes
.../src/test/resources/data/mnist/8/84.png | Bin 0 -> 332 bytes
.../src/test/resources/data/mnist/9/12.png | Bin 0 -> 259 bytes
.../src/test/resources/data/mnist/9/16.png | Bin 0 -> 278 bytes
.../src/test/resources/data/mnist/9/20.png | Bin 0 -> 268 bytes
.../src/test/resources/data/mnist/9/58.png | Bin 0 -> 276 bytes
.../src/test/resources/data/mnist/9/62.png | Bin 0 -> 213 bytes
.../src/test/resources/data/mnist/9/7.png | Bin 0 -> 257 bytes
.../src/test/resources/data/mnist/9/73.png | Bin 0 -> 248 bytes
.../src/test/resources/data/mnist/9/78.png | Bin 0 -> 247 bytes
.../src/test/resources/data/mnist/9/9.png | Bin 0 -> 299 bytes
.../src/test/resources/data/mnist/9/92.png | Bin 0 -> 251 bytes
.../src/test/resources/data/mnist/9/99.png | Bin 0 -> 270 bytes
.../camel-djl/src/test/resources/log4j2.properties | 28 +++
.../test/resources/models/mnist/mlp-0007.params | Bin 0 -> 438209 bytes
.../src/test/resources/models/mnist/synset.txt | 10 +
components/pom.xml | 6 +-
core/camel-allcomponents/pom.xml | 4 +
.../component/ComponentsBuilderFactory.java | 11 ++
.../component/dsl/DjlComponentBuilderFactory.java | 106 ++++++++++
.../src/generated/resources/metadata.json | 21 ++
.../core/xml/AbstractCamelContextFactoryBean.java | 2 +-
.../builder/endpoint/EndpointBuilderFactory.java | 1 +
.../camel/builder/endpoint/EndpointBuilders.java | 1 +
.../endpoint/dsl/DJLEndpointBuilderFactory.java | 219 +++++++++++++++++++++
docs/components/modules/ROOT/nav.adoc | 1 +
.../modules/ROOT/pages/djl-component.adoc | 214 ++++++++++++++++++++
docs/components/modules/ROOT/pages/index.adoc | 4 +-
parent/pom.xml | 9 +
142 files changed, 2065 insertions(+), 5 deletions(-)
create mode 100644 components/camel-djl/pom.xml
create mode 100644
components/camel-djl/src/generated/java/org/apache/camel/component/djl/DJLComponentConfigurer.java
create mode 100644
components/camel-djl/src/generated/java/org/apache/camel/component/djl/DJLEndpointConfigurer.java
create mode 100644
components/camel-djl/src/generated/resources/META-INF/services/org/apache/camel/component.properties
create mode 100644
components/camel-djl/src/generated/resources/META-INF/services/org/apache/camel/component/djl
create mode 100644
components/camel-djl/src/generated/resources/META-INF/services/org/apache/camel/configurer/djl-component
create mode 100644
components/camel-djl/src/generated/resources/META-INF/services/org/apache/camel/configurer/djl-endpoint
create mode 100644
components/camel-djl/src/generated/resources/org/apache/camel/component/djl/djl.json
create mode 100644 components/camel-djl/src/main/docs/djl-component.adoc
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLComponent.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLEndpoint.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLProducer.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomImageClassificationPredictor.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomObjectDetectionPredictor.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ModelPredictorProducer.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooImageClassificationPredictor.java
create mode 100644
components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooObjectDetectionPredictor.java
create mode 100644
components/camel-djl/src/main/resources/META-INF/services/org/apache/camel/component/djl
create mode 100644
components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationLocalTest.java
create mode 100644
components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationTest.java
create mode 100644
components/camel-djl/src/test/java/org/apache/camel/component/djl/ObjectDetectionTest.java
create mode 100644
components/camel-djl/src/test/java/org/apache/camel/component/djl/training/MnistTraining.java
create mode 100644
components/camel-djl/src/test/resources/data/detect/dog-cat.jpg
create mode 100644
components/camel-djl/src/test/resources/data/detect/dog_bike_car.jpg
create mode 100644
components/camel-djl/src/test/resources/data/detect/kitten.jpg
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/10.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/13.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/25.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/28.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/3.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/55.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/69.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/0/71.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/1/14.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/1/2.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/1/29.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/1/31.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/1/37.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/1/39.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/1/5.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/2/1.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/2/35.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/2/43.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/2/47.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/2/72.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/2/77.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/2/82.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/18.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/30.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/32.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/44.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/51.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/63.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/68.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/76.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/87.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/90.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/3/93.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/19.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/24.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/27.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/33.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/4.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/42.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/48.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/49.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/56.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/6.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/65.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/67.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/85.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/4/95.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/5/15.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/5/23.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/5/45.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/5/52.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/5/53.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/5/59.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/5/8.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/11.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/21.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/22.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/50.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/54.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/66.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/81.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/88.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/91.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/6/98.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/0.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/17.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/26.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/34.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/36.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/41.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/60.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/64.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/70.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/75.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/79.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/80.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/83.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/86.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/7/97.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/110.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/128.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/134.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/146.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/177.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/179.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/61.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/8/84.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/12.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/16.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/20.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/58.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/62.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/7.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/73.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/78.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/9.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/92.png
create mode 100644 components/camel-djl/src/test/resources/data/mnist/9/99.png
create mode 100644 components/camel-djl/src/test/resources/log4j2.properties
create mode 100644
components/camel-djl/src/test/resources/models/mnist/mlp-0007.params
create mode 100644
components/camel-djl/src/test/resources/models/mnist/synset.txt
create mode 100644
core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
create mode 100644
core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
create mode 100644 docs/components/modules/ROOT/pages/djl-component.adoc