Open

We Need an Image Classifier API in PHP / Python -- 3

Image classifier API

Method: POST

Input: Base 64 stream (JPG image data)

Output: JSON array (Top 5 matching Hollander data)

Language: PHP

Input data

{

“image64”: base64 stream

}

Output data

{

“title”: “matching”,

“description”: “Please check the results.”,

“uploadedUrl”: uploaded JPG file URL,

“ref”: [

{

“id”: Hollander ID,

“img_url”: Hollander image file URL,

“prob”: Similarity

},

{

“id”: Hollander ID,

“img_url”: Hollander image file URL,

“prob”: Similarity

},

]

}

Source File:

PHP

<?php

//setting headers

header("Access-Control-Allow-Origin: *");

header("Content-Type: application/json; charset=UTF-8");

header("Access-Control-Allow-Methods: OPTIONS,GET,POST,PUT,DELETE");

header("Access-Control-Max-Age: 3600");

header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");

//recevieing json

$content = trim(file_get_contents("php://input"));

$post = json_decode($content);

//saving uploaded image

$imagedata = base64_decode($post->image64);

$file_path = 'upload/' . date("Y_m_d_H_i_s_") . '[login to view URL]';

$file = fopen($file_path, "wb");

fwrite($file, $imagedata);

fclose($file);

//Matching (Here Deep Learning)

$result_json = exec("[login to view URL] ".$file_path);

$result_arr = json_decode($result_json);

//making json

$MyResult = array();

$MyResult['title'] = "Matching";

$MyResult['description'] = "Please check the results.";

$MyResult['uploadedUrl'] = $file_path;

$MyResult['ref'] = array();

foreach ($result_arr as $key => $value) {

$img_file_arr = scandir('base/' . $key . '/');

$buff = array('id' => $key, 'img_url' => 'base/' . $key . '/' . $img_file_arr[2], 'prob' => $value);

array_push($MyResult['ref'], $buff);

}

//Sending Results

http_response_code(200);

$JSONResult = json_encode($MyResult);

echo $JSONResult;

?>

Python

Tree Structure

Base folder structure

I am using base folder for Hollander images.

But you needn’t use this folder.

I can use your origin database.

And you can find all the reference wheel information which has the same hollander ids.

So I hope you to expand my raw api to send all the reference wheel spieces, not only hollander ids.

In the 7z file, the [login to view URL] is the kernel of image classifying.

If you train more, the [login to view URL] will be updated. Then you should replace it to newer version.

There is no training part in 7z python files.

Skills: MySQL, PHP, Python

See more: free image hosting api php, generate iso image api php, google image api php, google image search api php, image cropping api php code, php bing image search api, php image search api, bing image api php script, search image web api php, api whatsapp python php, php python api, we are busy busy we need 3 banners designed, we need 3 banners designed after that we have allot more, we need website development with complete responsive designing please open this url : http://collegeduniacom/ we need same to s, we need 3 d cad operator from outsouce for modular kitchen, we need php developers freelancers phone numbers on delhi

About the Employer:
( 13 reviews ) ARLINGTON, United States

Project ID: #20793442

22 freelancers are bidding on average $156 for this job

techwelfare

We would like to do your project because we have enough skill to do your project and we have some question regarding your project, please get in touch with us so we could start immediately. we assure, We could fulfill More

$250 USD in 10 days
(169 Reviews)
7.1
Mickelson

Dear, I have checked your request. I can resolve your problem with my 10+years experience of full stack developer. I am very interesting of your proposal. I have 200 reviews in freelancer site and I am proud of deliver More

$140 USD in 7 days
(119 Reviews)
6.8
leemilun

Hi. Sir I would be very glad to meet you. I read your description carefully. I can bring you perfect result as you want. I am an experienced web developer and designer with the depth knowledge related to Laravel, WordP More

$150 USD in 4 days
(80 Reviews)
6.7
jonathangenty31

Hello sir. As a computer vision and image processing expert, machine/deep learning expert, I'm glad to see your project. In fact I master in your project. If you check my profile, you can see I have deep knowledge in c More

