Comments (7)
Hi,
Trigger should work with every camera.
What you have to do is enable the trigger mode.
Simply set the privacy flag. This will give you an frozen image, indicating that trigger is enabled.
After that the external trigger should work as expected.
from tiscamera.
Is this issue fixed, or do you need further assistance?
from tiscamera.
Thanks, I need help.
I tried the following commands, and found something regarding trigger. But, that is it; I don't know how to take pictures with external trigger.
sudo uvcdynctrl -i tisEUVC.xml -d /dev/videoTIS1
v4l2-ctl --device=/dev/videoTIS1 --list-ctrls
gain (int) : min=16 max=63 step=1 default=16 value=16
extio (bool) : default=0 value=0
trigger (bool) : default=0 value=0
x_offset (int) : min=0 max=8 step=2 default=0 value=0
y_offset (int) : min=0 max=0 step=2 default=0 value=0
exposure_absolute (int) : min=1 max=2500 step=1 default=127 value=300
privacy (bool) : default=0 value=0
Please clarify which tool/command should I use to capture pictures with external trigger.
Thank you very much.
from tiscamera.
OK, to see if external trigger is working you can use guvcview.
- Set the privacy flag
You will now see a fixed image. - Activate your external trigger
The image should now be updated.
If this is the case, triggering works.
For your options concerning trigger mode activation:
You can either activate it with v4l2-ctl:
v4l2-ctl --device=/dev/video0 --set-ctrl=privacy=1
or you use ioctl if you wish to set it programmatically.
I would have to set up a little example on how to do that, if you wish to use ioctl.
from tiscamera.
Thanks, after setting the "Privacy" flag, I can see the "fixed image". After activating the "external trigger", the image get updated continuously.
Questions:
- If I would like to only take ONE picture, what I should do is generating a short (>10us) pulse instead of keep activating the external trigger, correct?
- From the DMK22BUC03 manual, it prints the "Shutter 1/10,000S to 1/4S".
If I would like to set the shutter as "1/10,000S", should I set "exposure_absolute" to 1? - What's the function for "trigger" of v4l2-ctrl property?
from tiscamera.
-
Each pulse should cause an image capture.
-
To quote the v4l2 API documentation:
V4L2_CID_EXPOSURE_ABSOLUTE Determines the exposure time of the camera sensor. The exposure time is limited by the frame interval. Drivers should interpret the values as 100 µs units, where the value 1 stands for 1/10000th of a second, 10000 for 1 second and 100000 for 10 seconds.
Setting it to 1 will give the wished effect. -
I assume you are referring to software trigger?
Do you have the latest firmware version (163) ?
If you do you should find a fieldsoftware_trigger
after applying the uvc extension unit.
Here an overview over all controls with firmware v163 and uvc extensions enabled.brightness (int) : min=0 max=255 step=1 default=128 value=128
gain (int) : min=16 max=63 step=1 default=16 value=16
extio (bool) : default=0 value=0
trigger (bool) : default=0 value=0
software_trigger (button) :
x_offset (int) : min=0 max=320 step=2 default=0 value=0
y_offset (int) : min=0 max=240 step=2 default=0 value=0
exposure_absolute (int) : min=1 max=2500 step=1 default=127 value=300
privacy (bool) : default=0 value=0
Both trigger mode and software trigger can be set through ioctl
and v4l2-ctl
.
Trigger Mode:
v4l2-ctl --device=/dev/video0 --set-ctrl=trigger=true
Software Trigger:
v4l2-ctl --device=/dev/video0 --set-ctrl=software_trigger=
from tiscamera.
Hi Edgar,
Thanks for your help. The external trigger works. My camera model is DMK22BUC03.
Here are my steps:
- Upgrade firmware version to 163
- Execute the following commands:
sudo uvcdynctrl -i tiscamera/data/uvc-extensions/tisEUVC.xml -d /dev/videoTIS1
v4l2-ctl --device=/dev/videoTIS1 --set-ctrl=trigger=1
-Yishin
from tiscamera.
Related Issues (20)
- Black dashed lines across image HOT 5
- Can't set acquire period longer than 0.5s when capturing less than full region HOT 2
- Cannot get image/video from DFK 42BUC03 on Linux HOT 2
- ERROR tcam-libtcam timeout while waiting for new image buffer HOT 5
- Broken dependency HOT 4
- Failed to find any device to open DMK23G445 HOT 2
- Feature Requset: Callback for external trigger, before sensor read-off HOT 6
- Cmake cannot find tcam HOT 1
- PolarizedMono12Packed HOT 5
- Is there a DFK31BU camera driver available for the Raspberry Pi? HOT 7
- Intermittent failure to change pipeline state HOT 9
- Unable to use v4l2-ctl to update gain HOT 2
- Rasberry Pi 3 Arducam Day-Night Vision Camera not available HOT 1
- unable to detect camera on ubuntu HOT 5
- AttributeError: 'GstTcamBin' object has no attribute 'get_device_serials_backend' while running the 00-list-devices.py HOT 6
- support 23.04, 23.10, and 24.04 HOT 1
- Performance Variation Across Ubuntu Versions and tiscamera Package Versions HOT 4
- Is it Possible to Share a GigE Camera Feed Between Two PCs? HOT 2
- Use dfk 33ux287 tisCam code to install library fail HOT 6
- Stuck setting pipeline state to ready - pipeline.set_state(Gst.State.READY) due to TriggerMode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiscamera.