Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread Blog Post: AI on video streams in browsers
Mon, Oct 14 2024 5:15 PMPermanent Link

erickengelke

Avatar

I was going some AI work and wondered if I could do it in EWB + Web Browsers.  Would it work, how fast can it bee.

Not only does it work, but it's a more portable high speed solution than Delphi or Python, working on every major OS IoT devices like raspberry pi at FULL graphics accelerated speed.

See the blog post and associated web page example program.

https://www.erickengelke.com/posts/post50.html

Let me know if this is something that interests you.  Your feedback is what encourages me to write more on these non-obvious topics.

Ericck
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Tue, Oct 15 2024 2:22 PMPermanent Link

Ralf Mimoun

That sounds and looks fascinating, and I can thing of many use cases in our system. Any details would be mich appreciated
Tue, Oct 15 2024 4:51 PMPermanent Link

erickengelke

Avatar

Ralf Mimoun wrote:

> That sounds and looks fascinating, and I can thing of many use cases in our system. Any details would be mich appreciated

I'm busy porting some AI projects to EWB.  It's all in a state of flux right now, I'm still making the classes, so I'm not ready to share.

If you would like to share some examples of use cases, that could be helpful.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Wed, Oct 16 2024 2:36 AMPermanent Link

Ralf Mimoun

Nothing fancy: activating a screen when someone looks into the camera, counting trucks from a camera way up, reading number plates to help entering information (I know, ANPR is not easy). Some will run in a browser without any user interaction, but sending information 27/7 to a service

I am on vacation right now, so it is definitely not urgent 😎
Fri, Oct 18 2024 1:05 PMPermanent Link

Artur2024

Avatar

For me it's great. I'm looking forward to more Smile
I'm currently trying to take a simple photo from my phone using a web app, but I can't manage
Fri, Oct 18 2024 6:00 PMPermanent Link

erickengelke

Avatar

Artur2024 wrote:

> For me it's great. I'm looking forward to more Smile
> I'm currently trying to take a simple photo from my phone using a web app, but I can't manage

Cameras are challenging.  If you are licensed for my Nice toolkit, there is a quick photo taking capability you can use.

You can see it in action at: https://erickengelke.com/nice   

It's in the Input/Output Devices section, under Take Picture with Camera

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Sun, Oct 20 2024 10:42 AMPermanent Link

erickengelke

Avatar

Ralf Mimoun wrote:
> Nothing fancy: activating a screen when someone looks into the camera

Doable.  There is something called the faces API which detects faces, and gives the distance between eyes in pixels and also between ears, so you can estimate if they are close by.

https://www.eng.uwaterloo.ca/~erick/ai/tf2_video.html

> , counting trucks from a camera way up,

I believe that's doable.  The same sample program might detect them... you'd have to check


> reading number plates to help entering information (I know, ANPR is not easy)

The existing OCR in my nice library does a better job detecting charactersthan what I found so far with TensorJS.

https://www.erickengelke.com/nice/samples.html. under Input Output

> Some will run in a browser without any user interaction, but sending information 27/7 to a service

Python on a raspberry Pi could do it, but for those of us who love Pascal/EWB, there is a solution coming whicch also supports anything with a browser and a GPU (like the raspberry Pi).    And an extra advantage is that it will download the updated version automaticcally at reboot time, so you have a way to field update them.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Sun, Oct 20 2024 10:52 AMPermanent Link

erickengelke

Avatar

erickengelke wrote:

Ralf Mimoun wrote:

>> , counting trucks from a camera way up,

>I believe that's doable.  The same sample program might detect them... you'd have to check

I just tested it, it will find vehicles pretty well.  If you make Bus = Truck, it can count trucks and cars quite well.

https://www.eng.uwaterloo.ca/~erick/ai/tf1_coco_example.html using this low res 8 kB image counted 6 vehicles, and correclty identified two as cars.  Click on each label to see where in the picture it refers to to double check.

High res pictures don;t help a lot, unless you break them into smaller ones.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com



Attachments: a.jpeg
Sun, Oct 27 2024 6:02 AMPermanent Link

Ralf Mimoun

Thanks! I'll look into it as soon as the current EWB project went live.
The resolution should not be a problem, we are using Mobotix cams. They deliver whatever you want.
Image