Author Topic: An update on auto generation of custom models in xLights  (Read 4798 times)

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
An update on auto generation of custom models in xLights
« on: April 28, 2016, 06:25:15 AM »
So here is a video update showing where I am at with auto generation of custom models ... this is my best case ... so dont get too excited yet. The snowflake model I was also sent I cannot get a good result from yet ... but it is also much more challenging ... daylight + a white frame. I havent given up yet though.

https://youtu.be/Np6f19A0HnE


Offline Phrog30

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #1 on: April 28, 2016, 06:36:49 AM »
Very impressive sir!

James

Sent from my SM-G900V using Tapatalk


Offline Dazzled

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #2 on: April 28, 2016, 07:41:53 AM »
Fantastic job for just a few days of working on this new effect. I'm sure given a bit more time you'll get it sorted, I'm amazed at how you and the other developers come up with some of the stuff you do.

Stuart

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #3 on: April 28, 2016, 07:46:15 AM »
Next you just need it to interface directly to the camera.

Offline MrChristmas2000

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #4 on: April 28, 2016, 10:01:07 AM »
That is excellent work. That will make it so easy to bring in a custom singing face or snowflake.

I saw someone post an element over on the LOR FB page that is an excellent candidate for such a mapping program.  It was a tree with random bulb positions.

One thing I would request is that in the element viewing window that you would be able to crop or zoom in on just the element being examined. Don't know how difficult that might be but you did show that the sides could be dragged in from two sides to eliminate some of the surrounding clutter.

Thanks a whole lot.

Offline Steve Gase

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
    • WinterLightShow in Georgetown, TX
Re: An update on auto generation of custom models in xLights
« Reply #5 on: April 28, 2016, 10:04:42 AM »
very nice work!!
http://WinterLightShow.com  |  110K channels, 50K lights  |  Nutcracker, Falcon, DLA, HolidayCoro

Offline Steve Gase

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
    • WinterLightShow in Georgetown, TX
Re: An update on auto generation of custom models in xLights
« Reply #6 on: April 28, 2016, 10:07:31 AM »
another suggestion... can you display the pixel count somewhere?  it might help detect those double-pixel situations.   if it detects 103 pixels and know you only put 100 on the snowflake, you would then look for the duplicates.
http://WinterLightShow.com  |  110K channels, 50K lights  |  Nutcracker, Falcon, DLA, HolidayCoro

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: An update on auto generation of custom models in xLights
« Reply #7 on: April 28, 2016, 12:13:50 PM »
Next you just need it to interface directly to the camera.
Yeah. Can ffmpeg do that?

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: An update on auto generation of custom models in xLights
« Reply #8 on: April 28, 2016, 12:15:38 PM »
another suggestion... can you display the pixel count somewhere?  it might help detect those double-pixel situations.   if it detects 103 pixels and know you only put 100 on the snowflake, you would then look for the duplicates.
That's a good idea.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #9 on: April 28, 2016, 12:36:58 PM »
Next you just need it to interface directly to the camera.
Yeah. Can ffmpeg do that?

I don't think ffmpeg is built for that purpose.  I did a search and I'd probably start here if you were really interested:
http://larryo.org/work/information/wxopencv/index.html

Offline keithsw1112

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #10 on: April 28, 2016, 02:04:23 PM »
Quote
One thing I would request is that in the element viewing window that you would be able to crop or zoom in on just the element being examined. Don't know how difficult that might be but you did show that the sides could be dragged in from two sides to eliminate some of the surrounding clutter.

This is more complicated than it would seem. I am also not keen to overly complicate this process. This is about getting a good approximation to the model ... not necessarily a perfect one. The user can always edit it later.

But there are some things that do need to be right:
- I need all nodes ... if i miss nodes then it is hard to add them later as all higher nodes need to be renumbered. Missing a number is ok though as the user can easily add that in (if they can work out which one is missing ... i need to make that easy).
- I need to generate a reasonable sized model. It is hard for the user to shrink or expand the model later.

Doubling up bulbs or misplacing them is not a big deal as that is pretty easy for a user to change themselves.

Offline keithsw1112

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #11 on: April 28, 2016, 02:06:45 PM »
I don't think ffmpeg is built for that purpose.  I did a search and I'd probably start here if you were really interested:
http://larryo.org/work/information/wxopencv/index.html

I have been trying hard not to use opencv ... I have already added enough libraries to xLights. OpenCV would have saved me from implementing myself a bunch of algorithms ... although it did let me optimise them for our use case.

Offline logandc99

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
Re: An update on auto generation of custom models in xLights
« Reply #12 on: April 28, 2016, 05:41:52 PM »
Wow! Very impressive. Will be such a time saver  ;D