$250 USD in 5 days
(34 Reviews)
6.3
suhaa18

Hi. thanks for your posting. I'm very happy to have a chance of bidding your project. I have experience in development of the projects like yours If you hire me, I'll do my best for your project and finish greatly in a More

$140 USD in 7 days
(19 Reviews)
6.1
skfaroo123

Pro PHP/Python/MySQL/ Machine Learning/AI Expert! Dear employer Once saw a your project, it was very attracted my mind because I am very interested in your project and also, have rich experiences and high skills on th More

$50 USD in 1 day
(25 Reviews)
6.0
susanna2018

hi! Dear , my Client! i am very pleasure the opportunity to discuss this job with you. i am a full time freelancer with skills and experience on laravel,codeigniter,wordpress and angular.js, vue.js, react.js node.js, r More

$140 USD in 7 days
(41 Reviews)
5.7
AndreiPPB

Hello. I read your requirement carefully. I'm very interested your project. My main skills is PHP and Python. If you assign to me this project, you can get a cool result. please contact me. thanks. best requards.

$140 USD in 7 days
(15 Reviews)
5.4
albertpopov46

Hi Dear I read your requirements carefully. I have rich experience with Python Django, PHP, Flask, selenium, Web Scrapy, software architecture and so on. I can complete your job within a few days. Please touch me. I wi More

$150 USD in 7 days
(28 Reviews)
5.1
elepsis

Hi there, I have good experience with tensorflow, keres frameworks. And will be happy to update your system to send also the reference wheel spieces along with hollander ids. Also, I will update it to add the training More

$250 USD in 7 days
(84 Reviews)
5.5
Pingduoduo

My 7 years of R&D experience should be of interest to an ideal project like yours. In various capacities in image processing, computer vision and machine learning, leading to my present assignment as project manager, I More

$200 USD in 3 days
(18 Reviews)
5.2
BoyVit85

✅✅✅✅✅ "Wish you could not lose an amazing opportunity to work with an amazing developer!" Hello! Thanks for your job. I have read your proposal carefully and understood what you want. As a senior full stack developer, More

$120 USD in 3 days
(16 Reviews)
4.3
cindcoder

Hi, I am interested in your project. I have extensive experience in real time face recognition, emoji recognition, ALPR/ANPR, object detection, crack detection, vehicle speed detection, hand gesture recognition, pedest More

$140 USD in 7 days
(7 Reviews)
4.2
star314

Hi, I just reviewed your project description and interested in your project. My skills like is matched your project's requirement skills perfectly, so No problem to implement your project and sure you will get the sat More

$150 USD in 5 days
(12 Reviews)
4.5
$155 USD in 3 days
(5 Reviews)
3.3
sharpman1013

Dear Client. Warm Greetings.!!! I have been really very happy to see a job posting which is 100% fit for my skills. According to the job description, you need a Python developer to assist you in your project. -I a More

$140 USD in 5 days
(6 Reviews)
3.4
GlobalSolution3

⭐⭐⭐⭐ i am Full stack python api developer. ⭐⭐⭐⭐⭐⭐ I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. * 6+ years experience in python If you want high More

$140 USD in 2 days
(4 Reviews)
3.0
unix515

Hello! I have more experience in side of python. I have checked your project description carefully. I can build it If you hire me, I am gonna do my best. I can produce the good result. I hope to have a good relati More

$120 USD in 5 days
(6 Reviews)
2.9
AlexMelcon

Hello, I have some experience developing ML systems for image classification with python, I am confident that I am able to complete this project. I will have to ask some questions about the job before getting into it. More

$120 USD in 7 days
(1 Review)
2.0
vladimirsekunda

Hi, I am excited to confirm that I am a 7+ years experienced developer with expertise into PHP based CMS platforms like WordPress, Drupal and MVC like Laravle, Codeignitor, Yii, Symfony and custom PHP as well. I have More

$250 USD in 7 days
(1 Review)
1.9