Hi Ben
How about a component for the App Developer for a webcam connected with a USB cable.
The first thing you should see is an image in a 2D panel.
The easiest would be these cheap cameras with full HD resolution.
Later you should be able to read one (or every) line of the camera with Flowcode.
This way it would be possible to recognise simple objects with flowcode or to use a cheap USB camera as a linear camera.
A real linear camera is much faster and much better but unfortunately expensive.
regards
Stefan
Different very cheap, easy to connect USB cameras
A professional linear camera over network (GIGE) with up to 80000 lines per second
App Developer: USB Webcam Component
-
stefan.erni
- Valued Contributor
- Posts: 1245
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
-
BenR
- Matrix Staff
- Posts: 2223
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 613 times
- Been thanked: 806 times
Re: App Developer: USB Webcam Component
Hi Stefan,
We have a canvas object in Flowcode that we can draw bitmap data to, if we can pull a bitmap from the camera source and repeat then should be easy enough.
I'll have a chat with Steve and see what he thinks.
We have a canvas object in Flowcode that we can draw bitmap data to, if we can pull a bitmap from the camera source and repeat then should be easy enough.
I'll have a chat with Steve and see what he thinks.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
stefan.erni
- Valued Contributor
- Posts: 1245
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: App Developer: USB Webcam Component
Hi Ben
I looked at the canvas and that's how it should be.
I only film or photograph two or three white dots with the cameras and want to calculate the distance.
For that I would have to have access to the data array.
I guess I can then also display a cross in the image via an array.
And another little info, the external USB cameras have become even much cheaper.
Of course, other applications can also be made with the cameras like bar-code or QR Code.
regards
Stefan
I looked at the canvas and that's how it should be.
I only film or photograph two or three white dots with the cameras and want to calculate the distance.
For that I would have to have access to the data array.
I guess I can then also display a cross in the image via an array.
And another little info, the external USB cameras have become even much cheaper.
Of course, other applications can also be made with the cameras like bar-code or QR Code.
regards
Stefan
-
stefan.erni
- Valued Contributor
- Posts: 1245
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: App Developer: USB Webcam Component
Hi Ben
Would it be possible to extend the App Developer to display a USB camera in a 2D panel and then save it as a printscreen?
No settings would be necessary.
And printscreen already works very nice in the App Developer
Would it be possible to extend the App Developer to display a USB camera in a 2D panel and then save it as a printscreen?
No settings would be necessary.
And printscreen already works very nice in the App Developer
-
Steve-Matrix
- Matrix Staff
- Posts: 1929
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 286 times
- Been thanked: 448 times
Re: App Developer: USB Webcam Component
Hi Stefan,
Are you referring to PC Developer or Web Developer? And do you require just still images or do you want the panel object to display a moving image?
Are you referring to PC Developer or Web Developer? And do you require just still images or do you want the panel object to display a moving image?
-
stefan.erni
- Valued Contributor
- Posts: 1245
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: App Developer: USB Webcam Component
Hi Steve
I'm referring to PC Developer.
It would also be fine to just take a capture without a live image. So, just a single capture called in the macro.
my suggestion:
If I call the macro it's take a printscreen from the camera panel and save it.
I use this component: with this propertis: Result:
At the moment it's saving the chart panel
I'm referring to PC Developer.
It would also be fine to just take a capture without a live image. So, just a single capture called in the macro.
my suggestion:
If I call the macro it's take a printscreen from the camera panel and save it.
I use this component: with this propertis: Result:
At the moment it's saving the chart panel
-
Steve-Matrix
- Matrix Staff
- Posts: 1929
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 286 times
- Been thanked: 448 times
Re: App Developer: USB Webcam Component
Ok, I'll look into that. It's a lot easier in Web Developer (in fact, I've already created the basics of a component for it), but I'll see if there is a way to do this for PC Developer.
-
stefan.erni
- Valued Contributor
- Posts: 1245
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: App Developer: USB Webcam Component
Hi Steve
It would also be possible with the Web app.
Maybe I can test a component already.
For our measurements, we divide the screen into two parts.
The left side shows the PC App, and the right side shows the Web App.
Perhaps later we can use the PC App to force the Web app to take a screenshot.
It would also be possible with the Web app.
Maybe I can test a component already.
For our measurements, we divide the screen into two parts.
The left side shows the PC App, and the right side shows the Web App.
Perhaps later we can use the PC App to force the Web app to take a screenshot.
-
Steve-Matrix
- Matrix Staff
- Posts: 1929
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 286 times
- Been thanked: 448 times
Re: App Developer: USB Webcam Component
Hi Stefan,
Here's a very early version of a Camera component for Web Developer. It's likely to change, but you can see what it can do.
The attached example allows a screenshot to be taken from the camera and this is shown as an image.
Here's a very early version of a Camera component for Web Developer. It's likely to change, but you can see what it can do.
The attached example allows a screenshot to be taken from the camera and this is shown as an image.
- Attachments
-
- web camera test.fcweb
- (13.24 KiB) Downloaded 21 times
-
- WebCamera.fcpx
- (3.23 KiB) Downloaded 23 times
-
stefan.erni
- Valued Contributor
- Posts: 1245
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: App Developer: USB Webcam Component
Hi Steve
Perfect. It works really well.
That's exactly what I need.
Now I just need to figure out how to save the photo in the folder with a date and time stamp after clicking “Take Photo.”
like this:
PIC_2026-06-05_17-50-50.png
C:\All_export
Here is a photo I just took as an example
Perfect. It works really well.
That's exactly what I need.
Now I just need to figure out how to save the photo in the folder with a date and time stamp after clicking “Take Photo.”
like this:
PIC_2026-06-05_17-50-50.png
C:\All_export
Here is a photo I just took as an example