Ver Fonte

fix php samples (#2515)

zhang-prog há 1 ano atrás
pai
commit
a04da479b5
30 ficheiros alterados com 30 adições e 0 exclusões
  1. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/face_recognition.en.md
  2. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/face_recognition.md
  3. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/image_anomaly_detection.en.md
  4. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/image_anomaly_detection.md
  5. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/image_classification.en.md
  6. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/image_classification.md
  7. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/image_multi_label_classification.en.md
  8. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/image_multi_label_classification.md
  9. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/instance_segmentation.en.md
  10. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/instance_segmentation.md
  11. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/object_detection.en.md
  12. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/object_detection.md
  13. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/semantic_segmentation.en.md
  14. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/semantic_segmentation.md
  15. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/small_object_detection.en.md
  16. 1 0
      docs/pipeline_usage/tutorials/cv_pipelines/small_object_detection.md
  17. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/OCR.en.md
  18. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/OCR.md
  19. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/formula_recognition.en.md
  20. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/formula_recognition.md
  21. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/seal_recognition.en.md
  22. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/seal_recognition.md
  23. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/table_recognition.en.md
  24. 1 0
      docs/pipeline_usage/tutorials/ocr_pipelines/table_recognition.md
  25. 1 0
      docs/pipeline_usage/tutorials/time_series_pipelines/time_series_anomaly_detection.en.md
  26. 1 0
      docs/pipeline_usage/tutorials/time_series_pipelines/time_series_anomaly_detection.md
  27. 1 0
      docs/pipeline_usage/tutorials/time_series_pipelines/time_series_classification.en.md
  28. 1 0
      docs/pipeline_usage/tutorials/time_series_pipelines/time_series_classification.md
  29. 1 0
      docs/pipeline_usage/tutorials/time_series_pipelines/time_series_forecasting.en.md
  30. 1 0
      docs/pipeline_usage/tutorials/time_series_pipelines/time_series_forecasting.md

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/face_recognition.en.md

@@ -787,6 +787,7 @@ $payload = array("image" => $image_data); // Base64 encoded file content or imag
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/face_recognition.md

@@ -945,6 +945,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/image_anomaly_detection.en.md

@@ -651,6 +651,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/image_anomaly_detection.md

@@ -676,6 +676,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/image_classification.en.md

@@ -1296,6 +1296,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/image_classification.md

@@ -1315,6 +1315,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/image_multi_label_classification.en.md

@@ -736,6 +736,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/image_multi_label_classification.md

@@ -759,6 +759,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/instance_segmentation.en.md

@@ -841,6 +841,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/instance_segmentation.md

@@ -856,6 +856,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/object_detection.en.md

@@ -977,6 +977,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/object_detection.md

@@ -998,6 +998,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/semantic_segmentation.en.md

@@ -798,6 +798,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/semantic_segmentation.md

@@ -821,6 +821,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/small_object_detection.en.md

@@ -725,6 +725,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/cv_pipelines/small_object_detection.md

@@ -742,6 +742,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/OCR.en.md

@@ -843,6 +843,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/OCR.md

@@ -865,6 +865,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/formula_recognition.en.md

@@ -796,6 +796,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/formula_recognition.md

@@ -817,6 +817,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/seal_recognition.en.md

@@ -926,6 +926,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/seal_recognition.md

@@ -973,6 +973,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/table_recognition.en.md

@@ -888,6 +888,7 @@ $payload = array("image" => $image_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/ocr_pipelines/table_recognition.md

@@ -991,6 +991,7 @@ $payload = array("image" => $image_data); // Base64编码的文件
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/time_series_pipelines/time_series_anomaly_detection.en.md

@@ -677,6 +677,7 @@ $payload = array("csv" => $csv_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/time_series_pipelines/time_series_anomaly_detection.md

@@ -704,6 +704,7 @@ $payload = array("csv" => $csv_data); // Base64编码的文件内
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/time_series_pipelines/time_series_classification.en.md

@@ -607,6 +607,7 @@ $payload = array("csv" => $csv_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/time_series_pipelines/time_series_classification.md

@@ -622,6 +622,7 @@ $payload = array("csv" => $csv_data); // Base64编码的文件内
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/time_series_pipelines/time_series_forecasting.en.md

@@ -687,6 +687,7 @@ $payload = array("csv" => $csv_data);
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);

+ 1 - 0
docs/pipeline_usage/tutorials/time_series_pipelines/time_series_forecasting.md

@@ -710,6 +710,7 @@ $payload = array("csv" => $csv_data); // Base64编码的文件内
 $ch = curl_init($API_URL);
 curl_setopt($ch, CURLOPT_POST, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $response = curl_exec($ch);
 curl_close($ch);