How do I pass the -WithNoStore parameter? The image material should not be saved after the prediction.

Horcling 0 Reputation points
2025-01-21T10:32:48.45+00:00

How do I pass the -WithNoStore parameter? The image material should not be saved after the prediction.

$link = "https://xxx-prediction.cognitiveservices.azure.com/customvision/v3.0/Prediction/xxx/detect/iterations/Iterationx/url/";
$prediction = "xxx";

$ch = curl_init($link);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Prediction-Key: ' . $prediction
));

$post_data = '{"Url": "' . $value . '"}';

curl_setopt($ch, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 40);
curl_setopt($ch, CURLOPT_TIMEOUT, 40);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);

$response = curl_exec($ch);
$json = json_decode($response, true);
curl_close($ch);
Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
265 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pavankumar Purilla 2,850 Reputation points Microsoft Vendor
    2025-01-21T21:37:51.31+00:00

    Hi Horcling,
    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    To pass the -WithNoStore parameter in your cURL request and ensure that the image material is not saved after the prediction, you can add it as a query parameter in the URL.

    $link = "https://xxx-prediction.cognitiveservices.azure.com/customvision/v3.0/Prediction/xxx/detect/iterations/Iterationx/url/?WithNoStore=true";
    

    If it doesn’t resolve the issue, kindly let us know so we can escalate it to the appropriate team for further investigation.

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.