Wanted to know about ZPL to image conversion - base64

I have a requirement in my project where in I need to convert the ZPL code to image format. We are not suppose to use Labelary as it is a lisenced product and my clients will not give permission.
Can you please help with an approach?

Use the official docs for getting started. With these informations you can start writing a parser which then can convert the ZPL label to an image. But be aware, that this can be a very timeconsuming task!
Since you don't have have specified your favourite programming language, I can't give you any further advice.

Related

Can Computer Vision (Microsoft Azure) be set to only output specific image tags?

I'm not really too familiar with the programming/coding aspect of Computer Vision. What I can tell from a functional perspective is that it's analyzing an image, then outputting tags based on what it sees. The issue is that the Plugin I use in Wordpress doesn't filter the response of that image analysis. It basically takes my API Key and then echoes the response it receives from Computer Vision to display all of the image tags.
That being said, I have a fairly straight-forward yes or no question. Can Computer Vision be set up to only output specific image tags if they are present in the image? If so, where can I find information on how to do this?
I'm looking at the API reference here: https://westus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-2/operations/56f91f2e778daf14a499f21b
There does not appear to be any setting allowing one to filter the image tags returned by the service. It also appears that the only format it will return a response in is JSON. So the answer would be no.

How to specify the items in reference list using BibTeX? ChemPhysChem LaTeX requirement

I'm revising a manuscript for ChemPhysChem. They just provided a very simple templet here. However, I have some problems meeting the requirement:
Please follow our house style for references for example: [1] X. Y.
Name, A. B. Name, J. Abbr. 2016, 5, 111-120.
This kind of reference hides the title, and I can not find an existing style to meet the need.
I am using the following latex script:
\documentclass{article}
\usepackage[sorting=none, backend=biber]{biblatex}
\addbibresource{ref_r.bib}
What do I need to do to solve the problem? Do I really need to build a new .bst file? Could anyone share their experience on submitting manuscripts on ChemPhysChem using LaTeX?
Don't use biblatex for journal submissions unless your publisher explicitly states that they do accept it. While it is a nice and flexible tool, biblatex is not yet the standard.
Just follow the instructions from the template and use
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%alternatively you may use
\bibliographystyle{unsrt}
\bibliography{mymanuscript.bib}
%and send the .bib file along with your manuscript
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Don't worry if the resulting style might be a bit different from their requirement, they won't use it anyway but convert your source files with their pipeline.
I changed to my latex using BibTeX back, and built a cpc.bst file for ChemPhysChem using the following command with the help of the youtube video:
latex makebst
It would not be that hard to create the bibliography style file using the guide of the above-mentioned video.
And the result looks like
this.

Does Office 365 image search work? If so, how?

According to Microsoft ("Image Analysis" in https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/Enrich-your-SharePoint-Content-with-Intelligence-and-Automation/ba-p/194174, from May 21, 2018), we should be able to search for text within images.
Is this working for you/anyone? If so, I would like to know what you had to do to get it to work.
I have a SharePoint modern team site with PNG images that contain clearly readable text...but search will not find anything. I have requested re-indexing.
I have had a Microsoft Support request (#10638094) open since June 27 with this question/issue, and no one--even after escalation--has been able to answer it.
Based on the article above, it appears that "MediaService" column(s) should be added to the library to support this; however, I can find no such columns in the environment (using PnP export to review).
Naomi Moneypenny and Kathrine Hammervold highlighted this functionality at Ignite 2017 (https://channel9.msdn.com/Events/Ignite/Microsoft-Ignite-Orlando-2017/BRK2181, about 27:00), but it doesn't seem to be available/working (at least not for me).
August 24: So, after research, digging yet further, I have an escalated support ticket at Microsoft (#10638094, unsolved) and there are conversations at https://techcommunity.microsoft.com/t5/Intelligent-Search-Discovery/Search-for-words-in-your-images-in-Office-365/ba-p/135703, https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/Enrich-your-SharePoint-Content-with-Intelligence-and-Automation/bc-p/236625, and Does Office 365 image search work? If so, how?. I have yet to hear of this functionality working for anyone. I will keep digging, and I will certainly post if I hear anything. J
After some digging, from official it seems already released at the end of 2017. However there is no any related doc or official guide to this Text in image search function.
The 2 way i can think of perform text in image search.
Perform OCR yourself on the image before uploading the image and embed the text in image metadata.
Use support image type like IIRC and TIF that image are recognized.
In your case, you can upload the image and have another column that contains text and apply metadata to the image in a list/ library column.
OneDrive in another hand also has this function. For example, search for things like "cat" and it * should* pull up most pictures you have of cats. Its more likely using tag as label for the image instead of reading the picture it self.
Also, i believe OneNote has its index recognizable text and handwriting. Maybe this can point you to the right directions.
*Microsoft Azure's computer Vision offer service to recognized text in image. Maybe this can help.
"Is this working for you/anyone?" Yes, I responded to this post elsewhere and see it posted here, as well. Unfortunately, I cannot tell you HOW to get it to work or to verify that it is correctly configured. I can only suggest a test for you to see if it is working for you, as it works for me. I have not tested every way in which it could or should work. I have only discovered it working with PNGs I inserted into Wiki Pages in SharePoint Online. Those PNGs are generated using Snag-It to take Screen Captures and I do not see where Snag-It would be doing any OCR on the image to embed anything, etc. OCR is not even in the Snag-It help file, so I believe the PNG files are just simple PNGs. I insert them into the SharePoint Wiki page, which uploads them to the Site Assets library. And, when I search for a word in the image, the image is returned as a result - not the Wiki page. So, suggest you try a simple test of just inserting a PNG with text in it into a Wiki Page and give the index a bit of time to run to see if it works for you.
It seems like the functionality has matured recently. I have been testing it more thoroughly, and I have documented the results in my blog at http://www.collaboration-foundry.com/SharePointImageAnalysis.
Bottom line: It works for me in OneDrive and SharePoint (modern and classis), but I've only seen it work on the out-of-the-box Document content type--which limits custom solutions somewhat.
It's cool functionality when it works. Looking forward to seeing Microsoft build on this.
John

Doing custom avatars with nodejs

So I'm wondering if this http://bokehman.com/do_it_yourself_avatars/ is also possible in nodejs.
Basically I want to make a png out of several other pngs (all the same size) that are just stacked one over each other and then save it on the server.
Can I do that? A short example would be great.
Yes it is possible. A "short example" would not be very helpful in your quest. It is better if you learn how to use to tools.
First you need to familiarize yourself with a module like gm that will help you interface with the imagemagick library : https://github.com/aheckmann/gm
Then you will need to learn how to blend and or compose images together with imagemagick: for example see http://www.imagemagick.org/Usage/compose/#blend

Setting opacity for .vtk file

I tried to visualize a brain dataset. Actually, I think it works but I should set the opacity. From what I read on the internet, vtkpiecewisefunction must be used for solution.
However, when I change the code according to http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Medical/Cxx/Medical3.cxx, I encountered with a problem. I do not know how to change the reader and filter part of the code. The code, .vtk file and image that I get exist on the link: https://www.dropbox.com/sh/51kjftvdko3g6s8/wEe88Id9QN
Could you please tell me how I change this? Besides, you may inform me about another way of solution which adjusts the opacity of image.
Please let me know the image that you get is the same with the one on the link because it might be related to the graphics driver of my computer.
Thank you.
When I want to change the opacity, I ause the actor:
actor->GetProperty()->SetOpacity(0.5);

Resources