Unconfigured Ad Widget

Collapse

My (virtual) indoor range

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dr Rockso
    Veteran Member
    • Jan 2008
    • 3701

    My (virtual) indoor range

    I started shooting at a local CMP-affiliated club a couple months ago, and knew I was going to need to get a lot more practice if I wanted to see some decent scores in the future. The key, I was told, was dry fire and lots of it. The only problem is that dry fire is pretty boring. There's no feedback, just point, click, repeat. I wanted to figure out a way to improve my dry fire practice to make it a little more realistic and perhaps a bit more engaging. I stumbled across this device from LaserLyte, a laser boresighter that has a secondary function in which a brief (~100 ms) laser pulse is activated by an internal microphone whenever the gun makes a sound, such as the hammer falling. It comes with adapters so that it can be used in rifles and pistols from .22 - .50 caliber, but using it in rifles presented a problem. If you're focused on your front sight, you can't really see exactly where the laser dot is striking. The novelty wore off pretty fast, and soon I was back to regular old dry fire.

    In the last week I started playing around with the idea of using the LaserLyte as a component in an electronic 'virtual range' system. I wrote some code in MATLAB that can identify the laser pulse on the target via a USB webcam. The coordinates of the laser pulse are stored and plotted onto a 'virtual target,' and the group size is displayed in minutes of angle based on the distance of the camera to the target and the ratio of pixels to physical dimensions of the video feed. As for the LaserLyte unit itself, it's got a couple of problems with battery drain (the batteries must be completely removed to prevent them from dying) but overall it works well for this application.

    The longest run in my apartment is about 20 feet, between the living room and the bathroom. The greater the distance between the shooter and the target, the higher the angular resolution of the system. The software calculates an average group size by taking the distance between the center of the group and each shot, and averaging that to obtain the average group radius (double that is the average group diameter).

    CZ-75B using Shoot-N-C target






    Garand using a 200 yard target scaled for 20 feet (it's tiny)


  • #2
    Dr Rockso
    Veteran Member
    • Jan 2008
    • 3701

    More screenshots:


    Comment

    • #3
      Noobert
      Veteran Member
      • Jan 2009
      • 3343

      Wow.
      (\__/)
      (='.'=)
      (")_(") Copy and paste this bunny into your signature to help him gain world domination.!!!

      Comment

      • #4
        Beatone
        Veteran Member
        • Dec 2005
        • 4053

        Definitely something different.
        sigpicNRA Life Member

        Comment

        • #5
          CmpsdNoMore
          Senior Member
          • Jan 2008
          • 1699

          That's pretty neat. Have you thought about marketing that somehow?
          I would consider buying something like this if it was relatively low cost.

          Comment

          • #6
            M47_Dragon
            Senior Member
            • Jul 2008
            • 1263

            No offense intended, because that is very VERY cool, but you are a hardcore nerd.
            Originally posted by bigbob76
            I'm in the process of de-humping all my Glocks.

            Comment

            • #7
              berto
              Calguns Addict
              • Oct 2005
              • 7723

              Great job.
              "There are no outdoor sports as graceful as throwing stones at a dictatorship." Ai WeiWei

              Comment

              • #8
                HCz
                Veteran Member
                • Jun 2008
                • 3295

                Originally posted by CmpsdNoMore
                That's pretty neat. Have you thought about marketing that somehow?
                I would consider buying something like this if it was relatively low cost.
                +1 I think there is a system similar to this, but if you can make it work with a simple set of devices, it should be good to go.

                Comment

                • #9
                  evidens83
                  Calguns Addict
                  • Apr 2009
                  • 7839

                  Now this is cool
                  WTS 10/22 Lasermax laser CHEAP!!!

                  Comment

                  • #10
                    TD22057
                    Junior Member
                    • May 2009
                    • 33

                    Why not make it an open source project? Perhaps people would be willing to contribute and help you with it...

                    I'd love to take a look at it - I don't have matlab so I can't run it but I might be interested in doing a python/matplotlib port so it could be used without matlab if you care to make it available.

                    Comment

                    • #11
                      Dr Rockso
                      Veteran Member
                      • Jan 2008
                      • 3701

                      Originally posted by TD22057
                      Why not make it an open source project? Perhaps people would be willing to contribute and help you with it...

                      I'd love to take a look at it - I don't have matlab so I can't run it but I might be interested in doing a python/matplotlib port so it could be used without matlab if you care to make it available.
                      I don't have any aspirations of making money off of this. I have no background in software development, either, I'm just an engineer that can stumble my way through MATLAB (though this project has made me a bit better). If anyone wants to use this idea they are more than welcome. I'll even give anyone my M-code, but it requires MATLAB and the Image Acquisition toolbox so the target audience will probably be pretty small. Also the current code is an absolute mess.

                      In my research over the past few days I think that a good coder could redo this fairly easily in a more general language. Here's an open-source application written in C# that's already taken care of all the difficult parts. Some modification is all it would take to make that code work with the LaserLyte unit. If anyone wants to take that kind of project on I could probably share some useful insights even though I don't know the language.

                      Comment

                      • #12
                        sytfu_RR
                        CGN/CGSSA Contributor
                        CGN Contributor
                        • Jul 2008
                        • 1543

                        dam this is cool, good work. Wish I had have the know-how to do this.

                        Comment

                        • #13
                          sv_1
                          Senior Member
                          • Apr 2008
                          • 525

                          I know, I know- If you have to ask...

                          how much $ is MATLAB?

                          Comment

                          • #14
                            jarhead995
                            Senior Member
                            • Oct 2009
                            • 1209

                            Thats pretty bad arse hook meh up brah!

                            Comment

                            • #15
                              RogueSniper
                              Veteran Member
                              • Feb 2008
                              • 3749

                              Damn! Nice job! I vaguely remember seeing something like this at the Sydney 2000 Olympics during their Shooting competition. To be able to do this at home just blows my mind!
                              I'm not having a glass of wine, I'm having SIX. It's called a tasting and it's classy.

                              Active Junky / Dvor
                              TARGET SPORT USA Prime Ammo referral - PM me

                              Stuff for sale:
                              Packer Stock (folding 10/22 stock)
                              Beretta Silver Pigeon SL2 Shotgun (Pump)
                              Kenwood Receiver

                              Comment

                              Working...
                              UA-8071174-1