Skip to content

[FEATURE REQ] Consider adding overload to take a Local file input for recognize methods #12402

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

Closed
samvaity opened this issue Jun 22, 2020 · 1 comment
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer

Comments

@samvaity
Copy link
Member

samvaity commented Jun 22, 2020

Some user study participants wanted to recognize forms using fromURL method using filepaths

User 4: there are helper classes that allow me to convert from file to ByteBuffer in Spring framework. "I don’t know how to convert to Flux Byte buffer". It’s a bit too low level

Should we consider adding an overload that takes in the local file as input so that they can directly use the available local file hence replayable for recognizing data without having to convert it to InputStream or Flux<ByteBuffer>.

Overloads would like this after this update:

    public PollerFlux<OperationResult, List<RecognizedForm>>
    beginRecognizeReceiptsFromUrl(String receiptUrl) { }

    public PollerFlux<OperationResult, List<RecognizedForm>> beginRecognizeReceipts(
        Flux<ByteBuffer> receipt, long length, FormContentType formContentType) { }

    public PollerFlux<OperationResult, List<RecognizedForm>> beginRecognizeReceipts(File localFile, long length) { }

    public PollerFlux<OperationResult, List<RecognizedForm>>
    beginRecognizeReceipts(RecognizeOptions recognizeOptions) { }
@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 22, 2020
@samvaity samvaity self-assigned this Jun 22, 2020
@samvaity samvaity added Client This issue points to a problem in the data-plane of the library. FormRecognizer and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jun 22, 2020
@samvaity
Copy link
Member Author

samvaity commented Jul 2, 2020

Deferring this Post GA.

@samvaity samvaity closed this as completed Jul 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer
Projects
None yet
Development

No branches or pull requests

1 participant