Better HN
topnewbestaskshowjobs
Log inSign up

Breakthrough

1,159 karma · joined Aug 10, 2012 (14y ago) · 217 submissions

Software engineer with a passion for hardware and open source software. Rust, Python, and C++ lover. Author of PySceneDetect.

bcastell.com

github.com/Breakthrough

Submissions

comment 9y ago · link · parent

Hello everyone, I just managed to get everything finished and tested this week, and am finally proud to release the first public version of DVR-Scan (version 1.0).

The Windows builds include all dependencies, while the source distributions will work on all platforms that have Python, NumPy, and OpenCV installed. The code should work with all versions of Python/OpenCV; the Windows build comes integrated with Python 3.5/OpenCV 3.1.

This was created after a user of my first real open source project, PySceneDetect, contacted me and wanted to know if it was possible to detect movement within a static scene (rather than detecting scene cuts/changes), making this my second "real" project.

One major feature I'm working on implementing for the next release is the ability to use a transparent image as a mask so you can ignore some parts of the frame. That being said, even without masking I've achieved great results thus far, and there are plenty of other detection parameters you can tweak some other software doesn't usually include.

Any comments, suggestions, or feedback you might have is most welcome.

32.

DVR-Scan: Detect and Extract Motion Events from Videos/Security Camera Footage(dvr-scan.readthedocs.io ↗)

3 points · by Breakthrough · 9y ago · 1 comment

33.

Media access policy for the 2016 Olympics prohibits creating GIFs(theverge.com ↗)

1 points · by Breakthrough · 10y ago · discuss

comment 10y ago · link · parent

If you use DeMorgan's law on your result, you can simplify it further to ~A | B

comment 10y ago · link · parent

For the curious, here's a link to the Github repo:

https://github.com/Breakthrough/PySceneDetect/

Questions/comments/feedback are very welcome, and feel free to submit any issues or bug reports to the issue tracker on Github.

36.

Show HN: PySceneDetect – Video Scene Cut/Break Detection and Analysis(pyscenedetect.readthedocs.org ↗)

2 points · by Breakthrough · 10y ago · 1 comment

comment 11y ago · link · parent

VPaint was recently migrated to Github; you can download the binaries/source directly from the releases page: https://github.com/dalboris/vpaint/releases

They migrated the project just a couple days ago, so I assume the download links on the main site will be updated in due time.

38.

The Story of the Mexican Fisherman(bemorewithless.com ↗)

1 points · by Breakthrough · 11y ago · discuss

comment 11y ago · link · parent

I initially thought the same thing, but this does address a few things Pygame is lacking for people that are still learning programming/Python. A common question I get is "How would I make a UI with Pygame?" or handle input for different scenes versus the UI, and this seems to abstract it well for those that just want to jump in and get a working game (as opposed to a working game engine...).

comment 11y ago · link · parent

Full Metal Jacket had it's moments of blue and orange, but I'd classify most scenes in the film as 'green'. Then again, Kubrick was known to be obsessive in regards to attention to detail, especially when it came to lighting and colour reproduction.

comment 12y ago · link · parent

One trick I've noticed to make animations/transitions "snappier" and more natural is to use quadratic/square (power of 2) scaling. For fun I did it on this clock just saving it locally - you can do it by modifying line 140 of `bezier_clock.pde` to square the ratio instead of simply assign it:

    animationRatio = ratio * ratio;  // can also replace with sqrt(ratio)
Again, just makes it a little bit 'snappier' (remember you have to hit spacebar to turn on continual animation), and scales it so you can determine the numbers a bit more clear earlier in the cycle because of the scaling on (0.0, 1.0]. This is certainly a fun piece of code to play with.

comment 12y ago · link · parent

This is my only issue with the article - it's alluded that the -v and -b flags only perform multiplication and bit shifting.

