Hoang Bui
Hoang Bui

Reputation: 21

PHP - How can I make handwriting recognition japanese in website

Recently, I'm study about handwriting recognition Japanese project. I'm searching somewhere but still not received good info about this. Could someone give me some guess or tips about handwriting recognition on website by PHP and ajax.

Upvotes: 0

Views: 556

Answers (2)

Pierre-Alban DEWITTE
Pierre-Alban DEWITTE

Reputation: 108

I am working at MyScript where we build one web component that could help you integrate Japanese handwriting recognition in your web application. As explain here, you only have to grab two dependencies and then add the myscript-text-web tag in your markup

<html>
<head>
    <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
    <link rel="import" href="bower_components/myscript-text-web/myscript-text-web.html">
</head>
<body>
    <myscript-text-web 
        applicationkey="#PUT YOUR MYSCRIPT CDK APPLICATION KEY HERE#" 
        hmackey="#PUT YOUR MYSCRIPT CDK HMAC KEY HERE#" 
        language="ja_JP">
    </myscript-text-web>
</body>
</html>

If you want to populate one input field with the recognition result you can add this piece of javascript :

var myScriptTextWeb = document.querySelector('myscript-text-web');
myScriptTextWeb.addEventListener('myscript-text-web-result',(evt) => {
    console.log(myScriptTextWeb.firstcandidate);
    // assuming the inpput you want to populate have id myinput
    document.querySelector('#myinput').value = myScriptTextWeb.firstcandidate;

})

Hope this helps

Upvotes: 0

Santiago Regojo
Santiago Regojo

Reputation: 405

You could use a neural network. It is easy of implementing. Also you could use a classifier, take into account you have lots of training data on internet then a supervised algorithm could be the best option. Check this course: https://www.coursera.org/learn/machine-learning

Upvotes: 0

Related Questions