2017-09-04 17:23:49 +02:00
|
|
|
$NetBSD: patch-modules_videoio_src_cap__v4l.cpp,v 1.3 2017/09/04 15:23:49 fhajny Exp $
|
2016-03-01 21:14:24 +01:00
|
|
|
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
Conditionalize settings not available in NetBSD's v4l2 emulation.
|
|
|
|
|
2017-09-04 17:23:49 +02:00
|
|
|
--- modules/videoio/src/cap_v4l.cpp.orig 2017-08-03 23:58:23.000000000 +0000
|
2016-03-01 21:14:24 +01:00
|
|
|
+++ modules/videoio/src/cap_v4l.cpp
|
|
|
|
@@ -216,6 +216,7 @@ make & enjoy!
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
+#include <inttypes.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/mman.h>
|
|
|
|
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -470,9 +471,13 @@ static int autosetup_capture_mode_v4l2(C
|
2016-03-01 21:14:24 +01:00
|
|
|
V4L2_PIX_FMT_UYVY,
|
|
|
|
V4L2_PIX_FMT_SN9C10X,
|
|
|
|
V4L2_PIX_FMT_SBGGR8,
|
|
|
|
+#ifdef V4L2_PIX_FMT_SGBRG8
|
|
|
|
V4L2_PIX_FMT_SGBRG8,
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
- V4L2_PIX_FMT_RGB24,
|
|
|
|
- V4L2_PIX_FMT_Y16
|
|
|
|
+#endif
|
|
|
|
+ V4L2_PIX_FMT_RGB24
|
|
|
|
+#ifdef V4L2_PIX_FMT_Y16
|
|
|
|
+ ,V4L2_PIX_FMT_Y16
|
2016-03-01 21:14:24 +01:00
|
|
|
+#endif
|
|
|
|
};
|
|
|
|
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
for (size_t i = 0; i < sizeof(try_order) / sizeof(__u32); i++) {
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -521,12 +526,16 @@ static void v4l2_control_range(CvCapture
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
case V4L2_CID_GAIN:
|
|
|
|
cap->gain = range;
|
|
|
|
break;
|
|
|
|
+#ifdef V4L2_CID_EXPOSURE_ABSOLUTE
|
|
|
|
case V4L2_CID_EXPOSURE_ABSOLUTE:
|
2016-03-01 21:14:24 +01:00
|
|
|
cap->exposure = range;
|
|
|
|
break;
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
+#endif
|
2016-03-01 21:14:24 +01:00
|
|
|
+#ifdef V4L2_CID_FOCUS_ABSOLUTE
|
|
|
|
case V4L2_CID_FOCUS_ABSOLUTE:
|
|
|
|
cap->focus = range;
|
|
|
|
break;
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -548,7 +557,9 @@ static void v4l2_scan_controls(CvCapture
|
2016-03-01 21:14:24 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifdef V4L2_CID_FOCUS_ABSOLUTE
|
|
|
|
v4l2_control_range(capture, V4L2_CID_FOCUS_ABSOLUTE);
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static int v4l2_set_fps(CvCaptureCAM_V4L* capture) {
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -564,8 +575,10 @@ static int v4l2_num_channels(__u32 palet
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
case V4L2_PIX_FMT_YVU420:
|
|
|
|
case V4L2_PIX_FMT_MJPEG:
|
|
|
|
case V4L2_PIX_FMT_JPEG:
|
|
|
|
+#ifdef V4L2_PIX_FMT_Y16
|
|
|
|
case V4L2_PIX_FMT_Y16:
|
|
|
|
return 1;
|
|
|
|
+#endif
|
|
|
|
case V4L2_PIX_FMT_YUYV:
|
|
|
|
case V4L2_PIX_FMT_UYVY:
|
|
|
|
return 2;
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -593,11 +606,13 @@ static void v4l2_create_frame(CvCaptureC
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
case V4L2_PIX_FMT_YVU420:
|
|
|
|
size.height = size.height * 3 / 2; // "1.5" channels
|
|
|
|
break;
|
|
|
|
+#ifdef V4L2_PIX_FMT_Y16
|
|
|
|
case V4L2_PIX_FMT_Y16:
|
|
|
|
if(!capture->convert_rgb){
|
|
|
|
depth = IPL_DEPTH_16U;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -1558,18 +1573,21 @@ static IplImage* icvRetrieveFrameCAM_V4L
|
2016-03-01 21:14:24 +01:00
|
|
|
(unsigned char*)capture->frame.imageData);
|
|
|
|
break;
|
|
|
|
|
|
|
|
+#ifdef V4L2_PIX_FMT_SGBRG8
|
|
|
|
case V4L2_PIX_FMT_SGBRG8:
|
|
|
|
sgbrg2rgb24(capture->form.fmt.pix.width,
|
|
|
|
capture->form.fmt.pix.height,
|
|
|
|
(unsigned char*)capture->buffers[(capture->bufferIndex+1) % capture->req.count].start,
|
|
|
|
(unsigned char*)capture->frame.imageData);
|
|
|
|
break;
|
|
|
|
+#endif
|
|
|
|
case V4L2_PIX_FMT_RGB24:
|
|
|
|
rgb24_to_rgb24(capture->form.fmt.pix.width,
|
|
|
|
capture->form.fmt.pix.height,
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
(unsigned char*)capture->buffers[(capture->bufferIndex+1) % capture->req.count].start,
|
|
|
|
(unsigned char*)capture->frame.imageData);
|
|
|
|
break;
|
|
|
|
+#ifdef V4L2_PIX_FMT_Y16
|
|
|
|
case V4L2_PIX_FMT_Y16:
|
|
|
|
if(capture->convert_rgb){
|
|
|
|
y16_to_rgb24(capture->form.fmt.pix.width,
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -1582,6 +1600,7 @@ static IplImage* icvRetrieveFrameCAM_V4L
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
capture->frame.imageSize);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
2017-09-04 17:23:49 +02:00
|
|
|
if (capture->returnFrame)
|
|
|
|
@@ -1602,14 +1621,22 @@ static inline __u32 capPropertyToV4L2(in
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
return V4L2_CID_HUE;
|
|
|
|
case CV_CAP_PROP_GAIN:
|
2016-03-01 21:14:24 +01:00
|
|
|
return V4L2_CID_GAIN;
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
+#ifdef V4L2_CID_EXPOSURE_AUTO
|
|
|
|
case CV_CAP_PROP_AUTO_EXPOSURE:
|
|
|
|
return V4L2_CID_EXPOSURE_AUTO;
|
|
|
|
+#endif
|
|
|
|
+#ifdef V4L2_CID_EXPOSURE_ABSOLUTE
|
2016-03-01 21:14:24 +01:00
|
|
|
case CV_CAP_PROP_EXPOSURE:
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
return V4L2_CID_EXPOSURE_ABSOLUTE;
|
|
|
|
+#endif
|
2016-03-01 21:14:24 +01:00
|
|
|
+#ifdef V4L2_CID_FOCUS_AUTO
|
|
|
|
case CV_CAP_PROP_AUTOFOCUS:
|
|
|
|
return V4L2_CID_FOCUS_AUTO;
|
|
|
|
+#endif
|
|
|
|
+#ifdef V4L2_CID_FOCUS_ABSOLUTE
|
|
|
|
case CV_CAP_PROP_FOCUS:
|
|
|
|
return V4L2_CID_FOCUS_ABSOLUTE;
|
|
|
|
+#endif
|
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
2017-09-04 17:23:49 +02:00
|
|
|
@@ -1755,12 +1782,14 @@ static bool icvSetControl (CvCaptureCAM_
|
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
2017-03-16 22:59:13 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if defined(V4L2_CID_EXPOSURE_AUTO) && defined(V4L2_EXPOSURE_MANUAL) && defined(V4L2_CID_EXPOSURE_ABSOLUTE)
|
|
|
|
if(control.id == V4L2_CID_EXPOSURE_AUTO && control.value == V4L2_EXPOSURE_MANUAL) {
|
|
|
|
// update the control range for expose after disabling autoexposure
|
|
|
|
// as it is not read correctly at startup
|
|
|
|
// TODO check this again as it might be fixed with Linux 4.5
|
|
|
|
v4l2_control_range(capture, V4L2_CID_EXPOSURE_ABSOLUTE);
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* all was OK */
|
|
|
|
return true;
|