Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote control car example with OpenCV UI #46

Open
wants to merge 30 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
25c9850
A simple script showing how to remotely control Cozmo while streaming…
davinellulinvega Mar 25, 2021
204a759
Scale up and sharpen the image from the camera before sending it to t…
davinellulinvega Mar 25, 2021
b555b60
Add a comment noting that the same sharpening effect could be achieve…
davinellulinvega Mar 25, 2021
e7c1fce
Add constants to more easily configure the unsharp mask algorithm.
davinellulinvega Mar 25, 2021
2edc17e
Miscellaneous reformatting to conform as much as possible to PEP8.
davinellulinvega Mar 25, 2021
2902d3a
Add pynput as a new requirement.
davinellulinvega Apr 21, 2021
63f22ad
Rewrite the whole example of remote controlling Cozmo using OpenCV an…
davinellulinvega Apr 21, 2021
27cefeb
Fix some of the syntactic warnings.
davinellulinvega Apr 21, 2021
a7db2bd
Since step() only processes frame, the call to queue.get() can be blo…
davinellulinvega Apr 21, 2021
f0307c1
Turns out you can put the display into a thread, so removing the step…
davinellulinvega Apr 21, 2021
8d14e92
Add comments around the cv.waitKey() function and increase the interv…
davinellulinvega Apr 21, 2021
13d360f
Replace the time.sleep() function with Event.wait() to prevent the ma…
davinellulinvega Apr 21, 2021
01e5e22
Add an ignore rule for pre-commit configuration file.
davinellulinvega Apr 22, 2021
c0bed55
Move the GO_ON global variable inside the OpencvRC class.
davinellulinvega Apr 22, 2021
9fc8183
Reformatted the entire file to take advantage of 120 characters per l…
davinellulinvega Apr 22, 2021
fa0e80a
Move the code controlling Cozmo's movements, head tilt, lift, and lig…
davinellulinvega Apr 22, 2021
78b7d3f
Move the code in charge of displaying the video feed in a separate cl…
davinellulinvega Apr 22, 2021
3fcdeff
Adapt the OpencvRC class to use both the Controller and Display classes.
davinellulinvega Apr 22, 2021
11497be
Move the go_on flag from the OpencvRC class to the controller.
davinellulinvega Apr 22, 2021
e57f5a2
Have the Display and Controller class destroy only their respective w…
davinellulinvega Apr 22, 2021
f8b6cd0
Indicate to the image queue when the frame has been displayed.
davinellulinvega Apr 22, 2021
662240d
Decrease the wait time before processing the next frame to 1 ms.
davinellulinvega Apr 22, 2021
bf232b9
Remove the second initialization of cozmo's client in the Controller …
davinellulinvega Apr 22, 2021
8ec1b4f
Add a timeout to the video displaying process, to avoid any blocking …
davinellulinvega Apr 22, 2021
ed2e5f4
Rename the Controller class into RemoteControl, to better describe it…
davinellulinvega Apr 22, 2021
2c93b3d
Start each OpenCV window in its own thread to prevent any freezing of…
davinellulinvega Apr 23, 2021
b97d596
Use a track bar to set the head light state, making it clearer in whi…
davinellulinvega Apr 23, 2021
00b96cf
Minor fixes in the label of some track bars.
davinellulinvega Apr 23, 2021
51b1b4f
Implement a wrapper around the head_light setter, to be able to use i…
davinellulinvega Apr 23, 2021
fd62e59
Move everything concerning the display into the Display class and pas…
davinellulinvega Apr 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ __pycache__/
/.mypy_cache/

/examples/*.png

.pre-commit-config.yaml
Loading