Export the dimension of each image to Excel [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to export each dimension (width*height) of hundreds of jpg images to an excel file. So, this excel file will include the name of this image, this image's width, and its height, 3 columns in total. Is there any way I can make it?
Thank you in advance!

The easiest would be with ImageMagick which is included in most Linux distros and is available for macOS and Windows:
magick identify -format "%f,%w,%h\n" *jpg > images.csv
Sample Output
Bean.jpg,656,354
a-0.jpg,800,600
a-1.jpg,800,600
a-2.jpg,800,600
after.jpg,3840,2160
background.jpg,639,454
badge-1.jpg,1200,761

Related

How to convert all images in one folder to numpy files? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I need to do Semantic image segmentation based on Unet.
I have to work with Pascal VOC 2012 dataset, however I don't know how to do it, do I manually select images for the train & val and convert them into numpy and then load them into the model? Or is there another way?
If this is the first one I would like to know how to convert all the images present in a folder into .npy.
if i understood correctly, you just need to go through all the files from the folder and add them to the numpy table?
numpyArrays = [yourfunc(file_name) for file_name in listdir(mypath) if isfile(join(mypath, file_name))]
yourfunc is the function you need to write to convert one file from dataset format to numpy table

Python multiple watermarks at random locations [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a 14 x 10 logo and I would like to use it as a watermaker when a user uploads a picture. The uploaded picture is either a png or a jpeg of at least 250 x 250. What would be the most efficient way to cover the uploaded image with the logo at random locations?

Character recognition from image with low contrast [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have images (about 1000) with different numbers. Using opencv I extracted ROI from these images. Here's a small sample:
And I don't know how to extract these numbers or identify them. For opencv have a small threshold. I tried VGGnet keras (I rotated each image 1 degree to create 360 images as input for tensorflow), but the control image was mostly not recognized. Does anyone have an idea?

I am taking CCD images through my telescope and am wondering what can I do analytically with those images? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
This weekend I'll be taking around 50 CCD images with my Celestron CPC 8in. telescope and would like to use python to analyzie the images. Does anyone have any experience doing this?
Check out the python wrapper for OpenCV:
http://docs.opencv.org/trunk/doc/py_tutorials/py_tutorials.html
This should provide all the power you need to do any image processing tasks you require.
And there are some great tutorials to help you get started.

How can I digitalize graph using Python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to convert an image of a graph (plot) to corresponding data. Is there any python library to do this or maybe some sample code to learn from?
If not, then how do i approach this problem?
You can also use a digitizing software application, to convert graph images to data, that is to numbers. im2graph is free and available for both Linux and Windows. See http://www.im2graph.co.il.

Categories

Resources