Posts

Showing posts with the label image-processing

“Wavy” edges in custom street view - bad image quality

“Wavy” edges in custom street view - bad image quality I've explored all documentation on googles street view javascript API which I'm using. I managed to show a custom 360° view on my test website. However the images/tiles are distorted. See a crop of the image image attached. Here you can see the distortion of the edges clearly. I'm using this javascript code on my website: <script> function initPano() { var panorama = new google.maps.StreetViewPanorama( document.getElementById('map'), {pano:'cdmx3d', visible:true, fullscreenControl:true, panControl:false, zoomControl:false, linksControl:true, addressControl:true}); panorama.registerPanoProvider(getCustomPanorama); } function getCustomPanoramaTileUrl(pano, zoom, tileX, tileY) { return 'http://www.cdmx3d.mx/Google/StreetView1/' + zoom + '_' + tileX + '_' + tileY + '.png'; } function getCustomPanorama(pano) { if (pano === 'cdmx3d...

Emgucv Image to LoadRawTextureData

Emgucv Image to LoadRawTextureData I need help for converting Emgucv videoCapture image to LoadRawTextureData of unity to display images/videos in Unity3d 2018.1. I am able to display images but it show strange lines and distorted image effects or some kind of shuttering/scattering. I read the question in this post and apply the solution but the problem is not solved Convert Mat to Texture2d(Stackoverflow) I think the Colorspace of Emgucv image did not matched with the texture2d. Code: void Start () { vc = new VideoCapture(0); vc.FlipVertical = true; //The image I am getting from webcam is flipped myMaterial = GetComponent<Renderer>().material; frameHeight = (int)vc.GetCaptureProperty(Emgu.CV.CvEnum.CapProp.FrameHeight); frameWidth = (int)vc.GetCaptureProperty(Emgu.CV.CvEnum.CapProp.FrameWidth); camera = new Texture2D(frameHeight,frameWidth, TextureFormat.RGB24, false,false); } I am getting images in this part of code and converting the color space as p...