Skip to content
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

Camera control #1281

Open
monkeycc opened this issue Apr 12, 2023 · 13 comments · May be fixed by #3354
Open

Camera control #1281

monkeycc opened this issue Apr 12, 2023 · 13 comments · May be fixed by #3354
Labels
controls feature request Suggestion/Request for additional feature

Comments

@monkeycc
Copy link

monkeycc commented Apr 12, 2023

Please Describe The Problem To Be Solved

Web or desktop client
Directly call the camera

(Optional): Suggest A Solution

camera
https://pub.dev/packages/camera

A Flutter plugin for iOS, Android and Web allowing access to the device cameras.

Display live camera preview in a widget.
Snapshots can be captured and saved to a file.
Record video.
Add access to the image stream from Dart.

Working with camera stream:
https://www.youtube.com/watch?v=oqfCCWhNe7s
https://pub.dev/documentation/camera/latest/camera/CameraController/startImageStream.html

@FeodorFitsner FeodorFitsner added enhancement Improvement/Optimization controls platform: mobile Specific to the mobile platform labels Apr 12, 2023
@ndonkoHenri
Copy link
Collaborator

Is there perhaps any desktop plugin too?

@monkeycc
Copy link
Author

也许也有桌面插件吗?

Opencv ?
cv2.VideoCapture(0)

@goyalyashpal
Copy link

goyalyashpal commented Jul 22, 2023

@FeodorFitsner FeodorFitsner changed the title [Feature request] Flutter camera plugin Camera control Sep 13, 2023
@Python-Zhao
Copy link

Have been looking forward to the camera control, do not know when to use.

@Python-Zhao
Copy link

Recently, I used Flet to do an information management project, and I wanted to use the mobile phone to open the camera and scan the QR code to obtain information, but it was not possible.

@goncaze
Copy link

goncaze commented Jan 9, 2024

@Python-Zhao, Hello! Still can't access the camera on your Flet app?

@Python-Zhao
Copy link

@goncaze ,Yes, I have been using Python to develop projects, I want to call the camera to achieve scan code query, scan code login, photo recognition, I publish my project as PWA, I use "cap = cv2.VideoCapture(0)" to call the local camera, it can be used on Windows. However, I have been unable to access the camera when using the camera function on the phone. Is there any solution? So I'm just going to learn Dart and then redevelop with Flutter.

@ndonkoHenri ndonkoHenri added feature request Suggestion/Request for additional feature and removed enhancement Improvement/Optimization labels Mar 3, 2024
@glira
Copy link

glira commented Mar 11, 2024

也许也有桌面插件吗?

Opencv ? cv2.VideoCapture(0)

no work to android, just in linux

@ndonkoHenri ndonkoHenri removed the platform: mobile Specific to the mobile platform label Mar 16, 2024
@jibinjp
Copy link

jibinjp commented Apr 3, 2024

Why was the "platform:mobile" label removed? Even, with using cv2 from within the Fet framework there is no way to add a key interrupt to pause or stop the camera once its started, unless the app itself is refreshed which defeats the purpose

@C69Xg3sg9PAvYK
Copy link

@goncaze ,Yes, I have been using Python to develop projects, I want to call the camera to achieve scan code query, scan code login, photo recognition, I publish my project as PWA, I use "cap = cv2.VideoCapture(0)" to call the local camera, it can be used on Windows. However, I have been unable to access the camera when using the camera function on the phone. Is there any solution? So I'm just going to learn Dart and then redevelop with Flutter.

I'm in the same boat as you are. Hoping this would be introduced soon

@ndonkoHenri
Copy link
Collaborator

Why was the "platform:mobile" label removed?

Because the Camera control to be implemented is not just mobile specific. It's for all the platforms...

@metrolunar
Copy link

My use case is mobile phone specific.

Just need to press a button to take a picture and store it locally for upload to a server for more processing.

@Abduguru
Copy link

Please can I create application that is not web app with flet and run it on android

@ndonkoHenri ndonkoHenri linked a pull request May 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls feature request Suggestion/Request for additional feature
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.