[tfjs-react-native] CameraStream wrong orientation in landscape mode.
See original GitHub issueTo get help from the community, we encourage using Stack Overflow and the tensorflow.js
tag.
TensorFlow.js version
"@tensorflow/tfjs": "^1.5.2",
"@tensorflow/tfjs-react-native": "^0.2.3",
Browser version
This is an issue with tensorflow for react native. react-native-cli: 2.0.1 react-native: 0.61.5
Describe the problem or feature request
The Camera Stream does not work well in landscape mode. The image is streamed/render in the wrong orientation/dimensions.
Code to reproduce the bug / link to feature request
In iOS set landscape mode in Xcode and use the TensorCamera as usual:
const TensorCamera = cameraWithTensors( ExpoCamera );
const Camera = () => {
return (<TensorCamera
style={{ flex: 1} }
cameraTextureHeight={ 1920 }
cameraTextureWidth={ 1080 }
resizeDepth={ 3 }
onReady={ handleCameraStream }
autorender={ true }
/>)
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Fixing orientation problems on react-native ... - MitrahSoft Blog
from 'react-native-camera'; After importing the initial step which needs to be done is, locking the orientation of the particular page or component to...
Read more >Making predictions on live video feed using React Native and ...
I want my camera to understand model in real time just like face detection, barcode scanner. Main.js import React, {useRef, useEffect, useState} ...
Read more >React native orientation locker and landscape orientation
How to add full-screen React Native video player with landscape orientation, using a new library called React Native Orientation Locker.
Read more >tf.io.RequestDetails - TensorFlow.js React Native API
This component provides options that can be used to render the camera preview. Notably the component allows on-the-fly resizing of the camera image...
Read more >npm - Snyk
... @tensorflow/tfjs-layers · @tensorflow/tfjs-node · @thegrizzlylabs/cordova-plugin-genius-scan · @throw-out-error/minecraft-datapack · @tippy.js/react ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please check the related PR https://github.com/tensorflow/tfjs/pull/3041#issuecomment-953312177 , @jinjingforever is working on fix for it. Thank you
Are you satisfied with the resolution of your issue? Yes No