Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thiago Santini
EyeRecToo
Commits
a07b649b
Commit
a07b649b
authored
Mar 27, 2018
by
Thiago Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates uvcengine
parent
304a62da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
EyeRecToo/deps/runtime/x64/Release/plugins/mediaservice/uvcengine.dll
...ps/runtime/x64/Release/plugins/mediaservice/uvcengine.dll
+0
-0
EyeRecToo/deps/runtime/x64/Release/uvc.dll
EyeRecToo/deps/runtime/x64/Release/uvc.dll
+0
-0
EyeRecToo/src/FrameGrabber.cpp
EyeRecToo/src/FrameGrabber.cpp
+3
-0
No files found.
EyeRecToo/deps/runtime/x64/Release/plugins/mediaservice/uvcengine.dll
View file @
a07b649b
No preview for this file type
EyeRecToo/deps/runtime/x64/Release/uvc.dll
View file @
a07b649b
No preview for this file type
EyeRecToo/src/FrameGrabber.cpp
View file @
a07b649b
...
...
@@ -196,6 +196,9 @@ bool FrameGrabber::rgb32_2bmp(const QVideoFrame &in, cv::Mat &cvFrame)
bool
FrameGrabber
::
yuyv_2bmp
(
const
QVideoFrame
&
in
,
cv
::
Mat
&
cvFrame
)
{
// some of the cheaper cameras tend to mess up the data for the first frames
if
(
abs
(
in
.
height
())
*
abs
(
in
.
width
())
*
2
>
in
.
mappedBytes
())
return
false
;
Mat
yuyv
=
Mat
(
abs
(
in
.
height
()),
abs
(
in
.
width
()),
CV_8UC2
,
(
void
*
)
in
.
bits
());
if
(
code
==
CV_8UC3
)
cvtColor
(
yuyv
,
cvFrame
,
CV_YUV2BGR_YUYV
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment