File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $classificationParams = new ClassificationParameters(
2222// Load a file from disk
2323$inputSource = new PathInput($filePath);
2424
25- // Upload the file
25+ // Send for processing using polling
2626$response = $mindeeClient->enqueueAndGetResult(
2727 ClassificationResponse::class,
2828 $inputSource,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $cropParams = new CropParameters(
2222// Load a file from disk
2323$inputSource = new PathInput($filePath);
2424
25- // Upload the file
25+ // Send for processing using polling
2626$response = $mindeeClient->enqueueAndGetResult(
2727 CropResponse::class,
2828 $inputSource,
Original file line number Diff line number Diff line change 33use Mindee\ClientV2;
44use Mindee\Input\InferenceParameters;
55use Mindee\Input\PathInput;
6+ use Mindee\Parsing\V2\InferenceResponse;
67
78$apiKey = "MY_API_KEY";
89$filePath = "/path/to/the/file.ext";
@@ -33,8 +34,9 @@ $inferenceParams = new InferenceParameters(
3334// Load a file from disk
3435$inputSource = new PathInput($filePath);
3536
36- // Upload the file
37- $response = $mindeeClient->enqueueAndGetInference(
37+ // Send for processing using polling
38+ $response = $mindeeClient->enqueueAndGetResult(
39+ InferenceResponse::class,
3840 $inputSource,
3941 $inferenceParams
4042);
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ $inferenceParams = new InferenceParameters(
3434// Load a file from disk
3535$inputSource = new PathInput($filePath);
3636
37- // Upload the file
37+ // Send for processing
3838$response = $mindeeClient->enqueue(
3939 $inputSource,
4040 $inferenceParams
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $ocrParams = new OcrParameters(
2222// Load a file from disk
2323$inputSource = new PathInput($filePath);
2424
25- // Upload the file
25+ // Send for processing using polling
2626$response = $mindeeClient->enqueueAndGetResult(
2727 OcrResponse::class,
2828 $inputSource,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $splitParams = new SplitParameters(
2222// Load a file from disk
2323$inputSource = new PathInput($filePath);
2424
25- // Upload the file
25+ // Send for processing using polling
2626$response = $mindeeClient->enqueueAndGetResult(
2727 SplitResponse::class,
2828 $inputSource,
You can’t perform that action at this time.
0 commit comments