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
File details
Details for the file IDS_XS_TOOLS-UiS-0.3.tar.gz
.
File metadata
- Download URL: IDS_XS_TOOLS-UiS-0.3.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068e030aff73b3ca5d3e2a1fb5fc6480788b01e48dc4a1fd636229cddc8b0b79 |
|
MD5 | 467dc1911ff3733922410f20cbd253d9 |
|
BLAKE2b-256 | 196548ad393e45d84e7d426692cb543c429bbb6b74a1aaedc886be757af11d09 |
File details
Details for the file IDS_XS_TOOLS_UiS-0.3-py3-none-any.whl
.
File metadata
- Download URL: IDS_XS_TOOLS_UiS-0.3-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b6d8f4b9d61d0e1022e1a0090a83f6a213c7df404ee0544da889aec1624dfd7 |
|
MD5 | d0a4f3695735491d07883a10f15a64ba |
|
BLAKE2b-256 | eabe60670223187cdcd6a45629bd45c10d002cf8cf1c25889e5cbc2726827acb |