ME 405 Term Project: Thermal Imaging Nerf Turret 1.0
A library that contains software used to control and fire an automated Nerf turret. The turret uses a MLX90640 Thermal Imaging camera to determine opponent's position and fire.
image.py File Reference

This file contains image storage and processing classes for the MLX90640 camera driver. More...

Classes

class  src.image._BasePattern
 
class  src.image.ChessPattern
 
class  src.image.InterleavedPattern
 
class  src.image.Subpage
 
class  src.image.RawImage
 Image Buffers. More...
 

Functions

 src.image.get_pattern_by_id (pattern_id)
 

Variables

str src.image.PIX_STRUCT_FMT = '>h'
 
 src.image.PIX_DATA_ADDRESS = const(0x0400)
 
dict src.image._READ_PATTERNS
 
 src.image.ImageLimits = namedtuple('ScaleLimits', ('min_h', 'max_h', 'min_idx', 'max_idx'))
 
 src.image._INTERP_NEIGHBOURS
 

Detailed Description

This file contains image storage and processing classes for the MLX90640 camera driver.

RAW VERSION This version is a stripped down MLX90640 driver which produces only raw data, not calibrated data, in order to save memory.

Variable Documentation

◆ _INTERP_NEIGHBOURS

src.image._INTERP_NEIGHBOURS
protected
Initial value:
1= tuple(
2 row * NUM_COLS + col
3 for row in (-1, 0, 1)
4 for col in (-1, 0, 1)
5 if row != 0 or col != 0
6)

◆ _READ_PATTERNS

dict src.image._READ_PATTERNS
protected
Initial value:
1= {
2 pat.pattern_id : pat for pat in (ChessPattern, InterleavedPattern)
3}