Skip to content

xumingkun9806/structured_light

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structured Light

These programs generate and decode structured light. Currently supports Binary code, Gray code, XOR code, Unstructured light, Single spot and Single stripe.

Usage

Export images

The following example exports 256x180 gray code pattern images.

python gray.py 256 180

Use as a module

import gray

width = 1280
height = 800

imgs_posi = gray.generate(width, height, inverse=False)
imgs_nega = gray.generate(width, height, inverse=True)

#Projecting patterns from a projector
#Capture images

decode = gray.decode(imgs_posi, imgs_nega)
print(decode)

About

Generate and Decode structured light.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%