Monday, February 17, 2025

Old drafts

 I found some drafts from more than 5 years ago. 

I published them without proofreading and fact-checking. If you find something wrong then that's just how naturally thoughts operate. This is a place to vent and throw my thoughts out without withholding emotions and uncertainties. Just say whatever. 

It's freely to be able to type anything on my dev progress. If I'm wrong, then that's okay. I learn from it. If I knew better, I'd edit it. But, I choose not to for now. I want to publish my drafts as a way to publish even when it's not done. It's amazing to look back at my past thoughts. Too bad publishing doesn't show when the drafts were created, but they were created around 2018(?)

 I ran the video at 1.2x. 1 was at an ok pace but not fast enough for me

I didn't follow the pre-req and didn't have experience with React and Typescript. I'd figure it's a step-by-step tutorial that I don't need to know it yet professionally to build a chat app. I also have experience with coding though it's fading away. Programming languages almost all look alike. Once you know 1 or 2 major OOP programming language or spent a long time on it then you're able to do the rest. even if it's just 1 class on data structures and algortihms. Typescript and React is similar to Javascript. 


I got this straight out of your zipped folder:


Even when I adjusted the file locaiton, it was still not working sometimes like how it says the imports are wrong

[Traffic Detection] Progress so far, and next integration

Steps
Input Sample Data
Hough Circle method


nal frame image from the video is initially converted to grayscale image and then blurred 
Next Integration

Importing a 2014 Android Project from GitHub [Edit Later]

Yes, it worked, and yes, I had errors importing back

Sunday, January 3, 2021

Linux Achievement Certificate

 A quick blog about how I am finished with 2 Linux courses, and only 1 course away from gaining a certificate. Although I believe that it's pretty much similar to a participation ribbon, it's still nice to have it as a good job to finish the classes. 

Tuesday, April 7, 2020

[Rant] I hate it whenever I want to start a fun tutorial and I'm already stuck at step 1.

I started a python keylogger and I was so stuck on why my code doesn't record the inputted keys. And, it's not the code. It's only 5 measly lines of code. Turns out I needed to go to my computer settings to allow security to recognize that PyCharm is safe to record my keys.

BOOOOOOO

In general, coding tutorials has always been the only tutorials where I stop at step 1. You don't see cooking tutorials stop me at step 1, haha.

Friday, September 28, 2018

Traffic: Should I move or not? (OpenCV + Android) Pseudocode and Algorithms

Story Behind the Project
I complained to my good friends, who can tolerate my late night bombardment, about how I needed a project to keep my mind running productively and busy, aside from exercise and actually working on my real tasks that are much more rewarding later on (e.g. practice technical interviews, clean up my portfolio). I wanted work, where I could look forward to every return home.

My friend said that he'd be ready to test my app, so I guess I'll have to create the app, and do my best to stick to that.

I surely want to test out my app. Although I am not a fan of driving, I've been in the back seat long enough to know that not all traffic lights are perfect and can be a dreadful patience and discipline tester in the same spot for 5+ minutes. This includes sitting in traffic for quite, where we might as well nap there, too.

That's enough to catch at least 25% of a power nap.

Every stopping moment, the app starts finding traffic lights and detects another car movement to check whether you should press the gas pedal or not. The app should also allow you to exit and still run in the background so you can do simple tasks such as check e-mails and playing music. And, shouldn't use so much battery life.

Car Movement Detection
As much as I want to train my own haar cascade, I am impatient and want a running prototype (also this is not even paid and out of learning interest) so I'm going to copy this project: https://www.geeksforgeeks.org/opencv-python-program-vehicle-detection-video-frame/

Or, I can do HSV segmentation: https://www.researchgate.net/publication/251423714_Vehicle_Detection_at_Night_Based_on_TailLight_Detection

American Traffic Lights
There are light patterns for American traffic lights. The light sequence is red, then green to go, and green, flashing yellow, and then red to stop. And, it's vertical rows of 3 circles.

Also, this is a good read: https://autottblog.wordpress.com/programming-the-car/opencv/

Traffic Light and Color Detection
Find 3 circles that are red, yellow, and green in a vertical row, and calculate the distance between those circles to determine if it is a traffic light. By converting the image to HSV to find the 3 circles and its distance.

Pseudocode and Algorithm for Traffic Light Detection
Thanks, researchers, for making it easy for me: https://www.researchgate.net/publication/300581967_Traffic_Light_Recognition_System_for_People_with_Color_Blindness/download

Basically, segment frames into HSV then LOTS AND LOTS of tweaking the threshold. They made a nice flowchart in there. Thank goodness.