How could I load a folder of images into a csv file using python?











up vote
-3
down vote

favorite
1












I have a directory of about photos I would like to load into a csv file, is there a way to do this in python? Ideally, I would like to place them in an existing csv file that has a bit of data already. Would I be able to select which cells are to be filled with images?










share|improve this question
























  • this may be useful
    – cybernetic.nomad
    Nov 22 at 16:36










  • @YvesDaoust sorry, but I think you misunderstood my question. You most definitely can load an image to a csv file, it treats it as a vectorized image, and loads the corresponding values into the cells. I am able to manually do this in matlab. My question was how to loop through a whole directory of images and load them using python, rather than manually one at a time.
    – Brent
    Nov 22 at 17:03










  • @cybernetic.nomad Thank you, this gave me a good bit of insight.
    – Brent
    Nov 22 at 17:04










  • Oooops, yes, you can embed as a MIME type (but there is no vectorization).
    – Yves Daoust
    Nov 22 at 17:24










  • Question has nothing to do with machine-learning - kindly do not spam the tag (removed).
    – desertnaut
    Nov 24 at 14:00















up vote
-3
down vote

favorite
1












I have a directory of about photos I would like to load into a csv file, is there a way to do this in python? Ideally, I would like to place them in an existing csv file that has a bit of data already. Would I be able to select which cells are to be filled with images?










share|improve this question
























  • this may be useful
    – cybernetic.nomad
    Nov 22 at 16:36










  • @YvesDaoust sorry, but I think you misunderstood my question. You most definitely can load an image to a csv file, it treats it as a vectorized image, and loads the corresponding values into the cells. I am able to manually do this in matlab. My question was how to loop through a whole directory of images and load them using python, rather than manually one at a time.
    – Brent
    Nov 22 at 17:03










  • @cybernetic.nomad Thank you, this gave me a good bit of insight.
    – Brent
    Nov 22 at 17:04










  • Oooops, yes, you can embed as a MIME type (but there is no vectorization).
    – Yves Daoust
    Nov 22 at 17:24










  • Question has nothing to do with machine-learning - kindly do not spam the tag (removed).
    – desertnaut
    Nov 24 at 14:00













up vote
-3
down vote

favorite
1









up vote
-3
down vote

favorite
1






1





I have a directory of about photos I would like to load into a csv file, is there a way to do this in python? Ideally, I would like to place them in an existing csv file that has a bit of data already. Would I be able to select which cells are to be filled with images?










share|improve this question















I have a directory of about photos I would like to load into a csv file, is there a way to do this in python? Ideally, I would like to place them in an existing csv file that has a bit of data already. Would I be able to select which cells are to be filled with images?







python excel csv image-processing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 14:00









desertnaut

15.9k63465




15.9k63465










asked Nov 22 at 16:33









Brent

14




14












  • this may be useful
    – cybernetic.nomad
    Nov 22 at 16:36










  • @YvesDaoust sorry, but I think you misunderstood my question. You most definitely can load an image to a csv file, it treats it as a vectorized image, and loads the corresponding values into the cells. I am able to manually do this in matlab. My question was how to loop through a whole directory of images and load them using python, rather than manually one at a time.
    – Brent
    Nov 22 at 17:03










  • @cybernetic.nomad Thank you, this gave me a good bit of insight.
    – Brent
    Nov 22 at 17:04










  • Oooops, yes, you can embed as a MIME type (but there is no vectorization).
    – Yves Daoust
    Nov 22 at 17:24










  • Question has nothing to do with machine-learning - kindly do not spam the tag (removed).
    – desertnaut
    Nov 24 at 14:00


















  • this may be useful
    – cybernetic.nomad
    Nov 22 at 16:36










  • @YvesDaoust sorry, but I think you misunderstood my question. You most definitely can load an image to a csv file, it treats it as a vectorized image, and loads the corresponding values into the cells. I am able to manually do this in matlab. My question was how to loop through a whole directory of images and load them using python, rather than manually one at a time.
    – Brent
    Nov 22 at 17:03










  • @cybernetic.nomad Thank you, this gave me a good bit of insight.
    – Brent
    Nov 22 at 17:04










  • Oooops, yes, you can embed as a MIME type (but there is no vectorization).
    – Yves Daoust
    Nov 22 at 17:24










  • Question has nothing to do with machine-learning - kindly do not spam the tag (removed).
    – desertnaut
    Nov 24 at 14:00
















this may be useful
– cybernetic.nomad
Nov 22 at 16:36




this may be useful
– cybernetic.nomad
Nov 22 at 16:36












@YvesDaoust sorry, but I think you misunderstood my question. You most definitely can load an image to a csv file, it treats it as a vectorized image, and loads the corresponding values into the cells. I am able to manually do this in matlab. My question was how to loop through a whole directory of images and load them using python, rather than manually one at a time.
– Brent
Nov 22 at 17:03




@YvesDaoust sorry, but I think you misunderstood my question. You most definitely can load an image to a csv file, it treats it as a vectorized image, and loads the corresponding values into the cells. I am able to manually do this in matlab. My question was how to loop through a whole directory of images and load them using python, rather than manually one at a time.
– Brent
Nov 22 at 17:03












@cybernetic.nomad Thank you, this gave me a good bit of insight.
– Brent
Nov 22 at 17:04




@cybernetic.nomad Thank you, this gave me a good bit of insight.
– Brent
Nov 22 at 17:04












Oooops, yes, you can embed as a MIME type (but there is no vectorization).
– Yves Daoust
Nov 22 at 17:24




Oooops, yes, you can embed as a MIME type (but there is no vectorization).
– Yves Daoust
Nov 22 at 17:24












Question has nothing to do with machine-learning - kindly do not spam the tag (removed).
– desertnaut
Nov 24 at 14:00




Question has nothing to do with machine-learning - kindly do not spam the tag (removed).
– desertnaut
Nov 24 at 14:00

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435100%2fhow-could-i-load-a-folder-of-images-into-a-csv-file-using-python%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435100%2fhow-could-i-load-a-folder-of-images-into-a-csv-file-using-python%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

How to ignore python UserWarning in pytest?

Alexandru Averescu