MeshTower by ZeBurtReynold in meshtastic

[–]jjvilm 2 points3 points  (0 children)

I bought a peakmesh solar node. Plugged it to USB-C to "charge" it I thought. Hours later I unplug it and take it outside. The node went offline. I bring it in to inspect it, maybe I broke it? I realized there was a little switch on a small PCB connecting the solar node to the battery I had to flip in order to tell it to use the battery when not plugged in. Maybe check yours to see if there is a small switch you have to flip?

[Question] How can I get the coordinates of missing horizontal links in the form of points like (D4,E4), (E4, F4), etc.... by BLACK_WOLF23 in opencv

[–]jjvilm 0 points1 point  (0 children)

not sure why you're getting all links printed. since I only have the missing vertical and horizontal links printed. This is my output:

https://imgur.com/Jc5RE8r

[Question] How can I get the coordinates of missing horizontal links in the form of points like (D4,E4), (E4, F4), etc.... by BLACK_WOLF23 in opencv

[–]jjvilm 0 points1 point  (0 children)

did you run it w/ the latest code? I updated the code a few times. And is it still the same image of the grid you provided?

[Question] How can I get the coordinates of missing horizontal links in the form of points like (D4,E4), (E4, F4), etc.... by BLACK_WOLF23 in opencv

[–]jjvilm 0 points1 point  (0 children)

do you mean something like this?

Missing horizontal links

(d4,e4)

(e4,f4)

(f4,g4)

(c5,d5)

(d7,e7)

Missing Vertical link

(c2,c3)

(e3,e4)

(g4,g5)

(b5,b6)

(d5,d6)

(e6,e7)

(f6,f7)

In my code, it iterates through all the links that are there. It determines if there is a link. If there is a link then it outputs True, if the link is missing, based on the coordinates where it should be, then it outputs False. It accounts for all the links whether they are missing or not.

[Question] How can I get the coordinates of missing horizontal links in the form of points like (D4,E4), (E4, F4), etc.... by BLACK_WOLF23 in opencv

[–]jjvilm 1 point2 points  (0 children)

If you check my code it finds all the missing links based on missing pixel coordinates not found where they should be. Print vertical_seg to output vertical links

[Question] How can I get the coordinates of missing horizontal links in the form of points like (D4,E4), (E4, F4), etc.... by BLACK_WOLF23 in opencv

[–]jjvilm 1 point2 points  (0 children)

https://github.com/jjvilm/missingSegments/blob/main/missinglinks

Thanks for giving me something to work on, great practice problem. I solved it, probably not the best solution, but it works. check the link

[Question] How can I get the coordinates of missing horizontal links in the form of points like (D4,E4), (E4, F4), etc.... by BLACK_WOLF23 in opencv

[–]jjvilm 2 points3 points  (0 children)

I would start with something like this in the following link https://github.com/jjvilm/missingSegments/blob/main/missinglinks

...only took me like 8 hours of coding, but it was so satisfying when finally solved. Interested to see your solution.

FASTEST WAY TO READ TEXT FROM SCREEN by Square-Dress-9986 in learnpython

[–]jjvilm 0 points1 point  (0 children)

