I need a creative way, to convert a image, to a computer code?

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 23,141
    Win 10 Home ♦♦♦19045.4291 (x64) [22H2]
       #11

    OtherWay1982 said:
    I do not know what Im asking exactly. I need your help.
    How do I convert a image, so it can be read by a computer program and it able to see clearly the image, in this code, and its details are "exact" representation of the visual image?

    If this is not clear I will clarify if you need.

    Any image for starters, like a chart, or a picture of a tiger, etc.

    Update: i forgot to mention im trying to get Chat Gpt to interpret a image for me. with numbers and words etc. But it has no way i know of yet to do this. I saw someone do it online but that is beyond my skill.




    Do you mean like this...


    I need a creative way, to convert a image, to a computer code?-aliens-guy.jpg

    I need a creative way, to convert a image, to a computer code?-image1.jpg



    ASCII art generator for geeks! - Convert images/pictures to ASCII art online! (HTML/text)
      My Computer


  2. Posts : 2,905
    Windows 10 Pro for the Bro
       #12

    Imagine doing that by hand....
      My Computer


  3. Posts : 1,581
    win10 home
       #13

    Try Microsoft's own tool,found in ---Powertoys and called Text Extractor. It is an Optical Character Recognition tool and might suit your needs.
    A read through the manual would be helpful.
      My Computer


  4. Posts : 1,748
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #14

    Why not convert the image using Base64 encoding?

    For example, an image:
    I need a creative way, to convert a image, to a computer code?-taskbar_search_box_sml.png

    The same image after Base64 encoding (using AutoHotkey as a wrapper for the encoding):
    I need a creative way, to convert a image, to a computer code?-base64_code.png

    You won't understand it... but ChatGPT will.

    EDIT:
    I tried to paste the AutoHotkey scripts I use to encode and decode images but I get a message that I'm blocked. I use this method to include images within code rather than attach them as file resources. Quite understandably, some websites object to this because, like many other things, the method can be misused.

    Hope this helps...
      My Computer


  5. Posts : 739
    Windows 10/11
       #15

    OtherWay1982 said:
    I saw someone do it online but that is beyond my skill.
    Could you provide a link to what you "saw"? That might clear up some mysteries here.

    OtherWay1982 said:
    trying to get Chatgpt to see it. sorry i didnt make that clear at the start.
    Sorry, what you want is still not clear to me. A step by step description of what you want to do and what results you would like to get would really help here. My best guess is that you're trying to determine if ChapGPT can "recognize" an image, similarly to the way you can type "cat" in Google photos and it will return some cat pictures from your photo collection. If you're looking to train ChapGPT to recognize images. Well, good luck with that.

    If you want to convert images to ascii art, one link was already posted and you can find more by searching for ascii art generator

    BTW, I typed "cat" into Google photos and it returned 14 pictures; 12 cats, one sock, and one electrical box. My photo collection contains dozens of cat pictures. So, not such a great result there.
      My Computer


  6. Posts : 3,274
    Win10
       #16

    I gather that the OP wants to send ChatGPT an image for it to interpret. But as ChatGPT only works for Online links to images (?) , he/she needs to find an alternative method to do so. One method suggested by Rick was to base64 encode the image using an ahk script, another would be through eg. a powershell script or through an online converter (like JPG to Base64 | Image | Base64 Encode | Base64 Converter | Base64 ) and send it like as text like so:

    Can ChatGPT do image recognition? | by Alexa Steinbruck | Medium

    pn: I don't have access to ChatGPT so can't test any further.
      My Computers


  7. Posts : 4,776
    Windows 11 Pro 64 Bit 22H2
       #17

    Can't you login here? https://chat.openai.com/chat
      My Computer


  8. Posts : 316
    Windows 10 Home
    Thread Starter
       #18

    Thanks everyone. May work okay for the time being.

    - - - Updated - - -

    RickC said:
    Why not convert the image using Base64 encoding?

    For example, an image:
    I need a creative way, to convert a image, to a computer code?-taskbar_search_box_sml.png

    The same image after Base64 encoding (using AutoHotkey as a wrapper for the encoding):
    I need a creative way, to convert a image, to a computer code?-base64_code.png

    You won't understand it... but ChatGPT will.

    EDIT:
    I tried to paste the AutoHotkey scripts I use to encode and decode images but I get a message that I'm blocked. I use this method to include images within code rather than attach them as file resources. Quite understandably, some websites object to this because, like many other things, the method can be misused.

    Hope this helps...
    Hard for me to understand HA. But noted. Everyone gave good answers.
      My Computer


  9. Posts : 739
    Windows 10/11
       #19

    OtherWay1982 said:
    Hard for me to understand HA. But noted. Everyone gave good answers.
    AHK?

    Anyhow, no need for a script. You can convert any file to base64 using certutil. For example:

    certutil -encode somepic.jpg somepic.txt
      My Computer


  10. Posts : 316
    Windows 10 Home
    Thread Starter
       #20

    LesFerch said:
    AHK?

    Anyhow, no need for a script. You can convert any file to base64 using certutil. For example:

    certutil -encode somepic.jpg somepic.txt
    It's Greek to me I'm not sure what this means. Have you tested it do you know it works? The picture I have is kind of intricate it has words it has numbers, so forth.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:05.
Find Us




Windows 10 Forums