I'm a mechanical engineering student and I started learning to code voluntarily. Since I can't find anyone at school to ask my questions, I'll ask them here. Although my question is simple, I've seen people with similar problems here, but the solutions didn't work for me. I need to use opencv to use it in my robot project.
Anyway my problem is that some code complements are not working for cv2 library and this is wasting me a lot of time. I'm posting a few photos below of which ones work and which ones don't.
[[enter image description here](https://i.stack.imgur.com/Rhenter image description here5NM.png)](https://i.stack.imgur.com/fWbrj.png)
Thank you for your interest and help.
I am sure the python, cv2 and pycharm versions. This may be related to pycharm settings because I have not experienced similar issues in VS Code. But I don't want to use VS Code.
Related
I've recently joined a research group and I'm trying to figure out how to program in Python to set up an ADwin Gold II to speed up data gathering and processing the results. I'm very rusty with coding haven't done any in a year or so, and finding the docs on ADwin very hard to follow.
If anybody could explain how to used the python ADwin commands from the official python addon, or show me to any material that may be useful. This would be enormously appreciated.
Thanks in advance.
Its very hard to find, but on the installation folder, in the software folder, you can find a python Manual. There was no mention of this anywhere in the manual I stumbled across it by pure chance.
Any other poor soul out there, may this be an aid in your suffering.
just started working on my quiz application using python and it has to do with maths(True-False) questions.So whenever i try to copy-paste a question from the internet to my questions array some characters are really messed up.Can anyone help me solve this please? i have searched a lot for a solution but didn't get an answer so far.(I am using Pycharm)
Sometimes there are space/tab conversion errors that occur when copy/pasting from a web source.
If that is the problem you're having in pycharm, just highlight the code that was copied > Edit > Convert Indents.
If this is not what you needed, please edit your question to include the code block containing the "really messed up characters" that you are seeing in pycharm. I'll try to see what's happening there.
Good evening, I'm doing a Python script that automates a very heavy task and to decorate it a little use termcolor to color the texts. Then I use a tool that converts it to EXE using the Cx_Freeze-5.1.1 libraries.
On several occasions I got that the amount and works well, but I've been three days behind this and I can not make it work now. But if I charge a module that if you use that Liberia to return to the EXE load me with the colors and everything.
If someone can lend me a hand I thank you, greetings.
Link to code: https://drive.google.com/file/d/1cuYNSWGf83oCW0Zxci1wf54fnzfHhc7e/view?usp=sharing
Sorry, i dont know how to post in here! :,(
Currently, i want to implement a trading system for steam games (with python).
So, i searched github, but sadly, there are only
https://github.com/Jessecar96/SteamBot
https://github.com/Jessecar96/SteamKit2
Yeah, they works good. But they are C# -- don't tell me python can't do this :).
So, i want to start with the steamkit part. I thought it's not difficult(maybe just some web-apis), but when i kinda review the code of SteamKit2, i find it seems use TcpConnection to Steam Network, don't know how they get the protocol.
Does anyone has any idea about this, i think about use python load steamkit2.dll, but im really noob with C#
You don't want to use the SteamKit2 port on that repository. It is a branch (and an out dated one at that) of the official SteamKit2 repository. It also looks like they are attempting to get rid of the branch based on this issue discussion.
To answer your question, there is a port of SteamKit to Python. It is called PySteamKit and is written by one of the contributors to SteamKit2.
Unfortunately, there doesn't seem to be much documentation in the Wiki of either the official SteamKit or the Python port on how to use the package. You may have to look at the Samples provided by SteamKit which are in C#.
So, Google App Engine doesn't look like it's going to include the Python Imaging Library anytime soon. There is an images api, but it's paltry, and inadequate for what I need.
I'm wondering what Python only (no C-extensions) there are that can replace the Image.paste and the ImageDraw modules. I don't want to write them myself, but that is an option. I'm also open to other solutions, such as "do the processing somewhere else, then call via api", if they're not too ugly. (For the record, the solution I just suggested seems pretty ugly to me.)
How have others gotten around this?
(I'm not wedded to GAE, just exploring, and this looks like a deal breaker for my app.)
Notes:
For me, crop, resize is not enough. In particular I need
paste (replace part of an image with another.... can be faked with "compose")
draw (for drawing gridlines, etc. Can be faked as well)
text (write text on an image, much harder to fake, unless someone wants to correct me)
My skimpygimpy.sourceforge.net will do drawing and text, but it won't edit existing images (but it could be modified for that, of course, if you want to dive in). It is pure python. see it working on google apps, for example at
http://piopio.appspot.com/W1200_1400.stdMiddleware#Header51,
That's an experimental site that I'll be messing with. The link may not work forever.
Your assumption is wrong. If you use the Python 2.7 runtime, you can use PIL (version 1.1.7) as documented here: https://developers.google.com/appengine/docs/python/tools/libraries27.
This article also explains how to enable PIL for your app.
BTW, the last comment in the bug you referenced also mentions it.
I don't know if it has all features you want, but I have been messing with PNGCanvas, and it does some things I have done before with PIL
Now according to this ticket "On the Python 2.7 runtime, you can import PIL and use it directly. It's the real PIL, not a wrapper around the images API."