130 Commits

Author SHA1 Message Date
Serhii Avsheniuk
8f72ef949f Add GoogleVision barcode scanner. 2018-04-10 23:32:11 +02:00
Joao Fidelis
69242183cc feat(play-sound): play sound on capture (android) 2018-04-06 14:55:18 -03:00
Simon Ermler
0e3e84e35b Crops Preview on Android 2018-04-03 21:34:40 +02:00
Oscar Franco
0eddf6d391 Add skip processing on android for fast picture saving 2018-04-03 07:23:55 +02:00
Simon Ermler
ac7e450b70 rotate received data on portrait mode 2018-03-31 00:20:03 +02:00
Wouter van den Broek
d0e0d26138 Emulator crash fix #1234
On the emulator it crashed because the image byte array was incorrect and no cache directory was defined so it could not be written
2018-03-29 13:49:03 +02:00
Simon Ermler
6939734ba3 add bounds to barcodeReadEvent 2018-03-26 23:15:59 +02:00
Aldo Culquicondor
01e763b143 fix(textrecognition): height of text block 2018-03-23 16:20:16 -05:00
Aldo Culquicondor
fcaa945286 feat(android): integrating Google Vision's text recognition 2018-03-22 11:32:27 -05:00
Will Wheeler
17eebff45c Fix stream error and date format error
Fixes #1220
2018-03-15 15:40:30 -07:00
Greg Alexander
2dd3e8424c fixing android build error for missing return value 2018-03-15 09:59:29 -05:00
Lauri Matti Saarni
009da5a250 Reformat exposure time in exif data.
Exposure time is returned from camera as a string like 1/11.
ExifInterface on expects exposure time to be formatted as a string but
the string should contain decimal formatted number instead of fraction
format.
2018-03-12 15:45:17 +07:00
João Guilherme Fidelis
0e29f466d7
Merge pull request #993 from RZulfikri/master
Video Orientation By Device Orientation
2018-03-10 12:50:11 -03:00
Lauri Matti Saarni
c6706623e0 Add the missing exif data for Android
Some of the exif data has been previously been lost. Now they are
included as the sub directory is looped and names of exif data are
formated to match with ExifInterface class requirements.
2018-03-06 14:05:29 +07:00
Joao Fidelis
8d9c06ad90 fix(android-camera): revert to old camera api 2018-03-02 14:26:55 -03:00
Michaël Villeneuve
cc3fb30ab2 Add more infos on width property doc, eventually fixed indent 2018-02-26 09:31:27 +01:00
Michaël Villeneuve
983337d9f8 Add ability to control size by only specifying width + made orientation optionnal. see #768 2018-02-23 16:16:49 +01:00
Michaël Villeneuve
e064bab7db Add width/height options 2018-02-23 16:16:35 +01:00
Joao Fidelis
0b6f0abda0 feat(mirror): add option to give "mirrorImage" flag to takePicture. 2018-02-14 10:48:21 -02:00
Joao Fidelis
1e2dd4e61f Change new package location to avoid a Android studio bug 2018-02-03 09:36:03 -02:00
Joao Fidelis
377b184e04 Migrate Android from RCTCameraPackage to RNCameraPackage 2018-02-02 17:27:05 -02:00
Joao Fidelis
ad1b140790 Organize imports and add missing method from Expo implementation (android) 2018-02-01 17:09:19 -02:00
Michael Schoendorfer
b64f37af50 Fixes that Camera is started multiple times
This is copied from: 5164fdc50b/android/expoview/src/main/java/abi25_0_0/host/exp/exponent/modules/api/components/camera/ExpoCameraView.java (L294)
RNCameraView does not properly handle when the App is closed and opened
again. Previously the CameraView was started multiple times which leads
to a black screen on some devices.
2018-02-01 18:13:33 +01:00
Joao Fidelis
91a560ac1c Improve android performance with Expo picture resolve implementation.
Get rid of MutableImage.
Return base64 only if asked via options map.
2018-01-30 11:14:17 -02:00
seblau
612b3bfe9a correctly assign barCode to BarCodeReadEvent 2018-01-26 15:41:03 +01:00
Joao Fidelis
a09436e9ab Implement get view from reactTag on Android and iOS.
Do not save app context on CameraModule
2018-01-24 19:32:24 -02:00
Nicolas Morin
cebc0601d1 Fix cropToPreview on Android 2018-01-24 10:01:16 +01:00
Nicolas Morin
286071c035 Fix startPreview and stopPreview on Android 2018-01-23 22:17:18 +01:00
Joao Fidelis
f53aab5729 Create local cache directory and save image there when photo is taken. 2018-01-23 01:48:03 -02:00
Joao Fidelis
07e6e566d5 Issue ##1099: Make takePictureAsync return { width, height, base64, exif } 2018-01-22 19:25:35 -02:00
Daniel Levitt
6039a63344 Possible zoom for android 2018-01-22 10:12:29 +00:00
Sibelius Seraphini
504d4b1fda feature(rncamera): enable record on RNCamera on android, fix #1101 2018-01-21 12:56:46 -02:00
Nicolas Morin
0778294697 Fix performance issue on Android: add option to clear window background when camera starts 2018-01-20 21:17:19 +01:00
Nicolas Morin
2c3444ce29 Return picture size 2018-01-19 19:52:26 +01:00
Oscar Franco
c7c3caa49a
Merge pull request #948 from SteffenUlrich/master
correct aproach for delta error
2018-01-12 20:34:17 +01:00
Oscar Franco
a4ad0446ca
Merge pull request #972 from MassiveMediaMatch/master
Fix for: Fast swiping and touching while loading crashes the app
2018-01-12 20:30:03 +01:00
Oscar Franco
cde5493870 [BUGFIX] Fix crash on empty mFaceDetector instance when face is not recognized 2018-01-09 12:56:58 +01:00
Sibelius Seraphini
cebc2268a6
Merge pull request #904 from leepa/master
Disallow capture when Camera is null (Android)
2018-01-08 12:56:10 -08:00
Marcus Andersson
e546ae852c fixed merge conflicts. 2018-01-08 21:12:39 +01:00
Sibelius Seraphini
eb6a250ced fix rename issue 2018-01-03 09:47:10 -02:00
Sibelius Seraphini
a0817132d6 rename expo to simple RN, add js files, and export them inside the same camera package 2018-01-01 19:16:02 -02:00
Sibelius Seraphini
ffc74e5e6e Add Camera implementation using CameraView on Android
This is most a copy of expo camera module

