File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ public class DBRFrameProcessorPlugin: FrameProcessorPlugin {
41
41
42
42
var image = UIImage ( cgImage: cgImage)
43
43
var degree = 0.0 ;
44
- if UIDevice . current . orientation == UIDeviceOrientation . portrait {
44
+ if frame . orientation == UIImage . Orientation . left {
45
45
degree = 90.0 ;
46
- } else if UIDevice . current . orientation == UIDeviceOrientation . landscapeRight {
47
- degree = 270 .0 ;
46
+ } else if frame . orientation == UIImage . Orientation . down {
47
+ degree = 180 .0 ;
48
48
}
49
49
if degree != 0.0 {
50
50
image = DBRFrameProcessorPlugin . rotate ( image: image, degree: degree)
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vision-camera-dynamsoft-barcode-reader" ,
3
- "version" : " 2.1.2 " ,
3
+ "version" : " 2.1.3 " ,
4
4
"description" : " React Native Vision Camera Frame Processor Plugin of Dynamsoft Barcode Reader" ,
5
5
"main" : " lib/commonjs/index" ,
6
6
"module" : " lib/module/index" ,
You can’t perform that action at this time.
0 commit comments