OpenCV fullscreen window - visual-c++

I'm trying to create a fullscreen window using opencv 2.3 but it doesn't work (But I remember, that it should). The code is very simple.
cvNamedWindow("Name", CV_WINDOW_FULLSCREEN );
I also tried to set window property
cvSetWindowProperty("General Optica" , CV_WND_PROP_AUTOSIZE , CV_WINDOW_FULLSCREEN);
but there is no effect, I get a window but not fullscren.
OS - Windows 7 , 64 bit
OpenCV 2.3
C++
Thanks in advance!

First of all, there is a bug in OpenCV 2.x which breaks fullscreen mode on Windows.
Unfortunately there are no prebuilt version of OpenCV having this bug fixed. To get a binaries with bug fixed you can get the latest OpenCV trunk and build the library yourself. If you don't want to upgrade to the trunk then you can apply changes from revision 6706 to your version of codes (but building from sources is the only option).
Please also note that OpenCV supports fullscreen mode only for Win2k or newer.
And finally you should modify your code as shown below:
cvNamedWindow("Name", CV_WINDOW_NORMAL);
cvSetWindowProperty("Name", CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);
cvShowImage("Name", your_image);

Related

Problem to see the color preview when autocomplete

I've begun working with tailwind in my VSCode
I've installed some extensions (I had other prev. installed)
bierner.color-info
bradlc.vscode-tailwindcss
burkeholland.simple-react-snippets
christian-kohler.npm-intellisense
CoenraadS.bracket-pair-colorizer-2
dbaeumer.vscode-eslint
dsznajder.es7-react-js-snippets
EditorConfig.EditorConfig
esbenp.prettier-vscode
felixfbecker.php-intellisense
flowtype.flow-for-vscode
JakeWilson.vscode-cdnjs
MehediDracula.php-namespace-resolver
mgmcdermott.vscode-language-babel
msjsdiag.vscode-react-native
naumovs.color-highlight
NuclleaR.vscode-extension-auto-import
oderwat.indent-rainbow
PKief.material-icon-theme
royaction.color-manager
runningcoder.react-snippets
zhuangtongfa.material-theme
My problem is that I cannot see the color preview for each class in the autocomplete list (See image)...
I've tried disabling all of them, enabling only tailwind intellisense, w/o luck
Thanks for any tip you can give me
PS: Latest VSCode version on Windows 8.1 Pro
The problem was a bug in Tailwind CSS Intellisense
https://github.com/bradlc/vscode-tailwindcss/issues/113
Installing the alpha release solved it

OpenCV 3.x Documentation in PyCharm

