Serial Graphical LCD control with Python over SPI from Raspberry Pi [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to use the Sharp LS027B7DH01 LCD display here: http://www.sharpmemorylcd.com/resources/LS027B7DH01_Spec.pdf
http://www.mouser.com/ProductDetail/Sharp-Microelectronics/LS027B7DH01/?qs=muFWWzTLGEIPdePNc1A/NQ==
I need to control it with a Raspberry Pi programmed in python 2.7. It is a 400x240 display controlled via SPI, but no controller chip part number is identified. There are only 4 commands to write to it, and each display line is written one at at time. I've not been able to find an existing driver to use with it (but honestly, I'm not sure I am searching for the right things)
I could write a driver from the ground up to do text and graphics and everything, but it seems like a lot of work, and surely something like this has to already exist...
Any assistance would be appreciated!

The best solution I have found is to create bitmaps of the entire screen area with other tools such as pybmp, PIL, etc and simply dump that image to the LCD for display.

Related

Can I fake a video stream in Zoom (or fake it using packets so as to work universally)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Currently, I have yet to find anything online using Google. However, what I'm trying to do is to take a pre recorded photo or video, and intercept my camera's capture. Similar effect to holding up a printed photo to a camera. Also similar to spy-type movies like James Bond/007, or like in the first National Treasure. I would prefer to use python, however, I do understand the basics of Java and C++. This is mainly for Google Meet and Zoom. I prefer to directly manipulate the camera.
I'm not sure how to solve this with programming, I did however find this article about fake attending a Zoom meeting using a pre-recorded video and play it as the virtual background. Maybe it will help you.
Link to Article: https://gadgetstouse.com/blog/2020/05/11/fake-attend-boring-zoom-meeting/

Best IDE for fast prototyping with OpenCV [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I want to ask about the best IDE to prototype programs by using OpenCV library.
I’ve been programming with Halcon for 3 years and I would like to learn how to program with OpenCV too. I was thinking about reproducing some old programs that I have created with Halcon, but instead using OpenCV. The problem is that maybe I’m not using the correct IDE (I’m programming with Python using Spyder) or maybe programming with OpenCV is slower than I have expected (I don't discard the possibility that I don’t know the appropriate way to prototype properly by using these tools).
I already know I come from an expensive program that allows me to work with many comforts, but I miss having a window where I can display dynamically the results of the operations than I’m applying. Also, draw some ROIs quickly. Anyways, do you think I’m using the right tools? Do you know some tutorials from which I can learn how to prototype quickly using that IDE?
Thank you in advance!
My suggestion for OpenCV prototyping in a GUI is a program called GRIP (Graphically Represented Image Pipeline). You can download it from GitHub.
It supports many inputs: single image, multiple images, webcam, and even HTTP cameras. You get all the key OpenCV commands, along with some custom ones developed by WPI.
You develop your image processing flow as a pipeline, with filtering blocks such as desaturate, find contours, etc. in which you string the output from one block to the input of another (or multiple). You can then export the pipeline to Python, Java, or C++ (exported as a usable class with a key process function). If you want to see an example, feel free to check out this previous post I wrote!

Programmatically Control Computer in Python [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I searched a lot, but couldn't find any precise answer to my question. I would like to programmatically be able to simulate user interactions with the computer. I would like to target OSX since that's what I am working on. For example, I would launch Dashboard or Mission Control, move the mouse and click on things, open a keyboard, etc.
I wonder if I should use Linux with Xlib or something like that... Would I be more free to execute these kinds of operations? And do you know any libraries that allow them easily, in Python preferably?
This kind of software is called a "robot", or "ui automation", which makes googling a little difficult. Here is one in python: http://code.google.com/p/robotframework/
I like to use Sikuli for this sort of thing. Last time I needed to automate a GUI app on OS X, I wrote a standalone Jython script which used Sikuli as a library.
You can also use the Sikuli IDE if you want to get something working quickly, which can be nice for experimentation.

Single digit clock on Raspberry Pi in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Brand new here, first question! I was a programer in college, some 15 years ago or so, I picked up a raspberry pi to do some tinkering with and one idea was to try to make a clock like my father made the HARD way back in the 70's, a clock that flashes the time one digit at a time. I have my pi all wired up to an IO chip and that connected to a 7-segment display. I have the display fully working. I used some stock code for the IC chip "MCP23017" and was able to build onto that code by pretty much trial and error and EXCEPTIONALLY rusty programing skills. Never used Python before, but so far hasn't been too hard to figure out.
But now I'm stuck and not sure where to even begin next. I can pull the time into my program and print it to the screen as a complete unit. And I created little functions to display all digits 0-9 but I am at a loss how to take that time and split it into single digits and send those codes. Only way I have been thinking requires many pages of if/elif lines, and that seems very wasteful and dumb, I know it should be easier to be done in under a page of code but I'm at a loss where to begin.
(Python programing in Raspberry Pi) # In case I missed mentioning that
Thanks!
Kevin
Here's an example of using an MCP23017 with the raspberry pi
Assuming your function is called display_digit
>>> import time
>>> time.strftime("%H%M%S")
'105404'
>>> for d in time.strftime("%H%M%S"):
... display_digit(int(d))
...

Automated web based GUI testing tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Hi all i want to web based GUI Testing tool. I found dogtail is written using python. but i didnot get any good tutorial and examples to move further. Please Guide me weather dogtail is perfect or something better than this in python is there?. and if please share doc and example.
My requirement:
A DVR continuous showing live video on tile(4 x 4 ), GUI is web based(mozilla) . i Should be able to swap video and check log and have to compare actual result and present.
Selenium is designed exactly for this, it allows you to control the browser in Python, and check if things are as expected (e.g check if a specific element exists, submit a form etc)
There's some more examples in the documentation
Project Sikuli is a similar tool, but is more general than just web-browsers
Selenium provides a python interface rather than just record your mouse movements, see http://selenium-python.readthedocs.org/en/latest/api.html
If you need to check your video frames your can record them locally and OCR the frames looking for some expected text or timecode.
For Simple form based UI Testing. I have created a framework using python/selenium/phantomjs although it can do complex stuff too. I am yet to document it. (If you don't need to run firefox you don't need to install phantomjs)
https://github.com/manav148/PyUIT

Categories