Adaptive Cards: Slack downrendering of AdaptiveCards not working - c#

We are using AdaptiveCards.We have this working in both channels (Slack and Web), even in slack the adptive card appear as an image while web mode appears in text.
Since this week, slack adptive card is not working, whenever we make a request to show the card it appears the space of the image but the image does not have any content.
I already request support, but regarding I need to close this, I would request if someone face the same problem and how to solve that.
We are using last version of BotBuilder: 3.12.2.4
GitHub Issue
Thank you

This is a known issue discussed at https://github.com/Microsoft/AdaptiveCards/issues/985. It seems a Windows update affected the WPF rendering used by Adaptive Cards, thus sometimes it fails delivering a blank image.
The Adaptive Cards team is still managing the rollout and patching.
Update 12/6
This is now fixed.

Related

How to mimic Microsoft Photos's Clarity feature in ImageProcessor library

I'm trying to improve the identification of a facial recognition in a photo, because sometimes no face is detected using Microsoft's Face API. In this scenario I want to try to improve the quality of the photo. When I do this manually in Microsoft's Windows 10 Photo app by sliding the Clarity bar, I can now detect a face.
Using the C# library called ImageProcessor, I figured Microsoft's clarity feature is improving contrast and possibly GaussianSharpen. I have used a wide variety of combinations of these two in ImageProcessor, but I don't get the same results.
To view someone else who ran into a similar problem, you can click here: Windows 10 Photos App "Clarity" option algorithm
However, I do not have the reputation to ask in a comment if this had been figured out.
imageFactory.Load(img)
.Contrast(100)
.GaussianSharpen(new
ImageProcessor.Imaging.GaussianLayer(10, 1.5, 10))
.Save(sharpenedImage);
Due to not wanting to post pictures of people's faces online, I cannot provide a whole lot of detail, but would appreciate any insights or direction. The link above does have examples of what the clarity slider does.
In my manual testing I slide clarity to 100.
My C# code fixes some images but not all. Microsoft's clarity feature fixes all.

Using ms-appdata:///Local/ In Adaptive Cards

I have been using adaptive cards in the Windows 10 timeline and up to now have been getting the backgroundImage from a URL which works fine. I would like to know if it is possible to switch to using a local image stored in the LocalStorage folder of my UWP app but when I change the backgroundImage to ms-appdata:///Local/Card.jpeg the image does not display and the file is 100% in the directory as it is used fine in the application itself.
Anyone have any ideas and managed to get this working using ms-appdata?
All Timeline UserActivities must be HTTP images today. A primary function of UserActivities is to roam across devices, and there is no guarantee that a given app (and its associated local images) would be available on a device. As an example, Microsoft Launcher recently added support for Timeline.
The Adaptive Cards team is looking to improve this situation by adding support for "data-URIs", which are base64 encoded images directly in the payload. This feature is being implemented now but won't roll out to Timeline until a future release of Windows. Please let us know if this addresses your needs or post any other suggestions on the team's GitHub.
I've tried it as well. Adaptive cards don't work with ms-appdata:///

AForge.NET/Accord.NET Snapshot Maker never connects to back camera for Panasonic FZ-G1 tablet

I'm trying to use the Snapshot Maker sample from the AForge.NET project and on my laptop, it works as intended. There is only one camera ("Integrated Camera") that shows up in the dropdown. However, when I move this executable to a Panasonic FZ-G1 tablet, the dropdown contains an entry for "USB HD Webcam" (front) and "USB2.0 Camera" (back). When I connect to the front camera, the video preview starts within a second. However, when I attempt to connect to the other camera, the AForge control never stops displaying "connecting..."
I've subscribed to all the events I found in an attempt to see if there are errors occurring, but I can't seem to capture anything going wrong. I also had it display whether it IsRunning which returns true. I've checked Windows Event Viewer for anything displayed there and nothing shows up.
Is there anything else I can do to diagnose the connection issues? I need a video preview/high-resolution snapshot capability using the camera on the back for these tablets and I've had no luck with just DirectShow and AForge.NET seemed to be a great alternative to try.
Any ideas? Thanks in advance!
Update
I've since found out that AForge.NET "has become" Accord.NET. The source code moved over to this repo and has been worked on since. However, the same issue still persists.

CANON SDK setting the CUSTOM WHITE BALANCE to the SAVED JPG images

a friend of mine and I have been fighting to figure out how to extend the custom white balance that we could succesfully set on the live view, to the saved JPG image. We are using the Canon SDK 2.1.34 and a EOD 600D camera, programming in C#.
Apparently this is the same problem/procedure connected to applying the Custom Picture modes to the saved image. For us the manual is cryptic. Has anyone a good example on how to achieve that?
Thank you!
Federico
Duplicate from my earlier attempts and question at this post
As far as I know this is not correctly supported (nor documented) in the EDSDK, nor have I encountered public workarounds. It also proves hard to get a good contact in Canon (even from within the company) that can help us all out. EOS Utility internally can do it but uses undocumented PTP calls (that could be recorded and reverse engineered).
Unfortunately, your best bet is to either
shoot RAW and do custom whitebalancing in post. The as-shot WB is just random.
approximate white balance using Color Temperature and custom temperature shift. These can be pushed into JPGs.

Launch IOS Bar Code Scanner From Web Link

I am adding Code 39 bar code scanning functionality to a C# asp.net web app. This function must work with iphone, ipad, android phone, and android tablet. I need the scanned bar code value to be passed back to my web app.
So far I have been able to make this work on android phone and android tablet using ZXing barcode scanner with this method. Unfortunately the current version of ZXing in the App Store (Version 1.1) is currently not capable of scanning 1D bar code types. Through much of my research I have seen that 1D barcode scanning has been ported to later IOS ZXing versions but I'm not an IOS developer and am unsure how to install or enable it.
I have also explored the possibility of using pic2shop's web solution but this only works with UPC and other commercial codes and the bar code must be Code 39 based on my clients requirements.
I have clients all over the country so I can not physically be on site for each one so I need all of the complexity to be on me in my code not on the end user. I realize that the IOS solution will probably not be the same as the droid but I need it to feel as close as possible for the end user because a few of my clients will be using multiple devices and I need to minimize the confusion.
I realize that I have a tall order with a lot of restrictions but any thoughts would be greatly appreciated.
I ended up using CNS Barcode for IOS devices. CNS is a good solution, it does everything that I need but it is not an ideal solution for two reasons:
It is not free. I have no problem with paying for apps, I think that a developer deserves every penny. In my case though this caused an inconveinence to my clients. The small cost is irrelevant when factoring in the benefit of the new functionality but it's hard to sell a product to a client then tell them to make it work you will need to buy this other product.
CNS does not return the result to the calling window/tab, it opens a new tab. In my case this is a problem because the barcode scanner is being used to scan id badges to clock in or clock out employees and may be done 50 times meaning 50 tabs opened.
I was able to create a solution for number two by creating a local key-value storage instance on the new tab along with a key-value change listener on the old tab:
window.addEventListener("storage", onStorageChanged, false);
function onStorageChanged(e)
{
if(/*check for appropriate key-value*/)
{
window.Close();
}
}
Note: This solution may have to be modified to pass the actual barcode result in the local key-value storage instance back to the original tab and use window.Close() to close the new tab if the original tab was not opened via javascript, which is probably more often the case, because window.Close() does not work for windows that were browsed to naturally (not opened with javascript).
Since the number 1 concern is only an inconvenience and the number 2 concern is fixable I will mark this as solved.
Here is another place I found that does it.
http://codecanyon.net/item/mobile-upc-scanner-with-web-proxy-api/10193177

Categories

Resources