Code Monkey home page Code Monkey logo

ocr's Introduction

  1. 电脑上开squid代理,手机连代理,开下载,抓包,拿到所有图片。
  2. 图片放入assets,每日定时执行脚本node main.js(或node qq.js)提取台词。
  3. mongodb查询关键字:
db.getCollection('raw').find({"data.words_result.words": /端木熙/}, {file: 1, "data.words_result.words": 1, _id: 0})
  1. mongodb生成可以直接导出每张图ocr易读结果的json。
// baidu
db.getCollection('raw').mapReduce(
    function() {
        words = this.data.words_result.map(function(i){return i.words});
        file = parseInt(this.file.substr(0, this.file.length - 4));
        emit(file, words)
    },
    function (key, values) {
    },
    {
        query: {},
        out: "result"
    }
)

// qq
db.getCollection('qq_raw').mapReduce(
    function() {
        words = this.data.item_list.map(function(i){return i.itemstring});
        file = parseInt(this.file.substr(0, this.file.length - 4));
        emit(file, words)
    },
    function (key, values) {
    },
    {
        query: {},
        out: "qq_result"
    }
)

ocr's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.