flet icon indicating copy to clipboard operation
flet copied to clipboard

`Camera` control

Open monkeycc opened this issue 1 year ago • 13 comments

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

monkeycc avatar Apr 12 '23 01:04 monkeycc

Is there perhaps any desktop plugin too?

ndonkoHenri avatar Apr 13 '23 04:04 ndonkoHenri

也许也有桌面插件吗?

Opencv ? cv2.VideoCapture(0)

monkeycc avatar Apr 14 '23 03:04 monkeycc

  • Also see: https://github.com/flet-dev/flet/discussions/1209

goyalyashpal avatar Jul 22 '23 16:07 goyalyashpal

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

Python-Zhao avatar Dec 08 '23 02:12 Python-Zhao

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.

Python-Zhao avatar Dec 08 '23 02:12 Python-Zhao

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

goncaze avatar Jan 09 '24 18:01 goncaze

@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.

Python-Zhao avatar Jan 10 '24 03:01 Python-Zhao

也许也有桌面插件吗?

Opencv ? cv2.VideoCapture(0)

no work to android, just in linux

glira avatar Mar 11 '24 15:03 glira

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

jibinjp avatar Apr 03 '24 23:04 jibinjp

@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

C69Xg3sg9PAvYK avatar Apr 04 '24 05:04 C69Xg3sg9PAvYK

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...

ndonkoHenri avatar Apr 04 '24 11:04 ndonkoHenri

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.

metrolunar avatar Apr 08 '24 23:04 metrolunar

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

Abduguru avatar Apr 14 '24 07:04 Abduguru