资源简介
人工智能微信小程序之识别图片上的文字并提取出来,微信小程序+java后台,使用百度文字识别来检测图片上的文字
代码片段和文件信息
/*
* Copyright 2007-present the original author or authors.
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = “0.5.6“;
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = “https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/“
+ WRAPPER_VERSION + “/maven-wrapper-“ + WRAPPER_VERSION + “.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
System.out.println(“- ERROR loading ‘“ + MAVEN_WRAPPER_PROPERTIES_PATH + “‘“);
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-02-17 08:03 CharacterRecognition\
文件 6148 2020-02-26 03:43 CharacterRecognition\.DS_Store
文件 120 2020-02-26 03:43 __MACOSX\CharacterRecognition\._.DS_Store
目录 0 2020-02-25 08:57 CharacterRecognition\CharacterRecognitionJava\
目录 0 2020-02-23 09:58 CharacterRecognition\CharacterRecognitionWEI\
文件 6608 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\mvnw.cmd
目录 0 2020-02-25 08:57 CharacterRecognition\CharacterRecognitionJava\target\
文件 8282 2020-02-25 08:31 CharacterRecognition\CharacterRecognitionJava\CharacterRecognitionJava.iml
文件 2422 2020-02-25 08:31 CharacterRecognition\CharacterRecognitionJava\pom.xm
文件 1059 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\HELP.md
文件 333 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\.gitignore
目录 0 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\.mvn\
文件 10070 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\mvnw
目录 0 2020-02-26 03:37 CharacterRecognition\CharacterRecognitionJava\.idea\
目录 0 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\src\
文件 264 2020-02-23 10:13 CharacterRecognition\CharacterRecognitionWEI\app.json
文件 739 2020-02-25 08:59 CharacterRecognition\CharacterRecognitionWEI\project.config.json
目录 0 2020-02-23 09:58 CharacterRecognition\CharacterRecognitionWEI\utils\
文件 194 2020-02-23 09:58 CharacterRecognition\CharacterRecognitionWEI\app.wxss
文件 191 2020-02-23 09:58 CharacterRecognition\CharacterRecognitionWEI\sitemap.json
目录 0 2020-02-23 10:04 CharacterRecognition\CharacterRecognitionWEI\pages\
文件 1076 2020-02-23 10:04 CharacterRecognition\CharacterRecognitionWEI\app.js
目录 0 2020-02-25 08:57 CharacterRecognition\CharacterRecognitionJava\target\test-classes\
目录 0 2020-02-25 08:57 CharacterRecognition\CharacterRecognitionJava\target\generated-sources\
目录 0 2020-02-26 03:37 CharacterRecognition\CharacterRecognitionJava\target\classes\
目录 0 2020-02-25 08:57 CharacterRecognition\CharacterRecognitionJava\target\generated-test-sources\
目录 0 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\.mvn\wrapper\
文件 172 2020-02-23 10:05 CharacterRecognition\CharacterRecognitionJava\.idea\encodings.xm
目录 0 2020-02-23 09:49 CharacterRecognition\CharacterRecognitionJava\.idea\inspectionProfiles\
目录 0 2020-02-25 08:31 CharacterRecognition\CharacterRecognitionJava\.idea\libraries\
文件 17267 2020-02-26 03:37 CharacterRecognition\CharacterRecognitionJava\.idea\workspace.xm
............此处省略106个文件信息
- 上一篇:Android仿qq消息列表
- 下一篇:基于J2EE的公交查询系统的设计与实现
评论
共有 条评论