IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Classes | Variables
puzzle.runner Namespace Reference

Classes

class  ParamRunner
 
class  RealSolver
 

Variables

 call_back_id = int(os.path.basename(npy_file)[:4])
 
 configs_puzzleSolver
 
 hTracker_BEV = np.load(f, allow_pickle=True)
 
 npy_file_list = glob.glob(os.path.join(target_folder, '*.npy'))
 
 plan = puzzleSolver.process(postImg, visibleMask, hTracker_BEV)
 
 postImg = cv2.imread(os.path.join(target_folder, f'{str(call_back_id).zfill(4)}_puzzle.png'))
 
int puzzle_solver_mode = 2
 
string puzzle_solver_SolBoard = '../../Surveillance/Surveillance/deployment/ROS/caliSolBoard.obj'
 
 puzzleSolver = RealSolver(configs_puzzleSolver)
 
string target_folder = '../../Surveillance/Surveillance/deployment/ROS/tangled_1_work'
 
 thePercent = puzzleSolver.progress(USE_MEASURED=False)
 
bool verbose = False
 
 visibleMask = cv2.imread(os.path.join(target_folder, f'{str(call_back_id).zfill(4)}_visibleMask.png'), -1)
 

Variable Documentation

◆ call_back_id

call_back_id = int(os.path.basename(npy_file)[:4])

◆ configs_puzzleSolver

configs_puzzleSolver
Initial value:
1 = ParamRunner(
2  areaThresholdLower=1000,
3  areaThresholdUpper=8000,
4  pieceConstructor=Template,
5  lengthThresholdLower=1000,
6  BoudingboxThresh=(20, 100),
7  tauDist=100, # @< The radius distance determining if one piece is at the right position.
8  hand_radius=200, # @< The radius distance to the hand center determining the near-by pieces.
9  tracking_life_thresh=15 # @< Tracking life for the pieces, it should be set according to the processing speed.
10  )

◆ hTracker_BEV

hTracker_BEV = np.load(f, allow_pickle=True)

◆ npy_file_list

npy_file_list = glob.glob(os.path.join(target_folder, '*.npy'))

◆ plan

plan = puzzleSolver.process(postImg, visibleMask, hTracker_BEV)

◆ postImg

postImg = cv2.imread(os.path.join(target_folder, f'{str(call_back_id).zfill(4)}_puzzle.png'))

◆ puzzle_solver_mode

int puzzle_solver_mode = 2

◆ puzzle_solver_SolBoard

string puzzle_solver_SolBoard = '../../Surveillance/Surveillance/deployment/ROS/caliSolBoard.obj'

◆ puzzleSolver

◆ target_folder

string target_folder = '../../Surveillance/Surveillance/deployment/ROS/tangled_1_work'

◆ thePercent

thePercent = puzzleSolver.progress(USE_MEASURED=False)

◆ verbose

bool verbose = False

◆ visibleMask

visibleMask = cv2.imread(os.path.join(target_folder, f'{str(call_back_id).zfill(4)}_visibleMask.png'), -1)