Image functions for IDS XS camera
Project description
IDS XS TOOLS - UiS
Class and functions for processing images and puck objects
installation
pip install IDS-XS-TOOLS-UiS
contents
ImageFunctions
Functions to capture image, find pucks and test if image is blurry.
Puck Class
Used to define a Puck object.
Happens automatically when a puck is detected using QR-Reader.
Puck class contains:
puck number
puck position
puck angle
puck height
function examples;
capture_image(cam, gripper_height)
Captures an image and returns image array
Gripper height is needed.
findPucks(cam, robot, robtarget_pucks, cam_comp=False)
Finds all pucks in the frame of the camera by capturing an image and scanning the image for QR codes.
After the codes have been pinpointed, a series of transformations happen to finally create robtargets
which can be sent to RobotWare.
Robot, previous found pucks and wether camera compensation has been performed or not is needed.
set_position(self, position)
Set the [x,y] coordinate belonging to the puck.
example of use
# Two ways to import:
import ids_xs_tools
# or
from ids_xs_tools import ImageFunctions, Puck
# Then again two ways to excecute wanted commands:
ids_xs_tools.ImageFunctions.findPucks(config.cam, norbert, robtarget_pucks, 195)
# or
ImageFunctions.findPucks(config.cam, norbert, robtarget_pucks, 195)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for IDS_XS_TOOLS_UiS-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b6d8f4b9d61d0e1022e1a0090a83f6a213c7df404ee0544da889aec1624dfd7 |
|
MD5 | d0a4f3695735491d07883a10f15a64ba |
|
BLAKE2b-256 | eabe60670223187cdcd6a45629bd45c10d002cf8cf1c25889e5cbc2726827acb |