this still half baked, missing javascript part and package and modules
fixes

see #246
2017-12-31 13:49:39 -02:00
Marcus Andersson
93177c8604 changed so we use the correct exceptions. 2017-12-20 20:25:01 +01:00
Marcus Andersson
c51f0b5f93 fixed so android cropping works in all orientations. 2017-12-20 20:19:14 +01:00
Marcus Andersson
ed2768828b fixed some formatting issues. 2017-12-20 20:19:14 +01:00
Marcus Andersson
c323105328 added switch to toggle cropping. 2017-12-19 15:04:41 +01:00
Marcus Andersson
c6ad435532 added support for android to crop image to preview. 2017-12-19 15:03:08 +01:00
Slavik
874a29f7cb (barcode): Fix scan on landscape mode (#949)
* add scan support for landscape mode

* refactoring

* fix errors

* fix rotation

* add landscape orientation support

* fix exception

* freeze preview image

From PR https://github.com/lwansbrough/react-native-camera/pull/919
2017-12-07 12:17:02 -08:00
Sibelius Seraphini
241b5d1060
Merge pull request #859 from cbrevik/start-stop-preview
Add start/stopPreview for Camera
2017-12-07 10:48:23 -02:00
Rahmat
5572ba7068 missing break on switch 2017-11-20 12:26:46 +07:00