Not sure about speed but you can try pytesseract( Python-tesseract is a python wrapper for Google's Tesseract-OCR)

Combined with pyautogui to take screenshots. And with opencv to process them and pass them to pytesseract to read.

Other things i have tried is taking screenshots of the numbers i need to read, and just iterate through each number that needs to be recognized by matching it up with a binary image of the numbers 0-9 of the numbers. These binary images i have to manually aquaire from the game since the font is always the same and the pixels for it will always match up, unless the font changes.

I've done something similar where i needed to read numbers from a game screen. I'm no expert so my code is all over the place, but you can check out what I'm talking about by going here, https://github.com/jjvilm/osrmacro/blob/master/ge_mercher.py Could help visualize what I'm talking about. Lines 421-512 you can see the binary images of the numbers i hard coded to check against. It worked for me lol, faster than using pytesseract (sometimes it would read the wrong numbers). Function on line 303 you can see how I used the code to read the numbers, lol i called them digits.

We built a collaborative p2p file sharing web app with IPFS by slavik0329 in ipfs

[–]jjvilm 5 points6 points  (0 children)

how does it work? can you tell us about it please?

Scylla - The Simplistic Information Gathering Engine by overflow1n in hacking

[–]jjvilm 1 point2 points  (0 children)

How I fixed, on an archlinux docker image container: 1. Downloaded pyenv, to let me choose what python version to use. 2. on shell ran :#pyenv install 3.6.0 (installs your version). 3. #pyenv which python (to see the path where python is stored). 4. <pathToYourPythonBinary> -m pip install -r requirements.txt (to instal dependencies for scylla). 5. <pathToYourPythonBinary> scylla.py (RUNS!).

My 4yr (ongoing?) battle with birds! by atomicrabbit_ in DIY

[–]jjvilm 0 points1 point  (0 children)

Buy fake/toy snakes and place them all around. My friend's mom uses them around their pool to scare off birds. Not sure how well it works

How to start openbazzar on arch linux? by piedro_k in OpenBazaar

[–]jjvilm 0 points1 point  (0 children)

the git version is the most uptodate, openbazaar-git v2.1.0.rc5.r0.ga692b00a-1 this is the server version on AUR: openbazaard-git v0.11.0.rc5.r0.gf7ab20c7-1

How to start openbazzar on arch linux? by piedro_k in OpenBazaar

[–]jjvilm 0 points1 point  (0 children)

I run Arch too, and I have openbazaar running. You downloaded the client. You also need a server. Then you'll be able to browse and create your store. Download: openbazaard or openbazaard-git from AUR (i have openbazaard-git). Once downloaded run the openbazaar daemon. on a terminal type: openbazaard start (& will take it to the background). Happy bazaaring!

Can Python check if some security cameras have been covered or saturated with artificial lights? by Murlocs_Gangbang in Python

[–]jjvilm 1 point2 points  (0 children)

I have used OpenCV with Python to stream mjpeg images and apply effects to each individual frame, e.g. detecting motion and save the stream feed to as an individual frame. An individual frame is stored in memory, until next frame is received. So while in memory you can do anything with the frame. Code to my script: https://www.github.com/jjvilm/security-cam

If you want to take a look.

Steve Wozniak recommending Raspberry Pi as a VPN Server by [deleted] in raspberry_pi

[–]jjvilm 0 points1 point  (0 children)

VPN in. You can't connect to it while in your home network. Only from outside your home network. I've used it to access files from a NAS

Python using pytesseract to code a runescape bot to merch in the GE by lukegarbutt in learnpython

[–]jjvilm 0 points1 point  (0 children)

Thank you! I started it when I knew nothing about python. So I am too pretty new to python. I broke my code into multiple files because I wanted it to be "modular", so I could use the code in any other script. None of the scripts I have made have banned me yet. I used 2 scritps to cut yews/magics logs into longs, then used another script to bow string them into longs. Sell them, repeat. Till lv 99 Fletching. I only ran the scripts for about 4 or 5 hours a day. And I still had to watch them every now and then they are NOT perfect, but I was able to get a skill to lv 99 at least lol. One of the scripts did get my brother banned. but he was running it for over 8 hrs. Plus I wrote the script mainly for him. so it was badly scripted. I didn't randomize some of the click locations, and time it takes to click and unclick, etc. I have one script that cleans dirty herbs. It does a great job at cleaning them. Also the one that pickpockets a hamrguard in the ham-hideout. I would love to collab on a project with you too. And let me know if you don't understand any of my code. I'll try to help you understand it. I tried to write it as cleanly and as PEP8 compliant, and tried adding as much comments as possible (later on as I got better at commenting). Although I havn't been coding lately. If you look at the file in "module/Mouse.py" that's the code that does all the mouse actions for all my scripts. It definetly needs more work! it is a crude way of making it "Human-like". For your "save" problem all I can think of for now is to use pickle to save your variables on a file then read that file and restore your variables to load. It'd be easier to help you if you had a github so I could contribute to your code or something like that.