Skip to content

feat: [Issuse: #2] 适配HarmonyOS平台 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 7 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,13 @@
# react-native-mlkit-ocr
<p align="center">
Google on-device MLKit text recognition for React Native
</p>
# @react-native-oh-tpl/react-native-mlkit-ocr

<p align="center">
<img src="https://user-images.githubusercontent.com/1637928/115913726-d2a97c00-a425-11eb-9c6a-6d19b974ee81.gif">
</p>
## 文档地址 / Documentation URL

[中文 / Chinese](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-mlkit-ocr.md)

## Installation
## Codegen

```sh
npm install react-native-mlkit-ocr
```
## Post-install Steps
该库已接入 codegen,具体请查阅文档。

### iOS
Run
## 请悉知 / Acknowledgements

```js
cd ios && pod install
```

## Usage

```js
import MlkitOcr from 'react-native-mlkit-ocr';

// ...

const resultFromUri = await MlkitOcr.detectFromUri(uri);
const resultFromFile = await MlkitOcr.detectFromFile(path);
```


## Example

To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package:

```sh
yarn bootstrap
```

To start the packager:

```sh
yarn example start
```

To run the example app on Android:

```sh
yarn example android
```

To run the example app on iOS:

```sh
yarn example ios
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT
本项目基于 [The MIT License (MIT)](https://github.com/react-native-oh-library/react-native-mlkit-ocr/blob/sig/LICENSE) ,请自由地享受和参与开源。
147 changes: 0 additions & 147 deletions android/build.gradle

This file was deleted.

4 changes: 0 additions & 4 deletions android/gradle.properties

This file was deleted.

7 changes: 0 additions & 7 deletions android/src/main/AndroidManifest.xml

This file was deleted.

106 changes: 0 additions & 106 deletions android/src/main/java/com/reactnativemlkitocr/MlkitOcrModuleImpl.kt

This file was deleted.

40 changes: 0 additions & 40 deletions android/src/main/java/com/reactnativemlkitocr/MlkitOcrPackage.kt

This file was deleted.

Loading