By default, this is not true because sox will use a higher bit-count and perform dithering when converting to a lower bit format (ref http://blog.beatunes.com/2014/04/does-24-bit-audio-matter.ht... ) in order to remove the extra bits while reducing the impact on dynamic range.

In all fairness though, this is the same argument used in the Xiph article ( http://people.xiph.org/~xiphmont/demo/neil-young.html ) in an attempt to justify the use of 16-bit over 24-bit, the prior allowing for a comparable dynamic range with the use of appropriate dithering techniques. I just think it's important to note that the process used with sox is doing more than simple arithmetic bit-shifts/multiplication.

comment 12y ago · link · parent

That's awesome, but how much does Europe cost? "Buy our continent, receive a complimentary electric supercar."

--

(Ref: original title was "Europe comes with the fastest electric car")

comment 12y ago · link · parent

I came here to say "you're only as strong as your weakest link", but I have to admit this is plausible as well. However, from a hacker perspective, what difference does it make?

Social engineering tactics are widely known to be very effective in a lot of cases, and the NSA is no different. Snowden was accused in the past of trying to do this [1], although from his perspective (as well as mine, for that matter) he was probably just trying to explore the limits/boundaries of the systems he worked with [2].

I agree regarding the lack of details, and that this is probably a false report. That being said, I wouldn't be surprised if Snowden actually gave it a shot - if you can find someone actually willing to just hand you their credentials, why wouldn't you? Although I understand they're trying to make Snowden look worse with this, I don't see that it does - if anything, it highlights his strengths as a security researcher, while simultaneously showing that the NSA is susceptible to the same social engineering flaws as have been demonstrated elsewhere.

----

[1] http://www.nytimes.com/2013/10/11/us/cia-warning-on-snowden-...

[2] http://www.techdirt.com/articles/20131017/15530424921/snowde...

comment 12y ago · link · parent

As a Firefox user myself, with the same problem of having hundreds of tabs open all the time, I've noticed a neat little trick to "unload" all the tabs from RAM if you need to free some up.

Just bring up the menu bar (or hit Alt), then go to File -> Exit, which should close all Firefox windows but save the current tab history. Then, simply restart Firefox, again go back to the menu, then do History -> Restore Previous Session.

Besides the few tabs that get auto-loaded (i.e. the ones you were viewing in each window), the remaining tabs should remain un-loaded until you manually re-visit that tab (at which point the page will be redownloaded or loaded from cache into RAM).

comment 13y ago · link · parent

Hey, who doesn't? That's a very valid point. Too bad it's muddled in with other fan-boyish comments that greatly detract from the post's legitimacy. Is this a blog post about adding undo to Android, or nit-picking about things that aren't even issues?

And I quote from the article:

> Here's the thing: Typing a password to unlock your phone every time you want to use it is annoying. The root theme of this blogpost is smartphones ideally not wasting one's time, but by typing a password every single time you want to access your phone you're sure wasting a lot of it!

That's why Android phones let you customize a time-out before you have to type the password in to unlock the phone (e.g. when you type your password in, you can set it so you don't have to enter it again for the next X minutes automatically)... So I'm going to agree with the original comment and conclude that this is another case of misrepresenting 'facts'.

Also, regarding point #5 and the inability for him to use his Apple earphones with his Android phone, he clearly hasn't heard of standard TRRS connectors. At minimum, I find the author's titling of this section "External Hardware Incompatibility" - in an article comparing Apple products to others, no less - to be quite humorous. Or maybe this was intended as satire...?

comment 13y ago · link · parent

You might also want to consider using a sandbox/jail such as AppArmor, to prevent the Python (sub)process itself from accessing any resources should those methods fail.

I came across a project called CodeJail, which seems to help configure Python (or other scripting languages) nicely with AppArmor, to help execute untrusted code in a safe(r) manner: https://github.com/edx/codejail

comment 13y ago · link · parent

I whole-heartedly agree, and think this also hints at another issue: as technical experts, we often just don't care about the politics side of things (I think most of us here would align best with a technocracy). We just want to assume that the politics side of the equation will be taken care of by democracy, and we can just invent and code and not have to worry about red tape.

And now, we've found out about the extreme invasions of privacy. The relentless, secretive gathering of information, of which we aren't even allowed to know what information is being gathered. Something clearly went wrong somewhere, which poses a drastic and invasive problem to every single Hacker News reader, regardless of country.

In my honest opinion, I think the backlash against the NSA has been losing steam. So let's throw some more coals into the boiler ladies and gentlemen, because this is something that we not only have a fundamental obligation to discuss, but something we have to fix. Let's keep the steam up.

comment 13y ago · link · parent

Beauty is in the eye of the beholder, but even then, who are you to judge someone or something else? This is the exact problem with the computer ecosystem right now (and more often than not, the Apple cult). I understand that you care how it looks, but to go as far as to care how others might perceive the device you chose to accomplish your work? Why would you care - let alone let it influence your decision - on what to buy, what to wear, or what to use?

Be your own person, because half of your "critiques" are based on how you think other people perceive you.

12345
8