-
Notifications
You must be signed in to change notification settings - Fork 0
[EPIC-6378] Prepare/restructure for stable RC #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
yurii-scanbot
wants to merge
24
commits into
main
Choose a base branch
from
yk/restructure_snippets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2bda812
C Wrapper Barcode Live Example
6086e0d
Use goto in c wrapper example
51420c7
Readme files c wrapper
649cd88
Add tensorrt support
a13b192
Improve FindScanbotSDK.cmake
e021d63
refactor structure of java example. added new snippets
yurii-scanbot be1b02b
refactor structure of python example
yurii-scanbot 4ae7a0a
merge c wrapper example
yurii-scanbot ed2aceb
fixed merge conflics c barcode examples
yurii-scanbot a4573e2
restructure project and add scan/analyze/classify/parse snippets with…
yurii-scanbot b88612a
add snippets for nodejs wrapper
yurii-scanbot 5afb93a
Merge pull request #20 from doo/yk/snippets_nodejs
yurii-scanbot 9aed4c2
replace magic constants
yurii-scanbot 14765af
remove function declarations from headers that aren't in use
yurii-scanbot a155f75
refactor main.c, for early outs always goto cleanup
yurii-scanbot 984e928
refactor snippets cleanups and unnecessary condition under default cr…
yurii-scanbot 01939df
refactored analyse sumcommand and floatin license snippets with clear…
yurii-scanbot c129240
added optional param for --license in cli
yurii-scanbot fbc934d
updated nodejs snippets with better way to dispose unmanaged resource…
yurii-scanbot cd6045b
added --license key flag from cli to java and python examples
yurii-scanbot 70ca861
rename mrz parser snippet java
yurii-scanbot 308eaea
separate live scanners snippets
yurii-scanbot 5c8bd8b
refactor java snippets, improve comments
yurii-scanbot 499dcc4
removed unnecessary license checks inside of code snippets and remove…
yurii-scanbot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.DS_Store | ||
statistics.dat | ||
|
||
examples/c/build/* | ||
examples/nodejs/node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef DETECT_BARCODE_H | ||
#define DETECT_BARCODE_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_barcode(scanbotsdk_image_t *image); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef PARSE_BARCODE_DOCUMENT_H | ||
#define PARSE_BARCODE_DOCUMENT_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t parse_barcode_document(const char* raw_string); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef CHECK_SCANNER_H | ||
#define CHECK_SCANNER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_check(scanbotsdk_image_t *image); | ||
|
||
#endif |
8 changes: 8 additions & 0 deletions
8
examples/c/include/snippets/datacapture/credit_card_scanner.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef CREDIT_CARD_SCANNER_H | ||
#define CREDIT_CARD_SCANNER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_credit_card(scanbotsdk_image_t *image); | ||
|
||
#endif |
8 changes: 8 additions & 0 deletions
8
examples/c/include/snippets/datacapture/document_data_extractor_scanner.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef DDE_EXTRACTOR_H | ||
#define DDE_EXTRACTOR_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t extract_document_data(scanbotsdk_image_t *image); | ||
|
||
#endif |
8 changes: 8 additions & 0 deletions
8
examples/c/include/snippets/datacapture/medical_certificate_scanner.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef MEDICAL_CERTIFICATE_SCANNER_H | ||
#define MEDICAL_CERTIFICATE_SCANNER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_medical_certificate(scanbotsdk_image_t *image); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef MRZ_PARSER_H | ||
#define MRZ_PARSER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t parse_mrz(const char* text); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef MRZ_SCANNER_H | ||
#define MRZ_SCANNER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_mrz(scanbotsdk_image_t *image); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef OCR_SCANNER_H | ||
#define OCR_SCANNER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t ocr_run(scanbotsdk_image_t *image); | ||
|
||
#endif |
8 changes: 8 additions & 0 deletions
8
examples/c/include/snippets/datacapture/text_pattern_scanner.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef TEXT_PATTERN_SCANNER_H | ||
#define TEXT_PATTERN_SCANNER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_text_pattern(scanbotsdk_image_t *image); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef VIN_SCANNER_H | ||
#define VIN_SCANNER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_vin(scanbotsdk_image_t *image); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef ANALYSE_MULTI_PAGE_H | ||
#define ANALYSE_MULTI_PAGE_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t analyse_multi_page(char* path); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef CROP_AND_ANALYSE_H | ||
#define CROP_AND_ANALYSE_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t crop_and_analyse(scanbotsdk_image_t *image, char* save_path); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef DETECT_DOCUMENT_H | ||
#define DETECT_DOCUMENT_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t detect_document(scanbotsdk_image_t *image); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef DOCUMENT_CLASSIFIER_H | ||
#define DOCUMENT_CLASSIFIER_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
scanbotsdk_error_code_t classify_document(scanbotsdk_image_t *image); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef FLOATING_LICENSE_H | ||
#define FLOATING_LICENSE_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
void init_with_floating_license(); | ||
char* license_status_str(scanbotsdk_license_status_t s); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef LIVE_BARCODE_H | ||
#define LIVE_BARCODE_H | ||
|
||
#include <ScanbotSDK.h> | ||
#include <stdbool.h> | ||
|
||
scanbotsdk_error_code_t run_live_barcode_scanner(const char *mock_frame_path, bool use_tensor_rt); | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef UTILS_H | ||
#define UTILS_H | ||
|
||
#include <ScanbotSDK.h> | ||
|
||
const char *error_message(scanbotsdk_error_code_t ec); | ||
|
||
scanbotsdk_error_code_t load_image_from_path(const char *path, scanbotsdk_image_t **out_image); | ||
|
||
scanbotsdk_error_code_t print_generic_document_fields(scanbotsdk_generic_document_t *doc); | ||
|
||
void print_usage(const char *prog); | ||
|
||
char* get_flag(int argc, char *argv[], const char *flag); | ||
|
||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.