Friday 1 February 2019

CHM - software Tutorial

The Cock Hero Machine Software uses the Open Source Computer Vision Library(OpenCV) to detect the beats in the beatmeter of Cock Hero videos.
The CHM software is free and opensource, here's the direct link to the latest release:

CHMachine Python3 scripts for Linux

CHMachine executable for x64 Windows machines

 

How to use the software, A quick guide: 



Cock Hero Machine interface

If the Cock Hero Machine is already connected to your PC, hit the CONNECT button and wait a few seconds until the connection is established.

To play Cock Hero follow these 4 simple steps:

1) Take a screenshot of the beat, do it by moving the mouse cursor over a single beat on the beatmeter of the CH video and press F9, a window with the screenshoot will pop up.
 
2) With the Xsize and Ysize sliders frame the beat.

3) Check DETECT SETUP and play the video, every time the program spot a correspondency, a green light came up, adjust the Treshold slider so that the beats are detected perfectly(keep an eye on the numbers in the consolle, they may be helpful in this task).

4) When you're ready to play, set the toy in place and check DETECT to start the game.

To change the pulse frequency and speed use the TIME ON and the SPEED sliders.


 


With the "Invert" flag selected, the software detect any major shape change instead of looking for a match. This may be helpful for CH videos with beats that are harder to detect because they change shape. If you use this method, the only thing to remember is to take a screenshoot of the baseline instead of the beat:



HOTKEY TIP:

Numpad 0 Pause/start the game at any moment;

Numpad 1 and Numpad 2 vary the speed of the motor;

F9 Take a screenshot;

F10 Update the screenshoot without using the mouse (very useful when the mouse triggers the timeline of the movie player);

F11 Save current state;

F12 Load previous states(from latest to first).

(You can change the default keys by editing setup.txt in the main folder).

That's it! The ALWAYS ON and PULSE buttons are there if you just want to have fun without playing Cock Hero.

A few considerations:
Sometimes there are some elements that interfere with the detection, Beats that change colors, shapes or position are harder to detect, sometimes beats jump a frame and are missed. There are a few work around, you can play with the treshold and XYsize slides, also the invert flag helps a lot in same cases... It really depends on the type of the beatmeter, just experiment for yourself with various CH videos.

Other features: 
V0.9.7: Toy-code support, Funscripts on the CHM!
V0.9.5: Subtitle files (.SRT) support
V0.9.3: Vibratory patterns

3 comments:

  1. seems like you could use this code to generate beat files for e-stim as well. Thoughts?

    ReplyDelete
  2. I think this is awesome, because it could also be used for some games, not just videos.

    ReplyDelete
  3. Is it possible to make several f9 sources ? Say 2 or even 10 ? I use it for h games simply and it would help me a lot )

    ReplyDelete