leonskim / react-native-perspective-correction-image-view

An image view component that corrects the distorted image with its corner points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-perspective-correction-image-view

An image view component that corrects the distorted image with its corner points.

image

Installation

yarn add react-native-perspective-correction-image-view

or

npm install react-native-perspective-correction-image-view

Usage

Please take a look at the example app.

<PerspectiveCorrectionImage
   source={require('./sample.png')}
   sourceCorners={[114, 80, 324, 46, 77, 203, 306, 252]}
   sourceWidth={400}
   sourceHeight={300}
   width={200}
   height={150}
   backgroundColor='black'
   ref={perspectiveCorrectionImageRef}
/>

Parameters

The source corners are X,Y points from top left going clockwise. param_order

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

An image view component that corrects the distorted image with its corner points

License:MIT License


Languages

Language:TypeScript 45.7%Language:Java 29.2%Language:Objective-C 14.9%Language:JavaScript 6.8%Language:Ruby 1.9%Language:Shell 0.7%Language:C 0.5%Language:Swift 0.4%