@@ -14,22 +14,22 @@ by Mohammad Najafian
1414 # Config
1515 Open ``` lmfa.php ``` in config folder in laravel root then you can enter you'r ``` api_key ``` in this file !
1616 # Usage
17- #### Normal Request (Return To You Face's info)
18- ##### 1 . First we need to do this :100 : :
17+ ## Normal Request (Return To You Face's info)
18+ ### 1 . First we need to do this :100 : :
1919 ```
2020 $face = new CheckFace();
2121 ```
22- ##### 2 . We Set The Url :
22+ ### 2 . We Set The Url :
2323 if you want to customize the url Do this :100 : : (default : https://westcentralus.api.cognitive.microsoft.com/face/v1.0/detect )
2424 ```
2525 $face->setUrl($url);
2626 ```
27- ##### 3 . Also Set Request Type ( post , get , delete , put ) :100 : :
27+ ### 3 . Also Set Request Type ( post , get , delete , put ) :100 : :
2828 To this step we set the request's type (only lowercase) :
2929 ```
3030 $face->setMethod("post");
3131 ```
32- ##### 4 . Set Headers :100 : :
32+ ### 4 . Set Headers :100 : :
3333 We Must to set headers to use Microsoft's Face APi (only lowercase) :
3434 ##### if you want to put APi_key in Headers or Parameters Use This :
3535 ```
@@ -41,7 +41,7 @@ by Mohammad Najafian
4141 'Ocp-Apim-Subscription-Key' => $face->getApiKey(),
4242 ));
4343 ```
44- ##### 5 . Set Parameters :100 : :
44+ ### 5 . Set Parameters :100 : :
4545To this step we can set the Parameters :
4646```
4747 $face->setParameters(array(
@@ -53,7 +53,7 @@ To this step we can set the Parameters :
5353#####You can set these in the returnFaceAttributes in parameters
5454Some Face Attributes : age , gender , glasses , smile , noise , hair , accessories , emotion , makeup ...
5555//
56- ##### 6 . Set image :100 : :
56+ ### 6 . Set image :100 : :
5757#####Then , we need to set image :-) :
5858We must to put image URL in the array Like This.
5959```
@@ -63,13 +63,13 @@ We must to put image URL in the array Like This.
6363 $face->setBody($image,true); // Set Image
6464
6565```
66- ##### 7 . Check Request to complete set :100 : :
66+ ### 7 . Check Request to complete set :100 : :
6767We must to Check Before ``` $face->send() ``` .
6868```
6969 $face->check();
7070 $face->send();
7171```
72- ##### 8 . Get Face Information in JSON :100 : :
72+ ### 8 . Get Face Information in JSON :100 : :
7373Do This :
7474```
7575 $face->check();
0 commit comments