Find Jobs
Hire Freelancers

python script to convert an ascii script into a binary file in the correct format

$10-40 USD

Tamamlandı
İlan edilme: 3 yıldan fazla önce

$10-40 USD

Teslimde ödenir
sample cmd line: python [login to view URL](track_id, window_size, overlay) - select fingerprints from fingerprints where id = track_id - fingerprints look like this in ascii text and can be a random length from 32 to thousands FPS = F803794049860E01B2DA00001 780269404D820E01B25A00002 780269404D830E00B64A00003 7C22694045920E0BA44A00004 FC2268404D930C03A44200005 F86268404C920C02A24200006 786220C043820C03A54200007 - Windows of fingerprints are taken 1 chunk at a time. Window size 288 and overlay of 32 would look like this: window 1 FPS[0:287] window 2 FPS[256:543] window 3 FPS[512:799] etc Window size 256 and overlay of 0 would look like this: window 1 FPS[0:255] window 2 FPS[256:511] window 3 FPS[513:767] This data needs to be converted into a format we need (binary) with start and end words for each window. Please refer to the attached sample in node for window = 256 and overlay = 0. The output of should match the binary output that I placed into a text file (please note this text file was generated by piping the output of hexdump -C). You will see the method the FP is loaded as binary as well as the start window definition and time stamp (simple counter). End window is every 256 lines. The FPS you will grab from the DB will have 5 hex chars at the end that you don''t need to use (its the time stamp) which is just a counter. If there isn't enough for a full window at the end make fake fingerprints filled with 0xff for 10 bytes (see user guide). var fps = [login to view URL]().split(/\n/); var count = 0; var words = []; _( fps ).each( function( fph ) { if ( !fph || [login to view URL] < 25 ) { return; } var fp = new [login to view URL]( fph, null, null, null ); var buf = [login to view URL](); if ( count % WINDOW_SIZE === 0 ) { [login to view URL]( createHeaderWord( [login to view URL], count + 1 ) ); buf[15] = 0x40; } else if ( count % WINDOW_SIZE === (WINDOW_SIZE - 1) ) { buf[15] = 0x50; } [login to view URL]( buf ); count++; }); while ( count % WINDOW_SIZE !== 0 ) { var pad = new Buffer(16); [login to view URL](0); for (var j=0; j<10; j++) { //pad[j] = [login to view URL]([login to view URL]() * 256); pad[j] = 0xff; } [login to view URL](pad); if ( count % WINDOW_SIZE === (WINDOW_SIZE - 1) ) { words[words.length-1][15] = 0x50; } else { words[words.length-1][15] = 0x20; } count++; } Here is an example: - track has 636 fingerprints - window size is defined as 256 - loop through 1 fingerprint at a time - start of each window needs the timebase timestamp (counter) and the track_id put in to the correct positions and the start value of 0x1 in buffer[15] (16th byte) - first fingerprint in the window will have 0x4 in buffer[15] (16th byte) - each word is 16 words - last fingerprint in the window will have 0x5 in buffer[15[ - if the last window is not a multiple of the window size it should be padded with 0's and have 0x2 in buffer[15] - there must be a end window
Proje No: 27228090

Proje hakkında

5 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 4 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
Hello sir, i tried to understand your explanation but still have many questions about your final results, like what is the track_id?,... i'm embedded system engineer i worked many time with binary data, but i believe if we discussed and i had more explanations about the project, i can make a script to generate the binary file. i'm looking forward to work with you
$40 USD 3 gün içinde
5,0 (41 değerlendirme)
7,3
7,3
5 freelancer bu proje için ortalama $53 USD teklif veriyor
Kullanıcı Avatarı
I am very proficient in c and c++. I have 18 years c++ developing experience now, and have worked for more than 10 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$125 USD 3 gün içinde
4,9 (205 değerlendirme)
7,3
7,3
Kullanıcı Avatarı
Greetings! I have read thoroughly your description many times. After that, I almost got it. As I understand, the track is entire ascii text file. Each line is a fingerprint. I also got the definition of window size and overlap (just like stride window, right?). So I'm confidence I can complete the script for you with a bit more explanation. If you interested, kindly discuss more over chat. Best regards, Tam
$40 USD 1 gün içinde
5,0 (63 değerlendirme)
5,9
5,9
Kullanıcı Avatarı
Hello! As a Python expert, I can convert your script successfully. I think the hex values points out the coordinates of each black point in the fingerprint. If you give me some sample files (ASCII and Binary format), I can guess the format of them and make convert script as soon as possible. Looking forward to working with you for a long time. Best regards
$50 USD 1 gün içinde
5,0 (9 değerlendirme)
4,5
4,5

Müşteri hakkında

   UNITED STATES bayrağı
LAHAINA, United States
5,0
48
Ödeme yöntemi onaylandı
Tem 9, 2012 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.