Summary of the invention
For overcoming above-mentioned deficiency, the object of the invention is to provide to this area a kind of media player, make that it solves that existing media player adopts that button is fragile, location slowly and very inaccurate, adopt talking pen setting accuracy low, adopt the higher technical matters of control flow cost.Its objective is and be achieved through the following technical solutions.
A media player, this player comprises shell, control module, control button, media play unit, controls button and is connected on control module, control module connects media play unit.It is characterized in that being provided with light source in described shell, accept the catoptrical optical sensor of light source, analyze the image analysis processing device of moving direction of cursor and displacement, moving direction of cursor and displacement information that described control module obtains the analysis of image analysis processing device are converted to the control signal to media play unit, and described image analysis processing device connects optical sensor and control module.
When the light source of media player is pressed close to body surface, this media player can be radiated at and on this body surface, form a cursor.Part light reflects into into optical sensor through body surface, by optical sensor, carries out imaging, and the image information obtaining is sent to image analysis processing device and processes, and then obtains directional information and the displacement information of cursor movement.By control module, above-mentioned two kinds of information are converted to the control signal to media play unit as input.
In the time of conversion, whether control module can be in conjunction with current state of a control (such as in selecting played file state, whether in broadcast state), control the state (whether pressing) of button and directional information, the displacement information of cursor movement, according to predefined instruction rule, identify the desirable steering order of end user (selecting played file, broadcasting, mobile broadcast point etc.), and the corresponding control signal forming media play unit.Instruction rule is the control needs according to media play unit, relation list in correspondence with each other between the input message of predefined steering order and control module (current state of a control, control key-press status, the direction of cursor movement, displacement).
It is that hand can visual control as the reason of the input message of control module that the present invention introduces the direction of cursor movement and displacement.Especially, when light source is arranged on to the written position of pen gripping type media player, mobile cursor is as write, to the control of displacement very accurately (comparison button press time carry out accurately controlling much easier).So instruction rule of the present invention is given full play to the accuracy that displacement is controlled.When selecting the state of played file, if mobile cursor, the played file that the distance representative of cursor movement will soon be selected and the sequence difference between current played file are (for example, sequence difference between the 3rd and the 10th the played file of sorting is 7), the distance of cursor movement is longer, the played file and the sequence difference between current played file that are about to selection are just larger, mention the steering order that cursor represents selected new played file; When broadcast state, if mobile cursor, the distance representative of cursor movement is about to the broadcast point of selection and the mistiming between current broadcast point, the distance of cursor movement is longer, the broadcast point and the mistiming between current broadcast point that are about to selection are just larger, mention the steering order that cursor represents selected new broadcast point.The distance of cursor movement, can be air line distance, can be also the length of curvilinear path.
If it is complicated to control object, can introduce the speed of cursor movement as the input of control module simultaneously, realize and control object.In the case, image analysis processing device is analyzed direction, speed and the displacement of cursor movement, and direction, speed and the displacement information of the cursor movement that control module obtains the analysis of image analysis processing device are converted to the control signal to media play unit.
The present invention is simple in structure, not fragile, and registration is easy and simple to handle.Useful especially for foreign language learner, help them realize accurate re-reading or see again.
Embodiment
Now by reference to the accompanying drawings, the present invention is described in further detail.In figure, the name of sequence number is called: light source 1, optical sensor 2, image analysis processing device 3, control module 4, selection key 401, switch key 402, media play unit 5, shell 6.
In the embodiment in figure 1, its light source 1 and optical sensor 2 are placed in the head in form of a stroke or a combination of strokes shell 6, optical sensor connection layout is as analysis processor 3, image analysis processing device connection control unit 4, selection key 401 and switch key 402 are connected to control module, and control module connects media play unit 5.Media play unit can be earphone or loudspeaker.The working method of light source and optical sensor is identical with the optical mouse of prior art; The principle of work of image analysis processing device and optical mouse similar, carrys out the variation of analysis position according to the variation of imaging, what here obtain is the information of direction, speed and the displacement of cursor movement; The control module of the programmed control media player of the principle of work of control module and prior art is similar, but handled input message has increased direction, speed and the displacement information of cursor movement, and has used the instruction rule adapting to it.
In conjunction with the control flow chart of Fig. 2, as follows to the instruction rule declaration of the embodiment of Fig. 1.In the present embodiment, the control of media player need to comprise the selection of played file, and (selection of play chapters and sections, play paragraph, playing the page number is similar, because select playing chapters and sections is actually in the played file of selecting these broadcasting chapters and sections), the selection of broadcast point, the setting of plays clip and select fast four functions, for these four kinds, control and need, the instruction rule setting is described at control flow chart, explains in detail below with word.
1. the selection of played file.
After start, automatically enter the selection mode of played file.Or under free position, mobile cursor, meet fast that (obviously stroke speed when carefully and neatly writing is fast, such as surpassing 4 centimeters per seconds), upward direction, displacement be while growing (such as over 8 centimetres) three conditions, control module is identified as this input the selection mode that enters played file.
At played file selection mode, mobile cursor, meets (such as being no more than 4 centimeters per seconds) at a slow speed, and during two conditions of above-below direction, control module is identified as this input to start to move up or down certain played file sequence number.The sequence difference of (after start, current played file is first) between played file and current played file that the distance representative of cursor movement is about to select, the distance of cursor movement is longer, the played file and the sequence difference between current played file that are about to selection are just larger, mention cursor and represent selected new played file.
2. the selection of broadcast point.
2-3 second after selected played file, media player enters broadcast state automatically, starts to play.
Under broadcasting situation, mobile cursor, meets at a slow speed, and during two conditions of left and right directions, control module is identified as this input to start start direction or finish direction and move the regular hour to media play.The distance representative of cursor movement is about to the broadcast point of selection and the mistiming between current broadcast point, and the distance of cursor movement is longer, and the broadcast point and the mistiming between current broadcast point that are about to selection are just larger, mentions cursor and represents selected new broadcast point.
3. the setting of plays clip.
Under broadcast state, press and decontrol selection key, control module is identified as this input at this broadcast point and generates a fragment cut-point; Repeatedly press and decontrol selection key, generate a plurality of fragment cut-points; Fragment cut-point is divided into a plurality of plays clip by played file.
Press selection key, mobile cursor, meets at a slow speed, and during two conditions of left and right directions, control module is identified as this input the position of adjusting the nearest fragment cut-point of the current broadcast point of distance, to media play, starts direction or finishes direction and move the regular hour.The reposition of the fragment cut-point that the distance representative of cursor movement will soon be selected and the mistiming between current location, the distance of cursor movement is longer, the fragment cut-point reposition and the mistiming between current location that are about to selection are just larger, mention cursor and represent selected reposition, media play unit starts to play reposition plays clip afterwards.
4. select fast.
At played file selection mode, mobile cursor, meets fast, upwards, short distance (such as being no more than 3 centimetres) or quick, downwards, during short distance condition, control module is identified this upper one or next played file of being input as quick selection current played file.
Under broadcast state, mobile cursor, meets fast, upwards, short distance (such as being no more than 3 centimetres) or quick, downwards, during short distance condition, control module is identified this upper one or next plays clip of being input as the current broadcast point of quick selection place plays clip.
In the embodiment in figure 1, light source, optical sensor, image analysis processing device, control module, media play unit is integrated in a small and exquisite pen gripping type handheld device (comprising the use of earphone), imitates the assurance of pen is used, convenient operation.In other embodiments, in order to make portion of the handle miniaturization or increase the power of media play unit more, also can media play unit is independent, by wired or wireless, be connected, such as audio amplifier independently.
Identical with the embodiment principle of Fig. 1, there is another technical scheme.This kind of technical scheme, has utilized the talking pen of prior art.In Chinese patent application 200610000563.6, on writing medium, be provided with in a large number locative coding, when writing implement is write on writing medium, its optical unit can be according to position encoded definite writing implement (synchronous with cursor) position the continuous recording on writing medium.According to the position of continuous recording writing implement, through calculating, just can obtain in real time direction, speed, the displacement information of cursor movement, as the input of control module, can realize object of the present invention equally.In concrete technical scheme, only the direction of selective light marker displacement and displacement are as input, this media player comprises shell, control module, control button, media play unit, controls button and is connected on control module, and control module connects media play unit.In shell, be provided with light source, accept the catoptrical optical sensor of light source, optical sensor connects the code identification unit for recognizing site coding, code identification unit connects the analytic unit that calculates moving direction of cursor and displacement, analytic unit sends to control module by result of calculation, control module connects media play unit, media player is being provided with move operation on position encoded medium, when media player is during in broadcast state, mobile cursor, the distance representative of cursor movement is about to the broadcast point of selection and the mistiming between current broadcast point.When media player is when adjusting the state of fragment cut-point, mobile cursor, the distance representative of cursor movement is about to the fragment cut-point reposition of selection and the mistiming between current location.Further, can select direction, speed and the displacement of cursor movement as input, code identification unit connects the analytic unit that calculates moving direction of cursor, speed and displacement, analytic unit sends to control module by result of calculation, short-distance movement cursor fast, in conjunction with other inputs, control module can be identified this steering order that is input as upper one or the next played file of quick selection current played file, or selects fast the steering order of upper or the next plays clip of current plays clip.Like this, the talking pen of prior art, increases analytic unit, and the instruction rule of structural control unit during move operation, just becomes a registration, media player easy and simple to handle on being provided with position encoded medium.