I am doing a small program about using an image to calculate the Message digest, but what i also need to do is i need to put the another image into this original image, and put this modified image (original image embed by another image) to cloud.
There is my question that if i tried to download this modified image from cloud, and any way i can remove image which was embeded into original image, and using this original image to calculate to get Message digest the same as the original Message digest???
There are two ways i was trying to do, and i drew it through paper(maybe easy to understand what i am trying to say) below
Method 1
Method 2
Related
My Linux gcc program is generating an image as a two dimensional array of pixel data, that I want to print out through CUPS.
The available CUPS_FORMAT_??? is very dicouraging. Tried CUPS_FORMAT_AUTO and send the image as TIFF, it failed. The TIFF data is verified by making perfectly viewable .TIF of it. Making JPEG is far too complicated, but can CUPS_FORMAT_RAW be used? I fails to find a spec of what to feed the cupsWriteRequestData() with using this format. All searches ends up with priner side stuff, nothing about client API. Any help, please?
Just looking for guidance or even a general outline on approach here.
I am using azure search to OCR a batch of pdfs. I have turned on hit highlighting and I am successfully getting results back there that I am looping through / displaying in my view for the end user. I was looking on expanding that functionality to show the pdf images with the highlighting on the images themselves like in the JFK azure example. I am not proficient in react and seem to be getting lost there.
I am assuming I need to save off the OCR images to a data store for reference using the normalized_images that are created? I do have pdfs locally I can load but assume the OCR images maybe different. Have turned on GeneratedNormalizedImagesPerPage and turned on cache which creates files in my storage account.
Then I assume I need to pull the associated image, display it, use the highlight results and pull a corresponding bounding box where the phrase was detected? Problem with that approach is that I do not see any association between the highlight hit and the location (bounding box) of the hit nor the associated image file the hit was on.
Probably way off on approach here but any guidance is appreciated.
Edit 1
I did noticed the items on this page in the JFK example: https://github.com/microsoft/AzureSearch_JFK_Files/tree/master/JfkWebApiSkills/JfkWebApiSkills
Would trying to replicate the ImageStore (so those are stored in my storage account) and then the HocrGenerator (appears to handle points in a doc) into my skillset for my index be the approach?
There are a few steps here:
you need to save the layoutText from the OCR skill somewhere the UI can access it. The JFK Files demo converts it to a HOCR (to display in the UI) and saves it in index as a field in the index so that it is retrieved in the search results. HOCR isn't necessary and you may find it more efficient to store the layout in blobs using a knowlege store object projection.
save the extracted images into blob storage using a file projection into the knowledge store. Keep in mind that the images may be resized in the process and the coordinates will match the resized image saved to the store. If you want to map the coordinates to the original image see this.
At search time, map the highlight to the the metadata. You will find this code in the nodejs frontend, however it may be simpler to follow in the original demo by following the code here. Essentially you just find the first occurrence of the highlighted word in the metadata, display the associated image, and calculate the bounding region of the word.
I am trying to find logo exists in an image or not, where i have create some logos list in png format.
I have tried using opencv with nodejs.
I have used OPENCV image-templating but I am not getting actual solutions.
Example:
I have some list of logos.
I have captured an image.
Not i have to detected in the image there is any logo exists or not.
have you tried training an ai to look at the logos you want to find or image recognition?
I google it, but the number of library are overwhelming,
I'm looking for a image manipulation library, written in Python that I can implement in Flask;
I need to solve this simple sets of operations:
Upload the image.
Resize / scale the image (maintained the proportions).
Save the new image in a specific path with a specific name.
Remove the original image.
Also I notice that many promising project are unchanged in the last 2 years....
I have a nodejs server that receives images encoded in base64 through a websocket. I would like to do some image manipulation on those images and send them back. I searched a little bit on the net to find some library to help me doing this, but all I could find were libraries that take images stored somewhere in the server side, do the manipulation and save back the image. Apparently all of them take as input a string containing the filename of the image, so I guess under the hood they are fetching the image manually through a file stream.
My question is, is there a library that may help me working directly on base64 data (that is, passing the data as input to the functions) or should I save every time the image on the server, modify it and send it back? I would rather not go with the latter because I'm working on some high-performance application, and all this saving/loading looks a waste of cycles. Otherwise, do you see some other way I could achieve this (that is, getting the image file without saving and loading it back, for example)?
Thanks.
Work with Buffers.
var img = new Buffer(img_string, 'base64');
// Work with your images like other tutorials do.
This one can work with "readable streams": https://github.com/aheckmann/gm
See the second set of examples in the readme.