I've compile OCV 3.4 on my Mac. Everything runs fine, PyCharm works, QT5 bindings are fine.
I have one problem: Don't know how to add the documentation for OCV in PyCharm.
I know it's under ExternalDocumentation but how do I specify the right path???
I have the generate doc files on my HD (OpenCV/doc/html and OpenCV/doc/javadoc)
I have installed opencv-python via pip install opencv-python (see https://pypi.org/project/opencv-python/ for more details) and now I can see all the docs with Ctrl+Q shortcut. The only problem, I was not able to get a nice formatting:
Help on openCV function in the Documentation tool window
Still it simplifies things a lot comparing with the manual installation I had before.

Pen Width font turning to White automatically (Jaspersoft Studio 6.4 Arch Linux Gnome)

Im having some glitching issues while using JasperSoft Studio. (using the latest version from the AUR).Im using GNOME.
Steps to reproduce :
Add Text Field. Select it.
Go to Properties -> Borders -> Click on a border on the square.
The Pen Width (1.0 by default) appears for an instant and then "disappears" (Its still there as I can select it but i think the font color becomes white)
This can be temprorarily resolved by going to preferences and toggling the theme from classic -> GTK or vice versa. The resolution exists only for the current report and does not remain for other opened reports. Really annoying bug.
Ive tried Adwaita and GTK other themes etc...but no use. The bug persists.
I have a version 6.1.1 of Jaspersoft Studio on another machine running the latest UBUNTU GNOME and it works near perfectly.I tried running this version of Jasper on arch using various settings but it stops working as soon as I open a JRXML file. Nothing is clickable and I have to kill the process. I am guessing its a GTK issue.
I dont want to go back to using Ubuntu as I love the Arch experience. Can someone help me to run the AUR version of Arch without this glitch.
And if you think 6.1.1 should run fine on Arch...can someone help me overcome the GTK issue (Ive already tried export SWT_GTK3=0; but it doesnt work)
Thanks.
Try editing the runjss.sh script (probably in /opt/jaspersoftstudio) and add the line
export SWT_GTK3=0
Then try running JSS via that script and see if it helps.
I haven't had the same issue as you but I've been having a lot of Gnome-related problems and I'm using the same combination as your - Arch (Manjaro) and Gnome with JasperSoft Studio 6.4.3. Works perfectly since I added that line.
You can also edit the .desktop file to exec runjss instead of the default exec line.

Font smooth issue, fonts are not looking good in Debian QT [Embedded Qt]

I am using qt-x11-opensource-4.8.2 Debian Jessie on BBB Embedded device.
Steps I have tried to solve the Issue:
Configured the Qt font libraries and Transferred to the Board -> configured the font path properly.
Qt Creator Build & Run Changes has been done to run the Qt application on the Embedded device. Added the Environment variables [QTDIR, QT_QWS_FONTDIR & LD_LIBRARY_PATH] to the Build setup.
Downloaded all the QtGui Dependencies libraries for X11 in Embedded device.
X Rendering Extension; used for anti-aliasing, Run the application as cmd: ./Teledyne -xrender
Q_WS_X11 macro is defined in the code for support embedded Linux project, which will Export all X11 related functions.
Used the Qt Resource Embedded Fonts [Roboto & VeraBd] and Run the application
Used the Qt PreferAntialias and PreferFullHinting option to enable the smooth font.
Installed the basic font packages and configure them
cmd : apt-get install ttf-dejavu ttf-liberation
Using the XLFD -X logical font Description
cmd : xfontsel
Tried to change the font width point size and pixel size
Configure the XTT and Created a xtt font folder and loaded the font path to the Xservers session
cmd: xset +fp /usr/share/fonts/X11/xtt
Checked whether the lightdm may depends of the font configuration
created file : ~/.config/fontconfig/fonts.conf
link:https://lists.freedesktop.org/archives/lightdm/2015-April/000785.html
Create a file called .fonts.conf in home directory -> added content for the antialiasing, which will Enable subpixel-hinting and font-smoothing
Link:https://wiki.debian.org/Fonts
Created a Qt application with the few available fonts e.g.dejavu sans,Fixed[Sony],Bitstream Vera Sans,Courier,dejavu serif,Times
Tested the above fonts Qt application in the Device.
Any suggestions what might be causing this Issue ?
Please can any one help me on this, I am struck :(
Thanks in advance.
Are you compiling Qt with support for fontconfig?
We have been having similar problems related to bad rendering and
sometimes even non readable fonts, and after installing the dev
package of fontconfig and recompile Qt with support for fontconfig
everything works as expected.
At the end we've been getting again same problem of fonts being shown incorrectly ( basically bad rendering ) and was because RenderType uses which is defaulted to "Text.QtRendering" and we need to use "Text.NativeRendering" to have the proper rendering on platform used ( linux ).
http://doc.qt.io/qt-5/qml-qtquick-text.html#renderType-prop ->
Select Text.NativeRendering if you prefer text to look native on the
target platform and do not require advanced features such as
transformation of the text. Using such features in combination with
the NativeRendering render type will lend poor and sometimes pixelated
results.
Hope it helps.

Android Studio 1.4.1 visual glitch

When I was using the Android Studio (1.4.1), after a while I ran into some visual glitches. I then fixed these by moving the window to my secondary monitor. This then happened again, after about 5 minutes.
I was wondering if this was documented, and if there is a known way to fix it.
Android Studio is having a strange "cascading display" glitch?
Try this:
Android Studio\bin\idea.properties
Add
sun.java2d.d3d=false
It seems that Java and DirectX are colliding on 2D issues.
You will have the same problem with many java apps on that graphic card.
It seems that the DirectX and Java have a collision on specific system settings.
To solve this:
In windows:
1. open Environment Variables
2. add a new variable
3. name it _JAVA_OPTIONS
4. add the following value -Dsun.java2d.d3d=false -Dsun.java2d.noddraw=true

Resources