https://github.com/robocorp/example-qrcode-java
Example Robot that uses java's boofcv library to detect and render QR codes
https://github.com/robocorp/example-qrcode-java
Last synced: 17 days ago
JSON representation
Example Robot that uses java's boofcv library to detect and render QR codes
- Host: GitHub
- URL: https://github.com/robocorp/example-qrcode-java
- Owner: robocorp
- License: apache-2.0
- Created: 2021-03-12T13:20:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-28T20:57:18.000Z (almost 3 years ago)
- Last Synced: 2025-11-21T09:04:16.997Z (8 months ago)
- Language: Java
- Size: 24.6 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Robocorp QR Code Example Robot
Example Robot to Detect and Render QR Codes with java boofcv library
## Tasks
#### Render QR code
Configure two Robocloud environment variables:
DATA
Name of the Work Item key or literal message to be rendered into QR code
IMAGE
Name of the Work Item file to hold the image of rendered QR Code
#### Detect QR code
Configure two Robocloud environment variables:
DATA
Name of the Work Item key to hold the data read from the QR code
IMAGE
Name of the Work Item file that holds the image where QR code is searched from
## Usage of Java
This example also shows simple way to extends Robot's functionality with java. JDK is added as a conda dependency:
channels:
- conda-forge
dependencies:
- python=3.7.5
- rpaframework=9.3.2
- openjdk=11.0.8
In more complex library it would make sense to implement the RF-java communication by using [jrobotremoteserver](https://github.com/robotframework/RemoteInterface), but this example we just start the java as shell command e.g.
Run Process java -jar QrCode-1.0-SNAPSHOT-jar-with-dependencies.jar render %{IMAGE_KEY}
Also full java code, dependencies and build scripts are included in the example. If you hava JDK and Maven installed, you can build the java by running:
mvn package
It will generate fat jar in target directory.