Thread: How do I get&use my AI's camera's images if I don't have them beforehand in my code!

  1. #61
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    rrrrr...RRRRRRRRRR.....simplecv is morrrrrrrre NOT simple, lyers, it is not 1 click installer, it is not setting up nthing, I don't even know what I'll be coding in....it's all bull bs.....and I think it doesn't support c++! Only OpenCV does I'm sure..........Humans suck omg humans suck, i soo better, AI and me know what should and will be and how things are hieracied ect...

  2. #62
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    SimpleCV is a python module, according to here. For what it's worth, the code on your site also looked like python. Not every library you find will be a C++ library.

  3. #63
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    OpenCV it is then....can't install it though, it's just so much, hard, strange, stuff, to do...blah...

    So how do you like my sketch so far?
    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
        //Sensory input from camera/etc currently on disk.
    
        //Guess eats sensory input, saves it in memory, then is sent to motors to test.
        //Switches to tweaking positive actions when they're in use.
    
        //Triggers.
    
        //Match-Again Memory.
        //Strong/just sensed/matched senses back-propagate to Triggers and back down to front of Memory.
    
        //Motors.
    
        return 0;
    }

  4. #64
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    OpenCV it is then....can't install it though, it's just so much, hard, strange, stuff, to do...blah...
    So much complaining...

    Things you need to know before you can install a library:

    1. Where your compiler is installed. For example, mine is in "C:\TDM-GCC-32".
    2. Where your library was extracted. For example, I downloaded the self-extracting executable in my Downloads folder.
      Normally, I wouldn't put it there. I would put it with the rest of the project files.
    3. How to add the path to the extracted library to the list of includes.


    If you provide the beginning of the path, then you can write #include "opencv2/core.hpp" like in the examples.

    You should probably know I am linking the manual for codeblocks a lot; you should go to the site and read it when you have problems. It's worth more than 10 seconds of your time.

    OpenCV it is then....can't install it though, it's just so much, hard, strange, stuff, to do...blah...
    Your own lack of experience is a severe problem. I have to admit I am not very long-term optimistic on your success, just because you haven't programmed before. Most people learn how libraries work through books and formal schooling.

    I am pretty sure you will hit a wall.

  5. #65
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    What ya think the walls I'll hit are? Achieving Intelligence that we really are, a simple dumb mechanism? OpenCV? Walls??

  6. #66
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    What difference does it make what I think?

  7. #67
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    But OpenCV isn't just a library to add, by the looks of what I'v seen it wants me to add a envirnoment path ect as one example see below:
    https://www.youtube.com/watch?v=EcFtefHEEII

  8. #68
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    YouTube is not a reliable source.

  9. #69
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    You sayin I only have to add the library yura way you said? Always works?

  10. #70
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by ADVANCESSSS View Post
    You sayin I only have to add the library yura way you said? Always works?
    It always works for codeblocks. Every IDE is different. That's why they all have manuals. But the general process is the same. Knowing where the library is and telling the linker where it is.

    The reason he is setting environment variables is because Microsoft Visual Studio can use them to find things. You are not using Visual Studio as an IDE, so the worst thing that will happen is that you set some variables, and nothing happens in codeblocks. Sounds like a complete waste of time to me.

  11. #71
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    You mean waste of time touching the Environment variables becuase it won't work with CodeBlocks unless I touch CodeBlocks's linker&ect?

  12. #72
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    No, it's a waste of time because codeblocks does not use environment variables to find libraries. Codeblocks is a very clean installing IDE. It doesn't necessarily touch anything windows-related in order to work.

  13. #73
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    So does this do it? I think it does!!, but you quality check it~
    https://www.youtube.com/watch?v=tIm02pxFaZI

  14. #74
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    It's potentially for the wrong version of OpenCV and codeblocks. Is something wrong with the instructions I gave earlier? Do you even like to use your computer and software?

  15. #75
    Registered User
    Join Date
    Dec 2015
    Posts
    142
    Oh and this with pictures too:
    A.3 — Using libraries with Code::Blocks « Learn C++

    I'll try it.

    Idk one of these/two of these walkthroughs may do it:
    -----------------------

    1. Where your compiler is installed. For example, mine is in "C:\TDM-GCC-32".
    2. Where your library was extracted. For example, I downloaded the self-extracting executable in my Downloads folder.
      Normally, I wouldn't put it there. I would put it with the rest of the project files.
    3. How to add the path to the extracted library to the list of includes.



    If you provide the beginning of the path, then you can write #include "opencv2/core.hpp" like in the examples.
    Last edited by ADVANCESSSS; 01-12-2016 at 07:53 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 12-28-2012, 11:14 PM
  2. creating images using C# code
    By synyyy in forum C# Programming
    Replies: 1
    Last Post: 01-26-2011, 11:27 PM
  3. ip camera
    By sgh in forum C# Programming
    Replies: 3
    Last Post: 03-12-2009, 01:50 PM
  4. Following camera
    By pandu in forum Game Programming
    Replies: 5
    Last Post: 06-10-2008, 07:20 PM
  5. Digital Camera -> Slo-Mo Camera??
    By Masa in forum Tech Board
    Replies: 6
    Last Post: 12-24-2003, 11:11 AM

Tags for this Thread