How to increase DPI for QR code for Zxing on BIRT report - qr-code

We had implemented Zxing api for BIRT report to show QR code,its working fine, But the DPI resolution is not visible properly,
Is there a way we can show the QR code in high resolution?
Please provide the options?
we tried var matrix = writer.encode(message,Packages.com.google.zxing.BarcodeFormat.QR_CODE, 300, 150);
this logic but could not see DPI options /parameters

Related

C# AForge VideoFileWriter WriteVideoFrame error

I want to make a app that record video using webcam,
I made the logic like get each frame as bitmap and store it to file using
AForge VideoFileWriter WriteVideoFrame function,
When I open then file using VideoFileWriter Open function,
writer.Open(path, VideoWidth, VideoHeight, frameRate, VideoCodec.H264, bitRate);
It is hard to determine the bitRate, when the bitrate is wrong, the whole program die without any error.
I think the bitrate is related to video frame width, height, framerate, bitcount as well as codec,
But I not sure the specific formular to calculate.
I want to compress the video using h264 codec.
Can anyone help me to find out the solution?
Thank you very much.

Get the camera angle of aframe

I have a project and I want it to run on a PC or a mobile terminal, but different devices have different initial visible areas of the camera. How can I get this angle? For example, camera.fov defaults to 80, but it may actually only be 50 on the mobile terminal. How can I accurately obtain my current visual range?
It's hard to know without a link to code, but here's a simple way to get FOV from an A-Frame scene.
For example, on this scene:
https://aframe.glitch.me/
You can open the console and type:
> AFRAME.scenes[0].camera.fov
And you'll get an answer such as:
> 80

Maptiler Pro Demo 12 Core using only 12%

Using MapTiler Pro Demo. Testing zoom levels 1-21 for Google Maps export from a tiff image (about 21mb file covering polygons over 2000km).
At the moment its been running an hour with constant usage at 12% of 12 vcores (about 1.5 of 12) maxed to about 2.5ghz. No tiles has been exported yet, only the html's associated.
Am I too quick to judge performance?
Edit: Progressbar at 0%
Edit2: Hour 8 still 0%. Memory usage increased from 400mb to 2gb
You are trying to generate from your input 21 MBytes file about 350 GBytes of tiles (approx. 10 billion of map tiles at zoom level 21) by the options you have set in the software. Is this really what you want to do?
It sounds like a nonsense to render the very low-res image (2600 x 2000 pixel) covering a large area (such as the South Africa) down to zoom level 21!
The software has suggested you the default maxzoom 6. If your data are coverage maps or similar dataset it makes sense to render it maybe down to zoom level 12 or similar, definitely not deeper than 14. For standard input data (aerial photo) the native suggested maxzoom +1 or +2 is the max which really makes sense. Deeper zoom levels do not add any visual advantage.
The user can always zoom deeper - but the upper tiles can be displayed on the client side - so you don't really need to generate and save all these images at all...
MapTiler automatically provides you with a Google Maps V3 viewer, which is doing the client-side over zooming out of the box.
See a preview here:
http://tileserver.maptiler.com/#weather/gmapsmaptiler.embed
If you are interested in the math behind the map tiles, check:
http://tools.geofabrik.de/calc/#type=geofabrik_standard&bbox=16.44,-34.85,32.82,-22.16
Thanks for providing the report (with http://www.maptiler.com/how-to/submit-report/) to us. Your original email to our support did not contain any technical data at all (not even the data you write here on the stackoverflow).
Please, before you publicly rant on the performance of a software - double check you know what you do. MapTiler Pro is a powerful tool, but the user must know what he does.
Based on your feedback - we have decided to implement for a future version of the MapTiler software an estimated final output size - and warn the user in the graphical user interface if he chooses options which are probably unwanted.

directshow: framerate of sample 'Bouncing Ball'

Bouncing Ball is one of the sample in windows sdk, and it derives from CSourceStream.
I use GraphEdit and build this simple graph:
Bouncing Ball -> ColorSpace Converter -> Video Mixing Renderer 9
When graph is running, I see the fps is about 50 in property page of Video Mixing Renderer 9,
it's expected, however, if I unselected "use clock" option, the fps is 60.
According to document, the graph run as fast as possible when not using reference clock, so the fps should be more than 60 I think. How do I change the sample code that the fps will be more than 60 when not using reference clock?

Resolution of camera feed

I am developing an application that displays a feed from a digital microscope (connected to a laptop via USB port). My first approach was using OpenCV. The problem with that was that even if I set the resolution of the obtained frames to 1600x1200 (resolution supported by the camera), the resolution was 600x480 (or something along these lines). I then read some posts and learned that a library VideoInput http://muonics.net/school/spring05/videoInput/ is the one to use. The code below works well - I am able to save frames in the given resolution. The problem appears when I run the executable on another laptop. On HP the app saves the frames in the resolution of 1280x1024. I also tried a Toshiba laptop and the resolution was also 1280x1024. The camera came with a GUI from the developer and using that software the HP laptop saved images in the correct resolution of 1600x1200 but the Toshiba also lowered the resolution.
My question is - why would my app work well on my laptop yet would not work on either Toshiba or HP. Is there any way to fix it? The code below is for the VideoInput library that I am using. I would appreciate your help!
VI.setIdealFramerate(device1, 15);
VI.setupDevice(device1, 1600, 1200, VI_COMPOSITE);
frame = cvCreateImage(cvSize(VI.getWidth(device1),VI.getHeight(device1)), IPL_DEPTH_8U, 3);

Resources